Inheritance diagram for CP_Graphics_Imp_GDK:
State | |
virtual void | SaveState () |
virtual void | RestoreState () |
virtual void | ScaleCTM (float, float) |
virtual void | TranslateCTM (float, float) |
virtual void | RotateCTM (float) |
virtual void | SkewCTM (float, float) |
Gradient | |
virtual void | DrawGradient (CP_E_GradientType, CP_Rect &) |
virtual void | SetGradientAngle (SInt16) |
virtual void | SetGradientColor (const SInt16, const CP_ARGBColor &) |
virtual void | SetGradientCount (SInt16) |
Images | |
virtual void | DrawImage (SInt16, CP_Rect &) |
virtual void | DrawImage (const CP_FileSystemSpec &, CP_Rect &) |
virtual void | DrawImage (const CP_FileSystemSpec &, CP_Rect &, CP_Rect &) |
virtual void | DrawPicture (CP_OSPicture &, const CP_Rect &) |
Paths | |
virtual void | BeginPath () |
virtual void | ClosePath () |
virtual void | StrokePath () |
virtual void | FillPath () |
virtual void | FillPath (CP_Pattern &) |
virtual void | DrawPath (CP_E_PathDrawingMode) |
virtual void | PathMoveTo (const CP_Point &) |
virtual void | PathMoveTo (float, float) |
virtual void | PathAddLineTo (const CP_Point &) |
virtual void | PathAddLines (const CP_Point[], SInt16) |
virtual void | PathAddLine (const CP_Point &, const CP_Point &) |
virtual void | PathAddLine (float, float, float, float) |
virtual void | PathAddRect (const CP_Rect &) |
virtual void | PathAddOval (const CP_Rect &) |
virtual void | PathAddBezier (const CP_Point &, const CP_Point &, const CP_Point &, const CP_Point &) |
virtual void | PathAddQuadBezier (const CP_Point &, const CP_Point &, const CP_Point &) |
virtual void | PathAddPoly (CP_Point_Array &) |
virtual void | PathAddArc (float, float, float, float, float, SInt16) |
virtual void | ClipPath () |
Rects | |
virtual void | StrokeRect (const CP_Rect &) |
virtual void | EraseRect (const CP_Rect &) |
virtual void | FillRect (const CP_Rect &) |
Text | |
virtual void | SetTextRenderingFlags (SInt16) |
virtual void | DrawText (CP_FontSpec &, const CP_String &, const CP_Rect &, SInt16, SInt16, bool) |
virtual void | DrawTrunc (CP_FontSpec &, const CP_String &, const CP_Rect &, SInt16, SInt16) |
Public Member Functions | |
CP_Graphics_Imp_GDK (CP_Canvas &inDestCanvas) | |
virtual | ~CP_Graphics_Imp_GDK () |
virtual void | SetAlpha (float inAlpha) |
virtual void | SetLineWidth (float lineWidth) |
virtual void | SetStrokeColor (CP_ARGBColor &inStrokeColor) |
virtual void | SetFillColor (CP_ARGBColor &inFillColor) |
virtual void | Line (const CP_Point &inPoint, const CP_Size &inSize) |
virtual void | Line (float inStartHorLocation, float inStartVerLocation, float inEndHorLocation, float inEndVerLocation) |
virtual void | DrawString (CP_FontSpec &inFontSpec, const CP_String &inText, const CP_Point &inStartPoint) |
virtual void | DrawText (CP_FontSpec &inFontSpec, const CP_String &inText, const CP_Rect &inBounds, SInt16 inHorAlign=CP_E_TextAlign_HorLeft, SInt16 inVerAlign=CP_E_TextAlign_VerTop) |
Arcs | |
virtual void | StrokeArc (float, float, float, float, float) |
virtual void | FillArc (float, float, float, float, float) |
Bezier Curves | |
virtual void | StrokeBezier (const CP_Point &, const CP_Point &, const CP_Point &, const CP_Point &) |
virtual void | StrokeQuadBezier (const CP_Point &, const CP_Point &, const CP_Point &) |
Icon | |
virtual void | DrawIcon (const CP_Rect &, CP_E_IconStyle, SInt16) |
virtual void | DrawIcon (CP_OSIcon &, const CP_Rect &) |
Polygons | |
virtual void | StrokePoly (CP_Point_Array &) |
virtual void | FillPoly (CP_Point_Array &) |
Regions | |
virtual void | StrokeRegion (const CP_Region &) |
virtual void | FillRegion (const CP_Region &) |
Round Rects | |
virtual void | StrokeRoundRect (const CP_Rect &, SInt16, SInt16) |
virtual void | FillRoundRect (const CP_Rect &, SInt16, SInt16) |
Oval / Circle | |
virtual void | StrokeOval (const CP_Rect &) |
virtual void | FillOval (const CP_Rect &) |
Setters | |
virtual void | SetLineJoin (CP_E_GraphicsLineJoin) |
virtual void | SetLineCap (CP_E_GraphicsLineCap) |
Arcs | |
virtual void | StrokeArc (float, float, float, float, float) |
virtual void | FillArc (float, float, float, float, float) |
Images | |
virtual void | DrawImage (SInt16, CP_Rect &) |
Regions | |
virtual void | StrokeRegion (const CP_Region &) |
virtual void | FillRegion (const CP_Region &) |
Setters | |
virtual void | SetLineJoin (CP_E_GraphicsLineJoin) |
virtual void | SetLineCap (CP_E_GraphicsLineCap) |
Arcs | |
virtual void | StrokeArc (float, float, float, float, float) |
virtual void | FillArc (float, float, float, float, float) |
Bezier Curves | |
virtual void | StrokeBezier (const CP_Point &, const CP_Point &, const CP_Point &, const CP_Point &) |
virtual void | StrokeQuadBezier (const CP_Point &, const CP_Point &, const CP_Point &) |
Icon | |
virtual void | DrawIcon (const CP_Rect &, CP_E_IconStyle, SInt16) |
virtual void | DrawIcon (CP_OSIcon &, const CP_Rect &) |
Polygons | |
virtual void | StrokePoly (CP_Point_Array &) |
virtual void | FillPoly (CP_Point_Array &) |
Regions | |
virtual void | StrokeRegion (const CP_Region &) |
virtual void | FillRegion (const CP_Region &) |
Round Rects | |
virtual void | StrokeRoundRect (const CP_Rect &, SInt16, SInt16) |
virtual void | FillRoundRect (const CP_Rect &, SInt16, SInt16) |
Oval / Circle | |
virtual void | StrokeOval (const CP_Rect &) |
virtual void | FillOval (const CP_Rect &) |
Protected Attributes | |
CP_StTextStateSaver | fTextState |
CP_StColorStateSaver | fColorState |
CP_StPenStateSaver | fPenState |
CP_Canvas | fDestCanvas |
float | fAlpha |
float | fLineWidth |
CP_ARGBColor | fStrokeColor |
CP_ARGBColor | fFillColor |
|
|
|
|
|
Reimplemented from CP_Graphics_Imp. |
|
Reimplemented from CP_Graphics_Imp. |
|
Reimplemented from CP_Graphics_Imp. |
|
Reimplemented from CP_Graphics_Imp. |
|
|
|
Reimplemented from CP_Graphics_Imp. |
|
Reimplemented from CP_Graphics_Imp. |
|
CP_Font *canvasFont = fDestCanvas.GetFont(); |
|
Returns the current width used in drawing lines.
|
|
Returns the current alpha value used when drawing.
|
|
Returns the current color used in stroking.
|
|
Returns the current color used in filling.
|
|
Returns the CP_Canvas object to be drawn into.
|
|
Sets the line join for determing how lines will be drawn when they join. Note: Some platforms do not support line join, and they will be drawn in the normal style. Current values for inLineJoint can be:
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Sets the line cap for determing how lines ending will be drawn. Note: Some platforms do not support line caps, and they will be drawn in the normal style. Current values for inLineCap can be:
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Saves the current graphics state.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Restore the current graphics state. Each RestoreState needs to have a matching SaveState called before calling this.
CP_Graphics graphics( inDestCanvas ); graphics.SaveState(); do some drawing and state changes here, such as setting colors, line styles graphics.RestoreState();
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Sets the scaling amount to be used in the current transformation matrix.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Sets the translation amount to be used in the current transformation matrix.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Sets the rotation amount to be used in the current transformation matrix.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Sets the skewing amount to be used in the current transformation matrix.
|
|
Draws an arc using the passed in parameters, and then strokes it, using the current stroke color and stroke line width.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Draws an arc using the passed in parameters, and then fills it, using the current fill color.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Draws a Bezier curve using the passed in parameters, and then strokes it, using the current stroke color and stroke line width.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws a Quad Bezier curve using the passed in parameters, and then strokes it, using the current stroke color and stroke line width.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws a gradient in the specified bounds. The gradient can be of the following types:
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Sets the angle used to draw the gradient.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Sets one of the colors used to draw the gradient.
|
|
Sets the count of the number of colors used in drawing a gradient.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws a icon resource in the passed in bounds. The image will be scaled to fit the rectangle.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws the CP_OSicon in the passed in bounds. The image will be scaled to fit the rectangle.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws a picture image into the specified area. The image will be scaled to fit into the destination area.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Draws a picture image into the specified area. The image will be scaled to fit into the destination area. The image is located in the passed in file spec.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draw the passed in image object in the destination bounds, scaling the image to fit. This versions copies inSourceBounds portion of the image to the destination.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draw the passed in OSPicture in the destination bounds, scaling the image as needed to fit.
Reimplemented in CP_Graphics_Imp_GDI. |
|
Marks the beginning of a path. This indicates that all subsequent drawing operations until ClosePath is called is collected into the current path. After ClosePath is called, you can then stroke or fill the path. The only drawing calls that are added, are the ones that begin with Path, such as PathMoveTo, PathAddOval, PathAddRect, etc.
CP_Graphics graphics( inDestCanvas ); graphics.BeginPath(); do some path drawing commands here graphics.EndPath(); graphics.StrokePath();
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Closes the current path. Every call to ClosePath needs to have a corresponding BeginPath call.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Strokes the current path.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Fills the current path.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Fills the current path with the passed in pattern.
Reimplemented in CP_Graphics_Imp_GDI. |
|
Draws the current path using the passed in path drawing mode, which can be one of the following:
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Sets the current point in the path to that of the passed in point. This is the location where subsequent drawing operations will begin unless the call specifies a new starting point in its params.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Sets the current point in the path to that of the passed in coordinates. This is the location where subsequent drawing operations will begin unless the call specifies a new starting point in its params.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Adds a line to our path. The line will be drawn from the current point to the location specified in inPoint.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Add inNumberPoints lines to our path. The first point is the starting point, then each additional point has a line drawn from the last point to that point.
|
|
Adds a starting and ending point to the current path.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Adds a line to the current path using the specified coordinates.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Adds a rect to the current path.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Adds an oval to the current path.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Adds a bezier curve to the current path.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Adds a quadratic bezier curve to the current path.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Adds a polygon to the current path as specified in the passed in points array.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Add an arc of a circle to the context's path, possibly preceded by a straight line segment. `(inHorCenter, inVerCenter)' is the center of the arc; `inRadius' is its radius; `inStartAngle' is the angle to the first endpoint of the arc; `inEndAngle' is the angle to the second endpoint of the arc; and `inClockwise' is 1 if the arc is to be drawn clockwise, 0 otherwise. `inStartAngle' and `inEndAngle' are measured in radians.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Sets the clipping path of the canvas being drawn into to that of the current path.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws the polygon specified by the passed in points array, then strokes it.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws the polygon specified by the passed in points array, and fills it.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws a rect specified by the passed in bounds, then strokes it.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Erases the passed in rect using the canvases current background color.
Reimplemented in CP_Graphics_Imp_GDI. |
|
Draws a rect specified by the passed in bounds, then fills it.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws a region specified by the passed in region, then strokes it.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Draws a region specified by the passed in region, then fills it.
Reimplemented in CP_Graphics_Imp_Quartz. |
|
Draws a rounded rect specified by the passed in rect, then strokes it.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws a rounded rect specified by the passed in rect, then fills it.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws an oval specified by the passed in rect, then strokes it.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws an oval specified by the passed in rect, then fills it.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Sets a flag to indicate how the text will be drawn in the destination canvas, if the platform supports them. Such as transparent or opaque.
|
|
Draws the passed in text at the location specified. The text will be wrapped to fit in the passed in bounds.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
Draws the passed in text at the locatio specified. The text will be truncated to fit in the passed in bounds.
Reimplemented in CP_Graphics_Imp_Quartz, and CP_Graphics_Imp_GDI. |
|
|
|
|
|
|
|
|
|
Destination canvas to draw into. |
|
Alpha value for drawing. |
|
Line width for the current stroking. Reimplemented in CP_Graphics_Imp_GDI. |
|
Color used in stroking. Reimplemented in CP_Graphics_Imp_GDI. |