Visibility
Enum defining how the user sees and can interact with an entry.
visible: 1. Whether the entry is visible. A non-visible entry will take up 0 width in the list (effectively removed from the list, visually)skip: 2. Whether the entry should be skipped when searchingselectable: 4. Whether the user can interact with the entrygroup: 8. Whether the entry belongs to a grouprepeatable: 16. Whether this visibility can be applied to an entry more than oncesearched: 32. Visibility applied as a result of searchingclosed: 64. Visibility applied from an initially-closed statefiltered: 128. Entry has been excluded by a search
Author
fzzyhmstrs
Since
0.6.0, uses flags 0.6.8
Parameters
Predicate to determine if this visibility is affected by another
Entries
Visible because it contains valid search results inside it.
Hidden because it contains valid search results inside it, but it's group is currently collapsed.
Entry hidden initially by an initial-closed state
Visible entry that represents a group heading
Visible entry that represents a group heading
Visible entry that represents a group heading, but should be "closed"/"collapsed" by default
Filtered entry that represents a group heading. Filtering is usually done with a search.
Hidden entry that represents a group heading. Hiding is usually done with a button or other toggle.
Hidden entry that represents a group heading. This group has valid search results inside it, hence the searched flag
Hidden entry that represents a group heading. Group hidden initially by an initial-closed state. Hiding is usually done with a button or other toggle.
A disabled group heading, typically caused by a layout error.
A header entry. Always visible, skipped in searching, and not selectable. Visibility of headers can't be changed.
Properties
Functions
Returns the entries current Visibility status
Returns the entries root Visibility status
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.