evutil

package
v0.0.0-...-45b0440 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Matches

func Matches(sel Selector, idev *evdev.InputDevice) bool

Types

type CombinedSelector

type CombinedSelector struct {
	// contains filtered or unexported fields
}

func NewCombinedSelector

func NewCombinedSelector() *CombinedSelector

func (*CombinedSelector) Add

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL