ultimatepp/rainbow/Framebuffer/Ctrl.h
cxl afda083cf6 .developing rainbow
git-svn-id: svn://ultimatepp.org/upp/trunk@3605 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-07-04 12:06:56 +00:00

53 lines
1.3 KiB
C

//$ class Ctrl {
private:
static void AddInvalid(const Rect& rect);
static Ptr<Ctrl> desktop;
static Vector<Ctrl *> topctrl;
static ImageBuffer framebuffer;
static Vector<Rect> invalid;
static Point fbCursorPos;
static Image fbCursorImage;
static Point fbCursorBakPos;
static Image fbCursorBak;
static Rect fbCaretRect;
static Image fbCaretBak;
static int fbCaretTm;
static int renderingMode;
static Image GetBak(Rect& tr);
static void RemoveCursor();
static void RemoveCaret();
static void CursorSync();
int FindTopCtrl() const;
static Rect GetClipBound(const Vector<Rect>& inv, const Rect& r);
static void DoPaint(const Vector<Rect>& invalid);
static void SyncTopWindows();
void NewTop() { top = new Top; top->owner_window = NULL; }
void PutForeground();
friend struct PaintProxy__;
public:
static void DoMouseFB(int event, Point p, int zdelta = 0);
static bool DoKeyFB(dword key, int cnt);
void SetOpen(bool b) { isopen = b; }
static void InitFB();
static void SetDesktop(Ctrl& q);
static Ctrl *GetDesktop() { return desktop; }
static void SetFramebufferSize(Size sz);
static const ImageBuffer& GetFrameBuffer() { return framebuffer; }
static void SetRenderingMode(int mode);
//$ };