Compare commits
No commits in common. "868b6fdfe9cdf1fad92292930554e62309f4bdb3" and "caa261665fed1468f1604cec8926a2c088656f43" have entirely different histories.
868b6fdfe9
...
caa261665f
@ -203,10 +203,7 @@ func (this *box) SetPadding (padding tomo.Inset) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *box) SetRole (role tomo.Role) {
|
func (this *box) SetRole (role tomo.Role) {
|
||||||
if this.role == role { return }
|
|
||||||
this.role = role
|
this.role = role
|
||||||
this.lastStyleNonce = -1
|
|
||||||
this.outer.recursiveReApply()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *box) SetDNDData (dat data.Data) {
|
func (this *box) SetDNDData (dat data.Data) {
|
||||||
|
@ -29,10 +29,7 @@ func (this *canvasBox) Invalidate () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *canvasBox) Draw (can canvas.Canvas) {
|
func (this *canvasBox) Draw (can canvas.Canvas) {
|
||||||
if can == nil { return }
|
|
||||||
this.box.Draw(can)
|
this.box.Draw(can)
|
||||||
if this.userDrawer != nil {
|
this.userDrawer.Draw (
|
||||||
this.userDrawer.Draw (
|
can.SubCanvas(this.padding.Apply(this.innerClippingBounds)))
|
||||||
can.SubCanvas(this.padding.Apply(this.innerClippingBounds)))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,7 @@ type fillingContext struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (context *fillingContext) fillPolygonHotOpaque () {
|
func (context *fillingContext) fillPolygonHotOpaque () {
|
||||||
for index := 0; index < len(context.boundaries) - 1; index += 2 {
|
for index := 0; index < len(context.boundaries); index += 2 {
|
||||||
left := context.boundaries[index]
|
left := context.boundaries[index]
|
||||||
right := context.boundaries[index + 1]
|
right := context.boundaries[index + 1]
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ func (context *fillingContext) fillPolygonHotOpaque () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (context *fillingContext) fillPolygonHotTransparent () {
|
func (context *fillingContext) fillPolygonHotTransparent () {
|
||||||
for index := 0; index < len(context.boundaries) - 1; index += 2 {
|
for index := 0; index < len(context.boundaries); index += 2 {
|
||||||
left := context.boundaries[index]
|
left := context.boundaries[index]
|
||||||
right := context.boundaries[index + 1]
|
right := context.boundaries[index + 1]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user