Documentation ¶
Overview ¶
Package checkbox provides a widget which can be checked or unchecked.
Index ¶
- func Render(w IChecked, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- type Decoration
- type IChecked
- type IWidget
- type Widget
- func (w *Widget) Click(app gowid.IApp)
- func (w *Widget) IsChecked() bool
- 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) SetChecked(app gowid.IApp, val bool)
- func (w *Widget) String() string
- func (w *Widget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoration ¶
type Decoration struct { button.Decoration Middle string }
func (*Decoration) MiddleDec ¶
func (b *Decoration) MiddleDec() string
func (*Decoration) SetMiddleDec ¶
func (w *Decoration) SetMiddleDec(dec string, app gowid.IApp)
type IChecked ¶
type IChecked interface { button.IDecoratedAround button.IDecoratedMiddle IsChecked() bool }
type Widget ¶
type Widget struct { Callbacks *gowid.Callbacks gowid.ClickCallbacks Decoration gowid.AddressProvidesID gowid.IsSelectable // contains filtered or unexported fields }
func NewDecorated ¶
func NewDecorated(isChecked bool, decoration Decoration) *Widget
func (*Widget) RenderSize ¶
func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
Click to show internal directories.
Click to hide internal directories.