]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/stattext.h
Mention using wxString::c_str() with vararg functions in the change log.
[wxWidgets.git] / include / wx / gtk / stattext.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
1b88201f 2// Name: wx/gtk/stattext.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
1b88201f 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
0416c418
PC
10#ifndef _WX_GTK_STATTEXT_H_
11#define _WX_GTK_STATTEXT_H_
c801d85f 12
c801d85f
KB
13//-----------------------------------------------------------------------------
14// wxStaticText
15//-----------------------------------------------------------------------------
16
39bc0347 17class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
c801d85f 18{
f68586e5 19public:
f68586e5
VZ
20 wxStaticText();
21 wxStaticText(wxWindow *parent,
22 wxWindowID id,
23 const wxString &label,
24 const wxPoint &pos = wxDefaultPosition,
1b88201f 25 const wxSize &size = wxDefaultSize,
f68586e5
VZ
26 long style = 0,
27 const wxString &name = wxStaticTextNameStr );
28
29 bool Create(wxWindow *parent,
30 wxWindowID id,
31 const wxString &label,
32 const wxPoint &pos = wxDefaultPosition,
1b88201f 33 const wxSize &size = wxDefaultSize,
f68586e5
VZ
34 long style = 0,
35 const wxString &name = wxStaticTextNameStr );
36
c801d85f 37 void SetLabel( const wxString &label );
f68586e5 38
c0e6c051 39 bool SetFont( const wxFont &font );
9d522606
RD
40
41 static wxVisualAttributes
42 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
1b88201f 43
f68586e5 44 // implementation
33720b2d 45 // --------------
f68586e5
VZ
46
47protected:
2e1f5012
VZ
48 virtual bool GTKWidgetNeedsMnemonic() const;
49 virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
50
33720b2d
RR
51 virtual wxSize DoGetBestSize() const;
52
39bc0347
VZ
53 virtual wxString DoGetLabel() const;
54 virtual void DoSetLabel(const wxString& str);
f5bdfc69 55#if wxUSE_MARKUP
3da9cffc 56 virtual bool DoSetLabelMarkup(const wxString& markup);
f5bdfc69 57#endif // wxUSE_MARKUP
3da9cffc
VZ
58
59private:
60 // Common part of SetLabel() and DoSetLabelMarkup().
61 typedef void (wxStaticText::*GTKLabelSetter)(GtkLabel *, const wxString&);
62
63 void GTKDoSetLabel(GTKLabelSetter setter, const wxString& label);
64
39bc0347 65
f68586e5 66 DECLARE_DYNAMIC_CLASS(wxStaticText)
c801d85f
KB
67};
68
1b88201f
WS
69#endif
70 // _WX_GTK_STATTEXT_H_