1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/stattext.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __GTKSTATICTEXTH__
10 #define __GTKSTATICTEXTH__
12 //-----------------------------------------------------------------------------
14 //-----------------------------------------------------------------------------
16 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
20 wxStaticText(wxWindow
*parent
,
22 const wxString
&label
,
23 const wxPoint
&pos
= wxDefaultPosition
,
24 const wxSize
&size
= wxDefaultSize
,
26 const wxString
&name
= wxStaticTextNameStr
);
28 bool Create(wxWindow
*parent
,
30 const wxString
&label
,
31 const wxPoint
&pos
= wxDefaultPosition
,
32 const wxSize
&size
= wxDefaultSize
,
34 const wxString
&name
= wxStaticTextNameStr
);
36 virtual wxString
GetLabel() const;
37 virtual void SetLabel( const wxString
&label
);
39 virtual bool SetFont( const wxFont
&font
);
40 virtual bool SetForegroundColour( const wxColour
& colour
);
42 static wxVisualAttributes
43 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
46 virtual void DoSetSize(int x
, int y
,
47 int width
, int height
,
48 int sizeFlags
= wxSIZE_AUTO
);
50 virtual wxSize
DoGetBestSize() const;
52 DECLARE_DYNAMIC_CLASS(wxStaticText
)
55 #endif // __GTKSTATICTEXTH__