Sleeping Wombat GUI  0.100
swGUI
Visual.h
Go to the documentation of this file.
1 #pragma once
2 
13 
15 
16 
17 namespace sw {
18 namespace gui
19 {
20 
21 
30 class Visual : public DependencyObject
31 {
34 private:
35 
38 
39 protected:
40 
41 
42 public:
43  explicit Visual () = default;
44  ~Visual () = default;
45 
48  virtual bool HitTest ( const Position& point ) = 0;
49 
51  virtual void OnRender ( DrawingContext& context ) = 0;
52 
53 
54 };
55 
56 
57 
58 } // gui
59 } // sw
60 
61 
Definition: DirectInputModule.cpp:11
~Visual()=default
Position m_position
Control position. (.
Definition: Visual.h:36
RTTR_ENABLE(DependencyObject)
DirectX::XMFLOAT2 Size2D
Definition: CommonTypes.h:28
Support for data binding.
Definition: DependencyObject.h:26
virtual void OnRender(DrawingContext &context)=0
Control rendering behavior.
Size2D m_actualSize
Size of control used for rendering. This size will be set after for example layout arrangment will be...
Definition: Visual.h:37
Context passed to rendering functions.
Definition: DrawingContext.h:22
Visual()=default
DirectX::XMFLOAT2 Position
Definition: CommonTypes.h:27
virtual bool HitTest(const Position &point)=0
Checks if point is within this object.
RTTR_REGISTRATION_FRIEND
Definition: Visual.h:33
Provide interface for visual controls which can be rendered.
Definition: Visual.h:30