Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Facet ¶
type Facet struct {
// contains filtered or unexported fields
}
Facet represents a gem facet, that can be chosed by the user.
func NewFacet ¶
func NewFacet(position FacetPosition) Facet
NewFacet creates a new facet at a given position, with "∅" as label.
type FacetPosition ¶
type FacetPosition string
FacetPosition represents the position of a facet in the gem (north, south, etc.).
type Gem ¶
type Gem struct {
// contains filtered or unexported fields
}
Gem represents an the radial menu content and composed into many facets.
func FromArray ¶
FromArray returns a gem structure containing all the facets listed in the given array (the opposite of ToArray).
func FromDmenuReader ¶
FromDmenuReader returns a gem structure containing the facet listed in the given reader (ie. stdin or file) in dmenu syntax.
func NewGem ¶
func NewGem() Gem
NewGem creates a new gem and all its facets for each possible position.
Click to show internal directories.
Click to hide internal directories.