]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/bmpbuttn.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / osx / bmpbuttn.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/bmpbuttn.h
6762286d
SC
3// Purpose: wxBitmapButton class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
6762286d
SC
7// Copyright: (c) Stefan Csomor
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
09219654
VZ
11#ifndef _WX_OSX_BMPBUTTN_H_
12#define _WX_OSX_BMPBUTTN_H_
6762286d
SC
13
14#include "wx/button.h"
15
6762286d
SC
16#define wxDEFAULT_BUTTON_MARGIN 4
17
09219654 18class WXDLLIMPEXP_CORE wxBitmapButton : public wxBitmapButtonBase
6762286d 19{
6762286d
SC
20public:
21 wxBitmapButton()
22 {
23 SetMargins(wxDEFAULT_BUTTON_MARGIN, wxDEFAULT_BUTTON_MARGIN);
24 }
03647350 25
6762286d
SC
26 wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
29 const wxValidator& validator = wxDefaultValidator,
30 const wxString& name = wxButtonNameStr)
31 {
32 Create(parent, id, bitmap, pos, size, style, validator, name);
33 }
34
35 bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxButtonNameStr);
40
6762286d 41protected:
ce00f59b 42
03647350 43 virtual wxSize DoGetBestSize() const;
09219654 44
09219654 45 DECLARE_DYNAMIC_CLASS(wxBitmapButton)
6762286d
SC
46};
47
09219654 48#endif // _WX_OSX_BMPBUTTN_H_