more properties
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5034c9dbba
commit
7012bb9f03
@ -297,7 +297,7 @@ it wasn't found at all. Raises an exception on non-Windows platforms.", "");
|
||||
#endif
|
||||
|
||||
%extend {
|
||||
DocStr(DisplayAvailable,
|
||||
DocStr(IsDisplayAvailable,
|
||||
"Tests if it is possible to create a GUI in the current environment.
|
||||
This will mean different things on the different platforms.
|
||||
|
||||
@ -312,10 +312,24 @@ This will mean different things on the different platforms.
|
||||
|
||||
* On MS Windows...
|
||||
", "");
|
||||
static bool DisplayAvailable() {
|
||||
static bool IsDisplayAvailable() {
|
||||
return wxPyTestDisplayAvailable();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
%property(AppName, GetAppName, SetAppName, doc="See `GetAppName` and `SetAppName`");
|
||||
%property(AssertMode, GetAssertMode, SetAssertMode, doc="See `GetAssertMode` and `SetAssertMode`");
|
||||
%property(ClassName, GetClassName, SetClassName, doc="See `GetClassName` and `SetClassName`");
|
||||
%property(ExitOnFrameDelete, GetExitOnFrameDelete, SetExitOnFrameDelete, doc="See `GetExitOnFrameDelete` and `SetExitOnFrameDelete`");
|
||||
%property(LayoutDirection, GetLayoutDirection, doc="See `GetLayoutDirection`");
|
||||
%property(PrintMode, GetPrintMode, SetPrintMode, doc="See `GetPrintMode` and `SetPrintMode`");
|
||||
%property(TopWindow, GetTopWindow, SetTopWindow, doc="See `GetTopWindow` and `SetTopWindow`");
|
||||
%property(Traits, GetTraits, doc="See `GetTraits`");
|
||||
%property(UseBestVisual, GetUseBestVisual, SetUseBestVisual, doc="See `GetUseBestVisual` and `SetUseBestVisual`");
|
||||
%property(VendorName, GetVendorName, SetVendorName, doc="See `GetVendorName` and `SetVendorName`");
|
||||
|
||||
%property(Active, IsActive);
|
||||
};
|
||||
|
||||
|
||||
|
@ -532,6 +532,11 @@ public:
|
||||
// the distance between two rows
|
||||
int GetRowStride() const { return m_stride; }
|
||||
|
||||
%property(Height, GetHeight, doc="See `GetHeight`");
|
||||
%property(Origin, GetOrigin, doc="See `GetOrigin`");
|
||||
%property(RowStride, GetRowStride, doc="See `GetRowStride`");
|
||||
%property(Size, GetSize, doc="See `GetSize`");
|
||||
%property(Width, GetWidth, doc="See `GetWidth`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -488,6 +488,9 @@ public:
|
||||
DocDeclStr(
|
||||
void , SetSelection(int sel),
|
||||
"Set the current selected item to sel", "");
|
||||
|
||||
%property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`");
|
||||
%property(StringSelection, GetStringSelection, doc="See `GetStringSelection`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -1561,6 +1561,8 @@ output. Default is 720ppi.", "");
|
||||
DocDeclStr(
|
||||
static int , GetResolution(),
|
||||
"Return resolution used in PostScript output.", "");
|
||||
|
||||
%property(PrintData, GetPrintData, SetPrintData, doc="See `GetPrintData` and `SetPrintData`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -720,6 +720,9 @@ the scrollbar.", "");
|
||||
|
||||
void SetOrientation(int orient);
|
||||
void SetPosition(int pos);
|
||||
|
||||
%property(Orientation, GetOrientation, SetOrientation, doc="See `GetOrientation` and `SetOrientation`");
|
||||
%property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`");
|
||||
};
|
||||
|
||||
|
||||
@ -768,6 +771,9 @@ need to query the window itself for the current position in that case.", "");
|
||||
|
||||
void SetOrientation(int orient);
|
||||
void SetPosition(int pos);
|
||||
|
||||
%property(Orientation, GetOrientation, SetOrientation, doc="See `GetOrientation` and `SetOrientation`");
|
||||
%property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@ -1155,6 +1161,9 @@ public:
|
||||
bool , HasCursor() const,
|
||||
"Returns true if the cursor specified by this event is a valid cursor.", "");
|
||||
|
||||
%property(Cursor, GetCursor, SetCursor, doc="See `GetCursor` and `SetCursor`");
|
||||
%property(X, GetX, doc="See `GetX`");
|
||||
%property(Y, GetY, doc="See `GetY`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@ -1472,9 +1481,11 @@ event.", "");
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
wxSize m_size;
|
||||
wxRect m_rect;
|
||||
|
||||
%property(Rect, GetRect, SetRect, doc="See `GetRect` and `SetRect`");
|
||||
%property(Size, GetSize, SetSize, doc="See `GetSize` and `SetSize`");
|
||||
};
|
||||
|
||||
|
||||
@ -1853,6 +1864,7 @@ public:
|
||||
void SetShow(bool show);
|
||||
bool GetShow() const;
|
||||
|
||||
%property(Show, GetShow, SetShow, doc="See `GetShow` and `SetShow`");
|
||||
};
|
||||
|
||||
|
||||
@ -2257,6 +2269,7 @@ public:
|
||||
void SetChangedWindow(wxWindow* win);
|
||||
wxWindow* GetChangedWindow();
|
||||
|
||||
%property(ChangedWindow, GetChangedWindow, SetChangedWindow, doc="See `GetChangedWindow` and `SetChangedWindow`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@ -2280,6 +2293,8 @@ public:
|
||||
"App should set this if it changes the palette.", "");
|
||||
|
||||
bool GetPaletteRealized() const;
|
||||
|
||||
%property(PaletteRealized, GetPaletteRealized, SetPaletteRealized, doc="See `GetPaletteRealized` and `SetPaletteRealized`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -708,6 +708,22 @@ usually, but not necessarily, the larger one.", "");
|
||||
__safe_for_unpickling__ = True
|
||||
def __reduce__(self): return (wx.Rect, self.Get())
|
||||
}
|
||||
|
||||
|
||||
%property(Bottom, GetBottom, SetBottom, doc="See `GetBottom` and `SetBottom`");
|
||||
%property(BottomRight, GetBottomRight, SetBottomRight, doc="See `GetBottomRight` and `SetBottomRight`");
|
||||
%property(Height, GetHeight, SetHeight, doc="See `GetHeight` and `SetHeight`");
|
||||
%property(Left, GetLeft, SetLeft, doc="See `GetLeft` and `SetLeft`");
|
||||
%property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`");
|
||||
%property(Right, GetRight, SetRight, doc="See `GetRight` and `SetRight`");
|
||||
%property(Size, GetSize, SetSize, doc="See `GetSize` and `SetSize`");
|
||||
%property(Top, GetTop, SetTop, doc="See `GetTop` and `SetTop`");
|
||||
%property(TopLeft, GetTopLeft, SetTopLeft, doc="See `GetTopLeft` and `SetTopLeft`");
|
||||
%property(Width, GetWidth, SetWidth, doc="See `GetWidth` and `SetWidth`");
|
||||
%property(X, GetX, SetX, doc="See `GetX` and `SetX`");
|
||||
%property(Y, GetY, SetY, doc="See `GetY` and `SetY`");
|
||||
|
||||
%property(Empty, IsEmpty, doc="See `IsEmpty`");
|
||||
};
|
||||
|
||||
|
||||
@ -857,6 +873,12 @@ public:
|
||||
__safe_for_unpickling__ = True
|
||||
def __reduce__(self): return (wx.Point2D, self.Get())
|
||||
}
|
||||
|
||||
%property(Floor, GetFloor, doc="See `GetFloor`");
|
||||
%property(Rounded, GetRounded, doc="See `GetRounded`");
|
||||
%property(VectorAngle, GetVectorAngle, SetVectorAngle, doc="See `GetVectorAngle` and `SetVectorAngle`");
|
||||
%property(VectorLength, GetVectorLength, SetVectorLength, doc="See `GetVectorLength` and `SetVectorLength`");
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -399,6 +399,22 @@ public:
|
||||
// -----------------
|
||||
|
||||
bool IsOk() const;
|
||||
|
||||
%property(ArchName, GetArchName, doc="See `GetArchName`");
|
||||
%property(Architecture, GetArchitecture, SetArchitecture, doc="See `GetArchitecture` and `SetArchitecture`");
|
||||
%property(Endianness, GetEndianness, SetEndianness, doc="See `GetEndianness` and `SetEndianness`");
|
||||
%property(EndiannessName, GetEndiannessName, doc="See `GetEndiannessName`");
|
||||
%property(OSMajorVersion, GetOSMajorVersion, doc="See `GetOSMajorVersion`");
|
||||
%property(OSMinorVersion, GetOSMinorVersion, doc="See `GetOSMinorVersion`");
|
||||
%property(OperatingSystemFamilyName, GetOperatingSystemFamilyName, doc="See `GetOperatingSystemFamilyName`");
|
||||
%property(OperatingSystemId, GetOperatingSystemId, SetOperatingSystemId, doc="See `GetOperatingSystemId` and `SetOperatingSystemId`");
|
||||
%property(OperatingSystemIdName, GetOperatingSystemIdName, doc="See `GetOperatingSystemIdName`");
|
||||
%property(PortId, GetPortId, SetPortId, doc="See `GetPortId` and `SetPortId`");
|
||||
%property(PortIdName, GetPortIdName, doc="See `GetPortIdName`");
|
||||
%property(PortIdShortName, GetPortIdShortName, doc="See `GetPortIdShortName`");
|
||||
%property(ToolkitMajorVersion, GetToolkitMajorVersion, doc="See `GetToolkitMajorVersion`");
|
||||
%property(ToolkitMinorVersion, GetToolkitMinorVersion, doc="See `GetToolkitMinorVersion`");
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -37,6 +37,8 @@ public:
|
||||
delete self;
|
||||
}
|
||||
}
|
||||
|
||||
%property(ClassName, GetClassName, doc="See `GetClassName`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -36,6 +36,8 @@ public:
|
||||
bool Ok();
|
||||
|
||||
%pythoncode { def __nonzero__(self): return self.Ok() }
|
||||
|
||||
%property(ColoursCount, GetColoursCount, doc="See `GetColoursCount`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -197,6 +197,11 @@ public:
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
%property(ScaleX, GetScaleX, doc="See `GetScaleX`");
|
||||
%property(ScaleY, GetScaleY, doc="See `GetScaleY`");
|
||||
%property(TargetWindow, GetTargetWindow, SetTargetWindow, doc="See `GetTargetWindow` and `SetTargetWindow`");
|
||||
%property(ViewStart, GetViewStart, doc="See `GetViewStart`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -111,6 +111,14 @@ public:
|
||||
bool __ne__(const wxPen* other) { return other ? (*self != *other) : true; }
|
||||
}
|
||||
%pythoncode { def __nonzero__(self): return self.Ok() }
|
||||
|
||||
%property(Cap, GetCap, SetCap, doc="See `GetCap` and `SetCap`");
|
||||
%property(Colour, GetColour, SetColour, doc="See `GetColour` and `SetColour`");
|
||||
%property(DashCount, GetDashCount, doc="See `GetDashCount`");
|
||||
%property(Dashes, GetDashes, SetDashes, doc="See `GetDashes` and `SetDashes`");
|
||||
%property(Join, GetJoin, SetJoin, doc="See `GetJoin` and `SetJoin`");
|
||||
%property(Style, GetStyle, SetStyle, doc="See `GetStyle` and `SetStyle`");
|
||||
%property(Width, GetWidth, SetWidth, doc="See `GetWidth` and `SetWidth`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -119,6 +119,16 @@ etc).", "");
|
||||
wxControl *, GetPickerCtrl(),
|
||||
"", "");
|
||||
|
||||
|
||||
%property(InternalMargin, GetInternalMargin, SetInternalMargin, doc="See `GetInternalMargin` and `SetInternalMargin`");
|
||||
%property(PickerCtrl, GetPickerCtrl, doc="See `GetPickerCtrl`");
|
||||
%property(PickerCtrlProportion, GetPickerCtrlProportion, SetPickerCtrlProportion, doc="See `GetPickerCtrlProportion` and `SetPickerCtrlProportion`");
|
||||
%property(TextCtrl, GetTextCtrl, doc="See `GetTextCtrl`");
|
||||
%property(TextCtrlProportion, GetTextCtrlProportion, SetTextCtrlProportion, doc="See `GetTextCtrlProportion` and `SetTextCtrlProportion`");
|
||||
|
||||
%property(TextCtrlGrowable, IsTextCtrlGrowable, SetTextCtrlGrowable, doc="See `IsTextCtrlGrowable` and `SetTextCtrlGrowable`");
|
||||
%property(PickerCtrlGrowable, IsPickerCtrlGrowable, SetPickerCtrlGrowable, doc="See `IsPickerCtrlGrowable` and `SetPickerCtrlGrowable`");
|
||||
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -154,6 +154,19 @@ public:
|
||||
void SetPrinterTranslation(long x, long y);
|
||||
#endif
|
||||
|
||||
%property(Bin, GetBin, SetBin, doc="See `GetBin` and `SetBin`");
|
||||
%property(Collate, GetCollate, SetCollate, doc="See `GetCollate` and `SetCollate`");
|
||||
%property(Colour, GetColour, SetColour, doc="See `GetColour` and `SetColour`");
|
||||
%property(Duplex, GetDuplex, SetDuplex, doc="See `GetDuplex` and `SetDuplex`");
|
||||
%property(Filename, GetFilename, SetFilename, doc="See `GetFilename` and `SetFilename`");
|
||||
%property(NoCopies, GetNoCopies, SetNoCopies, doc="See `GetNoCopies` and `SetNoCopies`");
|
||||
%property(Orientation, GetOrientation, SetOrientation, doc="See `GetOrientation` and `SetOrientation`");
|
||||
%property(PaperId, GetPaperId, SetPaperId, doc="See `GetPaperId` and `SetPaperId`");
|
||||
%property(PaperSize, GetPaperSize, SetPaperSize, doc="See `GetPaperSize` and `SetPaperSize`");
|
||||
%property(PrintMode, GetPrintMode, SetPrintMode, doc="See `GetPrintMode` and `SetPrintMode`");
|
||||
%property(PrinterName, GetPrinterName, SetPrinterName, doc="See `GetPrinterName` and `SetPrinterName`");
|
||||
%property(PrivData, GetPrivData, SetPrivData, doc="See `GetPrivData` and `SetPrivData`");
|
||||
%property(Quality, GetQuality, SetQuality, doc="See `GetQuality` and `SetQuality`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@ -209,6 +222,24 @@ public:
|
||||
void CalculatePaperSizeFromId();
|
||||
|
||||
%pythoncode { def __nonzero__(self): return self.Ok() }
|
||||
|
||||
%property(DefaultInfo, GetDefaultInfo, SetDefaultInfo, doc="See `GetDefaultInfo` and `SetDefaultInfo`");
|
||||
%property(DefaultMinMargins, GetDefaultMinMargins, SetDefaultMinMargins, doc="See `GetDefaultMinMargins` and `SetDefaultMinMargins`");
|
||||
|
||||
// %property(EnableHelp, GetEnableHelp, doc="See `GetEnableHelp`");
|
||||
// %property(EnableMargins, GetEnableMargins, doc="See `GetEnableMargins`");
|
||||
// %property(EnableOrientation, GetEnableOrientation, doc="See `GetEnableOrientation`");
|
||||
// %property(EnablePaper, GetEnablePaper, doc="See `GetEnablePaper`");
|
||||
// %property(EnablePrinter, GetEnablePrinter, doc="See `GetEnablePrinter`");
|
||||
|
||||
%property(MarginBottomRight, GetMarginBottomRight, SetMarginBottomRight, doc="See `GetMarginBottomRight` and `SetMarginBottomRight`");
|
||||
%property(MarginTopLeft, GetMarginTopLeft, SetMarginTopLeft, doc="See `GetMarginTopLeft` and `SetMarginTopLeft`");
|
||||
%property(MinMarginBottomRight, GetMinMarginBottomRight, SetMinMarginBottomRight, doc="See `GetMinMarginBottomRight` and `SetMinMarginBottomRight`");
|
||||
%property(MinMarginTopLeft, GetMinMarginTopLeft, SetMinMarginTopLeft, doc="See `GetMinMarginTopLeft` and `SetMinMarginTopLeft`");
|
||||
%property(PaperId, GetPaperId, SetPaperId, doc="See `GetPaperId` and `SetPaperId`");
|
||||
%property(PaperSize, GetPaperSize, SetPaperSize, doc="See `GetPaperSize` and `SetPaperSize`");
|
||||
%property(PrintData, GetPrintData, SetPrintData, doc="See `GetPrintData` and `SetPrintData`");
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -230,6 +261,10 @@ public:
|
||||
int ShowModal();
|
||||
|
||||
%pythoncode { def Destroy(self): pass }
|
||||
|
||||
%property(PageSetupData, GetPageSetupData, doc="See `GetPageSetupData`");
|
||||
%property(PageSetupDialogData, GetPageSetupDialogData, doc="See `GetPageSetupDialogData`");
|
||||
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@ -286,6 +321,21 @@ public:
|
||||
void SetPrintData(const wxPrintData& printData);
|
||||
|
||||
%pythoncode { def __nonzero__(self): return self.Ok() }
|
||||
|
||||
%property(AllPages, GetAllPages, SetAllPages, doc="See `GetAllPages` and `SetAllPages`");
|
||||
%property(Collate, GetCollate, SetCollate, doc="See `GetCollate` and `SetCollate`");
|
||||
// %property(EnableHelp, GetEnableHelp, doc="See `GetEnableHelp`");
|
||||
// %property(EnablePageNumbers, GetEnablePageNumbers, doc="See `GetEnablePageNumbers`");
|
||||
// %property(EnablePrintToFile, GetEnablePrintToFile, doc="See `GetEnablePrintToFile`");
|
||||
// %property(EnableSelection, GetEnableSelection, doc="See `GetEnableSelection`");
|
||||
%property(FromPage, GetFromPage, SetFromPage, doc="See `GetFromPage` and `SetFromPage`");
|
||||
%property(MaxPage, GetMaxPage, SetMaxPage, doc="See `GetMaxPage` and `SetMaxPage`");
|
||||
%property(MinPage, GetMinPage, SetMinPage, doc="See `GetMinPage` and `SetMinPage`");
|
||||
%property(NoCopies, GetNoCopies, SetNoCopies, doc="See `GetNoCopies` and `SetNoCopies`");
|
||||
%property(PrintData, GetPrintData, SetPrintData, doc="See `GetPrintData` and `SetPrintData`");
|
||||
%property(PrintToFile, GetPrintToFile, SetPrintToFile, doc="See `GetPrintToFile` and `SetPrintToFile`");
|
||||
%property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`");
|
||||
%property(ToPage, GetToPage, SetToPage, doc="See `GetToPage` and `SetToPage`");
|
||||
};
|
||||
|
||||
|
||||
@ -314,6 +364,10 @@ public:
|
||||
virtual wxDC *GetPrintDC();
|
||||
|
||||
%pythoncode { def Destroy(self): pass }
|
||||
|
||||
%property(PrintDC, GetPrintDC, doc="See `GetPrintDC`");
|
||||
%property(PrintData, GetPrintData, doc="See `GetPrintData`");
|
||||
%property(PrintDialogData, GetPrintDialogData, doc="See `GetPrintDialogData`");
|
||||
};
|
||||
|
||||
|
||||
@ -348,6 +402,8 @@ public:
|
||||
bool GetAbort();
|
||||
static wxPrinterError GetLastError();
|
||||
|
||||
%property(Abort, GetAbort, doc="See `GetAbort`");
|
||||
%property(PrintDialogData, GetPrintDialogData, doc="See `GetPrintDialogData`");
|
||||
};
|
||||
|
||||
|
||||
@ -476,6 +532,14 @@ public:
|
||||
%MAKE_BASE_FUNC(Printout, OnEndPrinting);
|
||||
%MAKE_BASE_FUNC(Printout, OnPreparePrinting);
|
||||
%MAKE_BASE_FUNC(Printout, GetPageInfo);
|
||||
|
||||
|
||||
%property(DC, GetDC, SetDC, doc="See `GetDC` and `SetDC`");
|
||||
%property(PPIPrinter, GetPPIPrinter, SetPPIPrinter, doc="See `GetPPIPrinter` and `SetPPIPrinter`");
|
||||
%property(PPIScreen, GetPPIScreen, SetPPIScreen, doc="See `GetPPIScreen` and `SetPPIScreen`");
|
||||
%property(PageSizeMM, GetPageSizeMM, SetPageSizeMM, doc="See `GetPageSizeMM` and `SetPageSizeMM`");
|
||||
%property(PageSizePixels, GetPageSizePixels, SetPageSizePixels, doc="See `GetPageSizePixels` and `SetPageSizePixels`");
|
||||
%property(Title, GetTitle, doc="See `GetTitle`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@ -518,6 +582,8 @@ public:
|
||||
void CreateCanvas();
|
||||
|
||||
wxPreviewControlBar* GetControlBar() const;
|
||||
|
||||
%property(ControlBar, GetControlBar, doc="See `GetControlBar`");
|
||||
};
|
||||
|
||||
|
||||
@ -566,6 +632,9 @@ public:
|
||||
void OnFirst();
|
||||
void OnLast();
|
||||
void OnGoto();
|
||||
|
||||
%property(PrintPreview, GetPrintPreview, doc="See `GetPrintPreview`");
|
||||
%property(ZoomControl, GetZoomControl, SetZoomControl, doc="See `GetZoomControl` and `SetZoomControl`");
|
||||
};
|
||||
|
||||
|
||||
@ -630,6 +699,16 @@ public:
|
||||
virtual void DetermineScaling();
|
||||
|
||||
%pythoncode { def __nonzero__(self): return self.Ok() }
|
||||
|
||||
%property(Canvas, GetCanvas, SetCanvas, doc="See `GetCanvas` and `SetCanvas`");
|
||||
%property(CurrentPage, GetCurrentPage, SetCurrentPage, doc="See `GetCurrentPage` and `SetCurrentPage`");
|
||||
%property(Frame, GetFrame, SetFrame, doc="See `GetFrame` and `SetFrame`");
|
||||
%property(MaxPage, GetMaxPage, doc="See `GetMaxPage`");
|
||||
%property(MinPage, GetMinPage, doc="See `GetMinPage`");
|
||||
%property(PrintDialogData, GetPrintDialogData, doc="See `GetPrintDialogData`");
|
||||
%property(Printout, GetPrintout, SetPrintout, doc="See `GetPrintout` and `SetPrintout`");
|
||||
%property(PrintoutForPrinting, GetPrintoutForPrinting, doc="See `GetPrintoutForPrinting`");
|
||||
%property(Zoom, GetZoom, SetZoom, doc="See `GetZoom` and `SetZoom`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -130,6 +130,14 @@ public:
|
||||
// return True if any input is available on the child process stdout/err
|
||||
bool IsInputAvailable() const;
|
||||
bool IsErrorAvailable() const;
|
||||
|
||||
%property(ErrorStream, GetErrorStream, doc="See `GetErrorStream`");
|
||||
%property(InputStream, GetInputStream, doc="See `GetInputStream`");
|
||||
%property(OutputStream, GetOutputStream, doc="See `GetOutputStream`");
|
||||
|
||||
%property(InputOpened, IsInputOpened);
|
||||
%property(InputAvailable, IsInputAvailable);
|
||||
%property(ErrorAvailable, IsErrorAvailable);
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@ -141,6 +149,9 @@ public:
|
||||
int GetPid();
|
||||
int GetExitCode();
|
||||
int m_pid, m_exitcode;
|
||||
|
||||
%property(ExitCode, GetExitCode, doc="See `GetExitCode`");
|
||||
%property(Pid, GetPid, doc="See `GetPid`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -578,4 +578,8 @@ a logical operation. wx.INVERT is commonly used for drawing rubber
|
||||
bands or moving outlines, since drawing twice reverts to the original
|
||||
colour.
|
||||
", "");
|
||||
|
||||
|
||||
%property(IdBounds, GetIdBounds, SetIdBounds, doc="See `GetIdBounds` and `SetIdBounds`");
|
||||
%property(Len, GetLen, doc="See `GetLen`");
|
||||
};
|
||||
|
@ -99,6 +99,12 @@ public:
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
%property(ColumnCount, GetColumnCount, doc="See `GetColumnCount`");
|
||||
%property(Count, GetCount, doc="See `GetCount`");
|
||||
%property(RowCount, GetRowCount, doc="See `GetRowCount`");
|
||||
%property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`");
|
||||
%property(StringSelection, GetStringSelection, SetStringSelection, doc="See `GetStringSelection` and `SetStringSelection`");
|
||||
};
|
||||
|
||||
|
||||
@ -135,6 +141,8 @@ public:
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
%property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -96,6 +96,9 @@ public:
|
||||
%Rename(UnionBitmapColour, bool, Union(const wxBitmap& bmp,
|
||||
const wxColour& transColour,
|
||||
int tolerance = 0));
|
||||
|
||||
|
||||
%property(Box, GetBox, doc="See `GetBox`");
|
||||
};
|
||||
|
||||
|
||||
@ -126,6 +129,14 @@ public:
|
||||
return self->operator bool();
|
||||
}
|
||||
};
|
||||
|
||||
%property(H, GetH, doc="See `GetH`");
|
||||
%property(Height, GetHeight, doc="See `GetHeight`");
|
||||
%property(Rect, GetRect, doc="See `GetRect`");
|
||||
%property(W, GetW, doc="See `GetW`");
|
||||
%property(Width, GetWidth, doc="See `GetWidth`");
|
||||
%property(X, GetX, doc="See `GetX`");
|
||||
%property(Y, GetY, doc="See `GetY`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -274,7 +274,10 @@ renderer. Returns the previous renderer used with Set or None.", "");
|
||||
virtual wxRendererVersion , GetVersion() const,
|
||||
"Returns the version of the renderer. Will be used for ensuring
|
||||
compatibility of dynamically loaded renderers.", "");
|
||||
|
||||
|
||||
%property(SplitterParams, GetSplitterParams, doc="See `GetSplitterParams`");
|
||||
%property(Version, GetVersion, doc="See `GetVersion`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -112,6 +112,13 @@ public:
|
||||
|
||||
// Resizes subwindows
|
||||
void SizeWindows();
|
||||
|
||||
%property(DefaultBorderSize, GetDefaultBorderSize, SetDefaultBorderSize, doc="See `GetDefaultBorderSize` and `SetDefaultBorderSize`");
|
||||
%property(ExtraBorderSize, GetExtraBorderSize, SetExtraBorderSize, doc="See `GetExtraBorderSize` and `SetExtraBorderSize`");
|
||||
%property(MaximumSizeX, GetMaximumSizeX, SetMaximumSizeX, doc="See `GetMaximumSizeX` and `SetMaximumSizeX`");
|
||||
%property(MaximumSizeY, GetMaximumSizeY, SetMaximumSizeY, doc="See `GetMaximumSizeY` and `SetMaximumSizeY`");
|
||||
%property(MinimumSizeX, GetMinimumSizeX, SetMinimumSizeX, doc="See `GetMinimumSizeX` and `SetMinimumSizeX`");
|
||||
%property(MinimumSizeY, GetMinimumSizeY, SetMinimumSizeY, doc="See `GetMinimumSizeY` and `SetMinimumSizeY`");
|
||||
};
|
||||
|
||||
|
||||
@ -138,6 +145,10 @@ public:
|
||||
//// dragging the top below the bottom)
|
||||
void SetDragStatus(wxSashDragStatus status);
|
||||
wxSashDragStatus GetDragStatus() const;
|
||||
|
||||
%property(DragRect, GetDragRect, SetDragRect, doc="See `GetDragRect` and `SetDragRect`");
|
||||
%property(DragStatus, GetDragStatus, SetDragStatus, doc="See `GetDragStatus` and `SetDragStatus`");
|
||||
%property(Edge, GetEdge, SetEdge, doc="See `GetEdge` and `SetEdge`");
|
||||
};
|
||||
|
||||
|
||||
@ -207,6 +218,12 @@ public:
|
||||
|
||||
void SetAlignment(wxLayoutAlignment align);
|
||||
wxLayoutAlignment GetAlignment() const;
|
||||
|
||||
%property(Alignment, GetAlignment, SetAlignment, doc="See `GetAlignment` and `SetAlignment`");
|
||||
%property(Flags, GetFlags, SetFlags, doc="See `GetFlags` and `SetFlags`");
|
||||
%property(Orientation, GetOrientation, SetOrientation, doc="See `GetOrientation` and `SetOrientation`");
|
||||
%property(RequestedLength, GetRequestedLength, SetRequestedLength, doc="See `GetRequestedLength` and `SetRequestedLength`");
|
||||
%property(Size, GetSize, SetSize, doc="See `GetSize` and `SetSize`");
|
||||
};
|
||||
|
||||
|
||||
@ -226,7 +243,6 @@ public:
|
||||
|
||||
%property(Flags, GetFlags, SetFlags, doc="See `GetFlags` and `SetFlags`");
|
||||
%property(Rect, GetRect, SetRect, doc="See `GetRect` and `SetRect`");
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -266,6 +282,9 @@ public:
|
||||
void SetAlignment(wxLayoutAlignment alignment);
|
||||
void SetDefaultSize(const wxSize& size);
|
||||
void SetOrientation(wxLayoutOrientation orientation);
|
||||
|
||||
%property(Alignment, GetAlignment, SetAlignment, doc="See `GetAlignment` and `SetAlignment`");
|
||||
%property(Orientation, GetOrientation, SetOrientation, doc="See `GetOrientation` and `SetOrientation`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -61,6 +61,11 @@ public:
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
%property(PageSize, GetPageSize, doc="See `GetPageSize`");
|
||||
%property(Range, GetRange, doc="See `GetRange`");
|
||||
%property(ThumbPosition, GetThumbPosition, SetThumbPosition, doc="See `GetThumbPosition` and `SetThumbPosition`");
|
||||
%property(ThumbSize, GetThumbSize, doc="See `GetThumbSize`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -283,6 +283,20 @@ isn't any.", "");
|
||||
self->SetUserData(data);
|
||||
}
|
||||
}
|
||||
|
||||
%property(Border, GetBorder, SetBorder, doc="See `GetBorder` and `SetBorder`");
|
||||
%property(Flag, GetFlag, SetFlag, doc="See `GetFlag` and `SetFlag`");
|
||||
%property(MinSize, GetMinSize, doc="See `GetMinSize`");
|
||||
%property(MinSizeWithBorder, GetMinSizeWithBorder, doc="See `GetMinSizeWithBorder`");
|
||||
%property(Position, GetPosition, doc="See `GetPosition`");
|
||||
%property(Proportion, GetProportion, SetProportion, doc="See `GetProportion` and `SetProportion`");
|
||||
%property(Ratio, GetRatio, SetRatio, doc="See `GetRatio` and `SetRatio`");
|
||||
%property(Rect, GetRect, doc="See `GetRect`");
|
||||
%property(Size, GetSize, doc="See `GetSize`");
|
||||
%property(Sizer, GetSizer, SetSizer, doc="See `GetSizer` and `SetSizer`");
|
||||
%property(Spacer, GetSpacer, SetSpacer, doc="See `GetSpacer` and `SetSpacer`");
|
||||
%property(UserData, GetUserData, SetUserData, doc="See `GetUserData` and `SetUserData`");
|
||||
%property(Window, GetWindow, SetWindow, doc="See `GetWindow` and `SetWindow`");
|
||||
};
|
||||
|
||||
|
||||
@ -1052,6 +1066,11 @@ the item.", "");
|
||||
void , ShowItems(bool show),
|
||||
"Recursively call `wx.SizerItem.Show` on all sizer items.", "");
|
||||
|
||||
%property(Children, GetChildren, doc="See `GetChildren`");
|
||||
%property(ContainingWindow, GetContainingWindow, SetContainingWindow, doc="See `GetContainingWindow` and `SetContainingWindow`");
|
||||
%property(MinSize, GetMinSize, SetMinSize, doc="See `GetMinSize` and `SetMinSize`");
|
||||
%property(Position, GetPosition, doc="See `GetPosition`");
|
||||
%property(Size, GetSize, doc="See `GetSize`");
|
||||
};
|
||||
|
||||
|
||||
@ -1194,6 +1213,7 @@ public:
|
||||
wxStaticBox *, GetStaticBox(),
|
||||
"Returns the static box associated with this sizer.", "");
|
||||
|
||||
%property(StaticBox, GetStaticBox, doc="See `GetStaticBox`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@ -1473,6 +1493,12 @@ specifc manner.", "");
|
||||
wxButton* GetNegativeButton() const;
|
||||
wxButton* GetCancelButton() const;
|
||||
wxButton* GetHelpButton() const;
|
||||
|
||||
%property(AffirmativeButton, GetAffirmativeButton, SetAffirmativeButton, doc="See `GetAffirmativeButton` and `SetAffirmativeButton`");
|
||||
%property(ApplyButton, GetApplyButton, doc="See `GetApplyButton`");
|
||||
%property(CancelButton, GetCancelButton, SetCancelButton, doc="See `GetCancelButton` and `SetCancelButton`");
|
||||
%property(HelpButton, GetHelpButton, doc="See `GetHelpButton`");
|
||||
%property(NegativeButton, GetNegativeButton, SetNegativeButton, doc="See `GetNegativeButton` and `SetNegativeButton`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -104,6 +104,16 @@ public:
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
%property(LineSize, GetLineSize, SetLineSize, doc="See `GetLineSize` and `SetLineSize`");
|
||||
%property(Max, GetMax, SetMax, doc="See `GetMax` and `SetMax`");
|
||||
%property(Min, GetMin, SetMin, doc="See `GetMin` and `SetMin`");
|
||||
%property(PageSize, GetPageSize, SetPageSize, doc="See `GetPageSize` and `SetPageSize`");
|
||||
%property(SelEnd, GetSelEnd, doc="See `GetSelEnd`");
|
||||
%property(SelStart, GetSelStart, doc="See `GetSelStart`");
|
||||
%property(ThumbLength, GetThumbLength, SetThumbLength, doc="See `GetThumbLength` and `SetThumbLength`");
|
||||
%property(TickFreq, GetTickFreq, SetTickFreq, doc="See `GetTickFreq` and `SetTickFreq`");
|
||||
%property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -72,6 +72,10 @@ public:
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
%property(Max, GetMax, SetMax, doc="See `GetMax` and `SetMax`");
|
||||
%property(Min, GetMin, SetMin, doc="See `GetMin` and `SetMin`");
|
||||
%property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
|
||||
};
|
||||
|
||||
|
||||
@ -119,6 +123,10 @@ public:
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
%property(Max, GetMax, doc="See `GetMax`");
|
||||
%property(Min, GetMin, doc="See `GetMin`");
|
||||
%property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
|
||||
};
|
||||
|
||||
|
||||
@ -132,6 +140,8 @@ public:
|
||||
// get the current value of the control
|
||||
int GetPosition() const;
|
||||
void SetPosition(int pos);
|
||||
|
||||
%property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -364,10 +364,22 @@ the window may be unsplit even if minimum size is non-zero.", "");
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
%property(BorderSize, GetBorderSize, SetBorderSize, doc="See `GetBorderSize` and `SetBorderSize`");
|
||||
%property(MinimumPaneSize, GetMinimumPaneSize, SetMinimumPaneSize, doc="See `GetMinimumPaneSize` and `SetMinimumPaneSize`");
|
||||
%property(NeedUpdating, GetNeedUpdating, SetNeedUpdating, doc="See `GetNeedUpdating` and `SetNeedUpdating`");
|
||||
%property(SashGravity, GetSashGravity, SetSashGravity, doc="See `GetSashGravity` and `SetSashGravity`");
|
||||
%property(SashPosition, GetSashPosition, SetSashPosition, doc="See `GetSashPosition` and `SetSashPosition`");
|
||||
%property(SashSize, GetSashSize, SetSashSize, doc="See `GetSashSize` and `SetSashSize`");
|
||||
%property(SplitMode, GetSplitMode, SetSplitMode, doc="See `GetSplitMode` and `SetSplitMode`");
|
||||
%property(Window1, GetWindow1, doc="See `GetWindow1`");
|
||||
%property(Window2, GetWindow2, doc="See `GetWindow2`");
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
DocStr(wxSplitterEvent,
|
||||
"This class represents the events generated by a splitter control.", "");
|
||||
|
||||
@ -409,6 +421,10 @@ EVT_SPLITTER_DCLICK event.", "");
|
||||
"Returns the y coordinate of the double-click point in a
|
||||
EVT_SPLITTER_DCLICK event.", "");
|
||||
|
||||
%property(SashPosition, GetSashPosition, SetSashPosition, doc="See `GetSashPosition` and `SetSashPosition`");
|
||||
%property(WindowBeingRemoved, GetWindowBeingRemoved, doc="See `GetWindowBeingRemoved`");
|
||||
%property(X, GetX, doc="See `GetX`");
|
||||
%property(Y, GetY, doc="See `GetY`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -110,7 +110,13 @@ public:
|
||||
for i in range(len(items)):
|
||||
self.SetStatusText(items[i], i)
|
||||
}
|
||||
%property(Fields, GetFields, SetFields);
|
||||
|
||||
%property(BorderX, GetBorderX, doc="See `GetBorderX`");
|
||||
%property(BorderY, GetBorderY, doc="See `GetBorderY`");
|
||||
%property(FieldRect, GetFieldRect, doc="See `GetFieldRect`");
|
||||
%property(Fields, GetFields, SetFields, doc="See `GetFields` and `SetFields`");
|
||||
%property(FieldsCount, GetFieldsCount, SetFieldsCount, doc="See `GetFieldsCount` and `SetFieldsCount`");
|
||||
%property(StatusText, GetStatusText, SetStatusText, doc="See `GetStatusText` and `SetStatusText`");
|
||||
};
|
||||
|
||||
|
||||
|
@ -471,6 +471,8 @@ public:
|
||||
|
||||
void SetBitmap(const wxBitmap& bitmap);
|
||||
wxBitmap& GetBitmap();
|
||||
|
||||
%property(Bitmap, GetBitmap, SetBitmap, doc="See `GetBitmap` and `SetBitmap`");
|
||||
};
|
||||
|
||||
|
||||
@ -492,6 +494,10 @@ public:
|
||||
long GetSplashStyle() const;
|
||||
wxSplashScreenWindow* GetSplashWindow() const;
|
||||
int GetTimeout() const;
|
||||
|
||||
%property(SplashStyle, GetSplashStyle, doc="See `GetSplashStyle`");
|
||||
%property(SplashWindow, GetSplashWindow, doc="See `GetSplashWindow`");
|
||||
%property(Timeout, GetTimeout, doc="See `GetTimeout`");
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user