Documentation
¶
Index ¶
- Variables
- func AttrRender(ctx context.Context, w io.Writer, a Attr) error
- type After
- type Attr
- type Attrs
- func (a *Attrs) AppendCapture(capture Capture, hook *Hook)
- func (a *Attrs) AppendDyna(id uint64, name string)
- func (a *Attrs) Init(_ context.Context, _ door.Core, _ instance.Core, attrs *Attrs)
- func (a *Attrs) Join(attrs *Attrs) *Attrs
- func (a *Attrs) Render(ctx context.Context, w io.Writer) error
- func (a *Attrs) SetData(name string, data any)
- func (a *Attrs) SetHook(name string, hook *Hook)
- type Capture
- type ChangeCapture
- type ChangeEvent
- type ErrorAction
- type FocusCapture
- type FocusEvent
- type FocusIOCapture
- type FormCapture
- type Hook
- type Indicate
- type Indicator
- type InputCapture
- type InputEvent
- type KeyboardEvent
- type KeyboardEventCapture
- type LinkCapture
- type OnError
- type PointerCapture
- type PointerEvent
- type Scope
- type ScopeAutoId
- type ScopeSet
- func BlockingScope(id string) *ScopeSet
- func DebounceScope(id string, duration time.Duration, limit time.Duration) *ScopeSet
- func FrameScope(id string, frame bool) *ScopeSet
- func FreeScope(id string) *ScopeSet
- func IntoScopeSet(inst instance.Core, scope []Scope) []*ScopeSet
- func LatestScope(id string) *ScopeSet
- func SerialScope(id string) *ScopeSet
- type Selector
- type SelectorMode
Constants ¶
This section is empty.
Variables ¶
View Source
var Include = include{}
Functions ¶
Types ¶
type After ¶
func (*After) MarshalJSON ¶
type ChangeCapture ¶
type ChangeCapture struct { }
func (*ChangeCapture) Listen ¶
func (c *ChangeCapture) Listen() string
func (*ChangeCapture) Name ¶
func (c *ChangeCapture) Name() string
type ChangeEvent ¶
type ErrorAction ¶
type ErrorAction struct {
// contains filtered or unexported fields
}
func IntoErrorAction ¶
func IntoErrorAction(errorActor []OnError) []*ErrorAction
func OnErrorCall ¶
func OnErrorCall(name string, meta json.RawMessage) *ErrorAction
func OnErrorIndicate ¶
func OnErrorIndicate(d time.Duration, i []*Indicate) *ErrorAction
func (*ErrorAction) MarshalJSON ¶
func (ea *ErrorAction) MarshalJSON() ([]byte, error)
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 FocusEvent ¶
type FocusIOCapture ¶
type FocusIOCapture struct { Event string `json:"-"` StopPropagation bool `json:"stopPropagation"` }
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 { Error []*ErrorAction Scope []*ScopeSet Indicate []*Indicate *door.HookEntry }
func (*Hook) MarshalJSON ¶
type Indicate ¶
type Indicate struct {
// contains filtered or unexported fields
}
func IndicateClass ¶
func IndicateClassRemove ¶
func IndicateContent ¶
func IntoIndicate ¶
func (*Indicate) MarshalJSON ¶
type InputCapture ¶
type InputCapture struct {
ExcludeValue bool `json:"excludeValue"`
}
func (*InputCapture) Listen ¶
func (c *InputCapture) Listen() string
func (*InputCapture) Name ¶
func (c *InputCapture) Name() string
type InputEvent ¶
type KeyboardEvent ¶
type KeyboardEventCapture ¶
type KeyboardEventCapture struct { Event string `json:"-"` PreventDefault bool `json:"preventDefault"` StopPropagation bool `json:"stopPropagation"` }
func (*KeyboardEventCapture) Listen ¶
func (c *KeyboardEventCapture) Listen() string
func (*KeyboardEventCapture) Name ¶
func (c *KeyboardEventCapture) Name() string
type LinkCapture ¶
type LinkCapture struct {
StopPropagation bool `json:"stopPropagation"`
}
func (*LinkCapture) Listen ¶
func (c *LinkCapture) Listen() string
func (*LinkCapture) Name ¶
func (c *LinkCapture) Name() string
type OnError ¶
type OnError interface {
ErrorAction() *ErrorAction
}
type PointerCapture ¶
type PointerCapture struct { Event string `json:"-"` PreventDefault bool `json:"preventDefault"` StopPropagation bool `json:"stopPropagation"` }
func (*PointerCapture) Listen ¶
func (pc *PointerCapture) Listen() string
func (*PointerCapture) Name ¶
func (pc *PointerCapture) Name() string
type PointerEvent ¶
type PointerEvent struct { Type string `json:"type"` PointerID int `json:"pointerId"` Width float64 `json:"width"` Height float64 `json:"height"` Pressure float64 `json:"pressure"` TangentialPressure float64 `json:"tangentialPressure"` TiltX float64 `json:"tiltX"` TiltY float64 `json:"tiltY"` Twist float64 `json:"twist"` Buttons int `json:"buttons"` Button int `json:"button"` PointerType string `json:"pointerType"` IsPrimary bool `json:"isPrimary"` ClientX float64 `json:"clientX"` ClientY float64 `json:"clientY"` ScreenX float64 `json:"screenX"` ScreenY float64 `json:"screenY"` PageX float64 `json:"pageX"` PageY float64 `json:"pageY"` Timestamp time.Time `json:"timestamp"` }
type ScopeAutoId ¶
type ScopeAutoId struct {
// contains filtered or unexported fields
}
type ScopeSet ¶
func BlockingScope ¶
func DebounceScope ¶
func FrameScope ¶
func LatestScope ¶
func SerialScope ¶
func (*ScopeSet) MarshalJSON ¶
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
func SelectParentQuery ¶
func SelectQuery ¶
func SelectTarget ¶
func SelectTarget() *Selector
func (*Selector) MarshalJSON ¶
type SelectorMode ¶
type SelectorMode string
const ( SelectModeTarget SelectorMode = "target" SelectModeQuery SelectorMode = "query" SelectModeParentQuery SelectorMode = "parent_query" )
Click to show internal directories.
Click to hide internal directories.