Documentation
¶
Overview ¶
Package action provides actions management for applets.
Index ¶
- type Actions
- func (o *Actions) Add(acts ...*cdtype.Action)
- func (o *Actions) BuildMenu(menu cdtype.Menuer, actionIds []int)
- func (o *Actions) Callback(ID int) func()
- func (o *Actions) CallbackInt(ID int) func(int)
- func (o *Actions) CallbackMenu(actionIds ...int) func(menu cdtype.Menuer)
- func (o *Actions) Count() int
- func (o *Actions) ID(name string) int
- func (o *Actions) Launch(ID int)
- func (o *Actions) Len() int
- func (o *Actions) SetBool(ID int, boolPointer *bool)
- func (o *Actions) SetIndicators(onStart, onStop func())
- func (o *Actions) SetMax(max int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct { Max int // Maximum number of concurrent actions (simultaneous). Current int // Current number of active actions. // contains filtered or unexported fields }
Actions manages applet internal actions list.
func (*Actions) CallbackInt ¶
CallbackInt returns a callback to the given action ID.
func (*Actions) CallbackMenu ¶
CallbackMenu provides a fill menu callback with the given actions list.
func (*Actions) SetBool ¶
SetBool sets the pointer to the boolean value for a checkentry menu field.
func (*Actions) SetIndicators ¶
func (o *Actions) SetIndicators(onStart, onStop func())
SetIndicators set the pre and post action callbacks.
Click to show internal directories.
Click to hide internal directories.