⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classes.tex

📁 Wxpython Implemented on Windows CE, Source code
💻 TEX
📖 第 1 页 / 共 5 页
字号:

\membersection{wxLineShape::GetTo}

\func{wxShape *}{GetTo}{\void}

Gets the `to' object.

\membersection{wxLineShape::Initialise}

\func{void}{Initialise}{\void}

Initialises the line object.

\membersection{wxLineShape::InsertLineControlPoint}

\func{void}{InsertLineControlPoint}{\void}

Inserts a control point at an arbitrary position.

\membersection{wxLineShape::IsEnd}

\func{bool}{IsEnd}{\param{wxShape *}{shape}}

Returns TRUE if {\it shape} is at the end of the line.

\membersection{wxLineShape::IsSpline}

\func{bool}{IsSpline}{\void}

Returns TRUE if a spline is drawn through the control points, and FALSE otherwise.

\membersection{wxLineShape::MakeLineControlPoints}\label{wxlineshapemakelinecontrolpoints}

\func{void}{MakeLineControlPoints}{\param{int}{ n}}

Make a given number of control points (minimum of two).

\membersection{wxLineShape::OnMoveLink}

\func{void}{OnMoveLink}{\param{wxDC\&}{ dc}, \param{bool}{ moveControlPoints = TRUE}}

Called when a connected object has moved, to move the link to
correct position.

\membersection{wxLineShape::SetAttachmentFrom}

\func{void}{SetAttachmentTo}{\param{int}{ fromAttach}}

Sets the `from' shape attachment.

\membersection{wxLineShape::SetAttachments}

\func{void}{SetAttachments}{\param{int}{ fromAttach}, \param{int}{ toAttach}}

Specifies which object attachment points should be used at each end of the line.

\membersection{wxLineShape::SetAttachmentTo}

\func{void}{SetAttachmentTo}{\param{int}{ toAttach}}

Sets the `to' shape attachment.

\membersection{wxLineShape::SetEnds}

\func{void}{SetEnds}{\param{double}{ x1}, \param{double}{ y1}, \param{double}{ x2}, \param{double}{ y2}}

Sets the end positions of the line.

\membersection{wxLineShape::SetFrom}

\func{void}{SetFrom}{\param{wxShape *}{object}}

Sets the `from' object for the line.

\membersection{wxLineShape::SetIgnoreOffsets}

\func{void}{SetIgnoreOffsets}{\param{bool}{ ignore}}

Tells the shape whether to ignore offsets from the end of the line when drawing.

\membersection{wxLineShape::SetSpline}

\func{void}{SetSpline}{\param{bool}{ spline}}

Specifies whether a spline is to be drawn through the control points (TRUE), or a line (FALSE).

\membersection{wxLineShape::SetTo}

\func{void}{SetTo}{\param{wxShape *}{object}}

