]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/stattext.h
show the function in which the assert failure occured if the compiler supports it
[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
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKSTATICTEXTH__
11#define __GTKSTATICTEXTH__
12
c801d85f
KB
13#include "wx/defs.h"
14#include "wx/object.h"
15#include "wx/list.h"
16#include "wx/control.h"
17
18//-----------------------------------------------------------------------------
19// classes
20//-----------------------------------------------------------------------------
21
20123d49 22class WXDLLIMPEXP_CORE wxStaticText;
c801d85f
KB
23
24//-----------------------------------------------------------------------------
25// global data
26//-----------------------------------------------------------------------------
27
c801d85f
KB
28//-----------------------------------------------------------------------------
29// wxStaticText
30//-----------------------------------------------------------------------------
31
20123d49 32class WXDLLIMPEXP_CORE wxStaticText : public wxControl
c801d85f 33{
f68586e5 34public:
f68586e5
VZ
35 wxStaticText();
36 wxStaticText(wxWindow *parent,
37 wxWindowID id,
38 const wxString &label,
39 const wxPoint &pos = wxDefaultPosition,
8ef94bfc 40 const wxSize &size = wxDefaultSize,
f68586e5
VZ
41 long style = 0,
42 const wxString &name = wxStaticTextNameStr );
43
44 bool Create(wxWindow *parent,
45 wxWindowID id,
46 const wxString &label,
47 const wxPoint &pos = wxDefaultPosition,
8ef94bfc 48 const wxSize &size = wxDefaultSize,
f68586e5
VZ
49 long style = 0,
50 const wxString &name = wxStaticTextNameStr );
51
52 wxString GetLabel() const;
c801d85f 53 void SetLabel( const wxString &label );
f68586e5 54
c0e6c051 55 bool SetFont( const wxFont &font );
174b10af 56 bool SetForegroundColour( const wxColour& colour );
9d522606
RD
57
58 static wxVisualAttributes
59 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
8ef94bfc 60
bb8051f2
VZ
61 // see wx/stattext.h
62 void Wrap(int width);
63
f68586e5 64 // implementation
33720b2d 65 // --------------
f68586e5
VZ
66
67protected:
a5040b80
RR
68 virtual void DoSetSize(int x, int y,
69 int width, int height,
70 int sizeFlags = wxSIZE_AUTO);
8ef94bfc 71
33720b2d
RR
72 virtual wxSize DoGetBestSize() const;
73
f68586e5 74 DECLARE_DYNAMIC_CLASS(wxStaticText)
c801d85f
KB
75};
76
77#endif // __GTKSTATICTEXTH__