+
+ void SetDimension( int x, int y, int width, int height );
+
+ // Manage whether individual windows or sub-sizers are considered
+ // in the layout calculations or not.
+ %name(ShowWindow)void Show( wxWindow *window, bool show = TRUE );
+ %name(ShowSizer)void Show( wxSizer *sizer, bool show = TRUE );
+ %name(ShowPos)void Show( size_t index, bool show = TRUE );
+ %name(HideWindow)void Hide( wxWindow *window );
+ %name(HideSizer)void Hide( wxSizer *sizer );
+ %name(HidePos)void Hide( size_t index );
+ %name(IsShownWindow)bool IsShown( wxWindow *window );
+ %name(IsShownSizer)bool IsShown( wxSizer *sizer );
+ %name(IsShownPos)bool IsShown( size_t index );
+
+ %pragma(python) addtoclass = "
+ def Show(self, *args):
+ if type(args[0]) == type(1):
+ apply(self.ShowPos, args)
+ elif isinstance(args[0], wxSizerPtr):
+ apply(self.ShowSizer, args)
+ elif isinstance(args[0], wxWindowPtr):
+ apply(self.ShowWindow, args)
+ else:
+ raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
+
+ def Hide(self, *args):
+ if type(args[0]) == type(1):
+ apply(self.HidePos, args)
+ elif isinstance(args[0], wxSizerPtr):
+ apply(self.HideSizer, args)
+ elif isinstance(args[0], wxWindowPtr):
+ apply(self.HideWindow, args)
+ else:
+ raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
+
+ def IsShown(self, *args):
+ if type(args[0]) == type(1):
+ return apply(self.IsShownPos, args)
+ elif isinstance(args[0], wxSizerPtr):
+ return apply(self.IsShownSizer, args)
+ elif isinstance(args[0], wxWindowPtr):
+ return apply(self.IsShownWindow, args)
+ else:
+ raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
+"
+
+ // Recursively call wxWindow::Show () on all sizer items.
+ void ShowItems (bool show);
+