]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
1e6feb95 | 2 | // Name: wx/gtk/stabox.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 __GTKSTATICBOXH__ |
11 | #define __GTKSTATICBOXH__ | |
12 | ||
c801d85f KB |
13 | //----------------------------------------------------------------------------- |
14 | // wxStaticBox | |
15 | //----------------------------------------------------------------------------- | |
16 | ||
20123d49 | 17 | class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase |
c801d85f | 18 | { |
1e6feb95 VZ |
19 | public: |
20 | wxStaticBox(); | |
21 | wxStaticBox( 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 = wxStaticBoxNameStr ); | |
28 | bool Create( wxWindow *parent, | |
29 | wxWindowID id, | |
30 | const wxString &label, | |
31 | const wxPoint &pos = wxDefaultPosition, | |
32 | const wxSize &size = wxDefaultSize, | |
33 | long style = 0, | |
34 | const wxString &name = wxStaticBoxNameStr ); | |
35 | ||
36 | virtual void SetLabel( const wxString &label ); | |
37 | ||
9d522606 RD |
38 | static wxVisualAttributes |
39 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
40 | ||
1e6feb95 | 41 | // implementation |
c801d85f | 42 | |
d1f2ac45 | 43 | virtual bool IsTransparentForMouse() const { return TRUE; } |
c801d85f | 44 | |
c1f50b06 RD |
45 | virtual void GetBordersForSizer(int *borderTop, int *borderOther) const; |
46 | ||
39cdc95f FM |
47 | virtual void AddChild( wxWindowBase *child ); |
48 | ||
7545e132 | 49 | protected: |
2e1f5012 VZ |
50 | virtual bool GTKWidgetNeedsMnemonic() const; |
51 | virtual void GTKWidgetDoSetMnemonic(GtkWidget* w); | |
52 | ||
7545e132 VS |
53 | void DoApplyWidgetStyle(GtkRcStyle *style); |
54 | ||
1e6feb95 VZ |
55 | private: |
56 | DECLARE_DYNAMIC_CLASS(wxStaticBox) | |
57 | }; | |
dcf924a3 | 58 | |
c801d85f | 59 | #endif // __GTKSTATICBOXH__ |