diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-08 17:39:03 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-08 17:39:03 (GMT) |
| commit | b0ea52690ba56a0d0602ad8674b7e5ab2ba3e778 (patch) | |
| tree | 7d72e0509f4d2643d3be837a337d088ca5949c73 /src/interface/Component.cpp | |
| download | powder-b0ea52690ba56a0d0602ad8674b7e5ab2ba3e778.zip powder-b0ea52690ba56a0d0602ad8674b7e5ab2ba3e778.tar.gz | |
Initial
Diffstat (limited to 'src/interface/Component.cpp')
| -rw-r--r-- | src/interface/Component.cpp | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/src/interface/Component.cpp b/src/interface/Component.cpp new file mode 100644 index 0000000..48a329b --- /dev/null +++ b/src/interface/Component.cpp @@ -0,0 +1,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 */ |
