Upgrade Tomo API
This commit is contained in:
		
							parent
							
								
									0799f3645b
								
							
						
					
					
						commit
						09cec81f30
					
				
							
								
								
									
										12
									
								
								box.go
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								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
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								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=
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user