Documentation ¶
Index ¶
- Variables
- type CheckboxControl
- func (c *CheckboxControl) Ack() canvas.EventEmitter
- func (c *CheckboxControl) Color() color.RGBA
- func (c *CheckboxControl) Disable()
- func (c *CheckboxControl) Draw(gtx *layout.Context, th *material.Theme) error
- func (c *CheckboxControl) Enable()
- func (c *CheckboxControl) IsActive() bool
- func (c *CheckboxControl) Label() string
- func (c *CheckboxControl) Set(active bool)
- func (c *CheckboxControl) Trigger() canvas.EventReceiver
- type CheckboxControlGroup
- type Input
- type Label
- type Properties
- type Rect
Constants ¶
This section is empty.
Variables ¶
View Source
var Black = color.RGBA{0, 0, 0, 255}
Functions ¶
This section is empty.
Types ¶
type CheckboxControl ¶
CheckboxControl is a checkbox to be used as a canvas.Control
func NewCheckBox ¶
func NewCheckBox(label string, active bool, color color.RGBA) *CheckboxControl
func (*CheckboxControl) Ack ¶
func (c *CheckboxControl) Ack() canvas.EventEmitter
func (*CheckboxControl) Color ¶
func (c *CheckboxControl) Color() color.RGBA
func (*CheckboxControl) Disable ¶
func (c *CheckboxControl) Disable()
func (*CheckboxControl) Enable ¶
func (c *CheckboxControl) Enable()
func (*CheckboxControl) IsActive ¶
func (c *CheckboxControl) IsActive() bool
func (*CheckboxControl) Label ¶
func (c *CheckboxControl) Label() string
func (*CheckboxControl) Set ¶
func (c *CheckboxControl) Set(active bool)
func (*CheckboxControl) Trigger ¶
func (c *CheckboxControl) Trigger() canvas.EventReceiver
type CheckboxControlGroup ¶
type CheckboxControlGroup struct { CheckboxControl // contains filtered or unexported fields }
func NewCheckboxControlGroup ¶
func NewCheckboxControlGroup(active bool, control ...canvas.Control) *CheckboxControlGroup
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func (*Input) Ack ¶
func (i *Input) Ack() canvas.EventEmitter
func (*Input) Trigger ¶
func (i *Input) Trigger() canvas.EventReceiver
type Label ¶
type Label struct { Properties // contains filtered or unexported fields }
type Properties ¶
func (*Properties) Color ¶
func (p *Properties) Color(rgba color.RGBA) *Properties
Click to show internal directories.
Click to hide internal directories.