]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/bmpbuttn.h
source nice-ness and remove erronous files
[wxWidgets.git] / include / wx / mac / carbon / bmpbuttn.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: bmpbuttn.h
3// Purpose: wxBitmapButton class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BMPBUTTN_H_
13#define _WX_BMPBUTTN_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "bmpbuttn.h"
17#endif
18
19#include "wx/button.h"
20
21WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
22
23#define wxDEFAULT_BUTTON_MARGIN 4
24
25class WXDLLEXPORT wxBitmapButton: public wxBitmapButtonBase
26{
27 DECLARE_DYNAMIC_CLASS(wxBitmapButton)
28
29public:
30 wxBitmapButton()
31 {
32 SetMargins(wxDEFAULT_BUTTON_MARGIN, wxDEFAULT_BUTTON_MARGIN);
33 }
34
35 wxBitmapButton(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 {
41 Create(parent, id, bitmap, pos, size, style, validator, name);
42 }
43
44 bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
45 const wxPoint& pos = wxDefaultPosition,
46 const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
47 const wxValidator& validator = wxDefaultValidator,
48 const wxString& name = wxButtonNameStr);
49
50 virtual void SetBitmapLabel(const wxBitmap& bitmap);
51
8cf73271
SC
52protected:
53 virtual wxSize DoGetBestSize() const;
54};
55
56#endif
57 // _WX_BMPBUTTN_H_