1//---------------------------------------------------------------------------
2// This file is generated by wxPython's SIP generator.  Do not edit by hand.
3//
4// Copyright: (c) 2018 by Total Control Software
5// License:   wxWindows License
6//
7// This file will be included by _core.sip
8//
9//---------------------------------------------------------------------------
10
11%ModuleHeaderCode
12#include <wx/collpane.h>
13%End
14
15
16//---------------------------------------------------------------------------
17
18const int wxCP_DEFAULT_STYLE;
19const int wxCP_NO_TLW_RESIZE;
20wxEventType wxEVT_COLLAPSIBLEPANE_CHANGED   /PyName=wxEVT_COLLAPSIBLEPANE_CHANGED/;
21
22const char* wxCollapsiblePaneNameStr;
23
24class wxCollapsiblePane : wxControl
25{
26    %Docstring
27        CollapsiblePane()
28        CollapsiblePane(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=CP_DEFAULT_STYLE, validator=DefaultValidator, name=CollapsiblePaneNameStr)
29
30        A collapsible pane is a container with an embedded button-like control
31        which can be used by the user to collapse or expand the pane's
32        contents.
33    %End
34    %TypeHeaderCode
35        #include <wx/collpane.h>
36    %End
37
38public:
39    wxCollapsiblePane();
40    %PreMethodCode
41        if (!wxPyCheckForApp()) return NULL;
42    %End
43
44    wxCollapsiblePane(
45        wxWindow * parent   /TransferThis/,
46        wxWindowID id = wxID_ANY,
47        const wxString & label = wxEmptyString,
48        const wxPoint & pos = wxDefaultPosition,
49        const wxSize & size = wxDefaultSize,
50        long style = wxCP_DEFAULT_STYLE,
51        const wxValidator & validator = wxDefaultValidator,
52        const wxString & name = wxCollapsiblePaneNameStr
53    );
54    %PreMethodCode
55        if (!wxPyCheckForApp()) return NULL;
56    %End
57
58    bool Create(
59        wxWindow * parent   /TransferThis/,
60        wxWindowID id = wxID_ANY,
61        const wxString & label = wxEmptyString,
62        const wxPoint & pos = wxDefaultPosition,
63        const wxSize & size = wxDefaultSize,
64        long style = wxCP_DEFAULT_STYLE,
65        const wxValidator & validator = wxDefaultValidator,
66        const wxString & name = wxCollapsiblePaneNameStr
67    );
68    %Docstring
69        Create(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=CP_DEFAULT_STYLE, validator=DefaultValidator, name=CollapsiblePaneNameStr) -> bool
70    %End
71
72    void Collapse(
73        bool collapse = true
74    );
75    %Docstring
76        Collapse(collapse=True)
77
78        Collapses or expands the pane window.
79    %End
80
81    void Expand();
82    %Docstring
83        Expand()
84
85        Same as calling Collapse(false).
86    %End
87
88    wxWindow * GetPane() const;
89    %Docstring
90        GetPane() -> Window
91
92        Returns a pointer to the pane window.
93    %End
94
95    bool IsCollapsed() const;
96    %Docstring
97        IsCollapsed() -> bool
98
99        Returns true if the pane window is currently hidden.
100    %End
101
102    bool IsExpanded() const;
103    %Docstring
104        IsExpanded() -> bool
105
106        Returns true if the pane window is currently shown.
107    %End
108
109    public:
110    virtual wxPoint GetClientAreaOrigin() const;
111    virtual bool Validate();
112    virtual bool TransferDataToWindow();
113    virtual bool TransferDataFromWindow();
114    virtual void InitDialog();
115    virtual bool AcceptsFocus() const;
116    virtual bool AcceptsFocusRecursively() const;
117    virtual bool AcceptsFocusFromKeyboard() const;
118    virtual void AddChild( wxWindowBase *child );
119    virtual void RemoveChild( wxWindowBase *child );
120    virtual void InheritAttributes();
121    virtual bool ShouldInheritColours() const;
122    virtual void OnInternalIdle();
123    virtual wxWindow *GetMainWindowOfCompositeControl();
124    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
125    virtual void SetCanFocus(bool canFocus);
126    virtual bool Destroy();
127    virtual void SetValidator( const wxValidator &validator );
128    virtual wxValidator* GetValidator();
129
130
131    protected:
132    virtual bool ProcessEvent(wxEvent & event);
133    virtual void DoEnable(bool enable);
134    virtual void DoGetPosition(int *x, int *y) const;
135    virtual void DoGetSize(int *width, int *height) const;
136    virtual void DoGetClientSize(int *width, int *height) const;
137    virtual wxSize DoGetBestSize() const;
138    virtual wxSize DoGetBestClientSize() const;
139    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
140    virtual void DoSetClientSize(int width, int height);
141    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
142    virtual wxSize DoGetBorderSize() const;
143    virtual void DoMoveWindow(int x, int y, int width, int height);
144    virtual void DoSetWindowVariant( wxWindowVariant variant);
145    virtual wxBorder GetDefaultBorder() const;
146    virtual wxBorder GetDefaultBorderForControl() const;
147    virtual void DoFreeze();
148    virtual void DoThaw();
149    virtual bool HasTransparentBackground();
150    virtual bool TryBefore(wxEvent& event);
151    virtual bool TryAfter(wxEvent& event);
152
153
154    public:
155
156
157    static
158    wxVisualAttributes GetClassDefaultAttributes(
159        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
160    );
161    %Docstring
162        GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
163    %End
164    %PreMethodCode
165        if (!wxPyCheckForApp()) return NULL;
166    %End
167
168    public:
169
170
171    %Property(name=Pane, get=GetPane)
172};  // end of class wxCollapsiblePane
173
174
175class wxCollapsiblePaneEvent : wxCommandEvent
176{
177    %Docstring
178        CollapsiblePaneEvent(generator, id, collapsed)
179
180        This event class is used for the events generated by
181        wxCollapsiblePane.
182    %End
183    %TypeHeaderCode
184        #include <wx/collpane.h>
185    %End
186
187public:
188    wxCollapsiblePaneEvent(
189        wxObject * generator,
190        int id,
191        bool collapsed
192    );
193
194    bool GetCollapsed() const;
195    %Docstring
196        GetCollapsed() -> bool
197
198        Returns true if the pane has been collapsed.
199    %End
200
201    void SetCollapsed(
202        bool collapsed
203    );
204    %Docstring
205        SetCollapsed(collapsed)
206
207        Sets this as a collapsed pane event (if collapsed is true) or as an
208        expanded pane event (if collapsed is false).
209    %End
210
211    public:
212
213
214    %Property(name=Collapsed, get=GetCollapsed, set=SetCollapsed)
215};  // end of class wxCollapsiblePaneEvent
216
217
218%Extract(id=pycode_core)
219EVT_COLLAPSIBLEPANE_CHANGED = wx.PyEventBinder( wxEVT_COLLAPSIBLEPANE_CHANGED )
220
221# deprecated wxEVT alias
222wxEVT_COMMAND_COLLPANE_CHANGED  = wxEVT_COLLAPSIBLEPANE_CHANGED
223
224%End
225
226
227//---------------------------------------------------------------------------
228
229