]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/button.h
1. reset default item in ~wxWindow (better to be safe)
[wxWidgets.git] / include / wx / motif / button.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
3// Purpose: wxButton class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
31528cd3 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
14
15#ifdef __GNUG__
31528cd3 16 #pragma interface "button.h"
9b6dbb09
JS
17#endif
18
19#include "wx/control.h"
20#include "wx/gdicmn.h"
21
22WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
23
24// Pushbutton
25class WXDLLEXPORT wxButton: public wxControl
26{
31528cd3
VZ
27 DECLARE_DYNAMIC_CLASS(wxButton)
28
29public:
30 wxButton() { }
31 wxButton(wxWindow *parent,
32 wxWindowID id,
33 const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize, long style = 0,
36 const wxValidator& validator = wxDefaultValidator,
37 const wxString& name = wxButtonNameStr)
38 {
39 Create(parent, id, label, pos, size, style, validator, name);
40 }
41
42 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize, long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxButtonNameStr);
47
48 virtual void SetDefault();
49 virtual void Command(wxCommandEvent& event);
50
4d194d63
MB
51 static wxSize GetDefaultSize();
52
31528cd3
VZ
53 // Implementation
54 virtual void ChangeFont(bool keepOriginalSize = TRUE);
55 virtual void ChangeBackgroundColour();
56 virtual void ChangeForegroundColour();
9b6dbb09
JS
57};
58
59#endif
60 // _WX_BUTTON_H_