]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/stattext.h
No real changes, just make wxWindow::CanScroll() virtual.
[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 5// Copyright: (c) 1998 Robert Roebling
1b88201f 6// Licence: wxWindows licence
c801d85f
KB
7/////////////////////////////////////////////////////////////////////////////
8
c801d85f
KB
9#ifndef __GTKSTATICTEXTH__
10#define __GTKSTATICTEXTH__
11
c801d85f
KB
12//-----------------------------------------------------------------------------
13// wxStaticText
14//-----------------------------------------------------------------------------
15
f99bfeea 16class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
c801d85f 17{
f68586e5 18public:
f68586e5
VZ
19 wxStaticText();
20 wxStaticText(wxWindow *parent,
21 wxWindowID id,
22 const wxString &label,
23 const wxPoint &pos = wxDefaultPosition,
8ef94bfc 24 const wxSize &size = wxDefaultSize,
f68586e5
VZ
25 long style = 0,
26 const wxString &name = wxStaticTextNameStr );
27
28 bool Create(wxWindow *parent,
29 wxWindowID id,
30 const wxString &label,
31 const wxPoint &pos = wxDefaultPosition,
8ef94bfc 32 const wxSize &size = wxDefaultSize,
f68586e5
VZ
33 long style = 0,
34 const wxString &name = wxStaticTextNameStr );
35
f99bfeea
VZ
36 virtual wxString GetLabel() const;
37 virtual void SetLabel( const wxString &label );
f68586e5 38
f99bfeea
VZ
39 virtual bool SetFont( const wxFont &font );
40 virtual bool SetForegroundColour( const wxColour& colour );
9d522606
RD
41
42 static wxVisualAttributes
43 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
8ef94bfc 44
f68586e5 45protected:
a5040b80
RR
46 virtual void DoSetSize(int x, int y,
47 int width, int height,
48 int sizeFlags = wxSIZE_AUTO);
8ef94bfc 49
33720b2d
RR
50 virtual wxSize DoGetBestSize() const;
51
f68586e5 52 DECLARE_DYNAMIC_CLASS(wxStaticText)
c801d85f
KB
53};
54
f99bfeea 55#endif // __GTKSTATICTEXTH__