1998-07-18 17:57:52 -04:00
\chapter { Class reference} \label { classref}
\setheader { { \it CHAPTER \thechapter } } { } { } { } { } { { \it CHAPTER \thechapter } } %
\setfooter { \thepage } { } { } { } { } { \thepage }
These are the main \ogl \ classes.
1998-09-08 10:38:35 -04:00
\section { \class { wxOGLConstraint} } \label { wxoglconstraint}
1998-07-18 17:57:52 -04:00
\overview { wxCompositeShape overview} { compositeshapeoverview}
1998-09-08 10:38:35 -04:00
An wxOGLConstraint object helps specify how child shapes are laid out with respect
1998-07-18 17:57:52 -04:00
to siblings and parents.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
wxObject
\wxheading { See also}
\helpref { wxCompositeShape} { wxcompositeshape}
\latexignore { \rtfignore { \wxheading { Members} } }
\membersection { wxOGLConstraint::wxOGLConstraint} \label { wxoglconstraintconstr}
\func { } { wxOGLConstraint} { \void }
1998-07-18 17:57:52 -04:00
Default constructor.
1998-09-08 10:38:35 -04:00
\func { } { wxOGLConstraint} { \param { int} { type} , \param { wxShape *} { constraining} , \param { wxList\& } { constrained} }
1998-07-18 17:57:52 -04:00
Constructor.
1998-09-08 10:38:35 -04:00
\wxheading { Parameters}
\docparam { constraining} { The shape which is used as the reference for positioning the { \it constrained} objects.}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\docparam { constrained} { Contains a list of wxShapes which are to be constrained (with respect
to { \it constraining} ) using { \it type} .}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\docparam { type} { Can be one of:
1998-07-18 17:57:52 -04:00
\begin { itemize} \itemsep =0pt
\item { \bf gyCONSTRAINT\_ CENTRED\_ VERTICALLY} : the Y co-ordinates of the centres of the
bounding boxes of the constrained objects and the constraining object
will be the same
\item { \bf gyCONSTRAINT\_ CENTRED\_ HORIZONTALLY} : the X co-ordinates of the centres of the
bounding boxes of the constrained objects and the constraining object
will be the same
\item { \bf gyCONSTRAINT\_ CENTRED\_ BOTH} : the co-ordinates of the centres of the bounding boxes
of the constrained objects and the constraining object will be the same
\item { \bf gyCONSTRAINT\_ LEFT\_ OF} : the X co-ordinates of the right hand vertical edges
of the bounding boxes of the constrained objects will be less than
the X co-ordinate of the left hand vertical edge of the bounding box
of the constraining object
\item { \bf gyCONSTRAINT\_ RIGHT\_ OF} : the X co-ordinates of the left hand vertical edges
of the bounding boxes of the constrained objects will be greater than
the X co-ordinate of the right hand vertical edge of the bounding box
of the constraining object
\item { \bf gyCONSTRAINT\_ ABOVE} : the Y co-ordinates of the bottom horizontal edges of the
bounding boxes of the constrained objects will be less than the
Y co-ordinate of the top horizontal edge of the bounding box of the
constraining object
\item { \bf gyCONSTRAINT\_ BELOW} : the Y co-ordinates of the top horizontal edges of the
bounding boxes of the constrained objects will be greater than
the X co-ordinate of the bottom horizontal edge of the bounding box
of the constraining object
\item { \bf gyCONSTRAINT\_ ALIGNED\_ TOP} : the Y co-ordinates of the top horizontal edges of the
bounding boxes of the constrained objects will be the same as the
Y co-ordinate of the top horizontal edge of the bounding box of the
constraining object
\item { \bf gyCONSTRAINT\_ ALIGNED\_ BOTTOM} : the Y co-ordinates of the bottom horizontal edges
of the bounding boxes of the constrained objects will be the same as
the Y co-ordinate of the bottom horizontal edge of the bounding box
of the constraining object
\item { \bf gyCONSTRAINT\_ ALIGNED\_ LEFT} : the X co-ordinates of the left hand vertical edges
of the bounding boxes of the constrained objects will be the same as
the X co-ordinate of the left hand vertical edge of the bounding box
of the constraining object
\item { \bf gyCONSTRAINT\_ ALIGNED\_ RIGHT} : the X co-ordinates of the right hand vertical edges
of the bounding boxes of the constrained objects will be the same as
the X co-ordinate of the right hand vertical edge of the bounding box
of the constraining object
\item { \bf gyCONSTRAINT\_ MIDALIGNED\_ TOP} : the Y co-ordinates of the centres of
the bounding boxes of the constrained objects will be the same
as the Y co-ordinate of the top horizontal edge of
the bounding box of the constraining object
\item { \bf gyCONSTRAINT\_ MIDALIGNED\_ BOTTOM} : the Y co-ordinates of the centres of
the bounding boxes of the constrained objects will be the same
as the Y co-ordinate of the bottom horizontal edge of
the bounding box of the constraining object
\item { \bf gyCONSTRAINT\_ MIDALIGNED\_ LEFT} : the X co-ordinates of the centres of
the bounding boxes of the constrained objects will be the same
as the X co-ordinate of the left hand vertical edge of
the bounding box of the constraining object
\item { \bf gyCONSTRAINT\_ MIDALIGNED\_ RIGHT} : the X co-ordinates of the centres of
the bounding boxes of the constrained objects will be the same as
the X co-ordinate of the right hand vertical edge of
the bounding box of the constraining object
\end { itemize}
1998-09-08 10:38:35 -04:00
}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxOGLConstraint::\destruct { wxOGLConstraint} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxOGLConstraint} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
1998-09-08 10:38:35 -04:00
\membersection { wxOGLConstraint::Equals}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { bool} { Equals} { \param { double} { x} , \param { double} { y} }
1998-07-18 17:57:52 -04:00
Returns TRUE if { \it x} and { \it y} are approximately equal (for the purposes
of evaluating the constraint).
1998-09-08 10:38:35 -04:00
\membersection { wxOGLConstraint::Evaluate}
1998-07-18 17:57:52 -04:00
\func { bool} { Evaluate} { \void }
Evaluates this constraint, returning TRUE if anything changed.
1998-09-08 10:38:35 -04:00
\membersection { wxOGLConstraint::SetSpacing} \label { wxoglconstraintsetspacing}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { SetSpacing} { \param { double} { x} , \param { double} { y} }
1998-07-18 17:57:52 -04:00
Sets the horizontal and vertical spacing for the constraint.
1998-09-08 10:38:35 -04:00
\section { \class { wxBitmapShape} } \label { wxbitmapshape}
1998-07-18 17:57:52 -04:00
Draws a bitmap (non-resizable).
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxRectangleShape} { wxrectangleshape}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxBitmapShape::wxBitmapShape}
1998-09-08 10:38:35 -04:00
\func { } { wxBitmapShape} { \void }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxBitmapShape::\destruct { wxBitmapShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxBitmapShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
\membersection { wxBitmapShape::GetBitmap}
1998-09-08 10:38:35 -04:00
\constfunc { wxBitmap\& } { GetBitmap} { \void }
1998-07-18 17:57:52 -04:00
Returns a reference to the bitmap associated with this shape.
\membersection { wxBitmapShape::GetFilename}
1998-09-08 10:38:35 -04:00
\constfunc { wxString} { GetFilename} { \void }
1998-07-18 17:57:52 -04:00
Returns the bitmap filename.
\membersection { wxBitmapShape::SetBitmap}
\func { void} { SetBitmap} { \param { const wxBitmap\& } { bitmap} }
Sets the bitmap associated with this shape. You can delete the bitmap
from the calling application, since reference counting will take care of
holding on to the internal bitmap data.
\membersection { wxBitmapShape::SetFilename}
\func { void} { SetFilename} { \param { const wxString\& } { filename} }
Sets the bitmap filename.
1998-09-08 10:38:35 -04:00
\section { \class { wxDiagram} } \label { wxdiagram}
1998-07-18 17:57:52 -04:00
Encapsulates an entire diagram, with methods for reading/writing and drawing.
1998-09-08 10:38:35 -04:00
A diagram has an associated wxShapeCanvas.
\wxheading { Derived from}
wxObject
\wxheading { See also}
\helpref { wxShapeCanvas} { wxshapecanvas}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::wxDiagram}
1998-09-08 10:38:35 -04:00
\func { } { wxDiagram} { \void }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxDiagram::\destruct { wxDiagram} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxDiagram} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
\membersection { wxDiagram::AddShape}
1998-09-08 10:38:35 -04:00
\func { void} { AddShape} { \param { wxShape*} { shape} , \param { wxShape *} { addAfter = NULL} }
1998-07-18 17:57:52 -04:00
Adds a shape to the diagram. If { \it addAfter} is non-NULL, the shape will be added after this
one.
\membersection { wxDiagram::Clear}
1998-09-08 10:38:35 -04:00
\func { void} { Clear} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Clears the specified device context.
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::DeleteAllShapes}
\func { void} { DeletesAllShapes} { \void }
Removes and deletes all shapes in the diagram.
\membersection { wxDiagram::DrawOutline}
1998-09-08 10:38:35 -04:00
\func { void} { DrawOutline} { \param { wxDC\& } { dc} , \param { double} { x1} , \param { double} { y1} , \param { double} { x2} , \param { double} { y2} }
1998-07-18 17:57:52 -04:00
Draws an outline rectangle on the current device context.
1998-09-16 17:44:17 -04:00
\membersection { wxDiagram::FindShape} \label { wxdiagramfindshape}
\constfunc { wxShape*} { FindShape} { \param { long} { id} }
Returns the shape for the given identifier.
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::GetCanvas}
1998-09-08 10:38:35 -04:00
\constfunc { wxShapeCanvas*} { GetCanvas} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Returns the shape canvas associated with this diagram.
1998-07-18 17:57:52 -04:00
1998-09-16 17:44:17 -04:00
\membersection { wxDiagram::GetCount} \label { wxdiagramgetcount}
\constfunc { int} { GetCount} { \void }
Returns the number of shapes in the diagram.
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::GetGridSpacing}
1998-09-08 10:38:35 -04:00
\constfunc { double} { GetGridSpacing} { \void }
1998-07-18 17:57:52 -04:00
Returns the grid spacing.
\membersection { wxDiagram::GetMouseTolerance}
\func { int} { GetMouseTolerance} { \void }
Returns the tolerance within which a mouse move is ignored.
\membersection { wxDiagram::GetShapeList}
1998-09-08 10:38:35 -04:00
\constfunc { wxList*} { GetShapeList} { \void }
1998-07-18 17:57:52 -04:00
Returns a pointer to the internal shape list.
\membersection { wxDiagram::GetQuickEditMode}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetQuickEditMode} { \void }
1998-07-18 17:57:52 -04:00
Returns quick edit mode.
\membersection { wxDiagram::GetSnapToGrid}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetSnapToGrid} { \void }
1998-07-18 17:57:52 -04:00
Returns snap-to-grid mode.
\membersection { wxDiagram::InsertShape}
\func { void} { InsertShape} { \param { wxShape *} { shape} }
Inserts a shape at the front of the shape list.
\membersection { wxDiagram::LoadFile}
\func { bool} { LoadFile} { \param { const wxString\& } { filename} }
1998-09-08 10:38:35 -04:00
Loads the diagram from a file.
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::OnDatabaseLoad}
1998-09-08 10:38:35 -04:00
\func { void} { OnDatabaseLoad} { \param { wxExprDatabase\& } { database} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called just after the nodes and lines have been read from the wxExprDatabase. You may override this;
1998-07-18 17:57:52 -04:00
the default member does nothing.
\membersection { wxDiagram::OnDatabaseSave}
1998-09-08 10:38:35 -04:00
\func { void} { OnDatabaseSave} { \param { wxExprDatabase\& } { database} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called just after the nodes and lines have been written to the wxExprDatabase. You may override this;
1998-07-18 17:57:52 -04:00
the default member does nothing.
\membersection { wxDiagram::OnHeaderLoad}
1998-09-08 10:38:35 -04:00
\func { bool} { OnHeaderLoad} { \param { wxExprDatabase\& } { database} , \param { wxExpr\& } { expr} }
1998-07-18 17:57:52 -04:00
Called to allow the `diagram' header object to be read. The default member reads no further information.
You may wish to override this to read version information, author name, etc.
\membersection { wxDiagram::OnHeaderSave}
1998-09-08 10:38:35 -04:00
\func { bool} { OnHeaderSave} { \param { wxExprDatabase\& } { database} , \param { wxExpr\& } { expr} }
1998-07-18 17:57:52 -04:00
Called to allow instantiation of the `diagram' header object. The default member writes no further information.
You may wish to override this to include version information, author name, etc.
\membersection { wxDiagram::OnShapeLoad}
1998-09-08 10:38:35 -04:00
\func { bool} { OnShapeLoad} { \param { wxExprDatabase\& } { database} , \param { wxShape\& } { shape} , \param { wxExpr\& } { expr} }
1998-07-18 17:57:52 -04:00
Called to read the shape from the { \it expr} . You may override this, but call this function first.
1998-09-08 10:38:35 -04:00
The default member calls ReadAttributes for the shape.
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::OnShapeSave}
1998-09-08 10:38:35 -04:00
\func { bool} { OnShapeSave} { \param { wxExprDatabase\& } { database} , \param { wxShape\& } { shape} , \param { wxExpr\& } { expr} }
1998-07-18 17:57:52 -04:00
Called to save the shape to the { \it expr} and { \it database} . You may override this, but call this function first.
1998-09-08 10:38:35 -04:00
The default member calls WriteAttributes for the shape, appends the shape to the database, and of the shape
1998-07-18 17:57:52 -04:00
is a composite, recursively calls OnShapeSave for its children.
\membersection { wxDiagram::ReadContainerGeometry}
1998-09-08 10:38:35 -04:00
\func { void} { ReadContainerGeometry} { \param { wxExprDatabase\& } { database} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Reads container geometry from a wxExprDatabase, linking up nodes which
1998-07-18 17:57:52 -04:00
are part of a composite. You probably won't need to redefine this.
\membersection { wxDiagram::ReadLines}
1998-09-08 10:38:35 -04:00
\func { void} { ReadLines} { \param { wxExprDatabase\& } { database} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Reads lines from a wxExprDatabase. You probably won't need to redefine this.
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::ReadNodes}
1998-09-08 10:38:35 -04:00
\func { void} { ReadNodes} { \param { wxExprDatabase\& } { database} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Reads nodes from a wxExprDatabase. You probably won't need to redefine this.
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::RecentreAll}
1998-09-08 10:38:35 -04:00
\func { void} { RecentreAll} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
Make sure all text that should be centred, is centred.
\membersection { wxDiagram::Redraw}
1998-09-08 10:38:35 -04:00
\func { void} { Redraw} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Draws the shapes in the diagram on the specified device context.
1998-07-18 17:57:52 -04:00
\membersection { wxDiagram::RemoveAllShapes}
\func { void} { RemoveAllShapes} { \void }
Removes all shapes from the diagram but does not delete the shapes.
\membersection { wxDiagram::RemoveShape}
1998-09-08 10:38:35 -04:00
\func { void} { RemoveShape} { \param { wxShape*} { shape} }
1998-07-18 17:57:52 -04:00
Removes the shape from the diagram (non-recursively) but does not delete it.
\membersection { wxDiagram::SaveFile}
\func { bool} { SaveFile} { \param { const wxString\& } { filename} }
1998-09-08 10:38:35 -04:00
Saves the diagram in a file.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxDiagram::SetCanvas} \label { wxdiagramsetcanvas}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { SetCanvas} { \param { wxShapeCanvas*} { canvas} }
1998-07-18 17:57:52 -04:00
Sets the canvas associated with this diagram.
\membersection { wxDiagram::SetGridSpacing}
1998-09-08 10:38:35 -04:00
\func { void} { SetGridSpacing} { \param { double} { spacing} }
1998-07-18 17:57:52 -04:00
Sets the grid spacing. The default is 5.
\membersection { wxDiagram::SetMouseTolerance}
\func { void} { SetMouseTolerance} { \param { int} { tolerance} }
Sets the tolerance within which a mouse move is ignored. The default is 3 pixels.
\membersection { wxDiagram::SetQuickEditMode}
\func { void} { SetQuickEditMode} { \param { bool} { mode} }
Sets quick-edit-mode on or off. In this mode, refreshes are minimized, but the
diagram may need manual refreshing occasionally.
\membersection { wxDiagram::SetSnapToGrid}
\func { void} { SetSnapToGrid} { \param { bool} { snap} }
Sets snap-to-grid mode on or off. The default is on.
\membersection { wxDiagram::ShowAll}
\func { void} { ShowAll} { \param { bool} { show} }
Calls Show for each shape in the diagram.
\membersection { wxDiagram::Snap}
1998-09-08 10:38:35 -04:00
\func { void} { Snap} { \param { double *} { x} , \param { double *} { y} }
1998-07-18 17:57:52 -04:00
`Snaps' the coordinate to the nearest grid position, if snap-to-grid is on.
1998-09-08 10:38:35 -04:00
\section { \class { wxDrawnShape} } \label { wxdrawnshape}
1998-07-18 17:57:52 -04:00
Draws a pseduo-metafile shape, which can be loaded from a simple Windows metafile.
1998-09-08 10:38:35 -04:00
wxDrawnShape allows you to specify a different shape for each of four orientations (North, West,
South and East). It also provides a set of drawing functions for programmatic drawing of a shape,
so that during construction of the shape you can draw into it as if it were a device context.
\wxheading { Derived from}
\helpref { wxRectangleShape} { wxrectangleshape}
1998-07-18 17:57:52 -04:00
See also \helpref { wxRectangleShape} { wxrectangleshape} .
1998-09-08 10:38:35 -04:00
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxDrawnShape::wxDrawnShape}
1998-09-08 10:38:35 -04:00
\func { } { wxDrawnShape} { \void }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxDrawnShape::\destruct { wxDrawnShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxDrawnShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
1998-09-08 10:38:35 -04:00
\membersection { wxDrawnShape::CalculateSize}
\func { void} { CalculateSize} { \void }
Calculates the wxDrawnShape size from the current metafile. Call this after you have drawn
into the shape.
\membersection { wxDrawnShape::DestroyClippingRect} \label { wxdrawnshapedestroyclippingrect}
\func { void} { DestroyClippingRect} { \void }
Destroys the clipping rectangle. See also \helpref { wxDrawnShape::SetClippingRect} { wxdrawnshapesetclippingrect} .
\membersection { wxDrawnShape::DrawArc} \label { wxdrawnshapedrawarc}
\func { void} { DrawArc} { \param { const wxPoint\& } { centrePoint} , \param { const wxPoint\& } { startPoint} ,
\param { const wxPoint\& } { endPoint} }
Draws an arc (see wxWindows documentation for details).
\membersection { wxDrawnShape::DrawAtAngle} \label { wxdrawnshapedrawatangle}
\func { void} { DrawAtAngle} { \param { int} { angle} }
Sets the metafile for the given orientation, which can be one of:
\begin { itemize} \itemsep =0pt
1999-03-23 17:51:44 -05:00
\item oglDRAWN\_ ANGLE\_ 0
\item oglDRAWN\_ ANGLE\_ 90
\item oglDRAWN\_ ANGLE\_ 180
\item oglDRAWN\_ ANGLE\_ 270
1998-09-08 10:38:35 -04:00
\end { itemize}
See also \helpref { wxDrawnShape::GetAngle} { wxdrawnshapegetangle} .
\membersection { wxDrawnShape::DrawEllipticArc} \label { wxdrawnshapedrawellipticarc}
\func { void} { DrawEllipticArc} { \param { const wxRect\& } { rect} , \param { double} { startAngle} , \param { double} { endAngle} }
Draws an elliptic arc (see wxWindows documentation for details).
\membersection { wxDrawnShape::DrawLine} \label { wxdrawnshapedrawline}
\func { void} { DrawLine} { \param { const wxPoint\& } { point1} , \param { const wxPoint\& } { point2} }
Draws a line from { \it point1} to { \it point2} .
\membersection { wxDrawnShape::DrawLines} \label { wxdrawnshapedrawlines}
\func { void} { DrawLines} { \param { int} { n} , \param { wxPoint\& } { points[]} }
Draws { \it n} lines.
\membersection { wxDrawnShape::DrawPoint} \label { wxdrawnshapedrawpoint}
\func { void} { DrawPoint} { \param { const wxPoint\& } { point} }
Draws a point.
\membersection { wxDrawnShape::DrawPolygon} \label { wxdrawnshapedrawpolygon}
\func { void} { DrawPolygon} { \param { int} { n} , \param { wxPoint\& } { points[]} , \param { int} { flags = 0} }
Draws a polygon. { \it flags} can be one or more of { \bf oglMETAFLAGS\_ OUTLINE} (use this polygon for the drag outline)
and { \bf oglMETAFLAGS\_ ATTACHMENTS} (use the vertices of this polygon for attachments).
\membersection { wxDrawnShape::DrawRectangle} \label { wxdrawnshapedrawrectangle}
\func { void} { DrawRectangle} { \param { const wxRect\& } { rect} }
Draws a rectangle.
\membersection { wxDrawnShape::DrawRoundedRectangle} \label { wxdrawnshapedrawroundedrectangle}
\func { void} { DrawRoundedRectangle} { \param { const wxRect\& } { rect} , \param { double} { radius} }
Draws a rounded rectangle. { \it radius} is the corner radius. If { \it radius} is negative,
it expresses the radius as a proportion of the smallest dimension of the rectangle.
\membersection { wxDrawnShape::DrawSpline} \label { wxdrawnshapedrawspline}
\func { void} { DrawSpline} { \param { int} { n} , \param { wxPoint\& } { points[]} }
Draws a spline curve.
\membersection { wxDrawnShape::DrawText} \label { wxdrawnshapedrawtext}
\func { void} { DrawText} { \param { const wxString\& } { text} , \param { const wxPoint\& } { point} }
Draws text at the given point.
\membersection { wxDrawnShape::GetAngle} \label { wxdrawnshapegetangle}
\constfunc { int} { GetAngle} { \void }
Returns the current orientation, which can be one of:
\begin { itemize} \itemsep =0pt
1999-03-23 17:51:44 -05:00
\item oglDRAWN\_ ANGLE\_ 0
\item oglDRAWN\_ ANGLE\_ 90
\item oglDRAWN\_ ANGLE\_ 180
\item oglDRAWN\_ ANGLE\_ 270
1998-09-08 10:38:35 -04:00
\end { itemize}
See also \helpref { wxDrawnShape::DrawAtAngle} { wxdrawnshapedrawatangle} .
1998-07-18 17:57:52 -04:00
\membersection { wxDrawnShape::GetMetaFile}
1998-09-08 10:38:35 -04:00
\constfunc { wxPseudoMetaFile\& } { GetMetaFile} { \void }
1998-07-18 17:57:52 -04:00
Returns a reference to the internal `pseudo-metafile'.
1998-09-08 10:38:35 -04:00
\membersection { wxDrawnShape::GetRotation} \label { wxdrawnshapegetrotation}
\constfunc { double} { GetRotation} { \void }
Returns the current rotation of the shape in radians.
1998-07-18 17:57:52 -04:00
\membersection { wxDrawnShape::LoadFromMetaFile}
\func { bool} { LoadFromMetaFile} { \param { const wxString\& } { filename} }
Loads a (very simple) Windows metafile, created for example by Top Draw, the Windows shareware graphics package.
\membersection { wxDrawnShape::Rotate}
1998-09-08 10:38:35 -04:00
\func { void} { Rotate} { \param { double } { x} , \param { double } { y} , \param { double } { theta} }
1998-07-18 17:57:52 -04:00
Rotate about the given axis by the given amount in radians.
1998-09-08 10:38:35 -04:00
\membersection { wxDrawnShape::SetClippingRect} \label { wxdrawnshapesetclippingrect}
\func { void} { SetClippingRect} { \param { const wxRect\& } { rect} }
Sets the clipping rectangle. See also \helpref { wxDrawnShape::DestroyClippingRect} { wxdrawnshapedestroyclippingrect} .
\membersection { wxDrawnShape::SetDrawnBackgroundColour} \label { wxdrawnshapesetdrawnbackgroundcolour}
\func { void} { SetDrawnBackgroundColour} { \param { const wxColour\& } { colour} }
Sets the current background colour for the current metafile.
\membersection { wxDrawnShape::SetDrawnBackgroundMode} \label { wxdrawnshapesetdrawnbackgroundmode}
\func { void} { SetDrawnBackgroundMode} { \param { int} { mode} }
Sets the current background mode for the current metafile.
\membersection { wxDrawnShape::SetDrawnBrush} \label { wxdrawnshapesetdrawnbrush}
\func { void} { SetDrawnBrush} { \param { wxPen*} { pen} , \param { bool} { isOutline = FALSE} }
Sets the pen for this metafile. If { \it isOutline} is TRUE, this pen is taken to indicate the outline
(and if the outline pen is changed for the whole shape, the pen will be replaced with the outline pen).
\membersection { wxDrawnShape::SetDrawnFont} \label { wxdrawnshapesetdrawnfont}
\func { void} { SetDrawnFont} { \param { wxFont*} { font} }
Sets the current font for the current metafile.
\membersection { wxDrawnShape::SetDrawnPen} \label { wxdrawnshapesetdrawnpen}
\func { void} { SetDrawnPen} { \param { wxPen*} { pen} , \param { bool} { isOutline = FALSE} }
Sets the pen for this metafile. If { \it isOutline} is TRUE, this pen is taken to indicate the outline
(and if the outline pen is changed for the whole shape, the pen will be replaced with the outline pen).
\membersection { wxDrawnShape::SetDrawnTextColour} \label { wxdrawnshapesetdrawntextcolour}
\func { void} { SetDrawnTextColour} { \param { const wxColour\& } { colour} }
Sets the current text colour for the current metafile.
1998-07-18 17:57:52 -04:00
\membersection { wxDrawnShape::Scale}
1998-09-08 10:38:35 -04:00
\func { void} { Scale} { \param { double } { sx} , \param { double } { sy} }
1998-07-18 17:57:52 -04:00
Scales the shape by the given amount.
\membersection { wxDrawnShape::SetSaveToFile}
\func { void} { SetSaveToFile} { \param { bool } { save} }
If { \it save} is TRUE, the image will be saved along with the shape's other attributes. The reason
why this might not be desirable is that if there are many shapes with the same image, it would be
more efficient for the application to save one copy, and not duplicate the information for every
shape. The default is TRUE.
\membersection { wxDrawnShape::Translate}
1998-09-08 10:38:35 -04:00
\func { void} { Translate} { \param { double } { x} , \param { double } { y} }
1998-07-18 17:57:52 -04:00
Translates the shape by the given amount.
1998-09-08 10:38:35 -04:00
\section { \class { wxCircleShape} } \label { wxcircleshape}
1998-07-18 17:57:52 -04:00
An wxEllipseShape whose width and height are the same.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxEllipseShape} { wxellipseshape} .
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxCircleShape::wxCircleShape}
1998-09-08 10:38:35 -04:00
\func { } { wxCircleShape} { \param { double} { width = 0.0} }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxCircleShape::\destruct { wxCircleShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxCircleShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
1998-09-08 10:38:35 -04:00
\section { \class { wxCompositeShape} } \label { wxcompositeshape}
1998-07-18 17:57:52 -04:00
This is an object with a list of child objects, and a list of size
and positioning constraints between the children.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxRectangleShape} { wxrectangleshape}
\wxheading { See also}
\helpref { wxCompositeShape overview} { compositeshapeoverview}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxCompositeShape::wxCompositeShape}
1998-09-08 10:38:35 -04:00
\func { } { wxCompositeShape} { \void }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxCompositeShape::\destruct { wxCompositeShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxCompositeShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
\membersection { wxCompositeShape::AddChild} \label { wxcompositeshapeaddchild}
\func { void} { AddChild} { \param { wxShape *} { child} , \param { wxShape *} { addAfter = NULL} }
Adds a child shape to the composite. If { \it addAfter} is non-NULL, the shape will be added
after this shape.
\membersection { wxCompositeShape::AddConstraint} \label { wxcompositeshapeaddconstraint}
1998-09-08 10:38:35 -04:00
\func { wxOGLConstraint *} { AddConstraint} { \param { wxOGLConstraint *} { constraint} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { wxOGLConstraint *} { AddConstraint} { \param { int} { type} , \param { wxShape *} { constraining} , \param { wxList\& } { constrained} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { wxOGLConstraint *} { AddConstraint} { \param { int} { type} , \param { wxShape *} { constraining} , \param { wxShape *} { constrained} }
1998-07-18 17:57:52 -04:00
Adds a constraint to the composite.
\membersection { wxCompositeShape::CalculateSize}
\func { void} { CalculateSize} { \void }
Calculates the size and position of the composite based on child sizes and positions.
\membersection { wxCompositeShape::ContainsDivision}
\func { bool} { FindContainerImage} { \param { wxDivisionShape *} { division} }
Returns TRUE if { \it division} is a descendant of this container.
\membersection { wxCompositeShape::DeleteConstraint}
1998-09-08 10:38:35 -04:00
\func { void} { DeleteConstraint} { \param { wxOGLConstraint *} { constraint} }
1998-07-18 17:57:52 -04:00
Deletes constraint from composite.
\membersection { wxCompositeShape::DeleteConstraintsInvolvingChild}
\func { void} { DeleteConstraintsInvolvingChild} { \param { wxShape *} { child} }
This function deletes constraints which mention the given child. Used when
deleting a child from the composite.
\membersection { wxCompositeShape::FindConstraint}
1998-09-08 10:38:35 -04:00
\func { wxOGLConstraint *} { FindConstraint} { \param { long} { id} , \param { wxCompositeShape **} { actualComposite} }
1998-07-18 17:57:52 -04:00
Finds the constraint with the given id, also returning the actual composite the constraint was in,
in case that composite was a descendant of this composite.
\membersection { wxCompositeShape::FindContainerImage}
\func { wxShape *} { FindContainerImage} { \void }
Finds the image used to visualize a container. This is any child
of the composite that is not in the divisions list.
\membersection { wxCompositeShape::GetConstraints}
1998-09-08 10:38:35 -04:00
\constfunc { wxList\& } { GetConstraints} { \void }
1998-07-18 17:57:52 -04:00
Returns a reference to the list of constraints.
\membersection { wxCompositeShape::GetDivisions}
1998-09-08 10:38:35 -04:00
\constfunc { wxList\& } { GetDivisions} { \void }
1998-07-18 17:57:52 -04:00
Returns a reference to the list of divisions.
\membersection { wxCompositeShape::MakeContainer} \label { wxcompositeshapemakecontainer}
\func { void} { MakeContainer} { \void }
Makes this composite into a container by creating one child wxDivisionShape.
\membersection { wxCompositeShape::OnCreateDivision}
\func { wxDivisionShape *} { OnCreateDivision} { \void }
Called when a new division shape is required. Can be overriden to allow an application
to use a different class of division.
\membersection { wxCompositeShape::Recompute} \label { wxcompositeshaperecompute}
\func { bool} { Recompute} { \void }
Recomputes any constraints associated with the object. If FALSE is returned,
the constraints could not be satisfied (there was an inconsistency).
\membersection { wxCompositeShape::RemoveChild}
\func { void} { RemoveChild} { \param { wxShape *} { child} }
Removes the child from the composite and any constraint relationships, but does not
delete the child.
1998-09-08 10:38:35 -04:00
\section { \class { wxDividedShape} } \label { wxdividedshape}
1998-07-18 17:57:52 -04:00
A wxDividedShape is a rectangle with a number of vertical divisions. Each
division may have its text formatted with independent characteristics, and
the size of each division relative to the whole image may be specified.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxRectangleShape} { wxrectangleshape}
\wxheading { See also}
\helpref { wxDividedShape overview} { dividedshapeoverview}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxDividedShape::wxDividedShape}
1998-09-08 10:38:35 -04:00
\func { } { wxDividedShape} { \param { double} { width = 0.0} , \param { double} { height = 0.0} }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxDividedShape::\destruct { wxDividedShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxDividedShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
\membersection { wxDividedShape::EditRegions}
\func { void} { EditRegions} { \void }
Edit the region colours and styles.
\membersection { wxDividedShape::SetRegionSizes}
\func { void} { SetRegionSizes} { \void }
Set all region sizes according to proportions and
this object total size.
1998-09-08 10:38:35 -04:00
\section { \class { wxDivisionShape} } \label { wxdivisionshape}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
A division shape is like a composite in that it can contain further objects, but is used exclusively to
divide another shape into regions, or divisions. A wxDivisionShape is never free-standing.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\helpref { wxCompositeShape} { wxcompositeshape}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\wxheading { See also}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\helpref { wxCompositeShape overview} { compositeshapeoverview}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxDivisionShape::wxDivisionShape}
1998-09-08 10:38:35 -04:00
\func { } { wxDivisionShape} { \void }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxDivisionShape::\destruct { wxDivisionShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxDivisionShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
\membersection { wxDivisionShape::AdjustBottom}
1998-09-08 10:38:35 -04:00
\func { void} { AdjustBottom} { \param { double} { bottom} , \param { bool} { test} }
1998-07-18 17:57:52 -04:00
Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.
\membersection { wxDivisionShape::AdjustLeft}
1998-09-08 10:38:35 -04:00
\func { void} { AdjustLeft} { \param { double} { left} , \param { bool} { test} }
1998-07-18 17:57:52 -04:00
Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.
\membersection { wxDivisionShape::AdjustRight}
1998-09-08 10:38:35 -04:00
\func { void} { AdjustRight} { \param { double} { right} , \param { bool} { test} }
1998-07-18 17:57:52 -04:00
Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.
\membersection { wxDivisionShape::AdjustTop}
1998-09-08 10:38:35 -04:00
\func { void} { AdjustTop} { \param { double} { top} , \param { bool} { test} }
1998-07-18 17:57:52 -04:00
Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.
\membersection { wxDivisionShape::Divide} \label { wxdivisionshapedivide}
\func { void} { Divide} { \param { int} { direction} }
Divide this division into two further divisions, horizontally ({ \it direction} is wxHORIZONTAL) or
vertically ({ \it direction} is wxVERTICAL).
\membersection { wxDivisionShape::EditEdge}
\func { void} { EditEdge} { \param { int} { side} }
Interactively edit style of left or top side.
\membersection { wxDivisionShape::GetBottomSide}
\func { wxDivisionShape *} { GetBottomSide} { \void }
Returns a pointer to the division on the bottom side of this division.
\membersection { wxDivisionShape::GetHandleSide}
\func { int} { GetHandleSide} { \void }
Returns the side which the handle appears on (DIVISION\_ SIDE\_ LEFT or DIVISION\_ SIDE\_ TOP).
\membersection { wxDivisionShape::GetLeftSide}
\func { wxDivisionShape *} { GetLeftSide} { \void }
Returns a pointer to the division on the left side of this division.
\membersection { wxDivisionShape::GetLeftSideColour}
\func { wxString} { GetLeftSideColour} { \void }
Returns a pointer to the colour used for drawing the left side of the division.
\membersection { wxDivisionShape::GetLeftSidePen}
\func { wxPen *} { GetLeftSidePen} { \void }
Returns a pointer to the pen used for drawing the left side of the division.
\membersection { wxDivisionShape::GetRightSide}
\func { wxDivisionShape *} { GetRightSide} { \void }
Returns a pointer to the division on the right side of this division.
\membersection { wxDivisionShape::GetTopSide}
\func { wxDivisionShape *} { GetTopSide} { \void }
Returns a pointer to the division on the top side of this division.
\membersection { wxDivisionShape::GetTopSideColour}
\func { wxString} { GetTopSideColour} { \void }
Returns a pointer to the colour used for drawing the top side of the division.
\membersection { wxDivisionShape::GetTopSidePen}
\func { wxPen *} { GetTopSidePen} { \void }
Returns a pointer to the pen used for drawing the left side of the division.
\membersection { wxDivisionShape::ResizeAdjoining}
1998-09-08 10:38:35 -04:00
\func { void} { ResizeAdjoining} { \param { int} { side} , \param { double} { newPos} , \param { bool} { test} }
1998-07-18 17:57:52 -04:00
Resize adjoining divisions at the given side. If { \it test} is TRUE,
just see whether it's possible for each adjoining region,
returning FALSE if it's not.
{ \it side} can be one of:
\begin { itemize} \itemsep =0pt
\item DIVISION\_ SIDE\_ NONE
\item DIVISION\_ SIDE\_ LEFT
\item DIVISION\_ SIDE\_ TOP
\item DIVISION\_ SIDE\_ RIGHT
\item DIVISION\_ SIDE\_ BOTTOM
\end { itemize}
\membersection { wxDivisionShape::PopupMenu}
1998-09-08 10:38:35 -04:00
\func { void} { PopupMenu} { \param { double} { x} , \param { double} { y} }
1998-07-18 17:57:52 -04:00
Popup the division menu.
\membersection { wxDivisionShape::SetBottomSide}
\func { void} { SetBottomSide} { \param { wxDivisionShape *} { shape} }
Set the pointer to the division on the bottom side of this division.
\membersection { wxDivisionShape::SetHandleSide}
\func { int} { SetHandleSide} { \void }
Sets the side which the handle appears on (DIVISION\_ SIDE\_ LEFT or DIVISION\_ SIDE\_ TOP).
\membersection { wxDivisionShape::SetLeftSide}
\func { void} { SetLeftSide} { \param { wxDivisionShape *} { shape} }
Set the pointer to the division on the left side of this division.
\membersection { wxDivisionShape::SetLeftSideColour}
\func { void} { SetLeftSideColour} { \param { const wxString\& } { colour} }
Sets the colour for drawing the left side of the division.
\membersection { wxDivisionShape::SetLeftSidePen}
\func { void} { SetLeftSidePen} { \param { wxPen *} { pen} }
Sets the pen for drawing the left side of the division.
\membersection { wxDivisionShape::SetRightSide}
\func { void} { SetRightSide} { \param { wxDivisionShape *} { shape} }
Set the pointer to the division on the right side of this division.
\membersection { wxDivisionShape::SetTopSide}
\func { void} { SetTopSide} { \param { wxDivisionShape *} { shape} }
Set the pointer to the division on the top side of this division.
\membersection { wxDivisionShape::SetTopSideColour}
\func { void} { SetTopSideColour} { \param { const wxString\& } { colour} }
Sets the colour for drawing the top side of the division.
\membersection { wxDivisionShape::SetTopSidePen}
\func { void} { SetTopSidePen} { \param { wxPen *} { pen} }
Sets the pen for drawing the top side of the division.
1998-09-08 10:38:35 -04:00
\section { \class { wxEllipseShape} } \label { wxellipseshape}
1998-07-18 17:57:52 -04:00
The wxEllipseShape behaves similarly to the wxRectangleShape but is
elliptical.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxShape} { wxshape}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxEllipseShape::wxEllipseShape}
1998-09-08 10:38:35 -04:00
\func { } { wxEllipseShape} { \param { double} { width = 0.0} , \param { double} { height = 0.0} }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxEllipseShape::\destruct { wxEllipseShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxEllipseShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
1998-09-08 10:38:35 -04:00
\section { \class { wxLineShape} } \label { wxlineshape}
1998-07-18 17:57:52 -04:00
A wxLineShape may be attached to two nodes; it may be segmented, in which
case a control point is drawn for each joint.
1998-09-08 10:38:35 -04:00
A wxLineShape may have arrows at the beginning, end and centre.
\wxheading { Derived from}
\helpref { wxShape} { wxshape}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxLineShape::wxLineShape}
1998-09-08 10:38:35 -04:00
\func { } { wxLineShape} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Constructor.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Usually you will call \helpref { wxLineShape::MakeLineControlPoints} { wxlineshapemakelinecontrolpoints} to
specify the number of segments in the line.
1998-07-18 17:57:52 -04:00
\membersection { wxLineShape::\destruct { wxLineShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxLineShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
1998-09-08 10:38:35 -04:00
\membersection { wxLineShape::AddArrow} \label { wxlineshapeaddarrow}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { AddArrow} { \param { WXTYPE} { type} , \param { bool} { end = ARROW\_ POSITION\_ END} , \param { double} { arrowSize = 10.0} ,
\param { double} { xOffset = 0.0} , \param { const wxString\& } { name = ""} , \param { wxPseudoMetaFile *} { mf = NULL} , \param { long} { arrowId = -1} }
1998-07-18 17:57:52 -04:00
Adds an arrow (or annotation) to the line.
{ \it type} may currently be one of:
\begin { description} \itemsep =0pt
\item [ARROW\_HOLLOW\_CIRCLE] Hollow circle.
\item [ARROW\_FILLED\_CIRCLE] Filled circle.
\item [ARROW\_ARROW] Conventional arrowhead.
\item [ARROW\_SINGLE\_OBLIQUE] Single oblique stroke.
\item [ARROW\_DOUBLE\_OBLIQUE] Double oblique stroke.
\item [ARROW\_DOUBLE\_METAFILE] Custom arrowhead.
\end { description}
{ \it end} may currently be one of:
\begin { description} \itemsep =0pt
\item [ARROW\_POSITION\_END] Arrow appears at the end.
\item [ARROW\_POSITION\_START] Arrow appears at the start.
\end { description}
{ \it arrowSize} specifies the length of the arrow.
{ \it xOffset} specifies the offset from the end of the line.
{ \it name} specifies a name for the arrow.
{ \it mf} can be a wxPseduoMetaFile, perhaps loaded from a simple Windows metafile.
{ \it arrowId} is the id for the arrow.
\membersection { wxLineShape::AddArrowOrdered}
\func { void} { AddArrowOrdered} { \param { wxArrowHead *} { arrow} , \param { wxList\& } { referenceList} , \param { int} { end} }
Add an arrowhead in the position indicated by the reference
list of arrowheads, which contains all legal arrowheads for this
line, in the correct order.
E.g.
\begin { verbatim}
Reference list: a b c d e
Current line list: a d
\end { verbatim}
Add c, then line list is: a c d.
If no legal arrowhead position, return FALSE. Assume reference list is
for one end only, since it potentially defines the ordering for any one
of the 3 positions. So we don't check the reference list for arrowhead
position.
\membersection { wxLineShape::ClearArrow}
\func { bool} { ClearArrow} { \param { const wxString\& } { name} }
Delete the arrow with the given name.
\membersection { wxLineShape::ClearArrowsAtPosition}
\func { void} { ClearArrowsAtPosition} { \param { int} { position = -1} }
Delete the arrows at the specified position, or at any position if { \it position} is -1.
\membersection { wxLineShape::DrawArrow}
1998-09-08 10:38:35 -04:00
\func { void} { DrawArrow} { \param { ArrowHead *} { arrow} , \param { double} { xOffset} , \param { bool} { proportionalOffset} }
1998-07-18 17:57:52 -04:00
Draws the given arrowhead (or annotation).
\membersection { wxLineShape::DeleteArrowHead}
\func { bool} { DeleteArrowHead} { \param { long} { arrowId} }
\func { bool} { DeleteArrowHead} { \param { int} { position} , \param { const wxString\& } { name} }
Delete arrowhead by id or position and name.
\membersection { wxLineShape::DeleteLineControlPoint}
\func { bool} { DeleteLineControlPoint} { \void }
Deletes an arbitary point on the line.
\membersection { wxLineShape::DrawArrows}
1998-09-08 10:38:35 -04:00
\func { void} { DrawArrows} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
Draws all arrows.
\membersection { wxLineShape::DrawRegion}
1998-09-08 10:38:35 -04:00
\func { void} { DrawRegion} { \param { wxDC\& } { dc} , \param { wxShapeRegion *} { region} , \param { double} { x} , \param { double} { y} }
1998-07-18 17:57:52 -04:00
Format one region at this position.
\membersection { wxLineShape::EraseRegion}
1998-09-08 10:38:35 -04:00
\func { void} { EraseRegion} { \param { wxDC\& } { dc} , \param { wxShapeRegion *} { region} , \param { double} { x} , \param { double} { y} }
1998-07-18 17:57:52 -04:00
Format one region at this position.
\membersection { wxLineShape::FindArrowHead}
\func { wxArrowHead *} { FindArrowHead} { \param { long} { arrowId} }
\func { wxArrowHead *} { FindArrowHead} { \param { int} { position} , \param { const wxString\& } { name} }
Find arrowhead by id or position and name.
\membersection { wxLineShape::FindLineEndPoints}
1998-09-08 10:38:35 -04:00
\func { void} { FindLineEndPoints} { \param { double *} { fromX} , \param { double *} { fromY} , \param { double *} { toX} , \param { double *} { toY} }
1998-07-18 17:57:52 -04:00
Finds the x, y points at the two ends of the line. This function can be
used by e.g. line-routing routines to get the actual points on the two
node images where the lines will be drawn to/from.
\membersection { wxLineShape::FindLinePosition}
1998-09-08 10:38:35 -04:00
\func { int} { FindLinePosition} { \param { double } { x} , \param { double } { y} }
1998-07-18 17:57:52 -04:00
Find which position we're talking about at this x, y.
Returns ARROW\_ POSITION\_ START, ARROW\_ POSITION\_ MIDDLE, ARROW\_ POSITION\_ END.
\membersection { wxLineShape::FindMinimumWidth}
1998-09-08 10:38:35 -04:00
\func { double} { FindMinimumWidth} { \void }
1998-07-18 17:57:52 -04:00
Finds the horizontal width for drawing a line with arrows in minimum
space. Assume arrows at end only.
\membersection { wxLineShape::FindNth}
\func { void} { FindNth} { \param { wxShape *} { image} , \param { int *} { nth} , \param { int *} { noArcs} , \param { bool} { incoming} }
Finds the position of the line on the given object. Specify whether incoming or outgoing lines are
being considered with { \it incoming} .
\membersection { wxLineShape::GetAttachmentFrom}
1998-09-08 10:38:35 -04:00
\constfunc { int} { GetAttachmentFrom} { \void }
1998-07-18 17:57:52 -04:00
Returns the attachment point on the `from' node.
\membersection { wxLineShape::GetAttachmentTo}
1998-09-08 10:38:35 -04:00
\constfunc { int} { GetAttachmentTo} { \void }
1998-07-18 17:57:52 -04:00
Returns the attachment point on the `to' node.
\membersection { wxLineShape::GetEnds}
1998-09-08 10:38:35 -04:00
\func { void} { GetEnds} { \param { double *} { x1} , \param { double *} { y1} , \param { double *} { x2} , \param { double *} { y2} }
1998-07-18 17:57:52 -04:00
Gets the visible endpoints of the lines for drawing between two objects.
\membersection { wxLineShape::GetFrom}
1998-09-08 10:38:35 -04:00
\constfunc { wxShape *} { GetFrom} { \void }
1998-07-18 17:57:52 -04:00
Gets the `from' object.
\membersection { wxLineShape::GetLabelPosition}
1998-09-08 10:38:35 -04:00
\func { void} { GetLabelPosition} { \param { int} { position} , \param { double *} { x} , \param { double *} { y} }
1998-07-18 17:57:52 -04:00
Get the reference point for a label. Region x and y are offsets from this.
position is 0 (middle), 1 (start), 2 (end).
\membersection { wxLineShape::GetNextControlPoint}
\func { wxPoint *} { GetNextControlPoint} { \param { wxShape *} { shape} }
Find the next control point in the line after the start/end point,
depending on whether the shape is at the start or end.
\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.
1998-09-08 10:38:35 -04:00
\membersection { wxLineShape::MakeLineControlPoints} \label { wxlineshapemakelinecontrolpoints}
1998-07-18 17:57:52 -04:00
\func { void} { MakeLineControlPoints} { \param { int} { n} }
1998-09-08 10:38:35 -04:00
Make a given number of control points (minimum of two).
1998-07-18 17:57:52 -04:00
\membersection { wxLineShape::OnMoveLink}
1998-09-08 10:38:35 -04:00
\func { void} { OnMoveLink} { \param { wxDC\& } { dc} , \param { bool} { moveControlPoints = TRUE} }
1998-07-18 17:57:52 -04:00
Called when a connected object has moved, to move the link to
correct position.
1998-09-08 10:38:35 -04:00
\membersection { wxLineShape::SetAttachmentFrom}
\func { void} { SetAttachmentTo} { \param { int} { fromAttach} }
Sets the `from' shape attachment.
1998-07-18 17:57:52 -04:00
\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.
1998-09-08 10:38:35 -04:00
\membersection { wxLineShape::SetAttachmentTo}
\func { void} { SetAttachmentTo} { \param { int} { toAttach} }
Sets the `to' shape attachment.
1998-07-18 17:57:52 -04:00
\membersection { wxLineShape::SetEnds}
1998-09-08 10:38:35 -04:00
\func { void} { SetEnds} { \param { double} { x1} , \param { double} { y1} , \param { double} { x2} , \param { double} { y2} }
1998-07-18 17:57:52 -04:00
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}
1998-09-08 10:38:35 -04:00
\func { void} { Straighten} { \param { wxDC*} { dc = NULL} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Straighten verticals and horizontals. { \it dc} is optional.
1998-07-18 17:57:52 -04:00
\membersection { wxLineShape::Unlink}
\func { void} { Unlink} { \void }
Unlinks the line from the nodes at either end.
1998-09-08 10:38:35 -04:00
\section { \class { wxPolygonShape} } \label { wxpolygonshape}
1998-07-18 17:57:52 -04:00
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.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxShape} { wxshape}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxPolygonShape::wxPolygonShape}
1998-09-08 10:38:35 -04:00
\func { } { wxPolygonShape} { void}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Constructor. Call \helpref { wxPolygonShape::Create} { wxpolygonshapecreate} to specify the polygon's vertices.
1998-07-18 17:57:52 -04:00
\membersection { wxPolygonShape::\destruct { wxPolygonShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxPolygonShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
1998-09-08 10:38:35 -04:00
\membersection { wxPolygonShape::Create} \label { wxpolygonshapecreate}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { Create} { \param { wxList*} { points} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Takes a list of wxRealPoints; each point is an { \it offset} from the centre.
1998-07-18 17:57:52 -04:00
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 }
1998-09-08 10:38:35 -04:00
Returns a pointer to the internal list of polygon vertices (wxRealPoints).
1998-07-18 17:57:52 -04:00
\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.
1998-09-08 10:38:35 -04:00
\section { \class { wxRectangleShape} } \label { wxrectangleshape}
1998-07-18 17:57:52 -04:00
The wxRectangleShape has rounded or square corners.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxShape} { wxshape}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxRectangleShape::wxRectangleShape}
1998-09-08 10:38:35 -04:00
\func { } { wxRectangleShape} { \param { double} { width = 0.0} , \param { double} { height = 0.0} }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxRectangleShape::\destruct { wxRectangleShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxRectangleShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
\membersection { wxRectangleShape::SetCornerRadius}
1998-09-08 10:38:35 -04:00
\func { void} { SetCornerRadius} { \param { double} { radius} }
1998-07-18 17:57:52 -04:00
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.
1998-09-08 10:38:35 -04:00
\section { \class { wxPseudoMetaFile} } \label { wxpseudometafile}
1998-07-18 17:57:52 -04:00
A simple metafile-like class which can load data from a Windows metafile on all platforms.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
wxObject
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\section { \class { wxShape} } \label { wxshape}
1998-07-18 17:57:52 -04:00
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.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxShapeEvtHandler} { wxshapeevthandler}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxShape::wxShape}
1998-09-08 10:38:35 -04:00
\func { } { wxShape} { \param { wxShapeCanvas*} { canvas = NULL} }
1998-07-18 17:57:52 -04:00
Constructs a new wxShape.
\membersection { wxShape::\destruct { wxShape} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxShape} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
\membersection { wxShape::AddLine}
1998-09-16 17:44:17 -04:00
\func { void} { AddLine} { \param { wxLineShape*} { line} , \param { wxShape*} { other} , \param { int} { attachFrom = 0} , \param { int} { attachTo = 0} ,
1998-09-08 10:38:35 -04:00
\param { int} { positionFrom = -1} , \param { int} { positionTo = -1} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
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.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::AddRegion}
1998-09-08 10:38:35 -04:00
\func { void} { AddRegion} { \param { wxShapeRegion*} { region} }
1998-07-18 17:57:52 -04:00
Adds a region to the shape.
\membersection { wxShape::AddText}
\func { void} { AddText} { \param { const wxString\& } { string} }
1998-09-08 10:38:35 -04:00
Adds a line of text to the shape's default text region.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::AddToCanvas}
1998-09-08 10:38:35 -04:00
\func { void} { AddToCanvas} { \param { wxShapeCanvas*} { theCanvas} , \param { wxShape*} { addAfter=NULL} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Adds the shape to the canvas's shape list. If { \it addAfter} is
1998-07-18 17:57:52 -04:00
non-NULL, will add the shape after this one.
\membersection { wxShape::AncestorSelected}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { AncestorSelected} { \void }
TRUE if the shape's ancestor is currently selected.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\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.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::AssignNewIds}
\func { void} { AssignNewIds} { \void }
Assigns new ids to this image and its children.
1998-09-08 10:38:35 -04:00
\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.}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\docparam { pt2} { The second point of the line representing the edge of the shape.}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\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.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::CalculateSize}
\func { void} { CalculateSize} { \void }
1998-09-08 10:38:35 -04:00
Called to calculate the shape's size if dependent on children sizes.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::ClearAttachments}
\func { void} { ClearAttachments} { \void }
1998-09-08 10:38:35 -04:00
Clears internal custom attachment point shapes (of class wxAttachmentPoint).
1998-07-18 17:57:52 -04:00
\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 }
1998-09-08 10:38:35 -04:00
Calculates the shape's constraints (if any). Applicable
only to wxCompositeShape, does nothing if the shape is of
1998-07-18 17:57:52 -04:00
a different class.
1998-09-08 10:38:35 -04:00
\membersection { wxShape::Copy} \label { wxshapecopy}
1998-07-18 17:57:52 -04:00
\func { void} { Copy} { \param { wxShape\& } { copy} }
1998-09-08 10:38:35 -04:00
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} .
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShape::CreateNewCopy} \label { wxshapecreatenewcopy}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { wxShape* } { CreateNewCopy} { \param { bool} { resetMapping = TRUE} , \param { bool} { recompute = TRUE} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Creates and returns a new copy of this shape (calling \helpref { wxShape::Copy} { wxshapecopy} ). Do not override this function.
1998-07-18 17:57:52 -04:00
This function should always be used to create a new copy, since it must do special processing
for copying constraints associated with constraints.
1998-09-08 10:38:35 -04:00
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} .
1998-07-18 17:57:52 -04:00
\membersection { wxShape::DeleteControlPoints}
\func { void} { DeleteControlPoints} { \void }
1998-09-08 10:38:35 -04:00
Deletes the control points (or handles) for the shape. Does not redraw
the shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::Detach}
\func { void} { Detach} { \void }
1998-09-08 10:38:35 -04:00
Disassociates the shape from its canvas by setting the internal shape
1998-07-18 17:57:52 -04:00
canvas pointer to NULL.
\membersection { wxShape::Draggable}
\func { bool} { Draggable} { \void }
1998-09-08 10:38:35 -04:00
TRUE if the shape may be dragged by the user.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::Draw}
1998-09-08 10:38:35 -04:00
\func { void} { Draw} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Draws the whole shape and any lines attached to it.
1998-07-18 17:57:52 -04:00
Do not override this function: override OnDraw, which is called
by this function.
\membersection { wxShape::DrawContents}
1998-09-08 10:38:35 -04:00
\func { void} { DrawContents} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Draws the internal graphic of the shape (such as
1998-07-18 17:57:52 -04:00
text).
Do not override this function: override OnDrawContents, which is called
by this function.
1998-09-08 10:38:35 -04:00
\membersection { wxShape::DrawLinks}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { DrawLinks} { \param { wxDC\& } { dc} , \param { int} { attachment = -1} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Draws any lines linked to this shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::Erase}
1998-09-08 10:38:35 -04:00
\func { void} { Erase} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Erases the shape, but does not repair damage caused to other
shapes.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::EraseContents}
1998-09-08 10:38:35 -04:00
\func { void} { EraseContents} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Erases the shape contents, that is, the area within the shape's
1998-07-18 17:57:52 -04:00
minimum bounding box.
\membersection { wxShape::EraseLinks}
1998-09-08 10:38:35 -04:00
\func { void} { EraseLinks} { \param { wxDC\& } { dc} , \param { int} { attachment = -1} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Erases links attached to this shape, but does not repair
damage caused to other shapes.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::FindRegion}
\func { wxShape *} { FindRegion} { \param { const wxString\& } { regionName} , \param { int *} { regionId} }
Finds the actual image (`this' if non-composite) and region id for the given
region name.
\membersection { wxShape::FindRegionNames}
\func { void} { FindRegionNames} { \param { wxStringList\& } { list} }
Finds all region names for this image (composite or simple).
Supply an empty string list.
\membersection { wxShape::Flash}
\func { void} { Flash} { \void }
1998-09-08 10:38:35 -04:00
Flashes the shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::FormatText}
\func { void} { FormatText} { \param { const wxString\& } { s} , \param { int} { i = 0} }
Reformats the given text region; defaults to formatting the default region.
\membersection { wxShape::GetAttachmentMode}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetAttachmentMode} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Returns the attachment mode, which is TRUE if attachments are used, FALSE otherwise (in which case
lines will be drawn as if to the centre of the shape). See \helpref { wxShape::SetAttachmentMode} { wxshapesetattachmentmode} .
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShape::GetAttachmentPosition} \label { wxshapegetattachmentposition}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { bool} { GetAttachmentPosition} { \param { int} { attachment} , \param { double*} { x} , \param { double*} { y} ,
\param { int} { nth = 0} , \param { int} { noArcs = 1} , \param { wxLineShape*} { line = NULL} }
1998-07-18 17:57:52 -04:00
Gets the position at which the given attachment point should be drawn.
1998-09-08 10:38:35 -04:00
If { \it attachment} isn't found among the attachment points of the shape, returns FALSE.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetBoundingBoxMax}
1998-09-08 10:38:35 -04:00
\func { void} { GetBoundingBoxMax} { \param { double *} { width} , \param { double *} { height} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets the maximum bounding box for the shape, taking into
1998-07-18 17:57:52 -04:00
account external features such as shadows.
\membersection { wxShape::GetBoundingBoxMin}
1998-09-08 10:38:35 -04:00
\func { void} { GetBoundingBoxMin} { \param { double *} { width} , \param { double *} { height} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets the minimum bounding box for the shape, that defines
1998-07-18 17:57:52 -04:00
the area available for drawing the contents (such as text).
\membersection { wxShape::GetBrush}
1998-09-08 10:38:35 -04:00
\constfunc { wxBrush*} { GetBrush} { \void }
1998-07-18 17:57:52 -04:00
Returns the brush used for filling the shape.
\membersection { wxShape::GetCanvas}
1998-09-08 10:38:35 -04:00
\constfunc { wxShapeCanvas*} { GetCanvas} { \void }
1998-07-18 17:57:52 -04:00
Gets the internal canvas pointer.
\membersection { wxShape::GetCentreResize}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetCentreResize} { \void }
1998-07-18 17:57:52 -04:00
Returns TRUE if the shape is to be resized from the centre (the centre
stands still), or FALSE if from the corner or side being dragged (the
other corner or side stands still).
\membersection { wxShape::GetChildren}
1998-09-08 10:38:35 -04:00
\constfunc { wxList\& } { GetChildren} { \void }
1998-07-18 17:57:52 -04:00
Returns a reference to the list of children for this shape.
\membersection { wxShape::GetClientData}
1998-09-08 10:38:35 -04:00
\func { wxObject*} { GetClientData} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets the client data associated with the shape (NULL if there is
1998-07-18 17:57:52 -04:00
none).
\membersection { wxShape::GetDisableLabel}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetDisableLabel} { \void }
1998-07-18 17:57:52 -04:00
Returns TRUE if the default region will not be shown, FALSE otherwise.
\membersection { wxShape::GetEventHandler}
1998-09-08 10:38:35 -04:00
\constfunc { wxShapeEvtHandler*} { GetEventHandler} { \void }
1998-07-18 17:57:52 -04:00
Returns the event handler for this shape.
\membersection { wxShape::GetFixedHeight}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetFixedHeight} { \void }
1998-07-18 17:57:52 -04:00
Returns TRUE if the shape cannot be resized in the vertical plane.
\membersection { wxShape::GetFixedSize}
1998-09-08 10:38:35 -04:00
\func { void} { GetFixedSize} { \param { bool *} { x} , \param { bool *} { y} }
1998-07-18 17:57:52 -04:00
Returns flags indicating whether the shape is of fixed size in either direction.
\membersection { wxShape::GetFixedWidth}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetFixedWidth} { \void }
1998-07-18 17:57:52 -04:00
Returns TRUE if the shape cannot be resized in the horizontal plane.
\membersection { wxShape::GetFont}
1998-09-08 10:38:35 -04:00
\constfunc { wxFont*} { GetFont} { \param { int} { regionId = 0} }
1998-07-18 17:57:52 -04:00
Gets the font for the specified text region.
\membersection { wxShape::GetFunctor}
1998-09-08 10:38:35 -04:00
\constfunc { wxString} { GetFunctor} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets a string representing the type of the shape, to be used when
writing out shape descriptions to a file. This is overridden by
each derived shape class to provide an appropriate type string. By default,
"node\_ image" is used for non-line shapes, and "arc\_ image" for lines.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetId}
1998-09-08 10:38:35 -04:00
\constfunc { long} { GetId} { \void }
1998-07-18 17:57:52 -04:00
Returns the integer identifier for this shape.
1998-09-08 10:38:35 -04:00
\membersection { wxShape::GetLinePosition} \label { wxshapegetlineposition}
\func { int} { GetLinePosition} { \param { wxLineShape*} { line} }
Gets the zero-based position of { \it line} in the list of lines for this shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetLines}
1998-09-08 10:38:35 -04:00
\constfunc { wxList\& } { GetLines} { \void }
1998-07-18 17:57:52 -04:00
Returns a reference to the list of lines connected to this shape.
1998-09-16 17:44:17 -04:00
\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).
1998-09-08 10:38:35 -04:00
\membersection { wxShape::GetNumberOfAttachments} \label { wxshapegetnumberofattachments}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\constfunc { int} { GetNumberOfAttachments} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets the number of attachment points for this shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetNumberOfTextRegions}
1998-09-08 10:38:35 -04:00
\constfunc { int} { GetNumberOfTextRegions} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets the number of text regions for this shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetParent}
1998-09-08 10:38:35 -04:00
\constfunc { wxShape *} { GetParent} { \void }
1998-07-18 17:57:52 -04:00
Returns the parent of this shape, if it is part of a composite.
\membersection { wxShape::GetPen}
1998-09-08 10:38:35 -04:00
\constfunc { wxPen*} { GetPen} { \void }
1998-07-18 17:57:52 -04:00
Returns the pen used for drawing the shape's outline.
\membersection { wxShape::GetPerimeterPoint}
1998-09-08 10:38:35 -04:00
\func { bool} { GetPerimeterPoint} { \param { double} { x1} , \param { double} { y1} , \param { double} { x2} , \param { double} { y2} , \param { double *} { x3} , \param { double *} { y3} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets the point at which the line from (x1, y1) to (x2, y2) hits the shape. Returns TRUE if the
1998-07-18 17:57:52 -04:00
line hits the perimeter.
\membersection { wxShape::GetRegionId} \label { getregionid}
\func { int} { GetRegionId} { \param { const wxString\& } { name} }
Gets the region's identifier by name. This is { \it not} unique for within an entire composite, but
is unique for the image.
\membersection { wxShape::GetRegionName} \label { getregionname}
\func { wxString} { GetRegionName} { \param { int} { regionId = 0} }
Gets the region's name. A region's name can be used to uniquely determine a region within
1998-09-08 10:38:35 -04:00
an entire composite image hierarchy. See also \helpref { wxShape::SetRegionName} { wxshapesetregionname} .
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetRegions} \label { getregions}
\func { wxList\& } { GetRegions} { \void }
Returns the list of wxShapeRegions.
\membersection { wxShape::GetRotation}
1998-09-08 10:38:35 -04:00
\constfunc { double} { GetRotatation} { \void }
1998-07-18 17:57:52 -04:00
Returns the angle of rotation in radians.
\membersection { wxShape::GetSensitivityFilter}
1998-09-08 10:38:35 -04:00
\constfunc { void} { GetSensitivityFilter} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Returns the sensitivity filter, a bitlist of values. See \helpref { wxShape::SetSensitivityFilter} { wxshapesetsensitivityfilter} .
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetShadowMode}
1998-09-08 10:38:35 -04:00
\constfunc { int} { SetShadowMode} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Returns the shadow mode. See \helpref { wxShape::SetShadowMode} { wxshapesetshadowmode} .
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetSpaceAttachments}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetSpaceAttachments} { \void }
1998-07-18 17:57:52 -04:00
Indicates whether lines should be spaced out evenly at the point they touch the node (TRUE), or whether they
should join at a single point (FALSE).
\membersection { wxShape::GetTextColour}
1998-09-08 10:38:35 -04:00
\constfunc { wxString} { GetTextColour} { \param { int} { regionId = 0} }
1998-07-18 17:57:52 -04:00
Gets the colour for the specified text region.
\membersection { wxShape::GetTopAncestor}
1998-09-08 10:38:35 -04:00
\constfunc { wxShape *} { GetTopAncestor} { \void }
1998-07-18 17:57:52 -04:00
Returns the top-most ancestor of this shape (the root of the composite).
\membersection { wxShape::GetX}
1998-09-08 10:38:35 -04:00
\constfunc { double} { GetX} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets the x position of the centre of the shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::GetY}
1998-09-08 10:38:35 -04:00
\constfunc { double} { GetY} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Gets the y position of the centre of the shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::HitTest}
1998-09-08 10:38:35 -04:00
\func { bool} { HitTest} { \param { double} { x} , \param { double} { y} , \param { int*} { attachment} , \param { double*} { distance} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Given a point on a canvas, returns TRUE if the point was on the shape, and returns
1998-07-18 17:57:52 -04:00
the nearest attachment point and distance from the given point and target.
\membersection { wxShape::Insert}
1998-09-08 10:38:35 -04:00
\func { void} { InsertInCanvas} { \param { wxShapeCanvas*} { canvas} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Inserts the shape at the front of the shape list of { \it canvas} .
1998-07-18 17:57:52 -04:00
\membersection { wxShape::IsHighlighted}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { IsHighlighted} { \void }
1998-07-18 17:57:52 -04:00
Returns TRUE if the shape is highlighted. Shape highlighting is unimplemented.
\membersection { wxShape::IsShown}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { IsShown} { \void }
1998-07-18 17:57:52 -04:00
Returns TRUE if the shape is in a visible state, FALSE otherwise. Note
that this has nothing to do with whether the window is hidden or the
shape has scrolled off the canvas; it refers to the internal
visibility flag.
\membersection { wxShape::MakeControlPoints}
\func { void} { MakeControlPoints} { \void }
1998-09-08 10:38:35 -04:00
Make a list of control points (draggable handles) appropriate to the shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::MakeMandatoryControlPoints}
\func { void} { MakeMandatoryControlPoints} { \void }
Make the mandatory control points. For example, the control point on a dividing line should
appear even if the divided rectangle shape's handles should not appear (because it is the child of
a composite, and children are not resizable).
1998-09-08 10:38:35 -04:00
\membersection { wxShape::Move} \label { wxshapemove}
\func { void} { Move} { \param { wxDC\& } { dc} , \param { double} { x1} , \param { double} { y1} , \param { bool} { display = TRUE} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Move the shape to the given position, redrawing if { \it display} is TRUE.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShape::MoveLineToNewAttachment} \label { wxshapemovelinetonewattachment}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { MoveLineToNewAttachment} { \param { wxDC\& } { dc} , \param { wxLineShape*} { toMove} , \param { double} { x} , \param { double} { y} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Move the given line (which must already be attached to the shape) to
a different attachment point on the shape, or a different order on the same attachment.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Cals \helpref { wxShape::AttachmentSortTest} { wxshapeattachmentsorttest} and then \helpref { wxShapeEvtHandler::OnChangeAttachment} { wxshapeevthandleronchangeattachment} .
1998-07-18 17:57:52 -04:00
\membersection { wxShape::MoveLinks}
1998-09-08 10:38:35 -04:00
\func { void} { MoveLinks} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Redraw all the lines attached to the shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::NameRegions}
\func { void} { NameRegions} { \param { const wxString\& } { parentName = ``"} }
Make unique names for all the regions in a shape or composite shape.
\membersection { wxShape::Rotate}
1998-09-08 10:38:35 -04:00
\func { void} { Rotate} { \param { double } { x} , \param { double } { y} , \param { double } { theta} }
1998-07-18 17:57:52 -04:00
Rotate about the given axis by the given amount in radians (does nothing
1998-09-08 10:38:35 -04:00
for most shapes). But even non-rotating shapes should record their
notional rotation in case it's important (e.g. in dog-leg code).
1998-07-18 17:57:52 -04:00
\membersection { wxShape::ReadConstraints}
1998-09-08 10:38:35 -04:00
\func { void} { ReadConstraints} { \param { wxExpr *} { clause} , \param { wxExprDatabase *} { database} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
If the shape is a composite, it may have constraints that need to be read in in a separate pass.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShape::ReadAttributes}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { ReadAttributes} { \param { wxExpr*} { clause} }
1998-07-18 17:57:52 -04:00
Reads the attributes (data member values) from the given expression.
\membersection { wxShape::ReadRegions}
1998-09-08 10:38:35 -04:00
\func { void} { ReadRegions} { \param { wxExpr *} { clause} }
1998-07-18 17:57:52 -04:00
Reads in the regions.
\membersection { wxShape::Recentre}
\func { void} { Recentre} { \void }
1998-09-08 10:38:35 -04:00
Does recentring (or other formatting) for all the text regions for this shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::RemoveFromCanvas}
1998-09-08 10:38:35 -04:00
\func { void} { RemoveFromCanvas} { \param { wxShapeCanvas*} { canvas} }
1998-07-18 17:57:52 -04:00
Removes the shape from the canvas.
\membersection { wxShape::ResetControlPoints}
\func { void} { ResetControlPoints} { \void }
Resets the positions of the control points (for instance when the
1998-09-08 10:38:35 -04:00
shape's shape has changed).
1998-07-18 17:57:52 -04:00
\membersection { wxShape::ResetMandatoryControlPoints}
\func { void} { ResetMandatoryControlPoints} { \void }
Reset the mandatory control points. For example, the control point on a dividing line should
appear even if the divided rectangle shape's handles should not appear (because it is the child of
a composite, and children are not resizable).
1998-09-08 10:38:35 -04:00
\membersection { wxShape::Recompute} \label { wxshaperecompute}
1998-07-18 17:57:52 -04:00
\func { bool} { Recompute} { \void }
1998-09-08 10:38:35 -04:00
Recomputes any constraints associated with the shape (normally
1998-07-18 17:57:52 -04:00
applicable to wxCompositeShapes only, but harmless for other
1998-09-08 10:38:35 -04:00
classes of shape).
1998-07-18 17:57:52 -04:00
\membersection { wxShape::RemoveLine}
1998-09-08 10:38:35 -04:00
\func { void} { RemoveLine} { \param { wxLineShape*} { line} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Removes the given line from the shape's list of attached lines.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShape::Select} \label { wxshapeselect}
1998-07-18 17:57:52 -04:00
\func { void} { Select} { \param { bool} { select = TRUE} }
1998-09-08 10:38:35 -04:00
Selects or deselects the given shape, drawing or erasing control points
1998-07-18 17:57:52 -04:00
(handles) as necessary.
1998-09-08 10:38:35 -04:00
\membersection { wxShape::Selected} \label { wxshapeselected}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\constfunc { bool} { Selected} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
TRUE if the shape is currently selected.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShape::SetAttachmentMode} \label { wxshapesetattachmentmode}
1998-07-18 17:57:52 -04:00
\func { void} { SetAttachmentMode} { \param { bool} { flag} }
Sets the attachment mode to TRUE or FALSE. If TRUE, attachment points
1998-09-08 10:38:35 -04:00
will be significant when drawing lines to and from this shape.
If FALSE, lines will be drawn as if to the centre of the shape.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::SetBrush}
\func { void} { SetBrush} { \param { wxBrush *} { brush} }
1998-09-08 10:38:35 -04:00
Sets the brush for filling the shape's shape.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShape::SetCanvas} \label { wxshapesetcanvas}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { SetCanvas} { \param { wxShapeCanvas*} { theCanvas} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Identical to \helpref { wxShape::Attach} { wxshapesetcanvas} .
1998-07-18 17:57:52 -04:00
\membersection { wxShape::SetCentreResize}
\func { void} { SetCentreResize} { \param { bool} { cr} }
Specify whether the shape is to be resized from the centre (the centre stands still) or from the corner or side
being dragged (the other corner or side stands still).
\membersection { wxShape::SetClientData}
\func { void} { SetClientData} { \param { wxObject *} { clientData} }
Sets the client data.
\membersection { wxShape::SetDefaultRegionSize} \label { setdefaultregionsize}
\func { void} { SetDefaultRegionSize} { \void }
Set the default region to be consistent with the shape size.
\membersection { wxShape::SetDisableLabel}
\func { void} { SetDisableLabel} { \param { bool} { flag} }
Set { \it flag} to TRUE to stop the default region being shown, FALSE otherwise.
\membersection { wxShape::SetDraggable}
\func { void} { SetDraggable} { \param { bool} { drag} , \param { bool} { recursive = FALSE} }
1998-09-08 10:38:35 -04:00
Sets the shape to be draggable or not draggable.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::SetDrawHandles}
\func { void} { SetDrawHandles} { \param { bool} { drawH} }
Sets the { \it drawHandles} flag for this shape and all descendants. If { \it drawH} is TRUE (the default),
any handles (control points) will be drawn. Otherwise, the handles will not be drawn.
\membersection { wxShape::SetEventHandler}
\func { void} { GetEventHandler} { \param { wxShapeEvtHandler *} { handler} }
Sets the event handler for this shape.
\membersection { wxShape::SetFixedSize}
\func { void} { SetFixedSize} { \param { bool} { x} , \param { bool} { y} }
1998-09-08 10:38:35 -04:00
Sets the shape to be of the given, fixed size.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::SetFont}
\func { void} { SetFont} { \param { wxFont *} { font} , \param { int} { regionId = 0} }
Sets the font for the specified text region.
\membersection { wxShape::SetFormatMode} \label { setformatmode}
\func { void} { SetFormatMode} { \param { int} { mode} , \param { int} { regionId = 0} }
Sets the format mode of the default text region. The argument can be a bit list
of the following:
\begin { description} \itemsep =0pt
\item [FORMAT\_NONE] No formatting.
\item [FORMAT\_CENTRE\_HORIZ] Horizontal centring.
\item [FORMAT\_CENTRE\_VERT] Vertical centring.
\end { description}
\membersection { wxShape::SetHighlight}
\func { void} { SetHighlight} { \param { bool} { hi} , \param { bool} { recurse = FALSE} }
Sets the highlight for a shape. Shape highlighting is unimplemented.
\membersection { wxShape::SetId}
\func { void} { SetId} { \param { long} { id} }
Set the integer identifier for this shape.
1998-09-16 17:44:17 -04:00
\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).
1998-07-18 17:57:52 -04:00
\membersection { wxShape::SetPen}
\func { void} { SetPen} { \param { wxPen *} { pen} }
1998-09-08 10:38:35 -04:00
Sets the pen for drawing the shape's outline.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShape::SetRegionName} \label { wxshapesetregionname}
1998-07-18 17:57:52 -04:00
\func { void} { SetRegionName} { \param { const wxString\& } { name} , \param { int} { regionId = 0} }
Sets the name for this region. The name for a region is unique within the scope of the whole
composite, whereas a region id is unique only for a single image.
1998-09-08 10:38:35 -04:00
\membersection { wxShape::SetSensitivityFilter} \label { wxshapesetsensitivityfilter}
1998-07-18 17:57:52 -04:00
\func { void} { SetSensitivityFilter} { \param { int} { sens=OP\_ ALL} , \param { bool} { recursive = FALSE} }
1998-09-08 10:38:35 -04:00
Sets the shape to be sensitive or insensitive to specific mouse operations.
1998-07-18 17:57:52 -04:00
{ \it sens} is a bitlist of the following:
\begin { itemize} \itemsep =0pt
\item OP\_ CLICK\_ LEFT
\item OP\_ CLICK\_ RIGHT
\item OP\_ DRAG\_ LEFT
\item OP\_ DRAG\_ RIGHT
\item OP\_ ALL (equivalent to a combination of all the above).
\end { itemize}
1998-09-08 10:38:35 -04:00
\membersection { wxShape::SetShadowMode} \label { wxshapesetshadowmode}
1998-07-18 17:57:52 -04:00
\func { void} { SetShadowMode} { \param { int} { mode} , \param { bool} { redraw = FALSE} }
Sets the shadow mode (whether a shadow is drawn or not). { \it mode} can be one of
the following:
\begin { description} \itemsep =0pt
\item [SHADOW\_NONE] No shadow (the default).
\item [SHADOW\_LEFT] Shadow on the left side.
\item [SHADOW\_RIGHT] Shadow on the right side.
\end { description}
\membersection { wxShape::SetSize}
1998-09-08 10:38:35 -04:00
\func { void} { SetSize} { \param { double} { x} , \param { double} { y} , \param { bool} { recursive = TRUE} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Sets the shape's size.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::SetSpaceAttachments}
\func { void} { SetSpaceAttachments} { \param { bool} { sp} }
Indicate whether lines should be spaced out evenly at the point they touch the node (TRUE), or whether they
should join at a single point (FALSE).
\membersection { wxShape::SetTextColour}
\func { void} { SetTextColour} { \param { const wxString\& } { colour} , \param { int} { regionId = 0} }
Sets the colour for the specified text region.
\membersection { wxShape::SetX}
1998-09-08 10:38:35 -04:00
\func { void} { SetX} { \param { double} { x} }
1998-07-18 17:57:52 -04:00
Sets the { \it x} position of the shape.
\membersection { wxShape::SetX}
1998-09-08 10:38:35 -04:00
\func { void} { SetY} { \param { double} { y} }
1998-07-18 17:57:52 -04:00
Sets the { \it y} position of the shape.
\membersection { wxShape::SpaceAttachments}
\func { void} { SpaceAttachments} { \param { bool} { sp} }
Sets the spacing mode: if TRUE, lines at the same attachment point will be
1998-09-08 10:38:35 -04:00
spaced evenly across that side of the shape. If false, all lines at the
1998-07-18 17:57:52 -04:00
same attachment point will emanate from the same point.
\membersection { wxShape::Show}
\func { void} { Show} { \param { bool} { show} }
1998-09-08 10:38:35 -04:00
Sets a flag indicating whether the shape should be drawn.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::Unlink}
\func { void} { Unlink} { \void }
1998-09-08 10:38:35 -04:00
If the shape is a line, unlinks the nodes attached to the shape, removing itself from the list of
1998-07-18 17:57:52 -04:00
lines for each of the `to' and `from' nodes.
1998-09-08 10:38:35 -04:00
\membersection { wxShape::WriteAttributes}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { WriteAttributes} { \param { wxExpr *} { clause} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Writes the shape's attributes (data member values) into the given expression.
1998-07-18 17:57:52 -04:00
\membersection { wxShape::WriteRegions}
1998-09-08 10:38:35 -04:00
\func { void} { WriteRegions} { \param { wxExpr *} { clause} }
1998-07-18 17:57:52 -04:00
Writes the regions.
1998-09-08 10:38:35 -04:00
\section { \class { wxShapeCanvas} } \label { wxshapecanvas}
A canvas for drawing diagrams on.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
wxScrolledWindow
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\wxheading { See also}
\helpref { wxDiagram} { wxdiagram}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxShapeCanvas::wxShapeCanvas}
1998-09-08 10:38:35 -04:00
\func { } { wxShapeCanvas} { \param { wxWindow*} { parent = NULL} , \param { wxWindowID} { id = -1} ,
\param { const wxPoint\& } { pos = wxDefaultPosition} , \param { const wxSize\& } { size = wxDefaultSize} ,
\param { long} { style = wxBORDER} }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxShapeCanvas::\destruct { wxShapeCanvas} }
1998-09-08 10:38:35 -04:00
\func { } { \destruct { wxShapeCanvas} } { \void }
1998-07-18 17:57:52 -04:00
Destructor.
\membersection { wxShapeCanvas::AddShape}
\func { void} { AddShape} { \param { wxShape *} { shape} , \param { wxShape *} { addAfter = NULL} }
Adds a shape to the diagram. If { \it addAfter} is non-NULL, the shape will be added after this
one.
\membersection { wxShapeCanvas::FindShape}
1998-09-08 10:38:35 -04:00
\func { wxShape *} { FindShape} { \param { double} { x1} , \param { double} { y} , \param { int *} { attachment} , \param { wxClassInfo *} { info = NULL} ,
1998-07-18 17:57:52 -04:00
\param { wxShape *} { notImage = NULL} }
Find a shape under this mouse click. Returns the shape (or NULL), and the nearest attachment point.
If { \it info} is non-NULL, a shape whose class which is a descendant of the desired class is found.
If { \it notImage} is non-NULL, shapes which are descendants of { \it notImage} are ignored.
\membersection { wxShapeCanvas::FindFirstSensitiveShape}
1998-09-08 10:38:35 -04:00
\func { wxShape *} { FindFirstSensitiveShape} { \param { double} { x1} , \param { double} { y} , \param { int *} { attachment} , \param { int} { op} }
1998-07-18 17:57:52 -04:00
Finds the first sensitive shape whose sensitivity filter matches { \it op} , working up the hierarchy of composites until
one (or none) is found.
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::GetDiagram}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\constfunc { wxDiagram*} { GetDiagram} { \void }
1998-07-18 17:57:52 -04:00
Returns the canvas associated with this diagram.
\membersection { wxShapeCanvas::GetGridSpacing}
1998-09-08 10:38:35 -04:00
\constfunc { double} { GetGridSpacing} { \void }
1998-07-18 17:57:52 -04:00
Returns the grid spacing.
\membersection { wxShapeCanvas::GetMouseTolerance}
1998-09-08 10:38:35 -04:00
\constfunc { int} { GetMouseTolerance} { \void }
1998-07-18 17:57:52 -04:00
Returns the tolerance within which a mouse move is ignored.
\membersection { wxShapeCanvas::GetShapeList}
1998-09-08 10:38:35 -04:00
\constfunc { wxList*} { GetShapeList} { \void }
1998-07-18 17:57:52 -04:00
Returns a pointer to the internal shape list.
\membersection { wxShapeCanvas::GetQuickEditMode}
1998-09-08 10:38:35 -04:00
\constfunc { bool} { GetQuickEditMode} { \void }
1998-07-18 17:57:52 -04:00
Returns quick edit mode for the associated diagram.
\membersection { wxShapeCanvas::InsertShape}
1998-09-08 10:38:35 -04:00
\func { void} { InsertShape} { \param { wxShape*} { shape} }
1998-07-18 17:57:52 -04:00
Inserts a shape at the front of the shape list.
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::OnBeginDragLeft} \label { wxshapecanvasonbegindragleft}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnBeginDragLeft} { \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} }
1998-07-18 17:57:52 -04:00
Called when the start of a left-button drag event on the canvas background is detected by OnEvent. You may override this member;
by default it does nothing.
{ \it keys} is a bit list of the following:
\begin { itemize} \itemsep =0pt
\item KEY\_ SHIFT
\item KEY\_ CTRL
\end { itemize}
1998-09-08 10:38:35 -04:00
See also \helpref { wxShapeCanvas::OnDragLeft} { wxshapecanvasondragleft} , \helpref { wxShapeCanvas::OnEndDragLeft} { wxshapecanvasonenddragleft} .
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::OnBeginDragRight} \label { wxshapecanvasonbegindragright}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnBeginDragRight} { \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} }
1998-07-18 17:57:52 -04:00
Called when the start of a right-button drag event on the canvas background is detected by OnEvent. You may override this member;
by default it does nothing.
{ \it keys} is a bit list of the following:
\begin { itemize} \itemsep =0pt
\item KEY\_ SHIFT
\item KEY\_ CTRL
\end { itemize}
1998-09-08 10:38:35 -04:00
See also \helpref { wxShapeCanvas::OnDragRight} { wxshapecanvasondragright} , \helpref { wxShapeCanvas::OnEndDragRight} { wxshapecanvasonenddragright} .
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::OnEndDragLeft} \label { wxshapecanvasonenddragleft}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnEndDragLeft} { \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} }
1998-07-18 17:57:52 -04:00
Called when the end of a left-button drag event on the canvas background is detected by OnEvent. You may override this member;
by default it does nothing.
{ \it keys} is a bit list of the following:
\begin { itemize} \itemsep =0pt
\item KEY\_ SHIFT
\item KEY\_ CTRL
\end { itemize}
1998-09-08 10:38:35 -04:00
See also \helpref { wxShapeCanvas::OnDragLeft} { wxshapecanvasondragleft} , \helpref { wxShapeCanvas::OnBeginDragLeft} { wxshapecanvasonbegindragleft} .
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::OnEndDragRight} \label { wxshapecanvasonenddragright}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnEndDragRight} { \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} }
1998-07-18 17:57:52 -04:00
Called when the end of a right-button drag event on the canvas background is detected by OnEvent. You may override this member;
by default it does nothing.
{ \it keys} is a bit list of the following:
\begin { itemize} \itemsep =0pt
\item KEY\_ SHIFT
\item KEY\_ CTRL
\end { itemize}
1998-09-08 10:38:35 -04:00
See also \helpref { wxShapeCanvas::OnDragRight} { wxshapecanvasondragright} , \helpref { wxShapeCanvas::OnBeginDragRight} { wxshapecanvasonbegindragright} .
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::OnDragLeft} \label { wxshapecanvasondragleft}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnDragLeft} { \param { bool} { draw} , \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} }
1998-07-18 17:57:52 -04:00
Called when a left-button drag event on the canvas background is detected by OnEvent. You may override this member;
by default it does nothing.
{ \it draw} is alternately TRUE and FALSE, to assist drawing and erasing.
{ \it keys} is a bit list of the following:
\begin { itemize} \itemsep =0pt
\item KEY\_ SHIFT
\item KEY\_ CTRL
\end { itemize}
1998-09-08 10:38:35 -04:00
See also \helpref { wxShapeCanvas::OnBeginDragLeft} { wxshapecanvasonbegindragleft} , \helpref { wxShapeCanvas::OnEndDragLeft} { wxshapecanvasonenddragleft} .
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::OnDragRight} \label { wxshapecanvasondragright}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnDragRight} { \param { bool} { draw} , \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} }
1998-07-18 17:57:52 -04:00
Called when a right-button drag event on the canvas background is detected by OnEvent. You may override this member;
by default it does nothing.
{ \it draw} is alternately TRUE and FALSE, to assist drawing and erasing.
{ \it keys} is a bit list of the following:
\begin { itemize} \itemsep =0pt
\item KEY\_ SHIFT
\item KEY\_ CTRL
\end { itemize}
1998-09-08 10:38:35 -04:00
See also \helpref { wxShapeCanvas::OnBeginDragRight} { wxshapecanvasonbegindragright} , \helpref { wxShapeCanvas::OnEndDragRight} { wxshapecanvasonenddragright} .
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::OnLeftClick} \label { wxshapecanvasonleftclick}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnLeftClick} { \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} }
1998-07-18 17:57:52 -04:00
Called when a left click event on the canvas background is detected by OnEvent. You may override this member;
by default it does nothing.
{ \it keys} is a bit list of the following:
\begin { itemize} \itemsep =0pt
\item KEY\_ SHIFT
\item KEY\_ CTRL
\end { itemize}
1998-09-08 10:38:35 -04:00
\membersection { wxShapeCanvas::OnRightClick} \label { wxshapecanvasonrightclick}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnRightClick} { \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} }
1998-07-18 17:57:52 -04:00
Called when a right click event on the canvas background is detected by OnEvent. You may override this member;
by default it does nothing.
{ \it keys} is a bit list of the following:
\begin { itemize} \itemsep =0pt
\item KEY\_ SHIFT
\item KEY\_ CTRL
\end { itemize}
\membersection { wxShapeCanvas::Redraw}
\func { void} { Redraw} { \void }
Calls wxDiagram::Redraw.
\membersection { wxShapeCanvas::RemoveShape}
\func { void} { RemoveShape} { \param { wxShape *} { shape} }
Calls wxDiagram::RemoveShape.
\membersection { wxShapeCanvas::SetDiagram}
\func { void} { SetDiagram} { \param { wxDiagram *} { diagram} }
Sets the diagram associated with this diagram.
\membersection { wxShapeCanvas::Snap}
1998-09-08 10:38:35 -04:00
\func { void} { Snap} { \param { double *} { x} , \param { double *} { y} }
1998-07-18 17:57:52 -04:00
Calls wxDiagram::Snap.
1998-09-08 10:38:35 -04:00
\section { \class { wxShapeEvtHandler} } \label { wxshapeevthandler}
1998-07-18 17:57:52 -04:00
wxShapeEvtHandler is a class from which wxShape (and therefore all shape classes) are derived.
A wxShape also contains a pointer to its current wxShapeEvtHandler. Event handlers
can be swapped in and out, altering the behaviour of a shape. This allows, for example,
a range of behaviours to be redefined in one class, rather than requiring
each shape class to be subclassed.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
wxObject
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeEvtHandler::m\_ handlerShape}
\member { wxShape*} { m\_ handlerShape}
1998-07-18 17:57:52 -04:00
Pointer to the shape associated with this handler.
1998-09-08 10:38:35 -04:00
\membersection { wxShapeEvtHandler::m\_ previousHandler}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\member { wxShapeEvtHandler*} { m\_ previousHandler}
1998-07-18 17:57:52 -04:00
Pointer to the previous handler.
\membersection { wxShapeEvtHandler::wxShapeEvtHandler}
\func { void} { wxShapeEvtHandler} { \param { wxShapeEvtHandler *} { previous = NULL} , \param { wxShape *} { shape = NULL} }
Constructs a new event handler.
\membersection { wxShapeEvtHandler::\destruct { wxShapeEvtHandler} }
\func { void} { \destruct { wxShapeEvtHandler} } { \void }
Destructor.
1998-09-08 10:38:35 -04:00
\membersection { wxShapeEvtHandler::CopyData} \label { wxshapeevthandlercopydata}
\func { void} { CopyData} { \param { wxShapeEvtHandler\& } { handler} }
A virtual function to copy the data from this object to { \it handler} . Override if you
derive from wxShapeEvtHandler and have data to copy.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeEvtHandler::CreateNewCopy} \label { wxshapeevthandlercreatenewcopy}
\func { wxShapeEvtHandler*} { CreateNewCopy} { \void }
Creates a new event handler object of the same class as this object, and then
calls \helpref { wxShapeEvtHandler::CopyData} { wxshapeevthandlercopydata} .
\membersection { wxShapeEvtHandler::GetPreviousHandler} \label { wxshapeevthandlergetprevioushandler}
\constfunc { wxShapeEvtHandler*} { GetPreviousHandler} { \void }
Returns the previous handler.
\membersection { wxShapeEvtHandler::GetShape} \label { wxshapeevthandlergetshape}
\constfunc { wxShape*} { GetShape} { \void }
1998-07-18 17:57:52 -04:00
Returns the shape associated with this handler.
\membersection { wxShapeEvtHandler::OnBeginDragLeft}
1998-09-08 10:38:35 -04:00
\func { void} { OnBeginDragLeft} { \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
Called when the user is beginning to drag using the left mouse button.
\membersection { wxShapeEvtHandler::OnBeginDragRight}
1998-09-08 10:38:35 -04:00
\func { void} { OnBeginDragRight} { \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
Called when the user is beginning to drag using the right mouse button.
\membersection { wxShapeEvtHandler::OnBeginSize}
1998-09-08 10:38:35 -04:00
\func { void} { OnBeginSize} { \param { double} { width} , \param { double} { height} }
1998-07-18 17:57:52 -04:00
Called when a shape starts to be resized.
1998-09-08 10:38:35 -04:00
\membersection { wxShapeEvtHandler::OnChangeAttachment} \label { wxshapeevthandleronchangeattachment}
\func { void} { OnChangeAttachment} { \param { int} { attachment} , \param { wxLineShape*} { line} , \param { wxList\& } { ordering} }
Override this to prevent or intercept line reordering. wxShape's implementation of this function
calls \helpref { wxShape::ApplyAttachmentOrdering} { wxshapeapplyattachmentordering} to apply
the new ordering.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnDragLeft}
1998-09-08 10:38:35 -04:00
\func { void} { OnDragLeft} { \param { bool} { draw} , \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called twice when the shape is being dragged, once to allow erasing the old
1998-07-18 17:57:52 -04:00
image, and again to allow drawing at the new position.
\membersection { wxShapeEvtHandler::OnDragRight}
1998-09-08 10:38:35 -04:00
\func { void} { OnDragRight} { \param { bool} { draw} , \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called twice when the shape is being dragged, once to allow erasing the old
1998-07-18 17:57:52 -04:00
image, and again to allow drawing at the new position.
\membersection { wxShapeEvtHandler::OnDraw}
1998-09-16 17:44:17 -04:00
\func { void} { OnDraw} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
Defined for each class to draw the main graphic, but
not the contents.
\membersection { wxShapeEvtHandler::OnDrawContents}
1998-09-08 10:38:35 -04:00
\func { void} { OnDrawContents} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
Defined for each class to draw the contents of the
1998-09-08 10:38:35 -04:00
shape, such as text.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnDrawControlPoints}
1998-09-08 10:38:35 -04:00
\func { void} { OnDrawControlPoints} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the shape's control points (handles) should
1998-07-18 17:57:52 -04:00
be drawn.
\membersection { wxShapeEvtHandler::OnDrawOutline}
1998-09-08 10:38:35 -04:00
\func { void} { OnDrawOutline} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the outline of the shape should be drawn.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnEndDragLeft}
1998-09-08 10:38:35 -04:00
\func { void} { OnEndDragLeft} { \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
Called when the user is stopping dragging using the left mouse button.
\membersection { wxShapeEvtHandler::OnEndDragRight}
1998-09-08 10:38:35 -04:00
\func { void} { OnEndDragRight} { \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
Called when the user is stopping dragging using the right mouse button.
\membersection { wxShapeEvtHandler::OnEndSize}
1998-09-08 10:38:35 -04:00
\func { void} { OnEndSize} { \param { double} { width} , \param { double} { height} }
1998-07-18 17:57:52 -04:00
Called after a shape is resized.
\membersection { wxShapeEvtHandler::OnErase}
1998-09-08 10:38:35 -04:00
\func { void} { OnErase} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the whole shape should be erased.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnEraseContents}
1998-09-08 10:38:35 -04:00
\func { void} { OnEraseContents} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
Called when the contents should be erased.
\membersection { wxShapeEvtHandler::OnEraseControlPoints}
1998-09-08 10:38:35 -04:00
\func { void} { OnEraseControlPoints} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the shape's control points (handles) should
1998-07-18 17:57:52 -04:00
be erased.
\membersection { wxShapeEvtHandler::OnHighlight}
1998-09-08 10:38:35 -04:00
\func { void} { OnHighlight} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the shape should be highlighted.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnLeftClick}
1998-09-08 10:38:35 -04:00
\func { void} { OnLeftClick} { \param { double} { x} , \param { double} { y} , \param { int} { keys =0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the shape receives a left mouse click event.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnMoveLink}
1998-09-08 10:38:35 -04:00
\func { void} { OnMoveLink} { \param { wxDC\& } { dc} , \param { bool} { moveControlPoints=TRUE} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the line attached to an shape need to be repositioned,
because the shape has moved.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnMoveLinks}
1998-09-08 10:38:35 -04:00
\func { void} { OnMoveLinks} { \param { wxDC\& } { dc} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the lines attached to an shape need to be repositioned,
because the shape has moved.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeEvtHandler::OnMovePost}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { bool} { OnMovePost} { \param { wxDC\& } { dc} , \param { double} { x} , \param { double} { y} , \param { double} { oldX} , \param { double} { oldY} , \param { bool} { display = TRUE} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called just after the shape receives a move request.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnMovePre}
1998-09-08 10:38:35 -04:00
\func { bool} { OnMovePre} { \param { wxDC\& } { dc} , \param { double} { x} , \param { double} { y} , \param { double} { oldX} , \param { double} { oldY} , \param { bool} { display = TRUE} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called just before the shape receives a move request. Returning TRUE
allows the move to be processed; returning FALSE vetoes the move.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnRightClick}
1998-09-08 10:38:35 -04:00
\func { void} { OnRightClick} { \param { double} { x} , \param { double} { y} , \param { int} { keys = 0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when the shape receives a mouse mouse click event.
1998-07-18 17:57:52 -04:00
\membersection { wxShapeEvtHandler::OnSize}
1998-09-08 10:38:35 -04:00
\func { void} { OnSize} { \param { double} { x} , \param { double} { y} }
Called when the shape receives a resize request.
\membersection { wxShapeEvtHandler::OnSizingBeginDragLeft}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnSizingBeginDragLeft} { \param { wxControlPoint*} { pt} , \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Called when a sizing drag is beginning.
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\membersection { wxShapeEvtHandler::OnSizingDragLeft}
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
\func { void} { OnSizingDragLeft} { \param { wxControlPoint*} { pt} , \param { bool} { draw} , \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
Called when a sizing drag is occurring.
\membersection { wxShapeEvtHandler::OnSizingEndDragLeft}
\func { void} { OnSizingEndDragLeft} { \param { wxControlPoint*} { pt} , \param { double} { x} , \param { double} { y} , \param { int} { keys=0} , \param { int} { attachment = 0} }
Called when a sizing drag is ending.
\membersection { wxShapeEvtHandler::SetPreviousHandler} \label { wxshapeevthandlersetprevioushandler}
\func { void} { SetPreviousHandler} { \param { wxShapeEvtHandler*} { handler} }
Sets the previous handler.
\membersection { wxShapeEvtHandler::SetShape} \label { wxshapeevthandlersetshape}
\func { void} { SetShape} { \param { wxShape*} { shape} }
Sets the shape for this handler.
\section { \class { wxTextShape} } \label { wxtextshape}
1998-07-18 17:57:52 -04:00
As wxRectangleShape, but only the text is displayed.
1998-09-08 10:38:35 -04:00
\wxheading { Derived from}
\helpref { wxRectangleShape} { wxrectangleshape}
\latexignore { \rtfignore { \wxheading { Members} } }
1998-07-18 17:57:52 -04:00
\membersection { wxTextShape::wxTextShape}
1998-09-08 10:38:35 -04:00
\func { void} { wxTextShape} { \param { double} { width = 0.0} , \param { double} { height = 0.0} }
1998-07-18 17:57:52 -04:00
Constructor.
\membersection { wxTextShape::\destruct { wxTextShape} }
\func { void} { \destruct { wxTextShape} } { \void }
Destructor.
\section { Functions} \label { functions}
These are the OGL functions.
\membersection { ::wxOGLInitialize}
1998-09-08 10:38:35 -04:00
\func { void} { wxOGLInitialize} { \void }
1998-07-18 17:57:52 -04:00
1998-09-08 10:38:35 -04:00
Initializes OGL.
1998-07-18 17:57:52 -04:00
\membersection { ::wxOGLCleanUp}
\func { void} { wxOGLCleanUp} { \void }
Cleans up OGL.
1998-09-08 10:38:35 -04:00