]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/stattext.h
Missing include for wxCocoa build at Tinderbox.
[wxWidgets.git] / include / wx / gtk / 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 #ifndef __GTKSTATICTEXTH__
11 #define __GTKSTATICTEXTH__
12
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
22 class WXDLLIMPEXP_CORE wxStaticText;
23
24 //-----------------------------------------------------------------------------
25 // global data
26 //-----------------------------------------------------------------------------
27
28 //-----------------------------------------------------------------------------
29 // wxStaticText
30 //-----------------------------------------------------------------------------
31
32 class WXDLLIMPEXP_CORE wxStaticText : public wxControl
33 {
34 public:
35 wxStaticText();
36 wxStaticText(wxWindow *parent,
37 wxWindowID id,
38 const wxString &label,
39 const wxPoint &pos = wxDefaultPosition,
40 const wxSize &size = wxDefaultSize,
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,
48 const wxSize &size = wxDefaultSize,
49 long style = 0,
50 const wxString &name = wxStaticTextNameStr );
51
52 wxString GetLabel() const;
53 void SetLabel( const wxString &label );
54
55 bool SetFont( const wxFont &font );
56 bool SetForegroundColour( const wxColour& colour );
57
58 static wxVisualAttributes
59 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
60
61 // see wx/stattext.h
62 void Wrap(int width);
63
64 // implementation
65 // --------------
66
67 protected:
68 virtual bool GTKWidgetNeedsMnemonic() const;
69 virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
70
71 virtual void DoSetSize(int x, int y,
72 int width, int height,
73 int sizeFlags = wxSIZE_AUTO);
74
75 virtual wxSize DoGetBestSize() const;
76
77 DECLARE_DYNAMIC_CLASS(wxStaticText)
78 };
79
80 #endif // __GTKSTATICTEXTH__