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