]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/statbox.h
activating DrawRectangle optimization
[wxWidgets.git] / include / wx / gtk / statbox.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/statbox.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_GTKSTATICBOX_H_
11#define _WX_GTKSTATICBOX_H_
12
13//-----------------------------------------------------------------------------
14// wxStaticBox
15//-----------------------------------------------------------------------------
16
17class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase
18{
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
38 static wxVisualAttributes
39 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
40
41 // implementation
42
43 virtual bool GTKIsTransparentForMouse() const { return true; }
44
45 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
46
47 virtual void AddChild( wxWindowBase *child );
48
49protected:
50 virtual bool GTKWidgetNeedsMnemonic() const;
51 virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
52
53 void DoApplyWidgetStyle(GtkRcStyle *style);
54
55 DECLARE_DYNAMIC_CLASS(wxStaticBox)
56};
57
58#endif // _WX_GTKSTATICBOX_H_