]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/_statctrls.i
SetStringSelection and etc. fixes
[wxWidgets.git] / wxPython / src / _statctrls.i
... / ...
CommitLineData
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
19MAKE_CONST_WXSTRING(StaticBitmapNameStr);
20MAKE_CONST_WXSTRING(StaticBoxNameStr);
21MAKE_CONST_WXSTRING(StaticTextNameStr);
22
23//---------------------------------------------------------------------------
24%newgroup
25
26class wxStaticBox : public wxControl {
27public:
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
45
46//---------------------------------------------------------------------------
47%newgroup
48
49
50class wxStaticLine : public wxControl {
51public:
52 %pythonAppend wxStaticLine "self._setOORInfo(self)"
53 %pythonAppend wxStaticLine() ""
54
55 wxStaticLine( wxWindow *parent, wxWindowID id,
56 const wxPoint &pos = wxDefaultPosition,
57 const wxSize &size = wxDefaultSize,
58 long style = wxLI_HORIZONTAL,
59 const wxString& name = wxPyStaticTextNameStr);
60 %name(PreStaticLine)wxStaticLine();
61
62 bool Create( wxWindow *parent, wxWindowID id,
63 const wxPoint &pos = wxDefaultPosition,
64 const wxSize &size = wxDefaultSize,
65 long style = wxLI_HORIZONTAL,
66 const wxString& name = wxPyStaticTextNameStr);
67
68 // is the line vertical?
69 bool IsVertical() const;
70
71 // get the default size for the "lesser" dimension of the static line
72 static int GetDefaultSize();
73
74};
75
76
77//---------------------------------------------------------------------------
78%newgroup
79
80class wxStaticText : public wxControl {
81public:
82 %pythonAppend wxStaticText "self._setOORInfo(self)"
83 %pythonAppend wxStaticText() ""
84
85 wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
86 const wxPoint& pos = wxDefaultPosition,
87 const wxSize& size = wxDefaultSize,
88 long style = 0,
89 const wxString& name = wxPyStaticTextNameStr);
90 %name(PreStaticText)wxStaticText();
91
92 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
93 const wxPoint& pos = wxDefaultPosition,
94 const wxSize& size = wxDefaultSize,
95 long style = 0,
96 const wxString& name = wxPyStaticTextNameStr);
97};
98
99//---------------------------------------------------------------------------
100%newgroup
101
102class wxStaticBitmap : public wxControl {
103public:
104 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
105 %pythonAppend wxStaticBitmap() ""
106
107 wxStaticBitmap(wxWindow* parent, wxWindowID id,
108 const wxBitmap& bitmap,
109 const wxPoint& pos = wxDefaultPosition,
110 const wxSize& size = wxDefaultSize,
111 long style = 0,
112 const wxString& name = wxPyStaticBitmapNameStr);
113 %name(PreStaticBitmap)wxStaticBitmap();
114
115 bool Create(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
122 wxBitmap GetBitmap();
123 void SetBitmap(const wxBitmap& bitmap);
124 void SetIcon(const wxIcon& icon);
125};
126
127//---------------------------------------------------------------------------
128//---------------------------------------------------------------------------