/[pcsx2_0.9.7]/trunk/3rdparty/wxWidgets/include/wx/statbox.h
ViewVC logotype

Contents of /trunk/3rdparty/wxWidgets/include/wx/statbox.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 2217 byte(s)
exported r3113 from ./upstream/trunk
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: statbox.h
3 // Purpose: wxStaticBox base header
4 // Author: Julian Smart
5 // Modified by:
6 // Created:
7 // Copyright: (c) Julian Smart
8 // RCS-ID: $Id: statbox.h 37066 2006-01-23 03:27:34Z MR $
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATBOX_H_BASE_
13 #define _WX_STATBOX_H_BASE_
14
15 #include "wx/defs.h"
16
17 #if wxUSE_STATBOX
18
19 #include "wx/control.h"
20
21 extern WXDLLEXPORT_DATA(const wxChar) wxStaticBoxNameStr[];
22
23 // ----------------------------------------------------------------------------
24 // wxStaticBox: a grouping box with a label
25 // ----------------------------------------------------------------------------
26
27 class WXDLLEXPORT wxStaticBoxBase : public wxControl
28 {
29 public:
30 wxStaticBoxBase() { }
31
32 // overriden base class virtuals
33 virtual bool AcceptsFocus() const { return false; }
34 virtual bool HasTransparentBackground() { return true; }
35
36 // implementation only: this is used by wxStaticBoxSizer to account for the
37 // need for extra space taken by the static box
38 //
39 // the top border is the margin at the top (where the title is),
40 // borderOther is the margin on all other sides
41 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const
42 {
43 const int BORDER = 5; // FIXME: hardcoded value
44
45 *borderTop = GetLabel().empty() ? BORDER : GetCharHeight();
46 *borderOther = BORDER;
47 }
48
49 private:
50 DECLARE_NO_COPY_CLASS(wxStaticBoxBase)
51 };
52
53 #if defined(__WXUNIVERSAL__)
54 #include "wx/univ/statbox.h"
55 #elif defined(__WXMSW__)
56 #include "wx/msw/statbox.h"
57 #elif defined(__WXMOTIF__)
58 #include "wx/motif/statbox.h"
59 #elif defined(__WXGTK20__)
60 #include "wx/gtk/statbox.h"
61 #elif defined(__WXGTK__)
62 #include "wx/gtk1/statbox.h"
63 #elif defined(__WXMAC__)
64 #include "wx/mac/statbox.h"
65 #elif defined(__WXCOCOA__)
66 #include "wx/cocoa/statbox.h"
67 #elif defined(__WXPM__)
68 #include "wx/os2/statbox.h"
69 #endif
70
71 #endif // wxUSE_STATBOX
72
73 #endif
74 // _WX_STATBOX_H_BASE_

  ViewVC Help
Powered by ViewVC 1.1.22