]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/classic/bmpbuttn.h
base wxMediaCtrl files
[wxWidgets.git] / include / wx / mac / classic / bmpbuttn.h
CommitLineData
52479aef
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
52479aef
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
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*/
59
60protected:
61 virtual wxSize DoGetBestSize() const;
62};
63
64#endif
65 // _WX_BMPBUTTN_H_