style

Create a new style initialized with given D code.

raylib and std.string are accessible inside by default.

Note: It is recommended to create a root style node defining font parameters and then inherit other styles from it.

  1. Style style(Data data, Style[] parents)
    @safe
    style
    (
    string init
    Data
    )
  2. Style style(Style[] parents)

Parameters

init

D code to use.

parents Style[]

Styles to inherit from. See Style.this documentation for more info.

data Data

Data to pass to the code as the context. All fields of the struct will be within the style's scope.

Meta