]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/frames.i
correction for Mac OS compilation
[wxWidgets.git] / wxPython / src / frames.i
... / ...
CommitLineData
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%}
20
21//----------------------------------------------------------------------
22
23%include typemaps.i
24%include my_typemaps.i
25
26// Import some definitions of other classes, etc.
27%import _defs.i
28%import misc.i
29%import gdi.i
30%import windows.i
31%import stattool.i
32
33%pragma(python) code = "import wx"
34
35//----------------------------------------------------------------------
36
37enum {
38 wxFULLSCREEN_NOMENUBAR,
39 wxFULLSCREEN_NOTOOLBAR,
40 wxFULLSCREEN_NOSTATUSBAR,
41 wxFULLSCREEN_NOBORDER,
42 wxFULLSCREEN_NOCAPTION,
43 wxFULLSCREEN_ALL
44};
45
46
47class wxFrame : public wxWindow {
48public:
49 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
50 const wxPoint& pos = wxDefaultPosition,
51 const wxSize& size = wxDefaultSize,
52 long style = wxDEFAULT_FRAME_STYLE,
53 char* name = "frame");
54
55 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
56
57 void Centre(int direction = wxBOTH);
58 wxStatusBar* CreateStatusBar(int number = 1,
59 long style = wxST_SIZEGRIP,
60 wxWindowID id = -1,
61 char* name = "statusBar");
62 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
63 wxWindowID id = -1,
64 char* name = "toolBar");
65
66 const wxIcon& GetIcon();
67 wxMenuBar* GetMenuBar();
68 wxStatusBar* GetStatusBar();
69 wxString GetTitle();
70 wxToolBar* GetToolBar();
71 void Iconize(bool iconize);
72 bool IsIconized();
73 void Maximize(bool maximize);
74 bool IsMaximized();
75 void Restore();
76 void SetAcceleratorTable(const wxAcceleratorTable& accel);
77 void SetIcon(const wxIcon& icon);
78 void SetMenuBar(wxMenuBar* menuBar);
79 void SetStatusBar(wxStatusBar *statusBar);
80 void SetStatusText(const wxString& text, int number = 0);
81 void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
82 void SetTitle(const wxString& title);
83 void SetToolBar(wxToolBar* toolbar);
84 void MakeModal(bool modal = TRUE);
85 wxPoint GetClientAreaOrigin() const;
86 bool Command(int id);
87 bool ProcessCommand(int id);
88 bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
89 bool IsFullScreen();
90};
91
92//---------------------------------------------------------------------------
93
94class wxMiniFrame : public wxFrame {
95public:
96 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
97 const wxPoint& pos = wxDefaultPosition,
98 const wxSize& size = wxDefaultSize,
99 long style = wxDEFAULT_FRAME_STYLE,
100 char* name = "frame");
101
102 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
103};
104
105
106//---------------------------------------------------------------------------
107
108
109
110
111