Documentation
¶
Index ¶
- func AttrsAppendCapture(attrs gox.Attrs, capture Capture, hook Hook)
- func AttrsAppendDyn(attrs gox.Attrs, id uint64, name string)
- func AttrsSetActive(attrs gox.Attrs, active []any)
- func AttrsSetData(attrs gox.Attrs, name string, data any)
- func AttrsSetDoor(attrs gox.Attrs, id uint64, container bool)
- func AttrsSetHook(attrs gox.Attrs, name string, hook Hook)
- func AttrsSetParent(attrs gox.Attrs, parent uint64)
- func Include(inst core.Instance) gox.Elem
- type AutoId
- type Capture
- type ChangeCapture
- type FocusCapture
- type FocusIOCapture
- type FormCapture
- type Hook
- type Indicator
- type InputCapture
- type KeyboardEventCapture
- type LinkCapture
- type PointerCapture
- type Scope
- func BlockingScope(id string) Scope
- func ConcurrentScope(id string, groupId int) Scope
- func DebounceScope(id string, duration time.Duration, limit time.Duration) Scope
- func FrameScope(id string, frame bool) Scope
- func FreeScope(id string) Scope
- func LatestScope(id string) Scope
- func RateScope(id string, tick time.Duration) Scope
- func SerialScope(id string) Scope
- type Scoper
- type Selector
- type SelectorMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttrsSetActive ¶
func AttrsSetParent ¶
Types ¶
type ChangeCapture ¶
type ChangeCapture struct {
}
func (ChangeCapture) Listen ¶
func (c ChangeCapture) Listen() string
func (ChangeCapture) Name ¶
func (c ChangeCapture) Name() string
type FocusCapture ¶
type FocusCapture struct {
Event string `json:"-"`
}
func (FocusCapture) Listen ¶
func (c FocusCapture) Listen() string
func (FocusCapture) Name ¶
func (c FocusCapture) Name() string
type FocusIOCapture ¶
type FocusIOCapture struct {
Event string `json:"-"`
StopPropagation bool `json:"sp"`
ExactTarget bool `json:"et"`
}
func (FocusIOCapture) Listen ¶
func (c FocusIOCapture) Listen() string
func (FocusIOCapture) Name ¶
func (c FocusIOCapture) Name() string
type FormCapture ¶
type FormCapture struct {
}
func (FormCapture) Listen ¶
func (c FormCapture) Listen() string
func (FormCapture) Name ¶
func (c FormCapture) Name() string
type Hook ¶
type Hook struct {
Before action.Actions
OnError action.Actions
Scope []Scope
Indicate []Indicator
core.Hook
}
func (Hook) MarshalJSON ¶
type Indicator ¶
type Indicator struct {
// contains filtered or unexported fields
}
func IndicatorAttr ¶ added in v0.12.1
func IndicatorClass ¶ added in v0.12.1
func IndicatorClassRemove ¶ added in v0.12.1
func IndicatorContent ¶ added in v0.12.1
func (Indicator) MarshalJSON ¶ added in v0.12.1
type InputCapture ¶
type InputCapture struct {
ExcludeValue bool `json:"ev"`
}
func (InputCapture) Listen ¶
func (c InputCapture) Listen() string
func (InputCapture) Name ¶
func (c InputCapture) Name() string
type KeyboardEventCapture ¶
type KeyboardEventCapture struct {
Event string `json:"-"`
Filter []string `json:"fr"`
PreventDefault bool `json:"pd"`
StopPropagation bool `json:"sp"`
ExactTarget bool `json:"et"`
}
func (KeyboardEventCapture) Listen ¶
func (c KeyboardEventCapture) Listen() string
func (KeyboardEventCapture) Name ¶
func (c KeyboardEventCapture) Name() string
type LinkCapture ¶
type LinkCapture struct {
StopPropagation bool `json:"sp"`
}
func (LinkCapture) Listen ¶
func (c LinkCapture) Listen() string
func (LinkCapture) Name ¶
func (c LinkCapture) Name() string
type PointerCapture ¶
type PointerCapture struct {
Event string `json:"-"`
PreventDefault bool `json:"pd"`
StopPropagation bool `json:"sp"`
ExactTarget bool `json:"et"`
}
func (PointerCapture) Listen ¶
func (pc PointerCapture) Listen() string
func (PointerCapture) Name ¶
func (pc PointerCapture) Name() string
type Scope ¶
func BlockingScope ¶
func ConcurrentScope ¶
func DebounceScope ¶
func FrameScope ¶
func LatestScope ¶
func SerialScope ¶
func (Scope) MarshalJSON ¶ added in v0.12.1
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
func SelectQuery ¶
func SelectQueryAll ¶
func SelectQueryParent ¶
func SelectTarget ¶
func SelectTarget() Selector
func (Selector) MarshalJSON ¶
type SelectorMode ¶
type SelectorMode string
const ( SelectModeTarget SelectorMode = "target" SelectModeQuery SelectorMode = "query" SelectModeQueryAll SelectorMode = "query_all" SelectModeParentQuery SelectorMode = "parent_query" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.