]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/control.h
test
[wxWidgets.git] / include / wx / gtk1 / control.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: control.h
3// Purpose:
4// Author: Robert Roebling
dbf858b5
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling, Julian Smart
8d99be5f 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKCONTROLH__
11#define __GTKCONTROLH__
12
13#ifdef __GNUG__
14#pragma interface
15#endif
16
17#include "wx/defs.h"
18#include "wx/object.h"
19#include "wx/list.h"
20#include "wx/window.h"
21
22//-----------------------------------------------------------------------------
23// classes
24//-----------------------------------------------------------------------------
25
26class wxControl;
27
28//-----------------------------------------------------------------------------
29// wxControl
30//-----------------------------------------------------------------------------
31
9abe166a 32class wxControl : public wxControlBase
c801d85f 33{
2a4f4a27 34public:
8d99be5f
VZ
35 wxControl();
36 wxControl( wxWindow *parent,
37 wxWindowID id,
38 const wxPoint &pos = wxDefaultPosition,
39 const wxSize &size = wxDefaultSize,
40 long style = 0,
41 const wxString &name = wxPanelNameStr );
2a4f4a27 42
2a4f4a27 43 // this function will filter out '&' characters and will put the accelerator
8d99be5f
VZ
44 // char (the one immediately after '&') into m_chAccel (TODO not yet)
45 virtual void SetLabel( const wxString &label );
46 virtual wxString GetLabel() const;
47
2a4f4a27 48protected:
f68586e5
VZ
49 virtual wxSize DoGetBestSize() const;
50
8d99be5f
VZ
51 wxString m_label;
52 char m_chAccel; // enabled to avoid breaking binary compatibility later on
738f9e5a
RR
53
54private:
55 DECLARE_DYNAMIC_CLASS(wxControl)
c801d85f
KB
56};
57
58#endif // __GTKCONTROLH__