1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/stattext.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_GTK_STATTEXT_H_
10 #define _WX_GTK_STATTEXT_H_
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 void SetLabel( const wxString
&label
);
38 bool SetFont( const wxFont
&font
);
40 static wxVisualAttributes
41 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
47 virtual bool GTKWidgetNeedsMnemonic() const;
48 virtual void GTKWidgetDoSetMnemonic(GtkWidget
* w
);
50 virtual wxSize
DoGetBestSize() const;
52 virtual wxString
DoGetLabel() const;
53 virtual void DoSetLabel(const wxString
& str
);
55 virtual bool DoSetLabelMarkup(const wxString
& markup
);
56 #endif // wxUSE_MARKUP
59 // Common part of SetLabel() and DoSetLabelMarkup().
60 typedef void (wxStaticText::*GTKLabelSetter
)(GtkLabel
*, const wxString
&);
62 void GTKDoSetLabel(GTKLabelSetter setter
, const wxString
& label
);
65 DECLARE_DYNAMIC_CLASS(wxStaticText
)
69 // _WX_GTK_STATTEXT_H_