Documentation ¶
Overview ¶
Package isselected provides a widget that acts differently if selected (or focused)
Index ¶
- type Widget
- func (w *Widget) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- func (w *Widget) Selectable() bool
- func (w *Widget) String() string
- func (w *Widget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool
- type WidgetExt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Widget ¶
type Widget struct { Not gowid.IWidget // Must not be nil Selected gowid.IWidget // If nil, then Not used Focused gowid.IWidget // If nil, then Selected used }
func (*Widget) RenderSize ¶
func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
func (*Widget) Selectable ¶
TODO - this isn't right. Should Selectable be conditioned on focus?
Click to show internal directories.
Click to hide internal directories.