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