]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/stattext.h
Inital fill in background, removed tabs, -1->wxID_ANY, TRUE->true, FALSE->false
[wxWidgets.git] / include / wx / gtk1 / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: stattext.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __GTKSTATICTEXTH__
12 #define __GTKSTATICTEXTH__
13
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15 #pragma interface
16 #endif
17
18 #include "wx/defs.h"
19 #include "wx/object.h"
20 #include "wx/list.h"
21 #include "wx/control.h"
22
23 //-----------------------------------------------------------------------------
24 // classes
25 //-----------------------------------------------------------------------------
26
27 class wxStaticText;
28
29 //-----------------------------------------------------------------------------
30 // global data
31 //-----------------------------------------------------------------------------
32
33 //-----------------------------------------------------------------------------
34 // wxStaticText
35 //-----------------------------------------------------------------------------
36
37 class wxStaticText : public wxControl
38 {
39 public:
40 wxStaticText();
41 wxStaticText(wxWindow *parent,
42 wxWindowID id,
43 const wxString &label,
44 const wxPoint &pos = wxDefaultPosition,
45 const wxSize &size = wxDefaultSize,
46 long style = 0,
47 const wxString &name = wxStaticTextNameStr );
48
49 bool Create(wxWindow *parent,
50 wxWindowID id,
51 const wxString &label,
52 const wxPoint &pos = wxDefaultPosition,
53 const wxSize &size = wxDefaultSize,
54 long style = 0,
55 const wxString &name = wxStaticTextNameStr );
56
57 wxString GetLabel() const;
58 void SetLabel( const wxString &label );
59
60 bool SetFont( const wxFont &font );
61 bool SetForegroundColour( const wxColour& colour );
62
63 static wxVisualAttributes
64 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
65
66 // implementation
67 // --------------
68
69 void ApplyWidgetStyle();
70
71 protected:
72 virtual wxSize DoGetBestSize() const;
73
74 DECLARE_DYNAMIC_CLASS(wxStaticText)
75 };
76
77 #endif // __GTKSTATICTEXTH__