My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
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
#ifndef _rainbow_WinGl_ControlPanel_h_
#define _rainbow_WinGl_ControlPanel_h_

#include <CtrlLib/CtrlLib.h>

NAMESPACE_UPP

struct ValueSlider : Ctrl
{
bool shaded;
bool immediate;
Color src;
Color dst;

float pos;
float minValue;
float maxValue;
String text;

typedef ValueSlider CLASSNAME;

ValueSlider();

virtual void Paint(Draw &w);
virtual void LeftDown(Point p, dword keyflags);
virtual void LeftUp(Point p, dword keyflags);
virtual void MouseMove(Point p, dword keyflags);

void SetPos(float p, float minValue, float maxValue);
float GetPos();

Callback WhenLeftUp;
};

struct SlimButton : Ctrl
{
Color fg;
Color bg;
float alpha;
String label;
virtual void Paint(Draw &w);
virtual void LeftDown(Point p, dword keyflags);
virtual void LeftUp(Point p, dword keyflags);
virtual void MouseMove(Point p, dword keyflags);
void SetLabel(const char* s);
SlimButton();
};

struct InfoPanel : Ctrl
{
bool init;
Ctrl* parent;

ValueSlider alphaSlider;
ValueSlider angleSlider;
ValueSlider scaleSlider;

float GetAlpha();
float GetAngle();
float GetScale();

void Init(Ctrl& parent, float angle = 0.f, float scale = 1.f, float alpha = 255.f);
void Show(bool b = true);
virtual void Paint(Draw& w);
typedef InfoPanel CLASSNAME;
InfoPanel();
};

END_UPP_NAMESPACE

#endif

Change log

r4188 by unodgs on Nov 22, 2011   Diff
WinGL: Added automatic atlas textures,
fixed some bugs
Go to: 
Project members, sign in to write a code review

Older revisions

r3915 by unodgs on Sep 26, 2011   Diff
Rainbow: WinGL..
r3673 by unodgs on Jul 18, 2011   Diff
Rainbow: WinGL..
All revisions of this file

File info

Size: 1314 bytes, 71 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting