selector

package
v0.0.0-...-24dab48 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 License: MIT, MIT Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

func Query() *query

Types

type Age

type Age int
const (
	Youngest Age = iota
	Younger
	Older
	Oldest
)

type Category

type Category int
const (
	NoCategory Category = iota
	Cycled              // Cycle
	Directed            // Direction
	Oriented            // Orientation
	Sized               // Size
	Aged                // Age
	Focused             // by focus, urgency
	Tagged              // by name, tag or id
	Capacity            // Capacity(of monitor or desktop state)
	State               // client state
)

type Cycle

type Cycle int
const (
	First Cycle = iota
	Backward
	Prev
	Next
	Forward
	Last
)

func (Cycle) String

func (c Cycle) String() string

type Direction

type Direction int
const (
	Right Direction = iota
	Down
	Left
	Up
)

func (Direction) String

func (d Direction) String() string

type Node

type Node int
const (
	NNone Node = iota
	NMonitor
	NDesktop
	NClient
)

func DetermineNode

func DetermineNode(from string) Node

func (Node) String

func (n Node) String() string

type Orientation

type Orientation int
const (
	Closer Orientation = iota
	Closest
	Further
	Furthest
	Horizontal
	Vertical
	Above
	Below
)

func (Orientation) String

func (o Orientation) String() string

type Selector

type Selector interface {
	Raw() []string
	Node() Node
	Category() Category
	Modifiers() []string
}

func New

func New(base string) Selector

type Size

type Size int
const (
	Biggest Size = iota
	Smallest
)

Jump to

Keyboard shortcuts

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