annotate GUI/NewUI/MainMenu.h @ 2501:0ff6a9e9bf7f

GUI folger
author Ritor1
date Fri, 19 Sep 2014 04:21:12 +0600
parents
children
rev   line source
2501
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
1 #pragma once
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
2 #include "Core/UIControl.h"
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
3 #include "..\..\Engine/Graphics/Render.h"
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
4
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
5
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
6 class MainMenuWindow: public UIControl
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
7 {
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
8 public:
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
9 static MainMenuWindow *Create();
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
10
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
11 bool Initialize();
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
12
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
13 // UIControl
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
14 virtual void Show() override;
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
15
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
16 // UIControl
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
17 virtual bool Focused() override;
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
18
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
19 // UIControl
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
20 virtual bool OnKey(int key) override;
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
21 // UIControl
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
22 virtual bool OnMouseLeftClick(int x, int y) override;
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
23 // UIControl
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
24 virtual bool OnMouseRightClick(int x, int y) override;
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
25 // UIControl
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
26 //virtual bool OnMouseEnter() override;
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
27 // UIControl
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
28 //virtual bool OnMouseLeave() override;
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
29
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
30 private:
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
31 RGBTexture *background_texture;
0ff6a9e9bf7f GUI folger
Ritor1
parents:
diff changeset
32 };