]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/stattext.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKSTATICTEXTH__
12 #define __GTKSTATICTEXTH__
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
19 #include "wx/object.h"
21 #include "wx/control.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 class wxStaticText
: public wxControl
41 wxStaticText(wxWindow
*parent
,
43 const wxString
&label
,
44 const wxPoint
&pos
= wxDefaultPosition
,
45 const wxSize
&size
= wxDefaultSize
,
47 const wxString
&name
= wxStaticTextNameStr
);
49 bool Create(wxWindow
*parent
,
51 const wxString
&label
,
52 const wxPoint
&pos
= wxDefaultPosition
,
53 const wxSize
&size
= wxDefaultSize
,
55 const wxString
&name
= wxStaticTextNameStr
);
57 wxString
GetLabel() const;
58 void SetLabel( const wxString
&label
);
60 bool SetFont( const wxFont
&font
);
61 bool SetForegroundColour( const wxColour
& colour
);
63 static wxVisualAttributes
64 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
69 void ApplyWidgetStyle();
72 virtual wxSize
DoGetBestSize() const;
74 DECLARE_DYNAMIC_CLASS(wxStaticText
)
77 #endif // __GTKSTATICTEXTH__