Sets the `to' object for the line.

\membersection{wxLineShape::Straighten}

\func{void}{Straighten}{\param{wxDC*}{ dc = NULL}}

Straighten verticals and horizontals. {\it dc} is optional.

\membersection{wxLineShape::Unlink}

\func{void}{Unlink}{\void}

Unlinks the line from the nodes at either end.

\section{\class{wxPolygonShape}}\label{wxpolygonshape}

A wxPolygonShape's shape is defined by a number of points passed to the object's
constructor. It can be used to create new shapes such as diamonds and triangles.

\wxheading{Derived from}

\helpref{wxShape}{wxshape}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxPolygonShape::wxPolygonShape}

\func{}{wxPolygonShape}{void}

Constructor. Call \helpref{wxPolygonShape::Create}{wxpolygonshapecreate} to specify the polygon's vertices.

\membersection{wxPolygonShape::\destruct{wxPolygonShape}}

\func{}{\destruct{wxPolygonShape}}{\void}

Destructor.

\membersection{wxPolygonShape::Create}\label{wxpolygonshapecreate}

\func{void}{Create}{\param{wxList*}{ points}}

Takes a list of wxRealPoints; each point is an {\it offset} from the centre.
The polygon's destructor will delete these points, so do not delete them yourself.

\membersection{wxPolygonShape::AddPolygonPoint}

\func{void}{AddPolygonPoint}{\param{int}{ pos = 0}}

Add a control point after the given point.

\membersection{wxPolygonShape::CalculatePolygonCentre}

\func{void}{CalculatePolygonCentre}{\void}

Recalculates the centre of the polygon.

\membersection{wxPolygonShape::DeletePolygonPoint}

\func{void}{DeletePolygonPoint}{\param{int}{ pos = 0}}

Deletes a control point.

\membersection{wxPolygonShape::GetPoints}

\func{wxList *}{GetPoints}{\void}

Returns a pointer to the internal list of polygon vertices (wxRealPoints).

\membersection{wxPolygonShape::UpdateOriginalPoints}

\func{void}{UpdateOriginalPoints}{\void}

If we've changed the shape, must make the original
points match the working points with this function.

\section{\class{wxRectangleShape}}\label{wxrectangleshape}

The wxRectangleShape has rounded or square corners.

\wxheading{Derived from}

\helpref{wxShape}{wxshape}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxRectangleShape::wxRectangleShape}

\func{}{wxRectangleShape}{\param{double}{ width = 0.0}, \param{double}{ height = 0.0}}

Constructor.

\membersection{wxRectangleShape::\destruct{wxRectangleShape}}

\func{}{\destruct{wxRectangleShape}}{\void}

Destructor.

\membersection{wxRectangleShape::SetCornerRadius}

\func{void}{SetCornerRadius}{\param{double}{ radius}}

Sets the radius of the rectangle's rounded corners. If the radius is zero, a non-rounded
rectangle will be drawn. If the radius is negative, the value is the proportion of the
smaller dimension of the rectangle.

\section{\class{wxPseudoMetaFile}}\label{wxpseudometafile}

A simple metafile-like class which can load data from a Windows metafile on all platforms.

\wxheading{Derived from}

wxObject

\section{\class{wxShape}}\label{wxshape}

The wxShape is the top-level, abstract object that all other
objects are derived from. All common functionality is represented by
wxShape's members, and overriden members that appear in derived
classes and have behaviour as documented for wxShape, are not
documented separately.

\wxheading{Derived from}

\helpref{wxShapeEvtHandler}{wxshapeevthandler}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxShape::wxShape}

\func{}{wxShape}{\param{wxShapeCanvas*}{ canvas = NULL}}

Constructs a new wxShape.

\membersection{wxShape::\destruct{wxShape}}

\func{}{\destruct{wxShape}}{\void}

Destructor.

\membersection{wxShape::AddLine}

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

The position in the list of lines at each end can also be specified, so that the line will be drawn
at a particular point on its attachment point.

\membersection{wxShape::AddRegion}

\func{void}{AddRegion}{\param{wxShapeRegion*}{ region}}

Adds a region to the shape.

\membersection{wxShape::AddText}

\func{void}{AddText}{\param{const wxString\& }{string}}

Adds a line of text to the shape's default text region.

\membersection{wxShape::AddToCanvas}

\func{void}{AddToCanvas}{\param{wxShapeCanvas*}{ theCanvas}, \param{wxShape*}{ addAfter=NULL}}

Adds the shape to the canvas's shape list. If {\it addAfter} is
non-NULL, will add the shape after this one.

\membersection{wxShape::AncestorSelected}

\constfunc{bool}{AncestorSelected}{\void}

TRUE if the shape's ancestor is currently selected.

\membersection{wxShape::ApplyAttachmentOrdering}\label{wxshapeapplyattachmentordering}

\func{void}{ApplyAttachmentOrdering}{\param{wxList\&}{ linesToSort}}

Applies the line ordering in {\it linesToSort} to the shape, to reorder the way lines are attached.

\membersection{wxShape::AssignNewIds}

\func{void}{AssignNewIds}{\void}

Assigns new ids to this image and its children.

\membersection{wxShape::Attach}\label{wxshapeattach}

\func{void}{Attach}{\param{wxShapeCanvas*}{ can}}

Sets the shape's internal canvas pointer to point to the given canvas.

\membersection{wxShape::AttachmentIsValid}\label{wxshapeattachmentisvalid}

\constfunc{bool}{AttachmentIsValid}{\param{int}{ attachment}}

Returns TRUE if {\it attachment} is a valid attachment point.

\membersection{wxShape::AttachmentSortTest}\label{wxshapeattachmentsorttest}

\constfunc{bool}{AttachmentSortTest}{\param{int}{ attachment}, \param{const wxRealPoint\&}{ pt1},
 \param{const wxRealPoint\&}{ pt2}}

Returns TRUE if {\it pt1} is less than or equal to {\it pt2}, in the sense
that one point comes before another on an edge of the shape. {\it attachment} is
the attachment point (side) in question.

This function is used in \helpref{wxShape::MoveLineToNewAttachment}{wxshapemovelinetonewattachment} to
determine the new line ordering.

\membersection{wxShape::CalcSimpleAttachment}\label{wxshapecalcsimpleattachment}

\func{wxRealPoint}{CalcSimpleAttachment}{\param{const wxRealPoint\&}{ pt1},
 \param{const wxRealPoint\&}{ pt2}, \param{int}{ nth}, \param{int}{ noArcs}, \param{wxLineShape*}{ line}}

Assuming the attachment lies along a vertical or horizontal line,
calculates the position on that point.

\wxheading{Parameters}

\docparam{pt1}{The first point of the line repesenting the edge of the shape.}

\docparam{pt2}{The second point of the line representing the edge of the shape.}

\docparam{nth}{The position on the edge (for example there may be 6 lines at this attachment point,
and this may be the 2nd line.}

\docparam{noArcs}{The number of lines at this edge.}

\docparam{line}{The line shape.}

\wxheading{Remarks}

This function expects the line to be either vertical or horizontal, and determines which.

\membersection{wxShape::CalculateSize}

\func{void}{CalculateSize}{\void}

Called to calculate the shape's size if dependent on children sizes.

\membersection{wxShape::ClearAttachments}

\func{void}{ClearAttachments}{\void}

Clears internal custom attachment point shapes (of class wxAttachmentPoint).

\membersection{wxShape::ClearRegions}

\func{void}{ClearRegions}{\void}

Clears the wxShapeRegions from the shape.

\membersection{wxShape::ClearText}

\func{void}{ClearText}{\param{int}{ regionId = 0}}

Clears the text from the specified text region.

\membersection{wxShape::Constrain}

\func{bool}{Constrain}{\void}

Calculates the shape's constraints (if any). Applicable
only to wxCompositeShape, does nothing if the shape is of
a different class.

\membersection{wxShape::Copy}\label{wxshapecopy}

\func{void}{Copy}{\param{wxShape\&}{ copy}}

Copy this shape into {\it copy}. Every derived class must have one of these, and each Copy implementation
must call the derived class's implementation to ensure everything is copied. See also \helpref{wxShape::CreateNewCopy}{wxshapecreatenewcopy}.

\membersection{wxShape::CreateNewCopy}\label{wxshapecreatenewcopy}

\func{wxShape* }{CreateNewCopy}{\param{bool}{ resetMapping = TRUE}, \param{bool}{ recompute = TRUE}}

Creates and returns a new copy of this shape (calling \helpref{wxShape::Copy}{wxshapecopy}). Do not override this function.

This function should always be used to create a new copy, since it must do special processing
for copying constraints associated with constraints.

If {\it resetMapping} is TRUE, a mapping table used for complex shapes is reset; this may not be desirable
if the shape being copied is a child of a composite (and so the mapping table is in use).

If {\it recompute} is TRUE, \helpref{wxShape::Recompute}{wxshaperecompute} is called for the new shape.

\wxheading{Remarks}

This function uses the wxWindows dynamic object creation system to create a new shape of the same
type as `this', before calling Copy.

If the event handler for this shape is not the same as the shape itself, the event handler is also copied
using \helpref{wxShapeEvtHandler::CreateNewCopy}{wxshapeevthandlercreatenewcopy}.

\membersection{wxShape::DeleteControlPoints}

\func{void}{DeleteControlPoints}{\void}

Deletes the control points (or handles) for the shape. Does not redraw
the shape.

\membersection{wxShape::Detach}

\func{void}{Detach}{\void}

Disassociates the shape from its canvas by setting the internal shape
canvas pointer to NULL.

\membersection{wxShape::Draggable}

\func{bool}{Draggable}{\void} 

TRUE if the shape may be dragged by the user.

\membersection{wxShape::Draw}

\func{void}{Draw}{\param{wxDC\&}{ dc}}

Draws the whole shape and any lines attached to it.

Do not override this function: override OnDraw, which is called
by this function.

\membersection{wxShape::DrawContents}

\func{void}{DrawContents}{\param{wxDC\&}{ dc}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -