ultimatepp/rainbow/WinGl/Ctrl.h
unodgs c2506b0aac Rainbow: WinGL..
git-svn-id: svn://ultimatepp.org/upp/trunk@3604 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-07-03 21:05:14 +00:00

34 lines
834 B
C++

//$ class Ctrl {
static Ptr<Ctrl> desktop;
static Rect screenRect;
static Vector<Ctrl *> topctrl;
static Point fbCursorPos;
static Image fbCursorImage;
static Point fbCursorBakPos;
static Image fbCursorBak;
static Rect fbCaretRect;
static Image fbCaretBak;
static int fbCaretTm;
int FindTopCtrl() const;
public:
static void InitGl();
static void DoMouseGl(int event, Point p, int zdelta = 0);
static bool DoKeyGl(dword key, int cnt);
static void RemoveCursor();
static void RemoveCaret();
static void CursorSync();
void SetOpen(bool b) { isopen = b; }
void SetTop() { top = new Top; }
static void SetDesktop(Ctrl& q);
static Ctrl *GetDesktop() { return desktop; }
static void SetWindowSize(Size sz);
static void DrawScreen();
//$ };