Documentation ¶ Index ¶ type Button func New(label string, onClick func() (vxfw.Command, error)) *Button func (b *Button) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error) func (b *Button) HandleEvent(ev vaxis.Event, ph vxfw.EventPhase) (vxfw.Command, error) type StyleSet Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Button ¶ type Button struct { Label string Style StyleSet OnClick func() (vxfw.Command, error) // contains filtered or unexported fields } func New ¶ func New(label string, onClick func() (vxfw.Command, error)) *Button func (*Button) Draw ¶ func (b *Button) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error) func (*Button) HandleEvent ¶ func (b *Button) HandleEvent(ev vaxis.Event, ph vxfw.EventPhase) (vxfw.Command, error) type StyleSet ¶ type StyleSet struct { Default vaxis.Style MouseDown vaxis.Style Hover vaxis.Style Focus vaxis.Style } Source Files ¶ View all Source files button.go Click to show internal directories. Click to hide internal directories.