]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/stattext.h
check for self-assignment in operator=
[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
a5040b80
RR
51 virtual void DoSetSize(int x, int y,
52 int width, int height,
53 int sizeFlags = wxSIZE_AUTO);
1b88201f 54
33720b2d
RR
55 virtual wxSize DoGetBestSize() const;
56
39bc0347
VZ
57 virtual wxString DoGetLabel() const;
58 virtual void DoSetLabel(const wxString& str);
59
f68586e5 60 DECLARE_DYNAMIC_CLASS(wxStaticText)
c801d85f
KB
61};
62
1b88201f
WS
63#endif
64 // _WX_GTK_STATTEXT_H_