Documentation ¶
Index ¶
- Constants
- func ParseColor(s string) (color.Color, error)
- func Print(d Drawable, prop string)
- func StartCommand(cmd string)
- type Context
- type Drawable
- type Event
- type EventType
- type ParentDrawable
- type Root
- func (r *Root) Add(Drawable)
- func (r *Root) ChildContext(int) Context
- func (r *Root) Children() []Drawable
- func (r *Root) Context() Context
- func (r *Root) Draw(x, y int, im draw.Image)
- func (r *Root) Height() int
- func (r *Root) Image() *image.RGBA
- func (r *Root) Init() error
- func (r *Root) Notify()
- func (r *Root) OnHeightChange(func(int))
- func (r *Root) OnVisibleChange(func(bool))
- func (r *Root) OnWidthChange(func(int))
- func (r *Root) Paint()
- func (r *Root) SendEvent(ev Event) bool
- func (r *Root) SetContext(Context)
- func (r *Root) SetVisible(bool)
- func (r *Root) Visible() bool
- func (r *Root) Width() int
Constants ¶
View Source
const ( EventTypeLeftClick = iota EventTypeRightClick )
Variables ¶
This section is empty.
Functions ¶
func StartCommand ¶
func StartCommand(cmd string)
Types ¶
type ParentDrawable ¶
type Root ¶
type Root struct { Inner Drawable // contains filtered or unexported fields }
func (*Root) ChildContext ¶
func (*Root) OnHeightChange ¶
func (*Root) OnVisibleChange ¶
func (*Root) OnWidthChange ¶
func (*Root) SetContext ¶
func (*Root) SetVisible ¶
Click to show internal directories.
Click to hide internal directories.