Documentation
¶
Index ¶
- type UISwitch
- func (s *UISwitch) IsOn() bool
- func (s *UISwitch) On(event fltk_bridge.Event, handler func(fltk_bridge.Event) bool)
- func (s *UISwitch) OnChange(cb func())
- func (s *UISwitch) OnValueChanged(cb func(bool))
- func (s *UISwitch) Raw() *fltk_bridge.ToggleButton
- func (s *UISwitch) SetOn(on bool)
- func (s *UISwitch) SetValue(v bool)
- func (s *UISwitch) Value() bool
- func (s *UISwitch) View() *view.UIView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UISwitch ¶
type UISwitch struct {
// contains filtered or unexported fields
}
func NewUISwitch ¶
func NewUISwitch(r *foundation.Rect) *UISwitch
func (*UISwitch) On ¶
func (s *UISwitch) On(event fltk_bridge.Event, handler func(fltk_bridge.Event) bool)
func (*UISwitch) OnChange ¶
func (s *UISwitch) OnChange(cb func())
OnChange is a convenience variant for callers that do not need the state.
func (*UISwitch) OnValueChanged ¶
OnValueChanged invokes cb with the current on/off state.
func (*UISwitch) Raw ¶
func (s *UISwitch) Raw() *fltk_bridge.ToggleButton
Click to show internal directories.
Click to hide internal directories.