1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/collpane.h
3 // Purpose: wxCollapsiblePane
4 // Author: Francesco Montorsi
7 // Copyright: (c) Francesco Montorsi
8 // Licence: wxWindows Licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_COLLAPSABLE_PANEL_H_GTK_
12 #define _WX_COLLAPSABLE_PANEL_H_GTK_
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxCollapsiblePane
: public wxCollapsiblePaneBase
21 wxCollapsiblePane() { Init(); }
23 wxCollapsiblePane(wxWindow
*parent
,
25 const wxString
& label
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 long style
= wxCP_DEFAULT_STYLE
,
29 const wxValidator
& val
= wxDefaultValidator
,
30 const wxString
& name
= wxCollapsiblePaneNameStr
)
34 Create(parent
, winid
, label
, pos
, size
, style
, val
, name
);
37 bool Create(wxWindow
*parent
,
39 const wxString
& label
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxCP_DEFAULT_STYLE
,
43 const wxValidator
& val
= wxDefaultValidator
,
44 const wxString
& name
= wxCollapsiblePaneNameStr
);
46 virtual void Collapse(bool collapse
= true);
47 virtual bool IsCollapsed() const;
48 virtual void SetLabel(const wxString
& str
);
50 virtual wxWindow
*GetPane() const { return m_pPane
; }
51 virtual wxString
GetLabel() const { return m_strLabel
; }
54 virtual wxSize
DoGetBestSize() const;
56 public: // used by GTK callbacks
57 bool m_bIgnoreNextChange
;
62 // the button label without ">>" or "<<"
68 m_bIgnoreNextChange
= false;
71 void OnSize(wxSizeEvent
&);
72 virtual void AddChildGTK(wxWindowGTK
* child
);
73 GdkWindow
*GTKGetWindow(wxArrayGdkWindows
& windows
) const;
75 DECLARE_DYNAMIC_CLASS(wxCollapsiblePane
)
79 #endif // _WX_COLLAPSABLE_PANEL_H_GTK_