]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/frames.i
Replaced /'s with \'s as BCC requires \'s for path names
[wxWidgets.git] / wxPython / src / frames.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: frames.i
3 // Purpose: SWIG definitions of various window classes
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 8/27/98
8 // RCS-ID: $Id$
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13
14 %module frames
15
16 %{
17 #include "helpers.h"
18 #include <wx/minifram.h>
19 #include <wx/tipwin.h>
20 %}
21
22 //----------------------------------------------------------------------
23
24 %include typemaps.i
25 %include my_typemaps.i
26
27 // Import some definitions of other classes, etc.
28 %import _defs.i
29 %import misc.i
30 %import gdi.i
31 %import windows.i
32 %import stattool.i
33
34 %pragma(python) code = "import wx"
35
36 //----------------------------------------------------------------------
37
38 enum {
39 wxFULLSCREEN_NOMENUBAR,
40 wxFULLSCREEN_NOTOOLBAR,
41 wxFULLSCREEN_NOSTATUSBAR,
42 wxFULLSCREEN_NOBORDER,
43 wxFULLSCREEN_NOCAPTION,
44 wxFULLSCREEN_ALL
45 };
46
47
48 class wxFrame : public wxWindow {
49 public:
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
56 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
57
58 void Centre(int direction = wxBOTH);
59 wxStatusBar* CreateStatusBar(int number = 1,
60 long style = wxST_SIZEGRIP,
61 wxWindowID id = -1,
62 char* name = "statusBar");
63 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
64 wxWindowID id = -1,
65 char* name = "toolBar");
66
67 const wxIcon& GetIcon();
68 wxMenuBar* GetMenuBar();
69 wxStatusBar* GetStatusBar();
70 wxString GetTitle();
71 wxToolBar* GetToolBar();
72 void Iconize(bool iconize);
73 bool IsIconized();
74 void Maximize(bool maximize);
75 bool IsMaximized();
76 void Restore();
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;
87 bool Command(int id);
88 bool ProcessCommand(int id);
89 bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
90 bool IsFullScreen();
91 };
92
93 //---------------------------------------------------------------------------
94
95 class wxMiniFrame : public wxFrame {
96 public:
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");
102
103 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
104 };
105
106
107 //---------------------------------------------------------------------------
108
109 class wxTipWindow : public wxFrame
110 {
111 public:
112 wxTipWindow(wxWindow *parent,
113 const wxString& text,
114 wxCoord maxLength = 100);
115 };
116
117
118 //---------------------------------------------------------------------------
119
120
121
122
123