fluid.style

Public Imports

fluid.border
public import fluid.border;
Undocumented in source.
fluid.style_macros
public import fluid.style_macros;
Undocumented in source.
fluid.default_theme
public import fluid.default_theme;
Undocumented in source.

Members

Aliases

StyleKeyPtr
alias StyleKeyPtr = immutable(StyleKey)*
Undocumented in source.
Theme
alias Theme = Style[StyleKeyPtr]

Node theme.

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 (from fluid.backend)
Color color(string hexCode) via public import fluid.backend : color;

Create a color from hex code.

getSide
float getSide(Rectangle rectangle, Style.Side side)

Get position of a rectangle's side, on the X axis if left or right, or on the Y axis if top or bottom.

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.

reverse
Style.Side reverse(Style.Side side)

Make a style point the other way around

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

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

sideBottom
inout(ElementType!T) sideBottom(T sides)

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

sideLeft
inout(ElementType!T) sideLeft(T sides)
sideRight
inout(ElementType!T) sideRight(T sides)
sideTop
inout(ElementType!T) 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