Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CombinedSelector ¶
type CombinedSelector struct {
// contains filtered or unexported fields
}
func NewCombinedSelector ¶
func NewCombinedSelector() *CombinedSelector
func (*CombinedSelector) Add ¶
func (s *CombinedSelector) Add(sel Selector) *CombinedSelector
func (*CombinedSelector) IsEmpty ¶
func (s *CombinedSelector) IsEmpty() bool
func (*CombinedSelector) IsPositive ¶
func (s *CombinedSelector) IsPositive() bool
func (*CombinedSelector) Matches ¶
func (s *CombinedSelector) Matches(idev *evdev.InputDevice) *bool
type NegativeSelector ¶
type NegativeSelector struct {
// contains filtered or unexported fields
}
func NewNegativeSelector ¶
func NewNegativeSelector(selector Selector) *NegativeSelector
func (*NegativeSelector) IsPositive ¶
func (s *NegativeSelector) IsPositive() bool
func (*NegativeSelector) Matches ¶
func (s *NegativeSelector) Matches(idev *evdev.InputDevice) *bool
type PathSelector ¶
type PathSelector struct {
// contains filtered or unexported fields
}
func NewPathSelector ¶
func NewPathSelector(path string) *PathSelector
func (*PathSelector) IsPositive ¶
func (s *PathSelector) IsPositive() bool
func (*PathSelector) Matches ¶
func (s *PathSelector) Matches(idev *evdev.InputDevice) *bool
type ReSelector ¶
type ReSelector struct {
// contains filtered or unexported fields
}
func NewReSelector ¶
func NewReSelector(pattern string) *ReSelector
func (*ReSelector) IsPositive ¶
func (s *ReSelector) IsPositive() bool
func (*ReSelector) Matches ¶
func (s *ReSelector) Matches(idev *evdev.InputDevice) *bool
type Selector ¶
type Selector interface {
Matches(idev *evdev.InputDevice) *bool
// IsPositive means this selector will increase selection
// Otherwise, it will remove already selected elements.
IsPositive() bool
}
func NewAllSelector ¶
func NewAllSelector() Selector
func NewNoneSelector ¶
func NewNoneSelector() Selector
Click to show internal directories.
Click to hide internal directories.