GtkCtrl.cpp

IƱaki Zabala, 11/16/2014 04:46 PM

Download (973 Bytes)

 
1
#include <CtrlCore/CtrlCore.h>
2

    
3
#ifdef GUI_GTK
4

    
5
#define LLOG(x) // DLOG(x)
6

    
7
NAMESPACE_UPP
8

    
9
void Ctrl::GuiPlatformConstruct()
10
{
11
}
12

    
13
void Ctrl::GuiPlatformDestruct()
14
{
15
}
16

    
17
void Ctrl::GuiPlatformGetTopRect(Rect& r) const
18
{
19
}
20

    
21
bool Ctrl::GuiPlatformRefreshFrameSpecial(const Rect& r)
22
{
23
        return false;
24
}
25

    
26
bool Ctrl::GuiPlatformSetFullRefreshSpecial()
27
{
28
        return false;
29
}
30

    
31
void GuiPlatformAdjustDragImage(ImageBuffer&)
32
{
33
}
34

    
35
bool GuiPlatformHasSizeGrip()
36
{
37
        return true;
38
}
39

    
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, p.x, p.y, Ctrl::CurrentTime);
46
        }
47
}
48

    
49
Color GuiPlatformGetScreenPixel(int x, int y)
50
{
51
        return Black;
52
}
53

    
54
void GuiPlatformAfterMenuPopUp()
55
{
56
}
57

    
58
String Ctrl::Name() const
59
{
60
        return Name0();
61
}
62

    
63
void Ctrl::InstallPanicBox()
64
{
65
}
66

    
67
END_UPP_NAMESPACE
68

    
69
#endif