1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions of various window classes
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
18 #include <wx/minifram.h>
19 #include <wx/tipwin.h>
22 //----------------------------------------------------------------------
25 %include my_typemaps.i
27 // Import some definitions of other classes, etc.
34 %pragma(python) code = "import wx"
36 //----------------------------------------------------------------------
39 wxFULLSCREEN_NOMENUBAR,
40 wxFULLSCREEN_NOTOOLBAR,
41 wxFULLSCREEN_NOSTATUSBAR,
42 wxFULLSCREEN_NOBORDER,
43 wxFULLSCREEN_NOCAPTION,
48 class wxFrame : public wxWindow {
50 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 long style = wxDEFAULT_FRAME_STYLE,
54 char* name = "frame");
56 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
58 void Centre(int direction = wxBOTH);
59 wxStatusBar* CreateStatusBar(int number = 1,
60 long style = wxST_SIZEGRIP,
62 char* name = "statusBar");
63 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
65 char* name = "toolBar");
67 const wxIcon& GetIcon();
68 wxMenuBar* GetMenuBar();
69 wxStatusBar* GetStatusBar();
71 wxToolBar* GetToolBar();
72 void Iconize(bool iconize);
74 void Maximize(bool maximize);
77 void SetAcceleratorTable(const wxAcceleratorTable& accel);
78 void SetIcon(const wxIcon& icon);
79 void SetMenuBar(wxMenuBar* menuBar);
80 void SetStatusBar(wxStatusBar *statusBar);
81 void SetStatusText(const wxString& text, int number = 0);
82 void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
83 void SetTitle(const wxString& title);
84 void SetToolBar(wxToolBar* toolbar);
85 void MakeModal(bool modal = TRUE);
86 wxPoint GetClientAreaOrigin() const;
88 bool ProcessCommand(int id);
89 bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
93 //---------------------------------------------------------------------------
95 class wxMiniFrame : public wxFrame {
97 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
98 const wxPoint& pos = wxDefaultPosition,
99 const wxSize& size = wxDefaultSize,
100 long style = wxDEFAULT_FRAME_STYLE,
101 char* name = "frame");
103 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
107 //---------------------------------------------------------------------------
109 class wxTipWindow : public wxFrame
112 wxTipWindow(wxWindow *parent,
113 const wxString& text,
114 wxCoord maxLength = 100);
118 //---------------------------------------------------------------------------