Sleeping Wombat GUI
0.100
swGUI
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Core
Controls
Visual.h
Go to the documentation of this file.
1
#pragma once
2
10
#include "
swGUI/Core/System/DataBinding/DependencyObject.h
"
11
#include "
swGUI/Core/System/CommonTypes/CommonTypes.h
"
12
#include "
swGUI/Core/System/CommonTypes/AccessKey.h
"
13
14
#include "
swGUI/Core/System/Rendering/DrawingContext.h
"
15
16
17
namespace
sw
{
18
namespace
gui
19
{
20
21
30
class
Visual
:
public
DependencyObject
31
{
32
RTTR_ENABLE
(
DependencyObject
);
33
RTTR_REGISTRATION_FRIEND
;
34
private
:
35
36
Position
m_position
;
37
Size2D
m_actualSize
;
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
DrawingContext.h
sw
Definition:
DirectInputModule.cpp:11
DependencyObject.h
sw::gui::Visual::~Visual
~Visual()=default
AccessKey.h
sw::gui::Visual::m_position
Position m_position
Control position. (.
Definition:
Visual.h:36
sw::gui::Visual::RTTR_ENABLE
RTTR_ENABLE(DependencyObject)
sw::gui::Size2D
DirectX::XMFLOAT2 Size2D
Definition:
CommonTypes.h:28
sw::gui::DependencyObject
Support for data binding.
Definition:
DependencyObject.h:26
sw::gui::Visual::OnRender
virtual void OnRender(DrawingContext &context)=0
Control rendering behavior.
CommonTypes.h
sw::gui::Visual::m_actualSize
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
sw::gui::DrawingContext
Context passed to rendering functions.
Definition:
DrawingContext.h:22
sw::gui::Visual::Visual
Visual()=default
sw::gui::Position
DirectX::XMFLOAT2 Position
Definition:
CommonTypes.h:27
sw::gui::Visual::HitTest
virtual bool HitTest(const Position &point)=0
Checks if point is within this object.
sw::gui::Visual::RTTR_REGISTRATION_FRIEND
RTTR_REGISTRATION_FRIEND
Definition:
Visual.h:33
sw::gui::Visual
Provide interface for visual controls which can be rendered.
Definition:
Visual.h:30
Generated on Tue May 9 2017 15:46:02 for Sleeping Wombat GUI by
1.8.9.1