X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f5f3ca0fef2c0982d9b38483321f9e67ff9f516..a097c93d4feee4f424476b5e8a91a5c1c52e1c1e:/utils/ogl/docs/classes.tex?ds=sidebyside diff --git a/utils/ogl/docs/classes.tex b/utils/ogl/docs/classes.tex index 7e15517577..a72adb3887 100644 --- a/utils/ogl/docs/classes.tex +++ b/utils/ogl/docs/classes.tex @@ -225,12 +225,24 @@ Removes and deletes all shapes in the diagram. Draws an outline rectangle on the current device context. +\membersection{wxDiagram::FindShape}\label{wxdiagramfindshape} + +\constfunc{wxShape*}{FindShape}{\param{long}{ id}} + +Returns the shape for the given identifier. + \membersection{wxDiagram::GetCanvas} \constfunc{wxShapeCanvas*}{GetCanvas}{\void} Returns the shape canvas associated with this diagram. +\membersection{wxDiagram::GetCount}\label{wxdiagramgetcount} + +\constfunc{int}{GetCount}{\void} + +Returns the number of shapes in the diagram. + \membersection{wxDiagram::GetGridSpacing} \constfunc{double}{GetGridSpacing}{\void} @@ -463,10 +475,10 @@ Draws an arc (see wxWindows documentation for details). Sets the metafile for the given orientation, which can be one of: \begin{itemize}\itemsep=0pt -\item oglDRAWN\_ANGLE_0 -\item oglDRAWN\_ANGLE_90 -\item oglDRAWN\_ANGLE_180 -\item oglDRAWN\_ANGLE_270 +\item oglDRAWN\_ANGLE\_0 +\item oglDRAWN\_ANGLE\_90 +\item oglDRAWN\_ANGLE\_180 +\item oglDRAWN\_ANGLE\_270 \end{itemize} See also \helpref{wxDrawnShape::GetAngle}{wxdrawnshapegetangle}. @@ -534,10 +546,10 @@ Draws text at the given point. Returns the current orientation, which can be one of: \begin{itemize}\itemsep=0pt -\item oglDRAWN\_ANGLE_0 -\item oglDRAWN\_ANGLE_90 -\item oglDRAWN\_ANGLE_180 -\item oglDRAWN\_ANGLE_270 +\item oglDRAWN\_ANGLE\_0 +\item oglDRAWN\_ANGLE\_90 +\item oglDRAWN\_ANGLE\_180 +\item oglDRAWN\_ANGLE\_270 \end{itemize} See also \helpref{wxDrawnShape::DrawAtAngle}{wxdrawnshapedrawatangle}. @@ -1474,7 +1486,7 @@ Destructor. \membersection{wxShape::AddLine} -\func{void}{AddLine}{\param{wxLineShape *}{line}, \param{wxShape *}{other}, \param{int}{attachFrom = 0}, \param{int}{ attachTo = 0}, +\func{void}{AddLine}{\param{wxLineShape*}{ line}, \param{wxShape*}{ other}, \param{int}{ attachFrom = 0}, \param{int}{ attachTo = 0}, \param{int}{ positionFrom = -1}, \param{int}{ positionTo = -1}} Adds a line between the specified canvas shapes, at the specified attachment points. @@ -1847,6 +1859,13 @@ Gets the zero-based position of {\it line} in the list of lines for this shape. Returns a reference to the list of lines connected to this shape. +\membersection{wxShape::GetMaintainAspectRatio}\label{wxshapegetmaintainaspectratio} + +\constfunc{bool}{GetMaintainAspectRatio}{\void} + +If returns TRUE, resizing the shape will not change the aspect ratio +(width and height will be in the original proportion). + \membersection{wxShape::GetNumberOfAttachments}\label{wxshapegetnumberofattachments} \constfunc{int}{GetNumberOfAttachments}{\void} @@ -2197,6 +2216,13 @@ Sets the highlight for a shape. Shape highlighting is unimplemented. Set the integer identifier for this shape. +\membersection{wxShape::SetMaintainAspectRatio}\label{wxshapesetmaintainaspectratio} + +\func{void}{SetMaintainAspectRatio}{\param{bool}{ flag}} + +If the argument is TRUE, tells the shape that resizes should not change the aspect ratio +(width and height should be in the original proportion). + \membersection{wxShape::SetPen} \func{void}{SetPen}{\param{wxPen *}{pen}} @@ -2652,7 +2678,7 @@ image, and again to allow drawing at the new position. \membersection{wxShapeEvtHandler::OnDraw} -\func{void}{OnDraw}{\void} +\func{void}{OnDraw}{\param{wxDC\&}{ dc}} Defined for each class to draw the main graphic, but not the contents.