1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/stattext.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_STATTEXT_H_
11 #define _WX_GTK_STATTEXT_H_
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 void SetLabel( const wxString
&label
);
39 bool SetFont( const wxFont
&font
);
41 static wxVisualAttributes
42 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
48 virtual bool GTKWidgetNeedsMnemonic() const;
49 virtual void GTKWidgetDoSetMnemonic(GtkWidget
* w
);
51 virtual void DoSetSize(int x
, int y
,
52 int width
, int height
,
53 int sizeFlags
= wxSIZE_AUTO
);
55 virtual wxSize
DoGetBestSize() const;
57 virtual wxString
DoGetLabel() const;
58 virtual void DoSetLabel(const wxString
& str
);
60 virtual bool DoSetLabelMarkup(const wxString
& markup
);
61 #endif // wxUSE_MARKUP
64 // Common part of SetLabel() and DoSetLabelMarkup().
65 typedef void (wxStaticText::*GTKLabelSetter
)(GtkLabel
*, const wxString
&);
67 void GTKDoSetLabel(GTKLabelSetter setter
, const wxString
& label
);
70 DECLARE_DYNAMIC_CLASS(wxStaticText
)
74 // _WX_GTK_STATTEXT_H_