markup

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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 New

func New() *Markup

func (*Markup) MustParse

func (m *Markup) MustParse(
	parent ui.ParentDrawable,
	refs interface{},
	xmlStr string,
) ui.Drawable

func (*Markup) Parse

func (m *Markup) Parse(
	parent ui.ParentDrawable,
	refs interface{},
	xmlStr string,
) (ui.Drawable, error)

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) Draw

func (b *MarkupDrawable) Draw(x, y int, im draw.Image)

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) SendEvent

func (b *MarkupDrawable) SendEvent(ev ui.Event) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL