switchview

package
v0.0.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

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) IsOn

func (s *UISwitch) IsOn() bool

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

func (s *UISwitch) OnValueChanged(cb func(bool))

OnValueChanged invokes cb with the current on/off state.

func (*UISwitch) Raw

func (s *UISwitch) Raw() *fltk_bridge.ToggleButton

func (*UISwitch) SetOn

func (s *UISwitch) SetOn(on bool)

func (*UISwitch) SetValue

func (s *UISwitch) SetValue(v bool)

func (*UISwitch) Value

func (s *UISwitch) Value() bool

func (*UISwitch) View

func (s *UISwitch) View() *view.UIView

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL