Documentation ¶
Index ¶
- Variables
- type DrawableFn
- type Markup
- type MarkupDrawable
- func (b *MarkupDrawable) Add(d ui.Drawable)
- func (b *MarkupDrawable) ChildContext(int) ui.Context
- func (b *MarkupDrawable) Children() []ui.Drawable
- func (b *MarkupDrawable) Context() ui.Context
- func (b *MarkupDrawable) Draw(x, y int, im draw.Image)
- func (b *MarkupDrawable) Height() int
- func (b *MarkupDrawable) Init() error
- func (b *MarkupDrawable) Notify()
- func (b *MarkupDrawable) OnHeightChange(c func(int))
- func (b *MarkupDrawable) OnLeftClick() func(ui.Event) bool
- func (b *MarkupDrawable) OnPointerEnter() func(ui.Event) bool
- func (b *MarkupDrawable) OnPointerLeave() func(ui.Event) bool
- func (b *MarkupDrawable) OnPointerMove() func(ui.Event) bool
- func (b *MarkupDrawable) OnRightClick() func(ui.Event) bool
- func (b *MarkupDrawable) OnVisibleChange(c func(bool))
- func (b *MarkupDrawable) OnWidthChange(c func(int))
- func (b *MarkupDrawable) SendEvent(ev ui.Event) bool
- func (b *MarkupDrawable) SetContext(ctx ui.Context)
- func (b *MarkupDrawable) SetOnLeftClick(cb func(ui.Event) bool)
- func (b *MarkupDrawable) SetOnPointerEnter(cb func(ui.Event) bool)
- func (b *MarkupDrawable) SetOnPointerLeave(cb func(ui.Event) bool)
- func (b *MarkupDrawable) SetOnPointerMove(cb func(ui.Event) bool)
- func (b *MarkupDrawable) SetOnRightClick(cb func(ui.Event) bool)
- func (b *MarkupDrawable) SetVisible(v bool)
- func (b *MarkupDrawable) Visible() bool
- func (b *MarkupDrawable) Width() int
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMarkup = New()
Functions ¶
This section is empty.
Types ¶
type DrawableFn ¶
type DrawableFn func(ui.ParentDrawable) ui.Drawable
type Markup ¶
type Markup struct {
// contains filtered or unexported fields
}
func (*Markup) Register ¶
func (m *Markup) Register(name string, ctor DrawableFn)
type MarkupDrawable ¶
type MarkupDrawable struct {
// contains filtered or unexported fields
}
func (*MarkupDrawable) Add ¶
func (b *MarkupDrawable) Add(d ui.Drawable)
func (*MarkupDrawable) ChildContext ¶
func (b *MarkupDrawable) ChildContext(int) ui.Context
func (*MarkupDrawable) Children ¶
func (b *MarkupDrawable) Children() []ui.Drawable
func (*MarkupDrawable) Context ¶
func (b *MarkupDrawable) Context() ui.Context
func (*MarkupDrawable) Height ¶
func (b *MarkupDrawable) Height() int
func (*MarkupDrawable) Init ¶
func (b *MarkupDrawable) Init() error
func (*MarkupDrawable) Notify ¶
func (b *MarkupDrawable) Notify()
func (*MarkupDrawable) OnHeightChange ¶
func (b *MarkupDrawable) OnHeightChange(c func(int))
func (*MarkupDrawable) OnLeftClick ¶ added in v0.2.3
func (b *MarkupDrawable) OnLeftClick() func(ui.Event) bool
func (*MarkupDrawable) OnPointerEnter ¶ added in v0.2.3
func (b *MarkupDrawable) OnPointerEnter() func(ui.Event) bool
func (*MarkupDrawable) OnPointerLeave ¶ added in v0.2.3
func (b *MarkupDrawable) OnPointerLeave() func(ui.Event) bool
func (*MarkupDrawable) OnPointerMove ¶ added in v0.2.3
func (b *MarkupDrawable) OnPointerMove() func(ui.Event) bool
func (*MarkupDrawable) OnRightClick ¶ added in v0.2.3
func (b *MarkupDrawable) OnRightClick() func(ui.Event) bool
func (*MarkupDrawable) OnVisibleChange ¶
func (b *MarkupDrawable) OnVisibleChange(c func(bool))
func (*MarkupDrawable) OnWidthChange ¶
func (b *MarkupDrawable) OnWidthChange(c func(int))
func (*MarkupDrawable) SetContext ¶
func (b *MarkupDrawable) SetContext(ctx ui.Context)
func (*MarkupDrawable) SetOnLeftClick ¶ added in v0.2.3
func (b *MarkupDrawable) SetOnLeftClick(cb func(ui.Event) bool)
func (*MarkupDrawable) SetOnPointerEnter ¶ added in v0.2.3
func (b *MarkupDrawable) SetOnPointerEnter(cb func(ui.Event) bool)
func (*MarkupDrawable) SetOnPointerLeave ¶ added in v0.2.3
func (b *MarkupDrawable) SetOnPointerLeave(cb func(ui.Event) bool)
func (*MarkupDrawable) SetOnPointerMove ¶ added in v0.2.3
func (b *MarkupDrawable) SetOnPointerMove(cb func(ui.Event) bool)
func (*MarkupDrawable) SetOnRightClick ¶ added in v0.2.3
func (b *MarkupDrawable) SetOnRightClick(cb func(ui.Event) bool)
func (*MarkupDrawable) SetVisible ¶
func (b *MarkupDrawable) SetVisible(v bool)
func (*MarkupDrawable) Visible ¶
func (b *MarkupDrawable) Visible() bool
func (*MarkupDrawable) Width ¶
func (b *MarkupDrawable) Width() int
Click to show internal directories.
Click to hide internal directories.