]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/bmpbuttn.h
removed mark #pragmas
[wxWidgets.git] / include / wx / mac / bmpbuttn.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: bmpbuttn.h
3// Purpose: wxBitmapButton class
a31a5f85 4// Author: Stefan Csomor
0dbd6262 5// Modified by:
a31a5f85 6// Created: 1998-01-01
0dbd6262 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
d921af51 9// Licence: wxWindows licence
0dbd6262
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BMPBUTTN_H_
13#define _WX_BMPBUTTN_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
0dbd6262
SC
16#pragma interface "bmpbuttn.h"
17#endif
18
19#include "wx/button.h"
20
c4e41ce3 21WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
0dbd6262
SC
22
23#define wxDEFAULT_BUTTON_MARGIN 4
24
d460ed40 25class WXDLLEXPORT wxBitmapButton: public wxBitmapButtonBase
0dbd6262 26{
d460ed40
GD
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);
0dbd6262
SC
51
52/*
53 // TODO: Implementation
54 virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
55 virtual void DrawFace( WXHDC dc, int left, int top, int right, int bottom, bool sel );
56 virtual void DrawButtonFocus( WXHDC dc, int left, int top, int right, int bottom, bool sel );
57 virtual void DrawButtonDisable( WXHDC dc, int left, int top, int right, int bottom, bool with_marg );
58*/
0dbd6262
SC
59};
60
61#endif
62 // _WX_BMPBUTTN_H_