1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13const char* wxStaticBoxNameStr; 14 15class wxStaticBox : wxControl 16{ 17 %Docstring 18 StaticBox() 19 StaticBox(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBoxNameStr) 20 21 A static box is a rectangle drawn around other windows to denote a 22 logical grouping of items. 23 %End 24 %TypeHeaderCode 25 #include <wx/statbox.h> 26 %End 27 28public: 29 wxStaticBox(); 30 %PreMethodCode 31 if (!wxPyCheckForApp()) return NULL; 32 %End 33 34 wxStaticBox( 35 wxWindow * parent /TransferThis/, 36 wxWindowID id = wxID_ANY, 37 const wxString & label = wxEmptyString, 38 const wxPoint & pos = wxDefaultPosition, 39 const wxSize & size = wxDefaultSize, 40 long style = 0, 41 const wxString & name = wxStaticBoxNameStr 42 ); 43 %PreMethodCode 44 if (!wxPyCheckForApp()) return NULL; 45 %End 46 47 ~wxStaticBox(); 48 49 bool Create( 50 wxWindow * parent /TransferThis/, 51 wxWindowID id = wxID_ANY, 52 const wxString & label = wxEmptyString, 53 const wxPoint & pos = wxDefaultPosition, 54 const wxSize & size = wxDefaultSize, 55 long style = 0, 56 const wxString & name = wxStaticBoxNameStr 57 ); 58 %Docstring 59 Create(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBoxNameStr) -> bool 60 61 Creates the static box for two-step construction. 62 %End 63 64 public: 65 virtual wxPoint GetClientAreaOrigin() const; 66 virtual bool Validate(); 67 virtual bool TransferDataToWindow(); 68 virtual bool TransferDataFromWindow(); 69 virtual void InitDialog(); 70 virtual bool AcceptsFocus() const; 71 virtual bool AcceptsFocusRecursively() const; 72 virtual bool AcceptsFocusFromKeyboard() const; 73 virtual void AddChild( wxWindowBase *child ); 74 virtual void RemoveChild( wxWindowBase *child ); 75 virtual void InheritAttributes(); 76 virtual bool ShouldInheritColours() const; 77 virtual void OnInternalIdle(); 78 virtual wxWindow *GetMainWindowOfCompositeControl(); 79 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 80 virtual void SetCanFocus(bool canFocus); 81 virtual bool Destroy(); 82 virtual void SetValidator( const wxValidator &validator ); 83 virtual wxValidator* GetValidator(); 84 85 86 protected: 87 virtual bool ProcessEvent(wxEvent & event); 88 virtual void DoEnable(bool enable); 89 virtual void DoGetPosition(int *x, int *y) const; 90 virtual void DoGetSize(int *width, int *height) const; 91 virtual void DoGetClientSize(int *width, int *height) const; 92 virtual wxSize DoGetBestSize() const; 93 virtual wxSize DoGetBestClientSize() const; 94 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 95 virtual void DoSetClientSize(int width, int height); 96 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 97 virtual wxSize DoGetBorderSize() const; 98 virtual void DoMoveWindow(int x, int y, int width, int height); 99 virtual void DoSetWindowVariant( wxWindowVariant variant); 100 virtual wxBorder GetDefaultBorder() const; 101 virtual wxBorder GetDefaultBorderForControl() const; 102 virtual void DoFreeze(); 103 virtual void DoThaw(); 104 virtual bool HasTransparentBackground(); 105 virtual bool TryBefore(wxEvent& event); 106 virtual bool TryAfter(wxEvent& event); 107 108 109 public: 110 111 112 static 113 wxVisualAttributes GetClassDefaultAttributes( 114 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 115 ); 116 %Docstring 117 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 118 %End 119 %PreMethodCode 120 if (!wxPyCheckForApp()) return NULL; 121 %End 122 123 virtual 124 void GetBordersForSizer( 125 int* borderTop /Out/, 126 int* borderOther /Out/ 127 ) const; 128 %Docstring 129 GetBordersForSizer() -> (borderTop, borderOther) 130 131 Returns extra space that may be needed for borders within a StaticBox. 132 %End 133 134}; // end of class wxStaticBox 135 136 137 138//--------------------------------------------------------------------------- 139 140