gui2.linestylemanager

Style manager that draws widgets as line rectangles.

class LineStyleManager: gui2.stylemanager.StyleManager;

Style manager that draws widgets as line rectangles.

Widgets with this style manager have a colored (usually transparent) background, with a border made of lines. This is the most basic style manager - it's a placeholder before something more elaborate is implemented.

struct Style;

LineStyleManager style.

enum ProgressStyle;

Style of the progress "bar".

string name;

Name of the style. Empty for default style.

string font;

Font used to draw text.

Color borderColor;

Color of widget border.

Color backgroundColor;

Background color.

Color fontColor;

Color of font used to draw text.

Color progressColor;

Color of the filled part of the progress bar.

uint fontSize;

Font size in points.

uint lineGap;

Gap between text lines in pixels.

bool drawBorder;

Draw border of the widget?

ProgressStyle progressStyle;

Style of the progress "bar".

bool hasBackgroundTexture;

Does this style have a background image?

ResourceID!(Texture) backgroundTexture;

If hasBackgroundTexture is true, used to access the background texture.

AlignX textAlignX;

X alignment of any text drawn in the widget.

this(ref Node yaml, string name);

Construct a LineStyleManager style.

Parameters:
Node yaml YAML to load the style from.
string name Name of the style (empty string for default).
Throws:
StyleInitException on error.
this(ref Style[] styles);

Construct a LineStyleManager with specified styles.

Styles must contain the default style (with name "").