raw-buffer-api #1
@ -37,7 +37,10 @@ func (element *Mouse) Handle (event tomo.Event) {
|
|||||||
element.core,
|
element.core,
|
||||||
theme.AccentImage(),
|
theme.AccentImage(),
|
||||||
element.Bounds())
|
element.Bounds())
|
||||||
// TODO: draw a stroked rectangle around the edges
|
artist.StrokeRectangle (
|
||||||
|
element.core,
|
||||||
|
artist.NewUniform(color.Black), 5,
|
||||||
|
element.Bounds())
|
||||||
artist.Line (
|
artist.Line (
|
||||||
element.core, artist.NewUniform(color.White), 1,
|
element.core, artist.NewUniform(color.White), 1,
|
||||||
image.Pt(1, 1),
|
image.Pt(1, 1),
|
||||||
|
Reference in New Issue
Block a user