1 #include <CtrlCore/CtrlCore.h> 2 3 #ifdef GUI_GTK 4 5 #define LLOG(x) // DLOG(x) 6 7 namespace Upp { 8 GuiPlatformConstruct()9void Ctrl::GuiPlatformConstruct() 10 { 11 } 12 GuiPlatformDestruct()13void Ctrl::GuiPlatformDestruct() 14 { 15 } 16 GuiPlatformGetTopRect(Rect & r) const17void Ctrl::GuiPlatformGetTopRect(Rect& r) const 18 { 19 } 20 GuiPlatformRefreshFrameSpecial(const Rect & r)21bool Ctrl::GuiPlatformRefreshFrameSpecial(const Rect& r) 22 { 23 return false; 24 } 25 GuiPlatformSetFullRefreshSpecial()26bool Ctrl::GuiPlatformSetFullRefreshSpecial() 27 { 28 return false; 29 } 30 GuiPlatformAdjustDragImage(ImageBuffer &)31void GuiPlatformAdjustDragImage(ImageBuffer&) 32 { 33 } 34 GuiPlatformHasSizeGrip()35bool GuiPlatformHasSizeGrip() 36 { 37 return true; 38 } 39 GuiPlatformGripResize(TopWindow * q)40void GuiPlatformGripResize(TopWindow *q) 41 { 42 if(q->IsOpen()) { 43 Point p = GetMousePos(); 44 gtk_window_begin_resize_drag(q->gtk(), GDK_WINDOW_EDGE_SOUTH_EAST, 45 1, Ctrl::LSC(p.x), Ctrl::LSC(p.y), Ctrl::CurrentTime); 46 } 47 } 48 GuiPlatformGetScreenPixel(int x,int y)49Color GuiPlatformGetScreenPixel(int x, int y) 50 { 51 return Black; 52 } 53 GuiPlatformAfterMenuPopUp()54void GuiPlatformAfterMenuPopUp() 55 { 56 } 57 Name() const58String Ctrl::Name() const 59 { 60 return Name0(); 61 } 62 InstallPanicBox()63void Ctrl::InstallPanicBox() 64 { 65 } 66 67 } 68 69 #endif 70