Documentation ¶
Index ¶
- Variables
- type CheckBox
- func (checkbox *CheckBox) BaseBackground() color.Color
- func (checkbox *CheckBox) Click()
- func (checkbox *CheckBox) SetState(state State)
- func (checkbox *CheckBox) Sizes(hint geom.Size) (min, pref, max geom.Size)
- func (checkbox *CheckBox) State() State
- func (checkbox *CheckBox) TextColor() color.Color
- type State
- type Theme
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StdCheckBox is the theme all new CheckBoxes get by default. StdCheckBox = NewTheme() )
Functions ¶
This section is empty.
Types ¶
type CheckBox ¶
type CheckBox struct { widget.Block Theme *Theme // The theme the checkbox will use to draw itself. Title string // An optional title for the checkbox. // contains filtered or unexported fields }
CheckBox represents a clickable checkbox with an optional label.
func NewCheckBox ¶
NewCheckBox creates a new checkbox with the specified title.
func (*CheckBox) BaseBackground ¶
BaseBackground returns this checkbox's current base background color.
func (*CheckBox) Click ¶
func (checkbox *CheckBox) Click()
Click performs any animation associated with a click and calls the OnClick() function if it is set.
type Theme ¶
type Theme struct { button.BaseTextTheme HorizontalGap float64 // The gap between the checkbox graphic and its label. }
Theme contains the theme elements for CheckBoxes.
Click to show internal directories.
Click to hide internal directories.