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%ModuleHeaderCode 12#include <wx/wrapsizer.h> 13%End 14 15 16//--------------------------------------------------------------------------- 17 18enum 19{ 20 wxEXTEND_LAST_ON_EACH_LINE, 21 wxREMOVE_LEADING_SPACES, 22 wxWRAPSIZER_DEFAULT_FLAGS 23}; 24 25class wxWrapSizer : wxBoxSizer 26{ 27 %Docstring 28 WrapSizer(orient=HORIZONTAL, flags=WRAPSIZER_DEFAULT_FLAGS) 29 30 A wrap sizer lays out its items in a single line, like a box sizer as 31 long as there is space available in that direction. 32 %End 33 %TypeHeaderCode 34 #include <wx/wrapsizer.h> 35 %End 36 37public: 38 wxWrapSizer( 39 int orient = wxHORIZONTAL, 40 int flags = wxWRAPSIZER_DEFAULT_FLAGS 41 ); 42 43 bool InformFirstDirection( 44 int direction, 45 int size, 46 int availableOtherDir 47 ); 48 %Docstring 49 InformFirstDirection(direction, size, availableOtherDir) -> bool 50 51 Not used by an application. 52 %End 53 54 virtual 55 void RecalcSizes(); 56 %Docstring 57 RecalcSizes() 58 59 Implements the calculation of a box sizer's dimensions and then sets 60 the size of its children (calling wxWindow::SetSize if the child is a 61 window). 62 %End 63 64 virtual 65 wxSize CalcMin(); 66 %Docstring 67 CalcMin() -> Size 68 69 Implements the calculation of a box sizer's minimal. 70 %End 71 72 73protected: 74 virtual 75 bool IsSpaceItem( 76 wxSizerItem * item 77 ) const; 78 %Docstring 79 IsSpaceItem(item) -> bool 80 81 Can be overridden in the derived classes to treat some normal items as 82 spacers. 83 %End 84 85}; // end of class wxWrapSizer 86 87 88 89//--------------------------------------------------------------------------- 90 91