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__
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
21 wxStaticText(wxWindow
*parent
,
23 const wxString
&label
,
24 const wxPoint
&pos
= wxDefaultPosition
,
25 const wxSize
&size
= wxDefaultSize
,
27 const wxString
&name
= wxStaticTextNameStr
);
29 bool Create(wxWindow
*parent
,
31 const wxString
&label
,
32 const wxPoint
&pos
= wxDefaultPosition
,
33 const wxSize
&size
= wxDefaultSize
,
35 const wxString
&name
= wxStaticTextNameStr
);
37 virtual wxString
GetLabel() const;
38 virtual void SetLabel( const wxString
&label
);
40 virtual bool SetFont( const wxFont
&font
);
41 virtual bool SetForegroundColour( const wxColour
& colour
);
43 static wxVisualAttributes
44 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
47 virtual void DoSetSize(int x
, int y
,
48 int width
, int height
,
49 int sizeFlags
= wxSIZE_AUTO
);
51 virtual wxSize
DoGetBestSize() const;
53 DECLARE_DYNAMIC_CLASS(wxStaticText
)
56 #endif // __GTKSTATICTEXTH__