additional bitmaps for the selected state, unpressed focused state, and greyed-out
state may be supplied.
- @section wxbitmapbutton_states Button states
- This class supports bitmaps for several different states:
+ @section bitmapbutton_states Button states
+ This class supports bitmaps for several different states:
@li @b normal: this is the bitmap shown in the default state, it must be always
valid while all the other bitmaps are optional and don't have to be set.
@li @b disabled: bitmap shown when the button is disabled.
Note that the wxBU_EXACTFIT style supported by wxButton is not used by this
class as bitmap buttons don't have any minimal standard size by default.
- @beginEventTable{wxCommandEvent}
+ @beginEventEmissionTable{wxCommandEvent}
@event{EVT_BUTTON(id, func)}
Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked.
@endEventTable
Bitmap to be displayed.
@param pos
Button position.
+ If ::wxDefaultPosition is specified then a default position is chosen.
@param size
- Button size. If wxDefaultSize is specified then the button is sized
- appropriately for the bitmap.
+ Button size.
+ If ::wxDefaultSize is specified then the button is sized appropriately
+ for the bitmap.
@param style
Window style. See wxBitmapButton.
@param validator
@see SetBitmapFocus()
*/
const wxBitmap& GetBitmapFocus() const;
- wxBitmap& GetBitmapFocus();
+ wxBitmap& GetBitmapFocus();
//@}
//@{
@see SetBitmapHover()
*/
- const wxBitmap& GetBitmapHover();
- wxBitmap& GetBitmapHover();
+ const wxBitmap& GetBitmapHover() const;
+ wxBitmap& GetBitmapHover();
//@}
//@{
@see SetBitmapLabel()
*/
- const wxBitmap& GetBitmapLabel();
- wxBitmap& GetBitmapLabel();
+ const wxBitmap& GetBitmapLabel() const;
+ wxBitmap& GetBitmapLabel();
//@}
/**