1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/stattext.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKSTATICTEXTH__
11 #define __GTKSTATICTEXTH__
14 #include "wx/object.h"
16 #include "wx/control.h"
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxStaticText
;
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 class WXDLLIMPEXP_CORE wxStaticText
: public wxControl
36 wxStaticText(wxWindow
*parent
,
38 const wxString
&label
,
39 const wxPoint
&pos
= wxDefaultPosition
,
40 const wxSize
&size
= wxDefaultSize
,
42 const wxString
&name
= wxStaticTextNameStr
);
44 bool Create(wxWindow
*parent
,
46 const wxString
&label
,
47 const wxPoint
&pos
= wxDefaultPosition
,
48 const wxSize
&size
= wxDefaultSize
,
50 const wxString
&name
= wxStaticTextNameStr
);
52 wxString
GetLabel() const;
53 void SetLabel( const wxString
&label
);
55 bool SetFont( const wxFont
&font
);
56 bool SetForegroundColour( const wxColour
& colour
);
58 static wxVisualAttributes
59 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
68 virtual void DoSetSize(int x
, int y
,
69 int width
, int height
,
70 int sizeFlags
= wxSIZE_AUTO
);
72 virtual wxSize
DoGetBestSize() const;
74 DECLARE_DYNAMIC_CLASS(wxStaticText
)
77 #endif // __GTKSTATICTEXTH__