Documentation
¶
Index ¶
- Variables
- func AttrRender(ctx context.Context, w io.Writer, a Attr) error
- 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 FocusCapture
- type FocusEvent
- type FocusIOCapture
- type FormCapture
- type Hook
- type Indicate
- type Indicator
- type InputCapture
- type InputEvent
- type KeyboardEvent
- type KeyboardEventCapture
- type LinkCapture
- type PointerCapture
- type PointerEvent
- type Scope
- type ScopeAutoId
- type ScopeSet
- func BlockingScope(id string) *ScopeSet
- func ConcurrentScope(id string, groupId int) *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 SerialScope(id string) *ScopeSet
- type Selector
- type SelectorMode
Constants ¶
This section is empty.
Variables ¶
View Source
var Include = include{}
Functions ¶
Types ¶
type ChangeCapture ¶
type ChangeCapture struct {
}
func (*ChangeCapture) Listen ¶
func (c *ChangeCapture) Listen() string
func (*ChangeCapture) Name ¶
func (c *ChangeCapture) Name() string
type ChangeEvent ¶
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"`
ExactTarget bool `json:"exactTarget"`
}
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 []*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:"-"`
Filter []string `json:"filter"`
PreventDefault bool `json:"preventDefault"`
StopPropagation bool `json:"stopPropagation"`
ExactTarget bool `json:"exactTarget"`
}
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 PointerCapture ¶
type PointerCapture struct {
Event string `json:"-"`
PreventDefault bool `json:"preventDefault"`
StopPropagation bool `json:"stopPropagation"`
ExactTarget bool `json:"exactTarget"`
}
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 ConcurrentScope ¶
func DebounceScope ¶
func FrameScope ¶
func SerialScope ¶
func (*ScopeSet) MarshalJSON ¶
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
func SelectParentQuery ¶
func SelectQuery ¶
func SelectQueryAll ¶
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.