]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/stattext.h
build fix for wxGTK/Univ build (#9706)
[wxWidgets.git] / include / wx / gtk1 / stattext.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/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
c801d85f
KB
10#ifndef __GTKSTATICTEXTH__
11#define __GTKSTATICTEXTH__
12
c801d85f
KB
13//-----------------------------------------------------------------------------
14// wxStaticText
15//-----------------------------------------------------------------------------
16
f99bfeea 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,
8ef94bfc 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,
8ef94bfc 33 const wxSize &size = wxDefaultSize,
f68586e5
VZ
34 long style = 0,
35 const wxString &name = wxStaticTextNameStr );
36
f99bfeea
VZ
37 virtual wxString GetLabel() const;
38 virtual void SetLabel( const wxString &label );
f68586e5 39
f99bfeea
VZ
40 virtual bool SetFont( const wxFont &font );
41 virtual bool SetForegroundColour( const wxColour& colour );
9d522606
RD
42
43 static wxVisualAttributes
44 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
8ef94bfc 45
f68586e5 46protected:
a5040b80
RR
47 virtual void DoSetSize(int x, int y,
48 int width, int height,
49 int sizeFlags = wxSIZE_AUTO);
8ef94bfc 50
33720b2d
RR
51 virtual wxSize DoGetBestSize() const;
52
f68586e5 53 DECLARE_DYNAMIC_CLASS(wxStaticText)
c801d85f
KB
54};
55
f99bfeea 56#endif // __GTKSTATICTEXTH__