glui.style

Public Imports

glui.border
public import glui.border;
Undocumented in source.
glui.style_macros
public import glui.style_macros;
Undocumented in source.

Members

Aliases

StyleKeyPtr
alias StyleKeyPtr = immutable(StyleKey)*

Node theme.

Theme
alias Theme = Style[StyleKeyPtr]
Undocumented in source.

Classes

Style
class Style

Contains the style for a node.

Enums

isSideArray
eponymoustemplate isSideArray(T)

Side array is a static array defining a property separately for each side of a box, for example margin and border size. Order is as follows: [left, right, top, bottom]. You can use Style.Side to index this array with an enum.

Functions

color
Color color()
Color color(string hexCode)

Create a color from hex code.

normalizeSideArray
T[4] normalizeSideArray(T[n] values)
T[4] normalizeSideArray(T value)

Returns a side array created from either: another side array like it, a two item array with each representing an axis like [x, y], or a single item array or the element type to fill all values with it.

shiftSide
Style.Side shiftSide(Style.Side side, int shift)

Shift the side clockwise (if positive) or counter-clockwise (if negative).

sideBottom
inout(uint) sideBottom(T sides)

Get a reference to the left, right, top or bottom side of the given side array.

sideLeft
inout(uint) sideLeft(T sides)
sideRight
inout(uint) sideRight(T sides)
sideTop
inout(uint) sideTop(T sides)

Get a reference to the left, right, top or bottom side of the given side array.

sideX
inout(uint[2]) sideX(T sides)

Get a reference to the X axis for the given side array.

sideY
inout(uint[2]) sideY(T sides)
Undocumented in source. Be warned that the author may not have intended to support it.
style
Style style(Data data, Style[] parents)
Style style(Style[] parents)

Create a new style initialized with given D code.

Structs

StyleKey
struct StyleKey

An empty struct used to create unique style type identifiers.

TextLine
struct TextLine

wrapText result.

Meta