1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxAnyButton class
4 // Author: Stefan Csomor
5 // Created: 1998-01-01 (extracted from button.h)
6 // Copyright: (c) Stefan Csomor
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_OSX_ANYBUTTON_H_
11 #define _WX_OSX_ANYBUTTON_H_
14 class WXDLLIMPEXP_CORE wxAnyButton
: public wxAnyButtonBase
19 static wxSize
GetDefaultSize();
21 virtual void SetLabel(const wxString
& label
);
24 virtual wxSize
DoGetBestSize() const ;
26 void OnEnterWindow( wxMouseEvent
& event
);
27 void OnLeaveWindow( wxMouseEvent
& event
);
29 virtual wxBitmap
DoGetBitmap(State which
) const;
30 virtual void DoSetBitmap(const wxBitmap
& bitmap
, State which
);
31 virtual void DoSetBitmapPosition(wxDirection dir
);
33 virtual void DoSetBitmapMargins(int x
, int y
)
40 #if wxUSE_MARKUP && wxOSX_USE_COCOA
41 virtual bool DoSetLabelMarkup(const wxString
& markup
);
42 #endif // wxUSE_MARKUP && wxOSX_USE_COCOA
45 // the margins around the bitmap
49 // the bitmaps for the different state of the buttons, all of them may be
50 // invalid and the button only shows a bitmap at all if State_Normal bitmap
52 wxBitmap m_bitmaps
[State_Max
];
54 wxDECLARE_NO_COPY_CLASS(wxAnyButton
);
58 #endif // _WX_OSX_ANYBUTTON_H_