]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/control.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKCONTROLH__
11 #define __GTKCONTROLH__
18 #include "wx/object.h"
20 #include "wx/window.h"
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 extern const wxChar
* wxControlNameStr
;
34 class wxControl
: public wxControlBase
38 wxControl( wxWindow
*parent
,
40 const wxPoint
&pos
= wxDefaultPosition
,
41 const wxSize
&size
= wxDefaultSize
,
43 const wxString
&name
= wxControlNameStr
);
46 wxControl( wxWindow
*parent
,
48 const wxPoint
&pos
= wxDefaultPosition
,
49 const wxSize
&size
= wxDefaultSize
,
51 const wxValidator
& validator
= wxDefaultValidator
,
52 const wxString
&name
= wxControlNameStr
);
55 // this function will filter out '&' characters and will put the accelerator
56 // char (the one immediately after '&') into m_chAccel (TODO not yet)
57 virtual void SetLabel( const wxString
&label
);
58 virtual wxString
GetLabel() const;
61 virtual wxSize
DoGetBestSize() const;
64 char m_chAccel
; // enabled to avoid breaking binary compatibility later on
67 DECLARE_DYNAMIC_CLASS(wxControl
)
70 #endif // __GTKCONTROLH__