]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/bmpbuttn.h
no message
[wxWidgets.git] / include / wx / gtk / bmpbuttn.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: bmpbutton.h
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling
c801d85f
KB
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __BMPBUTTONH__
12#define __BMPBUTTONH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/list.h"
21#include "wx/control.h"
22
23//-----------------------------------------------------------------------------
24// classes
25//-----------------------------------------------------------------------------
26
27class wxBitmapButton;
28
151ccd11
RR
29//-----------------------------------------------------------------------------
30// global data
31//-----------------------------------------------------------------------------
32
33extern const char *wxButtonNameStr;
34
c801d85f
KB
35//-----------------------------------------------------------------------------
36// wxBitmapButton
37//-----------------------------------------------------------------------------
38
151ccd11
RR
39class wxBitmapButton: public wxControl
40{
41 DECLARE_DYNAMIC_CLASS(wxBitmapButton)
42
43 public:
44
45 wxBitmapButton(void);
6de97a3b
RR
46 inline wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
49 const wxValidator& validator = wxDefaultValidator,
50 const wxString& name = wxButtonNameStr)
51 {
52 Create(parent, id, bitmap, pos, size, style, validator, name);
53 }
54 bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
55 const wxPoint& pos = wxDefaultPosition,
56 const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
57 const wxValidator& validator = wxDefaultValidator,
58 const wxString& name = wxButtonNameStr);
151ccd11
RR
59 void SetDefault(void);
60 void SetLabel( const wxString &label );
61 wxString GetLabel(void) const;
903f689b
RR
62 virtual void SetLabel(const wxBitmap& bitmap) { SetBitmapLabel(bitmap); }
63 virtual void SetBitmapLabel( const wxBitmap& bitmap );
64 wxBitmap& GetBitmapLabel(void) const { return (wxBitmap&) m_bitmap; }
151ccd11 65
58614078
RR
66 // implementation
67
68 void ApplyWidgetStyle();
69
151ccd11
RR
70 public:
71
72 wxBitmap m_bitmap;
73
74};
c801d85f 75#endif // __BMPBUTTONH__