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 13class wxPanel : wxWindow 14{ 15 %Docstring 16 Panel() 17 Panel(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=TAB_TRAVERSAL, name=PanelNameStr) 18 19 A panel is a window on which controls are placed. 20 %End 21 %TypeHeaderCode 22 #include <wx/panel.h> 23 %End 24 25public: 26 wxPanel(); 27 %PreMethodCode 28 if (!wxPyCheckForApp()) return NULL; 29 %End 30 31 wxPanel( 32 wxWindow * parent /TransferThis/, 33 wxWindowID id = wxID_ANY, 34 const wxPoint & pos = wxDefaultPosition, 35 const wxSize & size = wxDefaultSize, 36 long style = wxTAB_TRAVERSAL, 37 const wxString & name = wxPanelNameStr 38 ); 39 %PreMethodCode 40 if (!wxPyCheckForApp()) return NULL; 41 %End 42 43 ~wxPanel(); 44 45 virtual 46 bool AcceptsFocus() const; 47 %Docstring 48 AcceptsFocus() -> bool 49 50 This method is overridden from wxWindow::AcceptsFocus() and returns 51 true only if there is no child window in the panel which can accept 52 the focus. 53 %End 54 55 bool Create( 56 wxWindow * parent /TransferThis/, 57 wxWindowID id = wxID_ANY, 58 const wxPoint & pos = wxDefaultPosition, 59 const wxSize & size = wxDefaultSize, 60 long style = wxTAB_TRAVERSAL, 61 const wxString & name = wxPanelNameStr 62 ); 63 %Docstring 64 Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=TAB_TRAVERSAL, name=PanelNameStr) -> bool 65 66 Used for two-step panel construction. 67 %End 68 69 virtual 70 void InitDialog(); 71 %Docstring 72 InitDialog() 73 74 Sends a wxInitDialogEvent, which in turn transfers data to the dialog 75 via validators. 76 %End 77 78 bool Layout(); 79 %Docstring 80 Layout() -> bool 81 82 See wxWindow::SetAutoLayout(): when auto layout is on, this function 83 gets called automatically when the window is resized. 84 %End 85 86 void SetFocus(); 87 %Docstring 88 SetFocus() 89 90 Overrides wxWindow::SetFocus(). 91 %End 92 93 void SetFocusIgnoringChildren(); 94 %Docstring 95 SetFocusIgnoringChildren() 96 97 In contrast to SetFocus() (see above) this will set the focus to the 98 panel even if there are child windows in the panel. 99 %End 100 101 public: 102 virtual wxPoint GetClientAreaOrigin() const; 103 virtual bool Validate(); 104 virtual bool TransferDataToWindow(); 105 virtual bool TransferDataFromWindow(); 106 virtual bool AcceptsFocusRecursively() const; 107 virtual bool AcceptsFocusFromKeyboard() const; 108 virtual void AddChild( wxWindowBase *child ); 109 virtual void RemoveChild( wxWindowBase *child ); 110 virtual void InheritAttributes(); 111 virtual bool ShouldInheritColours() const; 112 virtual void OnInternalIdle(); 113 virtual wxWindow *GetMainWindowOfCompositeControl(); 114 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 115 virtual void SetCanFocus(bool canFocus); 116 virtual bool Destroy(); 117 virtual void SetValidator( const wxValidator &validator ); 118 virtual wxValidator* GetValidator(); 119 120 121 protected: 122 virtual bool ProcessEvent(wxEvent & event); 123 virtual void DoEnable(bool enable); 124 virtual void DoGetPosition(int *x, int *y) const; 125 virtual void DoGetSize(int *width, int *height) const; 126 virtual void DoGetClientSize(int *width, int *height) const; 127 virtual wxSize DoGetBestSize() const; 128 virtual wxSize DoGetBestClientSize() const; 129 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 130 virtual void DoSetClientSize(int width, int height); 131 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 132 virtual wxSize DoGetBorderSize() const; 133 virtual void DoMoveWindow(int x, int y, int width, int height); 134 virtual void DoSetWindowVariant( wxWindowVariant variant); 135 virtual wxBorder GetDefaultBorder() const; 136 virtual wxBorder GetDefaultBorderForControl() const; 137 virtual void DoFreeze(); 138 virtual void DoThaw(); 139 virtual bool HasTransparentBackground(); 140 virtual bool TryBefore(wxEvent& event); 141 virtual bool TryAfter(wxEvent& event); 142 143 144 public: 145 146 147 static 148 wxVisualAttributes GetClassDefaultAttributes( 149 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 150 ); 151 %Docstring 152 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 153 %End 154 %PreMethodCode 155 if (!wxPyCheckForApp()) return NULL; 156 %End 157 158}; // end of class wxPanel 159 160 161%Extract(id=pycode_core) 162PyPanel = wx.deprecated(Panel, 'Use Panel instead.') 163 164%End 165 166 167//--------------------------------------------------------------------------- 168 169