Mercurial > mm7
annotate NewUI/UIControl.h @ 1833:724af9295e53
m
author | Ritor1 |
---|---|
date | Tue, 08 Oct 2013 15:27:43 +0600 |
parents | 633f81bb3ae7 |
children |
rev | line source |
---|---|
1802 | 1 #pragma once |
2 | |
3 class UIControl | |
4 { | |
5 public: | |
6 virtual void Show() = 0; | |
7 | |
8 virtual bool Focused() = 0; | |
9 | |
10 // Events | |
11 virtual bool OnKey(int key) = 0; | |
12 | |
13 virtual bool OnMouseLeftClick(int x, int y) = 0; | |
14 virtual bool OnMouseRightClick(int x, int y) = 0; | |
15 virtual bool OnMouseEnter() = 0; | |
16 virtual bool OnMouseLeave() = 0; | |
17 }; |