From 09cec81f309c83070c81015f6863ef372bd6a088 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 27 May 2024 15:17:33 -0400 Subject: [PATCH] Upgrade Tomo API --- box.go | 12 ------------ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/box.go b/box.go index 24fdd11..1556d36 100644 --- a/box.go +++ b/box.go @@ -19,7 +19,6 @@ type box struct { parent parent outer anyBox - visible bool bounds image.Rectangle minSize image.Point userMinSize image.Point @@ -65,7 +64,6 @@ func (backend *Backend) newBox (outer anyBox) *box { color: color.Transparent, outer: outer, drawer: outer, - visible: true, } if outer == nil { box.drawer = box @@ -176,16 +174,6 @@ func (this *box) SetPadding (padding tomo.Inset) { this.invalidateMinimum() } -func (this *box) SetVisible (visible bool) { - if this.visible == visible { return } - this.visible = visible - this.invalidateMinimum() -} - -func (this *box) Visible () bool { - return this.visible -} - func (this *box) SetDNDData (dat data.Data) { this.dndData = dat } diff --git a/go.mod b/go.mod index 2fa655e..7b1d3f3 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module git.tebibyte.media/tomo/x go 1.20 require ( - git.tebibyte.media/tomo/tomo v0.33.0 + git.tebibyte.media/tomo/tomo v0.34.0 git.tebibyte.media/tomo/typeset v0.7.1 git.tebibyte.media/tomo/xgbkb v1.0.1 github.com/jezek/xgb v1.1.0 diff --git a/go.sum b/go.sum index 1b3d0a8..95e4cce 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,6 @@ git.tebibyte.media/sashakoshka/xgbkb v1.0.0/go.mod h1:pNcE6TRO93vHd6q42SdwLSTTj25L0Yzggz7yLe0JV6Q= -git.tebibyte.media/tomo/tomo v0.33.0 h1:BBm1oRsogBLeqVKeevNqG9RPCOdmbGeiQM/9hd2GHE8= -git.tebibyte.media/tomo/tomo v0.33.0/go.mod h1:C9EzepS9wjkTJjnZaPBh22YvVPyA4hbBAJVU20Rdmps= +git.tebibyte.media/tomo/tomo v0.34.0 h1:r5yJPks9rtzdDI2RyAUdqa1qb6BebG0QFe2cTmcFi+0= +git.tebibyte.media/tomo/tomo v0.34.0/go.mod h1:C9EzepS9wjkTJjnZaPBh22YvVPyA4hbBAJVU20Rdmps= git.tebibyte.media/tomo/typeset v0.7.1 h1:aZrsHwCG5ZB4f5CruRFsxLv5ezJUCFUFsQJJso2sXQ8= git.tebibyte.media/tomo/typeset v0.7.1/go.mod h1:PwDpSdBF3l/EzoIsa2ME7QffVVajnTHZN6l3MHEGe1g= git.tebibyte.media/tomo/xgbkb v1.0.1 h1:b3HDUopjdQp1MZrb5Vpil4bOtk3NnNXtfQW27Blw2kE=