Sleeping Wombat GUI  0.100
swGUI
DrawingContext.h
Go to the documentation of this file.
1 #pragma once
2 
10 
11 
12 namespace sw {
13 namespace gui
14 {
15 
16 
23 {
24 private:
25 protected:
26 public:
27  explicit DrawingContext () = default;
28  ~DrawingContext () = default;
29 
30 
33 
35  void DrawRectangle ( const Rect& position, Brush* background );
37  void DrawRectangle ( const Rect& position, Brush* background, Brush* border, const DirectX::XMFLOAT4& borderWidth );
39  void DrawRoundedRectangle ( const Rect& position, Brush* background, Brush* border, const DirectX::XMFLOAT4& borderWidth, const DirectX::XMFLOAT4& corners );
40 
41  void DrawEllipse ( const Rect& position, Brush* background );
42  void DrawEllipse ( const Rect& position, Brush* background, Brush* border, float borderWidth );
43 
44 
46 
47 };
48 
49 
50 
51 } // gui
52 } // sw
Brush base class.
Definition: Brush.h:23
void DrawRectangle(const Rect &position, Brush *background)
Draws simple rectangle.
Definition: DirectInputModule.cpp:11
Rectangle structure.
Definition: CommonTypes.h:32
void DrawEllipse(const Rect &position, Brush *background)
Context passed to rendering functions.
Definition: DrawingContext.h:22
void DrawRoundedRectangle(const Rect &position, Brush *background, Brush *border, const DirectX::XMFLOAT4 &borderWidth, const DirectX::XMFLOAT4 &corners)
Draws rectangle with rounded corenders.