summaryrefslogtreecommitdiff
path: root/src/interface/Component.cpp
blob: 48a329b75d5598138915fd8a106695b1e9544d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 * Component.cpp
 *
 *  Created on: Jan 8, 2012
 *      Author: Simon
 */

#include "interface/Component.h"

namespace ui {

Component::Component(int x, int y, int width, int height):
    X(x),
    Y(y),
    Width(width),
    Height(height),
    Enabled(true),
    Visible(true)
{
}

Component::~Component()
{
}

void Component::Draw(void* userdata)
{
}

void Component::Tick(float dt)
{
}

void Component::OnKeyPress(int key, bool shift, bool ctrl, bool alt)
{
}

void Component::OnKeyRelease(int key, bool shift, bool ctrl, bool alt)
{
}

void Component::OnMouseEnter(int localx, int localy, int dx, int dy)
{
}

void Component::OnMouseLeave(int localx, int localy, int dx, int dy)
{
}

void Component::OnMouseClick(int localx, int localy, unsigned int button)
{
}

void Component::OnMouseUnclick(int localx, int localy, unsigned int button)
{
}

void Component::OnMouseDown(int localx, int localy, unsigned int button)
{
}

void Component::OnMouseHover(int localx, int localy)
{
}

void Component::OnMouseMoved(int localx, int localy, int dx, int dy)
{
}

void Component::OnMouseMovedInside(int localx, int localy, int dx, int dy)
{
}

void Component::OnMouseUp(int localx, int localy, unsigned int button)
{
}

void Component::OnMouseWheel(int localx, int localy, int d)
{
}

void Component::OnMouseWheelInside(int localx, int localy, int d)
{
}

void Component::OnMouseWheelFocused(int localx, int localy, int d)
{
}
} /* namespace ui */