summaryrefslogtreecommitdiff
path: root/lib/wx/api_gen/wx_extra/added_func.h
blob: e98d1a0e692a9c08871e48c8eefc1fade5d4029c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//  Added 3.0 functionality

enum wxMouseWheelAxis
    {
        wxMOUSE_WHEEL_VERTICAL,
        wxMOUSE_WHEEL_HORIZONTAL
    };

#define wxMOUSE_BTN_AUX1 4
#define wxMOUSE_BTN_AUX2 5

class WXDLLIMPEXP_AUI wxAuiTabArt
{
public:
    virtual void SetColour(const wxColour& colour) = 0;
    virtual void SetActiveColour(const wxColour& colour) = 0;
};

// Api to get data out of paneinfo
class WXDLLIMPEXP_AUI wxAuiPaneInfo
{
 public:
    wxString GetName();
    wxString GetCaption();
    wxIcon GetIcon();

    wxWindow* GetWindow();
    wxFrame* GetFrame();

    int GetDirection();
    int GetLayer();
    int GetRow();
    int GetPosition();

    wxPoint GetFloatingPosition();
    wxSize GetFloatingSize();
};

class wxToolBar {
 public:
    wxToolBarToolBase * AddStretchableSpace();
    wxToolBarToolBase * InsertStretchableSpace(size_t pos);
};


/* class wxWindow { */
/*  public: */
/*     bool IsDoubleBuffered(); */
/*     void SetDoubleBuffered(bool on); */
/* }; */

class wxWindowGTK {
 public:
    double GetContentScaleFactor();
};

class wxDisplay {
    public:
    // get the resolution of this monitor in pixels per inch
    wxSize GetPPI() const;
};

class wxMenuBar {
 public:
    // MacSpecific API
    wxMenu *OSXGetAppleMenu() const { return m_appleMenu; }
    static void SetAutoWindowMenu( bool enable ) { s_macAutoWindowMenu = enable ; }
    static bool GetAutoWindowMenu() { return s_macAutoWindowMenu ; }
};


class wxMouseEvent {
 public:
    wxMouseWheelAxis GetWheelAxis() const;
};