1 // Macro needed in erlang
2 class WXDLLIMPEXP_XRC wxXmlResource : public wxObject
3 {
4  public:
5   /**
6      Looks up a control.
7 
8      Get a control with @a Name in a window created with XML
9      resources. You can use it to set/get values from controls.
10      The object is type casted to <b>Type</b>.
11      Example: <br />
12      @code
13      Xrc = wxXmlResource:get(),
14      Dlg = wxDialog:new(),
15      true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "controls_dialog"),
16      LCtrl = xrcctrl(Dlg, "controls_listctrl", wxListCtrl),
17      wxListCtrl:insertColumn(LCtrl, 0, "Name", [{width, 200}]),
18      @endcode
19 
20   */
21    static wxObject xrcctrl(wxWindow *Window, wxString Name, wxString Type);
22 };
23 
24 // Enable test for valid wxTreeItemId's
25 class WXDLLIMPEXP_ADV wxTreeCtrlBase : public wxControl
26 {
27  public:
28     static bool IsTreeItemIdOk(wxTreeItemId id);
29 };
30 
31 // The generater needs constructors  (is this still valid?)
32 class WXDLLIMPEXP_ADV wxGridCellBoolRenderer : public wxGridCellRenderer
33 {
34  public:
35    wxGridCellBoolRenderer();
36 };
37 
38 class WXDLLIMPEXP_ADV wxGridCellStringRenderer : public wxGridCellRenderer
39 {
40  public:
41    wxGridCellStringRenderer();
42 };
43 
44 
45 class wxMenuBar {
46  public:
47     // MacSpecific API
SetAutoWindowMenu(bool enable)48     static void SetAutoWindowMenu( bool enable ) { s_macAutoWindowMenu = enable ; }
GetAutoWindowMenu()49     static bool GetAutoWindowMenu() { return s_macAutoWindowMenu ; }
50 };
51 
52 // Deprectated functions in 3.1
53 
54 class wxWindow {
55  public:
56   virtual void MakeModal(bool modal = true)
57 };
58 
59 // wxListItemAttr Is typedef to wxItemAttr in 3.1
60 class wxListItemAttr {
61 public:
wxListItemAttr()62       wxListItemAttr() { }
wxListItemAttr(const wxColour & colText,const wxColour & colBack,const wxFont & font)63     wxListItemAttr(const wxColour& colText,
64                    const wxColour& colBack,
65                    const wxFont& font)
66         : m_colText(colText), m_colBack(colBack), m_font(font)
67     {
68     }
69 
70     // default copy ctor, assignment operator and dtor are ok
71     // setters
SetTextColour(const wxColour & colText)72     void SetTextColour(const wxColour& colText) { m_colText = colText; }
SetBackgroundColour(const wxColour & colBack)73     void SetBackgroundColour(const wxColour& colBack) { m_colBack = colBack; }
SetFont(const wxFont & font)74     void SetFont(const wxFont& font) { m_font = font; }
75 
76     // accessors
HasTextColour()77     bool HasTextColour() const { return m_colText.Ok(); }
HasBackgroundColour()78     bool HasBackgroundColour() const { return m_colBack.Ok(); }
HasFont()79     bool HasFont() const { return m_font.Ok(); }
80 
GetTextColour()81     const wxColour& GetTextColour() const { return m_colText; }
GetBackgroundColour()82     const wxColour& GetBackgroundColour() const { return m_colBack; }
GetFont()83     const wxFont& GetFont() const { return m_font; }
84 };
85 
86 class wxStyledTextEvent : public wxCommandEvent {
87 public:
88   bool GetDragAllowMove();
89 };
90 
91 
92 // No in api?
93 class wxAuiNotebookEvent : public wxBookCtrlEvent {
94 public:
SetDragSource(wxAuiNotebook * s)95   void SetDragSource(wxAuiNotebook* s) { m_dragSource = s; }
GetDragSource()96   wxAuiNotebook* GetDragSource() const { return m_dragSource; }
97 };
98