Sleeping Wombat GUI
0.100
swGUI
|
Context passed to rendering functions. More...
#include <DrawingContext.h>
Public Member Functions | |
DrawingContext ()=default | |
~DrawingContext ()=default | |
Simple shapes rendering interface | |
void | DrawRectangle (const Rect &position, Brush *background) |
Draws simple rectangle. More... | |
void | DrawRectangle (const Rect &position, Brush *background, Brush *border, const DirectX::XMFLOAT4 &borderWidth) |
Draws simple rectangle with border. More... | |
void | DrawRoundedRectangle (const Rect &position, Brush *background, Brush *border, const DirectX::XMFLOAT4 &borderWidth, const DirectX::XMFLOAT4 &corners) |
Draws rectangle with rounded corenders. More... | |
void | DrawEllipse (const Rect &position, Brush *background) |
void | DrawEllipse (const Rect &position, Brush *background, Brush *border, float borderWidth) |
Context passed to rendering functions.
This context provides methods for rendering basic primitives like ellipses, rectangles, lines.
|
explicitdefault |
|
default |
void sw::gui::DrawingContext::DrawEllipse | ( | const Rect & | position, |
Brush * | background, | ||
Brush * | border, | ||
float | borderWidth | ||
) |
Draws simple rectangle.
void sw::gui::DrawingContext::DrawRectangle | ( | const Rect & | position, |
Brush * | background, | ||
Brush * | border, | ||
const DirectX::XMFLOAT4 & | borderWidth | ||
) |
Draws simple rectangle with border.
void sw::gui::DrawingContext::DrawRoundedRectangle | ( | const Rect & | position, |
Brush * | background, | ||
Brush * | border, | ||
const DirectX::XMFLOAT4 & | borderWidth, | ||
const DirectX::XMFLOAT4 & | corners | ||
) |
Draws rectangle with rounded corenders.