SkinnedGuiRenderer

Gives means for rendering widgets and text lines.

Constructors

this
this(IRenderer renderer, GuiSkin skin)
Undocumented in source.

Members

Functions

buildWidgetGeometry
TexRectArray buildWidgetGeometry(ivec2 size, GuiStyleState state)

Creates geometry for given gui style state and size.

createTextLine
TextLine createTextLine(string fontName)

Creates textline with font from current skin. If font not found then normal font will be used.

drawControlBack
void drawControlBack(Widget widget, Rect staticRect)

Draws background of widget.

drawTextLine
void drawTextLine(TextLine line, ivec2 position, AlignmentType alignment)

Draws line of text aligning it to the position.

drawTextLine
void drawTextLine(TextLine line, Rect area, AlignmentType alignment)

Draws line of text aligning it inside rectangle.

fontManager
FontManager fontManager()

Returns font manager used by this renderer.

getFontTexture
Texture getFontTexture()

Returns texture that stores cached glyps of all loaded fonts.

popClientArea
void popClientArea()

Pops clip rect from stack. Useful for containers which clips their children. Must be called when parent ends drawing its children.

pushClientArea
void pushClientArea(Rect area)

Pushes new clip rect onto stack. Useful for containers which clips their children. Must be called when parent begins drawing its children.

renderer
IRenderer renderer()

Returns internal render.

setClientArea
void setClientArea(Rect area)

Sets clip rect to given area. Make sure to call this to reset rendering area for the window.

skin
GuiSkin skin()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta