]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/statbox.h
No real changes, just add wxSizerItem::AddBorderToSize() helper.
[wxWidgets.git] / include / wx / gtk / statbox.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/gtk/statbox.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
65391c8f
PC
10#ifndef _WX_GTKSTATICBOX_H_
11#define _WX_GTKSTATICBOX_H_
c801d85f 12
c801d85f
KB
13//-----------------------------------------------------------------------------
14// wxStaticBox
15//-----------------------------------------------------------------------------
16
20123d49 17class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase
c801d85f 18{
1e6feb95
VZ
19public:
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
cafc6e0f 43 virtual bool GTKIsTransparentForMouse() 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 49protected:
2e1f5012
VZ
50 virtual bool GTKWidgetNeedsMnemonic() const;
51 virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
52
7545e132 53 void DoApplyWidgetStyle(GtkRcStyle *style);
03647350 54
1e6feb95
VZ
55 DECLARE_DYNAMIC_CLASS(wxStaticBox)
56};
dcf924a3 57
65391c8f 58#endif // _WX_GTKSTATICBOX_H_