Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | List of all members
sw::gui::DrawingContext Class Reference

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)
 

Detailed Description

Context passed to rendering functions.

This context provides methods for rendering basic primitives like ellipses, rectangles, lines.

Constructor & Destructor Documentation

sw::gui::DrawingContext::DrawingContext ( )
explicitdefault
sw::gui::DrawingContext::~DrawingContext ( )
default

Member Function Documentation

void sw::gui::DrawingContext::DrawEllipse ( const Rect position,
Brush background 
)
void sw::gui::DrawingContext::DrawEllipse ( const Rect position,
Brush background,
Brush border,
float  borderWidth 
)
void sw::gui::DrawingContext::DrawRectangle ( const Rect position,
Brush background 
)

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.


The documentation for this class was generated from the following file: