]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_statctrls.i
Patch# 893337, Fix for line control point handling in wxLineShape
[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 class wxStaticBox : public wxControl {
27 public:
28 %pythonAppend wxStaticBox "self._setOORInfo(self)"
29 %pythonAppend wxStaticBox() ""
30
31 wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxString& name = wxPyStaticBoxNameStr);
36 %name(PreStaticBox)wxStaticBox();
37
38 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = 0,
42 const wxString& name = wxPyStaticBoxNameStr);
43
44 static wxVisualAttributes
45 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
46 };
47
48
49 //---------------------------------------------------------------------------
50 %newgroup
51
52
53 class wxStaticLine : public wxControl {
54 public:
55 %pythonAppend wxStaticLine "self._setOORInfo(self)"
56 %pythonAppend wxStaticLine() ""
57
58 wxStaticLine( wxWindow *parent, wxWindowID id,
59 const wxPoint &pos = wxDefaultPosition,
60 const wxSize &size = wxDefaultSize,
61 long style = wxLI_HORIZONTAL,
62 const wxString& name = wxPyStaticTextNameStr);
63 %name(PreStaticLine)wxStaticLine();
64
65 bool Create( wxWindow *parent, wxWindowID id,
66 const wxPoint &pos = wxDefaultPosition,
67 const wxSize &size = wxDefaultSize,
68 long style = wxLI_HORIZONTAL,
69 const wxString& name = wxPyStaticTextNameStr);
70
71 // is the line vertical?
72 bool IsVertical() const;
73
74 // get the default size for the "lesser" dimension of the static line
75 static int GetDefaultSize();
76
77 static wxVisualAttributes
78 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
79 };
80
81
82 //---------------------------------------------------------------------------
83 %newgroup
84
85 class wxStaticText : public wxControl {
86 public:
87 %pythonAppend wxStaticText "self._setOORInfo(self)"
88 %pythonAppend wxStaticText() ""
89
90 wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
91 const wxPoint& pos = wxDefaultPosition,
92 const wxSize& size = wxDefaultSize,
93 long style = 0,
94 const wxString& name = wxPyStaticTextNameStr);
95 %name(PreStaticText)wxStaticText();
96
97 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
98 const wxPoint& pos = wxDefaultPosition,
99 const wxSize& size = wxDefaultSize,
100 long style = 0,
101 const wxString& name = wxPyStaticTextNameStr);
102
103 static wxVisualAttributes
104 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
105 };
106
107 //---------------------------------------------------------------------------
108 %newgroup
109
110 class wxStaticBitmap : public wxControl {
111 public:
112 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
113 %pythonAppend wxStaticBitmap() ""
114
115 wxStaticBitmap(wxWindow* parent, wxWindowID id,
116 const wxBitmap& bitmap,
117 const wxPoint& pos = wxDefaultPosition,
118 const wxSize& size = wxDefaultSize,
119 long style = 0,
120 const wxString& name = wxPyStaticBitmapNameStr);
121 %name(PreStaticBitmap)wxStaticBitmap();
122
123 bool Create(wxWindow* parent, wxWindowID id,
124 const wxBitmap& bitmap,
125 const wxPoint& pos = wxDefaultPosition,
126 const wxSize& size = wxDefaultSize,
127 long style = 0,
128 const wxString& name = wxPyStaticBitmapNameStr);
129
130 wxBitmap GetBitmap();
131 void SetBitmap(const wxBitmap& bitmap);
132 void SetIcon(const wxIcon& icon);
133
134 static wxVisualAttributes
135 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
136 };
137
138 //---------------------------------------------------------------------------
139 //---------------------------------------------------------------------------