Allow 2-phase creation of wxThumbBarButton.
Author: Chaobin Zhang git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,8 +31,9 @@ enum WXDLLIMPEXP_CORE wxTaskBarButtonState
|
||||
wxTASKBAR_BUTTON_PAUSED = 8
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxThumbBarButton {
|
||||
class WXDLLIMPEXP_CORE wxThumbBarButton : public wxObject {
|
||||
public:
|
||||
wxThumbBarButton() { }
|
||||
wxThumbBarButton(int id,
|
||||
const wxIcon& icon,
|
||||
const wxString& tooltip = wxString(),
|
||||
@@ -44,6 +45,14 @@ public:
|
||||
|
||||
virtual ~wxThumbBarButton() {}
|
||||
|
||||
bool Create(int id,
|
||||
const wxIcon& icon,
|
||||
const wxString& tooltip = wxString(),
|
||||
bool enable = true,
|
||||
bool dismissOnClick = false,
|
||||
bool hasBackground = true,
|
||||
bool shown = true,
|
||||
bool interactive = true);
|
||||
int GetID() const { return m_id; }
|
||||
const wxIcon& GetIcon() const { return m_icon; }
|
||||
const wxString& GetTooltip() const { return m_tooltip; }
|
||||
@@ -62,6 +71,8 @@ private:
|
||||
bool m_hasBackground;
|
||||
bool m_shown;
|
||||
bool m_interactive;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxThumbBarButton)
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxTaskBarButton
|
||||
|
Reference in New Issue
Block a user