]>
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 | ||
0416c418 PC |
10 | #ifndef _WX_GTK_STATTEXT_H_ |
11 | #define _WX_GTK_STATTEXT_H_ | |
c801d85f | 12 | |
c801d85f KB |
13 | //----------------------------------------------------------------------------- |
14 | // wxStaticText | |
15 | //----------------------------------------------------------------------------- | |
16 | ||
20123d49 | 17 | class WXDLLIMPEXP_CORE wxStaticText : public wxControl |
c801d85f | 18 | { |
f68586e5 | 19 | public: |
f68586e5 VZ |
20 | wxStaticText(); |
21 | wxStaticText(wxWindow *parent, | |
22 | wxWindowID id, | |
23 | const wxString &label, | |
24 | const wxPoint &pos = wxDefaultPosition, | |
25 | const wxSize &size = wxDefaultSize, | |
26 | long style = 0, | |
27 | const wxString &name = wxStaticTextNameStr ); | |
28 | ||
29 | bool Create(wxWindow *parent, | |
30 | wxWindowID id, | |
31 | const wxString &label, | |
32 | const wxPoint &pos = wxDefaultPosition, | |
33 | const wxSize &size = wxDefaultSize, | |
34 | long style = 0, | |
35 | const wxString &name = wxStaticTextNameStr ); | |
36 | ||
37 | wxString GetLabel() const; | |
c801d85f | 38 | void SetLabel( const wxString &label ); |
f68586e5 | 39 | |
c0e6c051 | 40 | bool SetFont( const wxFont &font ); |
174b10af | 41 | bool SetForegroundColour( const wxColour& colour ); |
9d522606 RD |
42 | |
43 | static wxVisualAttributes | |
44 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
33720b2d | 45 | |
bb8051f2 VZ |
46 | // see wx/stattext.h |
47 | void Wrap(int width); | |
48 | ||
f68586e5 | 49 | // implementation |
33720b2d | 50 | // -------------- |
f68586e5 VZ |
51 | |
52 | protected: | |
2e1f5012 VZ |
53 | virtual bool GTKWidgetNeedsMnemonic() const; |
54 | virtual void GTKWidgetDoSetMnemonic(GtkWidget* w); | |
55 | ||
a5040b80 RR |
56 | virtual void DoSetSize(int x, int y, |
57 | int width, int height, | |
58 | int sizeFlags = wxSIZE_AUTO); | |
59 | ||
33720b2d RR |
60 | virtual wxSize DoGetBestSize() const; |
61 | ||
f68586e5 | 62 | DECLARE_DYNAMIC_CLASS(wxStaticText) |
c801d85f KB |
63 | }; |
64 | ||
0416c418 | 65 | #endif // _WX_GTK_STATTEXT_H_ |