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
#ifndef _WinGl_TopFrame_h_
#define _WinGl_TopFrame_h_

#include <CtrlLib/CtrlLib.h>

NAMESPACE_UPP

class TopWindowFrame : public Ctrl {
public:
virtual void Layout();
virtual void Paint(Draw& w);
virtual Image CursorImage(Point p, dword keyflags);
virtual void LeftDown(Point p, dword keyflags);
virtual void LeftDouble(Point p, dword keyflags);
virtual void LeftUp(Point p, dword keyflags);
virtual void MouseMove(Point p, dword keyflags);

private:
Point dir;
Point startpos;
Rect startrect;

bool maximized;
Rect overlapped;

bool holding;
TimeCallback hold;

Point GetDragMode(Point p);
Image GetDragImage(Point dragmode);
void StartDrag();
Rect Margins() const;
Rect ComputeClient(Rect r);
void Hold();

typedef TopWindowFrame CLASSNAME;

public:
String title;
Button close, maximize;
Image icon;
Size minsize;
bool sizeable;
TopWindow *window;

void SetTitle(const String& s) { title = s; Refresh(); }
Rect GetClient() const;
void SetClient(Rect r);
void GripResize();

void Maximize();
void Overlap();
void ToggleMaximize();
bool IsMaximized() const { return maximized; }
void SyncRect();

TopWindowFrame();
};

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

r3721 by unodgs on Jul 31, 2011   Diff
Rainbow: WinGL..
r3705 by unodgs on Jul 22, 2011   Diff
Rainbow: WinGL..
r3673 by unodgs on Jul 18, 2011   Diff
Rainbow: WinGL..
All revisions of this file

File info

Size: 1242 bytes, 62 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting