]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: stattext.h | |
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 | 22 | class WXDLLIMPEXP_CORE wxStaticText; |
c801d85f KB |
23 | |
24 | //----------------------------------------------------------------------------- | |
25 | // global data | |
26 | //----------------------------------------------------------------------------- | |
27 | ||
c801d85f KB |
28 | //----------------------------------------------------------------------------- |
29 | // wxStaticText | |
30 | //----------------------------------------------------------------------------- | |
31 | ||
20123d49 | 32 | class WXDLLIMPEXP_CORE wxStaticText : public wxControl |
c801d85f | 33 | { |
f68586e5 | 34 | public: |
f68586e5 VZ |
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; | |
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); | |
33720b2d | 60 | |
bb8051f2 VZ |
61 | // see wx/stattext.h |
62 | void Wrap(int width); | |
63 | ||
f68586e5 | 64 | // implementation |
33720b2d | 65 | // -------------- |
f68586e5 VZ |
66 | |
67 | protected: | |
2e1f5012 VZ |
68 | virtual bool GTKWidgetNeedsMnemonic() const; |
69 | virtual void GTKWidgetDoSetMnemonic(GtkWidget* w); | |
70 | ||
a5040b80 RR |
71 | virtual void DoSetSize(int x, int y, |
72 | int width, int height, | |
73 | int sizeFlags = wxSIZE_AUTO); | |
74 | ||
33720b2d RR |
75 | virtual wxSize DoGetBestSize() const; |
76 | ||
f68586e5 | 77 | DECLARE_DYNAMIC_CLASS(wxStaticText) |
c801d85f KB |
78 | }; |
79 | ||
80 | #endif // __GTKSTATICTEXTH__ |