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");
55 %name(wxPreFrame)wxFrame();
57 bool Create(wxWindow* parent, const wxWindowID id, const wxString& title,
58 const wxPoint& pos = wxDefaultPosition,
59 const wxSize& size = wxDefaultSize,
60 long style = wxDEFAULT_FRAME_STYLE,
61 char* name = "frame");
63 void Centre(int direction = wxBOTH);
64 wxStatusBar* CreateStatusBar(int number = 1,
65 long style = wxST_SIZEGRIP,
67 char* name = "statusBar");
68 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
70 char* name = "toolBar");
72 const wxIcon& GetIcon();
73 wxMenuBar* GetMenuBar();
74 wxStatusBar* GetStatusBar();
76 wxToolBar* GetToolBar();
77 void Iconize(bool iconize);
79 void Maximize(bool maximize);
82 void SetAcceleratorTable(const wxAcceleratorTable& accel);
83 void SetIcon(const wxIcon& icon);
84 void SetMenuBar(wxMenuBar* menuBar);
85 void SetStatusBar(wxStatusBar *statusBar);
86 void SetStatusText(const wxString& text, int number = 0);
87 void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
88 void SetTitle(const wxString& title);
89 void SetToolBar(wxToolBar* toolbar);
90 void MakeModal(bool modal = TRUE);
91 wxPoint GetClientAreaOrigin() const;
93 bool ProcessCommand(int id);
94 bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
98 //---------------------------------------------------------------------------
100 class wxMiniFrame : public wxFrame {
102 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
103 const wxPoint& pos = wxDefaultPosition,
104 const wxSize& size = wxDefaultSize,
105 long style = wxDEFAULT_FRAME_STYLE,
106 char* name = "frame");
107 %name(wxPreMiniFrame)wxMiniFrame();
109 bool Create(wxWindow* parent, const wxWindowID id, const wxString& title,
110 const wxPoint& pos = wxDefaultPosition,
111 const wxSize& size = wxDefaultSize,
112 long style = wxDEFAULT_FRAME_STYLE,
113 char* name = "frame");
117 //---------------------------------------------------------------------------
119 class wxTipWindow : public wxFrame
122 wxTipWindow(wxWindow *parent,
123 const wxString& text,
124 wxCoord maxLength = 100);
128 //---------------------------------------------------------------------------