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}
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}.
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}.
\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.
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}
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}}
\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.