]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_statctrls.i
reSWIGged
[wxWidgets.git] / wxPython / src / _statctrls.i
CommitLineData
d14a1e28
RD
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
b2dc1044
RD
19MAKE_CONST_WXSTRING(StaticBitmapNameStr);
20MAKE_CONST_WXSTRING(StaticBoxNameStr);
21MAKE_CONST_WXSTRING(StaticTextNameStr);
d14a1e28
RD
22
23//---------------------------------------------------------------------------
24%newgroup
25
ab1f7d2a
RD
26MustHaveApp(wxStaticBox);
27
d14a1e28
RD
28class wxStaticBox : public wxControl {
29public:
2b9048c5
RD
30 %pythonAppend wxStaticBox "self._setOORInfo(self)"
31 %pythonAppend wxStaticBox() ""
d14a1e28 32
d5573410
RD
33 wxStaticBox(wxWindow* parent, wxWindowID id=-1,
34 const wxString& label = wxPyEmptyString,
d14a1e28
RD
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = 0,
38 const wxString& name = wxPyStaticBoxNameStr);
39 %name(PreStaticBox)wxStaticBox();
40
d5573410
RD
41 bool Create(wxWindow* parent, wxWindowID id=-1,
42 const wxString& label = wxPyEmptyString,
d14a1e28
RD
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = 0,
46 const wxString& name = wxPyStaticBoxNameStr);
880715c9
RD
47
48 static wxVisualAttributes
49 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
d14a1e28
RD
50};
51
52
53//---------------------------------------------------------------------------
54%newgroup
55
56
ab1f7d2a
RD
57MustHaveApp(wxStaticLine);
58
d14a1e28
RD
59class wxStaticLine : public wxControl {
60public:
2b9048c5
RD
61 %pythonAppend wxStaticLine "self._setOORInfo(self)"
62 %pythonAppend wxStaticLine() ""
d14a1e28 63
d5573410 64 wxStaticLine( wxWindow *parent, wxWindowID id=-1,
d14a1e28
RD
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
d5573410 71 bool Create( wxWindow *parent, wxWindowID id=-1,
d14a1e28
RD
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
fa42d122 81 static int GetDefaultSize();
d14a1e28 82
880715c9
RD
83 static wxVisualAttributes
84 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
d14a1e28
RD
85};
86
87
88//---------------------------------------------------------------------------
89%newgroup
90
ab1f7d2a
RD
91MustHaveApp(wxStaticText);
92
d14a1e28
RD
93class wxStaticText : public wxControl {
94public:
2b9048c5
RD
95 %pythonAppend wxStaticText "self._setOORInfo(self)"
96 %pythonAppend wxStaticText() ""
d14a1e28 97
d5573410
RD
98 wxStaticText(wxWindow* parent, wxWindowID id=-1,
99 const wxString& label = wxPyEmptyString,
d14a1e28
RD
100 const wxPoint& pos = wxDefaultPosition,
101 const wxSize& size = wxDefaultSize,
102 long style = 0,
103 const wxString& name = wxPyStaticTextNameStr);
104 %name(PreStaticText)wxStaticText();
105
d5573410
RD
106 bool Create(wxWindow* parent, wxWindowID id=-1,
107 const wxString& label = wxPyEmptyString,
d14a1e28
RD
108 const wxPoint& pos = wxDefaultPosition,
109 const wxSize& size = wxDefaultSize,
110 long style = 0,
111 const wxString& name = wxPyStaticTextNameStr);
880715c9
RD
112
113 static wxVisualAttributes
114 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
d14a1e28
RD
115};
116
117//---------------------------------------------------------------------------
118%newgroup
119
ab1f7d2a
RD
120MustHaveApp(wxStaticBitmap);
121
d14a1e28
RD
122class wxStaticBitmap : public wxControl {
123public:
8179a168
RD
124 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
125 %pythonAppend wxStaticBitmap() ""
d14a1e28 126
d5573410
RD
127 wxStaticBitmap(wxWindow* parent, wxWindowID id=-1,
128 const wxBitmap& bitmap = wxNullBitmap,
d14a1e28
RD
129 const wxPoint& pos = wxDefaultPosition,
130 const wxSize& size = wxDefaultSize,
131 long style = 0,
132 const wxString& name = wxPyStaticBitmapNameStr);
133 %name(PreStaticBitmap)wxStaticBitmap();
134
d5573410
RD
135 bool Create(wxWindow* parent, wxWindowID id=-1,
136 const wxBitmap& bitmap = wxNullBitmap,
d14a1e28
RD
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);
880715c9
RD
145
146 static wxVisualAttributes
147 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
d14a1e28
RD
148};
149
150//---------------------------------------------------------------------------
151//---------------------------------------------------------------------------