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