]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_statctrls.i
Allow for Cmd-click on wxMac
[wxWidgets.git] / wxPython / src / _statctrls.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _statctrls.i
3 // Purpose: SWIG interface defs for wxStaticBox, wxStaticLine,
4 // wxStaticText, wxStaticBitmap
5 //
6 // Author: Robin Dunn
7 //
8 // Created: 10-June-1998
9 // RCS-ID: $Id$
10 // Copyright: (c) 2003 by Total Control Software
11 // Licence: wxWindows license
12 /////////////////////////////////////////////////////////////////////////////
13
14 // Not a %module
15
16
17 //---------------------------------------------------------------------------
18
19 MAKE_CONST_WXSTRING(StaticBitmapNameStr);
20 MAKE_CONST_WXSTRING(StaticBoxNameStr);
21 MAKE_CONST_WXSTRING(StaticTextNameStr);
22
23 //---------------------------------------------------------------------------
24 %newgroup
25
26 MustHaveApp(wxStaticBox);
27
28 class wxStaticBox : public wxControl {
29 public:
30 %pythonAppend wxStaticBox "self._setOORInfo(self)"
31 %pythonAppend wxStaticBox() ""
32
33 wxStaticBox(wxWindow* parent, wxWindowID id=-1,
34 const wxString& label = wxPyEmptyString,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = 0,
38 const wxString& name = wxPyStaticBoxNameStr);
39 %name(PreStaticBox)wxStaticBox();
40
41 bool Create(wxWindow* parent, wxWindowID id=-1,
42 const wxString& label = wxPyEmptyString,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = 0,
46 const wxString& name = wxPyStaticBoxNameStr);
47
48 static wxVisualAttributes
49 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
50 };
51
52
53 //---------------------------------------------------------------------------
54 %newgroup
55
56
57 MustHaveApp(wxStaticLine);
58
59 class wxStaticLine : public wxControl {
60 public:
61 %pythonAppend wxStaticLine "self._setOORInfo(self)"
62 %pythonAppend wxStaticLine() ""
63
64 wxStaticLine( wxWindow *parent, wxWindowID id=-1,
65 const wxPoint &pos = wxDefaultPosition,
66 const wxSize &size = wxDefaultSize,
67 long style = wxLI_HORIZONTAL,
68 const wxString& name = wxPyStaticTextNameStr);
69 %name(PreStaticLine)wxStaticLine();
70
71 bool Create( wxWindow *parent, wxWindowID id=-1,
72 const wxPoint &pos = wxDefaultPosition,
73 const wxSize &size = wxDefaultSize,
74 long style = wxLI_HORIZONTAL,
75 const wxString& name = wxPyStaticTextNameStr);
76
77 // is the line vertical?
78 bool IsVertical() const;
79
80 // get the default size for the "lesser" dimension of the static line
81 static int GetDefaultSize();
82
83 static wxVisualAttributes
84 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
85 };
86
87
88 //---------------------------------------------------------------------------
89 %newgroup
90
91 MustHaveApp(wxStaticText);
92
93 class wxStaticText : public wxControl {
94 public:
95 %pythonAppend wxStaticText "self._setOORInfo(self)"
96 %pythonAppend wxStaticText() ""
97
98 wxStaticText(wxWindow* parent, wxWindowID id=-1,
99 const wxString& label = wxPyEmptyString,
100 const wxPoint& pos = wxDefaultPosition,
101 const wxSize& size = wxDefaultSize,
102 long style = 0,
103 const wxString& name = wxPyStaticTextNameStr);
104 %name(PreStaticText)wxStaticText();
105
106 bool Create(wxWindow* parent, wxWindowID id=-1,
107 const wxString& label = wxPyEmptyString,
108 const wxPoint& pos = wxDefaultPosition,
109 const wxSize& size = wxDefaultSize,
110 long style = 0,
111 const wxString& name = wxPyStaticTextNameStr);
112
113 static wxVisualAttributes
114 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
115 };
116
117 //---------------------------------------------------------------------------
118 %newgroup
119
120 MustHaveApp(wxStaticBitmap);
121
122 class wxStaticBitmap : public wxControl {
123 public:
124 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
125 %pythonAppend wxStaticBitmap() ""
126
127 wxStaticBitmap(wxWindow* parent, wxWindowID id=-1,
128 const wxBitmap& bitmap = wxNullBitmap,
129 const wxPoint& pos = wxDefaultPosition,
130 const wxSize& size = wxDefaultSize,
131 long style = 0,
132 const wxString& name = wxPyStaticBitmapNameStr);
133 %name(PreStaticBitmap)wxStaticBitmap();
134
135 bool Create(wxWindow* parent, wxWindowID id=-1,
136 const wxBitmap& bitmap = wxNullBitmap,
137 const wxPoint& pos = wxDefaultPosition,
138 const wxSize& size = wxDefaultSize,
139 long style = 0,
140 const wxString& name = wxPyStaticBitmapNameStr);
141
142 wxBitmap GetBitmap();
143 void SetBitmap(const wxBitmap& bitmap);
144 void SetIcon(const wxIcon& icon);
145
146 static wxVisualAttributes
147 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
148 };
149
150 //---------------------------------------------------------------------------
151 //---------------------------------------------------------------------------