]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/stattext.h
compilation fix after last change
[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
20123d49 17class WXDLLIMPEXP_CORE wxStaticText : public wxControl
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
37 wxString GetLabel() const;
c801d85f 38 void SetLabel( const wxString &label );
f68586e5 39
c0e6c051 40 bool SetFont( const wxFont &font );
174b10af 41 bool SetForegroundColour( const wxColour& colour );
9d522606
RD
42
43 static wxVisualAttributes
44 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
1b88201f 45
bb8051f2
VZ
46 // see wx/stattext.h
47 void Wrap(int width);
48
f68586e5 49 // implementation
33720b2d 50 // --------------
f68586e5
VZ
51
52protected:
2e1f5012
VZ
53 virtual bool GTKWidgetNeedsMnemonic() const;
54 virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
55
a5040b80
RR
56 virtual void DoSetSize(int x, int y,
57 int width, int height,
58 int sizeFlags = wxSIZE_AUTO);
1b88201f 59
33720b2d
RR
60 virtual wxSize DoGetBestSize() const;
61
f68586e5 62 DECLARE_DYNAMIC_CLASS(wxStaticText)
c801d85f
KB
63};
64
1b88201f
WS
65#endif
66 // _WX_GTK_STATTEXT_H_