#include "ewlocale.h"
#include "_GraphicsArcPath.h"
#include "_GraphicsCanvas.h"
#include "_GraphicsPath.h"
#include "_GraphicsWarpMatrix.h"
#include "_ResourcesBitmap.h"
#include "_ResourcesFont.h"
#include "Graphics.h"
#include "Views.h"
Functions | |
void | GraphicsCanvas__Init (GraphicsCanvas _this, XObject aLink, XHandle aArg) |
void | GraphicsCanvas__ReInit (GraphicsCanvas _this) |
void | GraphicsCanvas__Done (GraphicsCanvas _this) |
void | GraphicsCanvas_Done (GraphicsCanvas _this) |
void | GraphicsCanvas_Init (GraphicsCanvas _this, XHandle aArg) |
void | GraphicsCanvas_OnSetFrameSize (GraphicsCanvas _this, XPoint value) |
void | GraphicsCanvas_Update (GraphicsCanvas _this) |
GraphicsCanvas | GraphicsCanvas_DetachBitmap (GraphicsCanvas _this) |
GraphicsCanvas | GraphicsCanvas__DetachBitmap (void *_this) |
GraphicsCanvas | GraphicsCanvas_AttachBitmap (GraphicsCanvas _this, XHandle aBitmap) |
GraphicsCanvas | GraphicsCanvas__AttachBitmap (void *_this, XHandle aBitmap) |
void | GraphicsCanvas_DrawText (GraphicsCanvas _this, XRect aClip, ResourcesFont aFont, XString aString, XInt32 aOffset, XInt32 aCount, XRect aDstRect, XPoint aSrcPos, XInt32 aMinWidth, XEnum aOrientation, XColor aColorTL, XColor aColorTR, XColor aColorBR, XColor aColorBL, XBool aBlend) |
void | GraphicsCanvas_DrawBitmapFrame (GraphicsCanvas _this, XRect aClip, ResourcesBitmap aBitmap, XInt32 aFrameNr, XRect aDstRect, XSet aEdges, XColor aColorTL, XColor aColorTR, XColor aColorBR, XColor aColorBL, XBool aBlend) |
void | GraphicsCanvas_StrokePath (GraphicsCanvas _this, XRect aClip, GraphicsPath aPath, XRect aDstRect, XBool aFlipY, XPoint aOffset, XFloat aWidth, XEnum aStartCapStyle, XEnum aEndCapStyle, XEnum aJoinStyle, XFloat aMiterLimit, XColor aColorTL, XColor aColorTR, XColor aColorBR, XColor aColorBL, XBool aBlend, XBool aAntialiased) |
void | GraphicsCanvas_WarpBitmap (GraphicsCanvas _this, XRect aClip, ResourcesBitmap aBitmap, XInt32 aFrameNr, XFloat aDstX1, XFloat aDstY1, XFloat aDstW1, XFloat aDstX2, XFloat aDstY2, XFloat aDstW2, XFloat aDstX3, XFloat aDstY3, XFloat aDstW3, XFloat aDstX4, XFloat aDstY4, XFloat aDstW4, XRect aSrcRect, XColor aColor1, XColor aColor2, XColor aColor3, XColor aColor4, XBool aBlend, XBool aFilter) |
void | GraphicsCanvas_ScaleBitmap (GraphicsCanvas _this, XRect aClip, ResourcesBitmap aBitmap, XInt32 aFrameNr, XRect aDstRect, XRect aSrcRect, XColor aColorTL, XColor aColorTR, XColor aColorBR, XColor aColorBL, XBool aBlend, XBool aFilter) |
void | GraphicsCanvas_CopyBitmap (GraphicsCanvas _this, XRect aClip, ResourcesBitmap aBitmap, XInt32 aFrameNr, XRect aDstRect, XPoint aSrcPos, XColor aColorTL, XColor aColorTR, XColor aColorBR, XColor aColorBL, XBool aBlend) |
void | GraphicsCanvas_FillPath (GraphicsCanvas _this, XRect aClip, GraphicsPath aPath, XRect aDstRect, XBool aFlipY, XPoint aOffset, XColor aColorTL, XColor aColorTR, XColor aColorBR, XColor aColorBL, XBool aBlend, XBool aAntialiased, XEnum aFillRule) |
void | GraphicsCanvas_FillRectangle (GraphicsCanvas _this, XRect aClip, XRect aDstRect, XColor aColorTL, XColor aColorTR, XColor aColorBR, XColor aColorBL, XBool aBlend) |
void | GraphicsCanvas_DrawLine (GraphicsCanvas _this, XRect aClip, XPoint aDstPos1, XPoint aDstPos2, XColor aColor1, XColor aColor2, XBool aBlend) |
EW_DEFINE_CLASS (GraphicsCanvas, ResourcesBitmap, OnDraw, OnDraw, InvalidArea, InvalidArea, InvalidArea, InvalidArea, "Graphics::Canvas") | |
void | GraphicsWarpMatrix__ReInit (GraphicsWarpMatrix _this) |
void | GraphicsWarpMatrix__Done (GraphicsWarpMatrix _this) |
XBool | GraphicsWarpMatrix_CalculateZ (GraphicsWarpMatrix _this, XFloat aX, XFloat aY) |
XBool | GraphicsWarpMatrix_Project (GraphicsWarpMatrix _this, XFloat aX, XFloat aY) |
GraphicsWarpMatrix | GraphicsWarpMatrix_Rotate (GraphicsWarpMatrix _this, XFloat aAngleX, XFloat aAngleY, XFloat aAngleZ) |
GraphicsWarpMatrix | GraphicsWarpMatrix_Translate (GraphicsWarpMatrix _this, XFloat aDeltaX, XFloat aDeltaY, XFloat aDeltaZ) |
GraphicsWarpMatrix | GraphicsWarpMatrix_DeriveFromQuad (GraphicsWarpMatrix _this, XFloat aX1, XFloat aY1, XFloat aX2, XFloat aY2, XFloat aX3, XFloat aY3, XFloat aX4, XFloat aY4) |
GraphicsWarpMatrix | GraphicsWarpMatrix_Assign (GraphicsWarpMatrix _this, GraphicsWarpMatrix aMatrix) |
EW_DEFINE_CLASS (GraphicsWarpMatrix, XObject, _None, _None, _None, _None, _None, _None, "Graphics::WarpMatrix") | |
void | GraphicsPath__ReInit (GraphicsPath _this) |
void | GraphicsPath__Done (GraphicsPath _this) |
void | GraphicsPath_onUpdate (GraphicsPath _this, XObject sender) |
void | GraphicsPath_Done (GraphicsPath _this) |
XInt32 | GraphicsPath_AddArc (GraphicsPath _this, XInt32 aSubPathNo, XFloat aCenterX, XFloat aCenterY, XFloat aRadiusX, XFloat aRadiusY, XFloat aStartAngle, XFloat aEndAngle, XInt32 aNoOfEdges) |
XInt32 | GraphicsPath_AddBezier3 (GraphicsPath _this, XInt32 aSubPathNo, XFloat aCP1X, XFloat aCP1Y, XFloat aCP2X, XFloat aCP2Y, XFloat aX, XFloat aY, XInt32 aNoOfEdges) |
XInt32 | GraphicsPath_AddLine (GraphicsPath _this, XInt32 aSubPathNo, XFloat aX, XFloat aY) |
void | GraphicsPath_Close (GraphicsPath _this, XInt32 aSubPathNo) |
void | GraphicsPath_Begin (GraphicsPath _this, XInt32 aSubPathNo, XFloat aX, XFloat aY) |
XBool | GraphicsPath_InitSubPath (GraphicsPath _this, XInt32 aSubPathNo, XInt32 aMaxNoOfEdges) |
XInt32 | GraphicsPath_GetMaxNoOfSubPaths (GraphicsPath _this) |
XBool | GraphicsPath_SetMaxNoOfSubPaths (GraphicsPath _this, XInt32 aMaxNoOfSubPaths) |
EW_DEFINE_CLASS (GraphicsPath, XObject, _None, _None, _None, _None, _None, _None, "Graphics::Path") | |
void | GraphicsArcPath__ReInit (GraphicsArcPath _this) |
void | GraphicsArcPath__Done (GraphicsArcPath _this) |
void | GraphicsArcPath_updatePath (GraphicsArcPath _this, XObject sender) |
void | GraphicsArcPath_OnSetNoOfEdges (GraphicsArcPath _this, XInt32 value) |
void | GraphicsArcPath_OnSetEndAngle (GraphicsArcPath _this, XFloat value) |
void | GraphicsArcPath_OnSetStartAngle (GraphicsArcPath _this, XFloat value) |
XFloat | GraphicsArcPath_OnGetInnerRadius (GraphicsArcPath _this) |
void | GraphicsArcPath_OnSetInnerRadius (GraphicsArcPath _this, XFloat value) |
void | GraphicsArcPath_OnSetRadius (GraphicsArcPath _this, XFloat value) |
void | GraphicsArcPath_OnSetStyle (GraphicsArcPath _this, XEnum value) |
Variables | |
static const unsigned int | _StringsDefault0 [] |
static const XPoint | _Const0000 = { 0, 0 } |
static const XStringRes | _Const0001 = { _StringsDefault0, 0x0002 } |
static const XColor | _Const0002 = { 0x00, 0x00, 0x00, 0x00 } |
static const XRect | _Const0003 = {{ 0, 0 }, { 0, 0 }} |
static const XStringRes | _Const0004 = { _StringsDefault0, 0x003F } |
static const XStringRes | _Const0005 = { _StringsDefault0, 0x0073 } |
static const XStringRes | _Const0006 = { _StringsDefault0, 0x00B5 } |
static const XStringRes | _Const0007 = { _StringsDefault0, 0x0120 } |
EW_DEFINE_CLASS | ( | GraphicsCanvas | , |
ResourcesBitmap | , | ||
OnDraw | , | ||
OnDraw | , | ||
InvalidArea | , | ||
InvalidArea | , | ||
InvalidArea | , | ||
InvalidArea | , | ||
"Graphics::Canvas" | |||
) |
References aArg, EW_CLASS, EW_CLASS_GCT, and XObject__Init().
EW_DEFINE_CLASS | ( | GraphicsPath | , |
XObject | , | ||
_None | , | ||
_None | , | ||
_None | , | ||
_None | , | ||
_None | , | ||
_None | , | ||
"Graphics::Path" | |||
) |
References aArg, EW_CLASS, EW_CLASS_GCT, and GraphicsArcStyleArc.
EW_DEFINE_CLASS | ( | GraphicsWarpMatrix | , |
XObject | , | ||
_None | , | ||
_None | , | ||
_None | , | ||
_None | , | ||
_None | , | ||
_None | , | ||
"Graphics::WarpMatrix" | |||
) |
References aArg, EW_CLASS, EW_CLASS_GCT, and XObject__Init().
void GraphicsArcPath__Done | ( | GraphicsArcPath | _this | ) |
References EW_CLASS, and GraphicsPath__Done().
void GraphicsArcPath__ReInit | ( | GraphicsArcPath | _this | ) |
References GraphicsPath__ReInit().
XFloat GraphicsArcPath_OnGetInnerRadius | ( | GraphicsArcPath | _this | ) |
References EwNewSlot(), EwPostSignal(), GraphicsArcPath_updatePath(), and value.
References EwNewSlot(), EwPostSignal(), GraphicsArcPath_updatePath(), GraphicsArcStylePie, GraphicsArcStylePieRounded, GraphicsArcStylePieRoundedEnd, GraphicsArcStylePieRoundedStart, and value.
References EwNewSlot(), EwPostSignal(), GraphicsArcPath_updatePath(), and value.
References EwNewSlot(), EwPostSignal(), GraphicsArcPath_updatePath(), and value.
References EwNewSlot(), EwPostSignal(), GraphicsArcPath_updatePath(), and value.
References EwNewSlot(), EwPostSignal(), GraphicsArcPath_updatePath(), and value.
References EW_UNUSED_ARG, EwMathCos(), EwMathSin(), EwMathSqrt(), GraphicsArcStyleArc, GraphicsArcStylePie, GraphicsArcStylePieRounded, GraphicsArcStylePieRoundedEnd, GraphicsArcStylePieRoundedStart, GraphicsArcStyleSegment, GraphicsPath_AddArc(), GraphicsPath_Begin(), GraphicsPath_Close(), GraphicsPath_InitSubPath(), GraphicsPath_SetMaxNoOfSubPaths(), and sender.
References GraphicsCanvas_AttachBitmap().
GraphicsCanvas GraphicsCanvas__DetachBitmap | ( | void * | _this | ) |
References GraphicsCanvas_DetachBitmap().
void GraphicsCanvas__Done | ( | GraphicsCanvas | _this | ) |
References EW_CLASS, GraphicsCanvas_Done(), and ResourcesBitmap__Done().
References aArg, EW_CLASS, EW_CLASS_GCT, GraphicsCanvas_Init(), and ResourcesBitmap__Init().
void GraphicsCanvas__ReInit | ( | GraphicsCanvas | _this | ) |
GraphicsCanvas GraphicsCanvas_AttachBitmap | ( | GraphicsCanvas | _this, |
XHandle | aBitmap | ||
) |
References _Const0000, _Const0005, EwLoadString(), EwThrow(), XBitmap::FrameDelay, XBitmap::FrameSize, and XBitmap::NoOfVirtFrames.
void GraphicsCanvas_CopyBitmap | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
ResourcesBitmap | aBitmap, | ||
XInt32 | aFrameNr, | ||
XRect | aDstRect, | ||
XPoint | aSrcPos, | ||
XColor | aColorTL, | ||
XColor | aColorTR, | ||
XColor | aColorBR, | ||
XColor | aColorBL, | ||
XBool | aBlend | ||
) |
References aBlend, aClip, EwCopyBitmap(), and ResourcesBitmap__Update().
GraphicsCanvas GraphicsCanvas_DetachBitmap | ( | GraphicsCanvas | _this | ) |
References _Const0000, _Const0004, EwLoadString(), and EwThrow().
void GraphicsCanvas_Done | ( | GraphicsCanvas | _this | ) |
References GraphicsCanvas_DetachBitmap().
void GraphicsCanvas_DrawBitmapFrame | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
ResourcesBitmap | aBitmap, | ||
XInt32 | aFrameNr, | ||
XRect | aDstRect, | ||
XSet | aEdges, | ||
XColor | aColorTL, | ||
XColor | aColorTR, | ||
XColor | aColorBR, | ||
XColor | aColorBL, | ||
XBool | aBlend | ||
) |
References _Const0000, aBlend, aClip, EwDrawBitmapFrame(), EwNewRect2Point(), GraphicsEdgesBottom, GraphicsEdgesInterior, GraphicsEdgesLeft, GraphicsEdgesRight, GraphicsEdgesTop, and ResourcesBitmap__Update().
void GraphicsCanvas_DrawLine | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
XPoint | aDstPos1, | ||
XPoint | aDstPos2, | ||
XColor | aColor1, | ||
XColor | aColor2, | ||
XBool | aBlend | ||
) |
References aBlend, aClip, EwDrawLine(), and ResourcesBitmap__Update().
void GraphicsCanvas_DrawText | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
ResourcesFont | aFont, | ||
XString | aString, | ||
XInt32 | aOffset, | ||
XInt32 | aCount, | ||
XRect | aDstRect, | ||
XPoint | aSrcPos, | ||
XInt32 | aMinWidth, | ||
XEnum | aOrientation, | ||
XColor | aColorTL, | ||
XColor | aColorTR, | ||
XColor | aColorBR, | ||
XColor | aColorBL, | ||
XBool | aBlend | ||
) |
References aBlend, aClip, aOffset, EwDrawText(), EwGetStringLength(), ResourcesBitmap__Update(), ViewsOrientationRotated_180, ViewsOrientationRotated_270, and ViewsOrientationRotated_90.
void GraphicsCanvas_FillPath | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
GraphicsPath | aPath, | ||
XRect | aDstRect, | ||
XBool | aFlipY, | ||
XPoint | aOffset, | ||
XColor | aColorTL, | ||
XColor | aColorTR, | ||
XColor | aColorBR, | ||
XColor | aColorBL, | ||
XBool | aBlend, | ||
XBool | aAntialiased, | ||
XEnum | aFillRule | ||
) |
References aBlend, aClip, aOffset, EwFillPath(), GraphicsFillRuleNonZero, and ResourcesBitmap__Update().
void GraphicsCanvas_FillRectangle | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
XRect | aDstRect, | ||
XColor | aColorTL, | ||
XColor | aColorTR, | ||
XColor | aColorBR, | ||
XColor | aColorBL, | ||
XBool | aBlend | ||
) |
References aBlend, aClip, EwFillRectangle(), and ResourcesBitmap__Update().
References _Const0000, _Const0001, EwCompPoint(), EwFreeBitmap(), EwLoadString(), EwThrow(), and value.
void GraphicsCanvas_ScaleBitmap | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
ResourcesBitmap | aBitmap, | ||
XInt32 | aFrameNr, | ||
XRect | aDstRect, | ||
XRect | aSrcRect, | ||
XColor | aColorTL, | ||
XColor | aColorTR, | ||
XColor | aColorBR, | ||
XColor | aColorBL, | ||
XBool | aBlend, | ||
XBool | aFilter | ||
) |
References _Const0007, aBlend, aClip, EwLoadString(), EwTrace(), EwWarpBitmap(), XRect::Point1, XRect::Point2, ResourcesBitmap__Update(), XPoint::X, and XPoint::Y.
void GraphicsCanvas_StrokePath | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
GraphicsPath | aPath, | ||
XRect | aDstRect, | ||
XBool | aFlipY, | ||
XPoint | aOffset, | ||
XFloat | aWidth, | ||
XEnum | aStartCapStyle, | ||
XEnum | aEndCapStyle, | ||
XEnum | aJoinStyle, | ||
XFloat | aMiterLimit, | ||
XColor | aColorTL, | ||
XColor | aColorTR, | ||
XColor | aColorBR, | ||
XColor | aColorBL, | ||
XBool | aBlend, | ||
XBool | aAntialiased | ||
) |
References aBlend, aClip, aOffset, EwStrokePath(), GraphicsPathCapRound, GraphicsPathCapSquare, GraphicsPathCapTriangle, GraphicsPathJoinMiter, GraphicsPathJoinRound, and ResourcesBitmap__Update().
void GraphicsCanvas_Update | ( | GraphicsCanvas | _this | ) |
References _Const0000, _Const0002, _Const0003, EW_PIXEL_FORMAT_NATIVE, EwCreateBitmap(), EwIsRectEmpty(), EwNewRect2Point(), EwSignal(), XBitmap::FrameSize, and GraphicsCanvas_FillRectangle().
void GraphicsCanvas_WarpBitmap | ( | GraphicsCanvas | _this, |
XRect | aClip, | ||
ResourcesBitmap | aBitmap, | ||
XInt32 | aFrameNr, | ||
XFloat | aDstX1, | ||
XFloat | aDstY1, | ||
XFloat | aDstW1, | ||
XFloat | aDstX2, | ||
XFloat | aDstY2, | ||
XFloat | aDstW2, | ||
XFloat | aDstX3, | ||
XFloat | aDstY3, | ||
XFloat | aDstW3, | ||
XFloat | aDstX4, | ||
XFloat | aDstY4, | ||
XFloat | aDstW4, | ||
XRect | aSrcRect, | ||
XColor | aColor1, | ||
XColor | aColor2, | ||
XColor | aColor3, | ||
XColor | aColor4, | ||
XBool | aBlend, | ||
XBool | aFilter | ||
) |
References _Const0006, aBlend, aClip, EwLoadString(), EwTrace(), EwWarpBitmap(), and ResourcesBitmap__Update().
void GraphicsPath__Done | ( | GraphicsPath | _this | ) |
References EW_CLASS, GraphicsPath_Done(), and XObject__Done().
void GraphicsPath__ReInit | ( | GraphicsPath | _this | ) |
References XObject__ReInit().
XInt32 GraphicsPath_AddArc | ( | GraphicsPath | _this, |
XInt32 | aSubPathNo, | ||
XFloat | aCenterX, | ||
XFloat | aCenterY, | ||
XFloat | aRadiusX, | ||
XFloat | aRadiusY, | ||
XFloat | aStartAngle, | ||
XFloat | aEndAngle, | ||
XInt32 | aNoOfEdges | ||
) |
References EwAddSubPathArc(), EwNewSlot(), EwPostSignal(), and GraphicsPath_onUpdate().
XInt32 GraphicsPath_AddBezier3 | ( | GraphicsPath | _this, |
XInt32 | aSubPathNo, | ||
XFloat | aCP1X, | ||
XFloat | aCP1Y, | ||
XFloat | aCP2X, | ||
XFloat | aCP2Y, | ||
XFloat | aX, | ||
XFloat | aY, | ||
XInt32 | aNoOfEdges | ||
) |
References EwAddSubPathBezier3(), EwNewSlot(), EwPostSignal(), and GraphicsPath_onUpdate().
References EwAddSubPathLine(), EwNewSlot(), EwPostSignal(), and GraphicsPath_onUpdate().
References EwBeginSubPath(), EwNewSlot(), EwPostSignal(), and GraphicsPath_onUpdate().
References EwCloseSubPath(), EwNewSlot(), EwPostSignal(), and GraphicsPath_onUpdate().
void GraphicsPath_Done | ( | GraphicsPath | _this | ) |
References EwFreePath().
XInt32 GraphicsPath_GetMaxNoOfSubPaths | ( | GraphicsPath | _this | ) |
References EwGetMaxNoOfSubPaths().
References EwInitSubPath(), EwNewSlot(), EwPostSignal(), GraphicsPath_onUpdate(), and GraphicsPath_SetMaxNoOfSubPaths().
References EW_UNUSED_ARG, EwNotifyObjObservers(), and sender.
References EwCreatePath(), EwFreePath(), EwNewSlot(), EwPostSignal(), GraphicsPath_GetMaxNoOfSubPaths(), and GraphicsPath_onUpdate().
void GraphicsWarpMatrix__Done | ( | GraphicsWarpMatrix | _this | ) |
void GraphicsWarpMatrix__ReInit | ( | GraphicsWarpMatrix | _this | ) |
GraphicsWarpMatrix GraphicsWarpMatrix_Assign | ( | GraphicsWarpMatrix | _this, |
GraphicsWarpMatrix | aMatrix | ||
) |
GraphicsWarpMatrix GraphicsWarpMatrix_DeriveFromQuad | ( | GraphicsWarpMatrix | _this, |
XFloat | aX1, | ||
XFloat | aY1, | ||
XFloat | aX2, | ||
XFloat | aY2, | ||
XFloat | aX3, | ||
XFloat | aY3, | ||
XFloat | aX4, | ||
XFloat | aY4 | ||
) |
GraphicsWarpMatrix GraphicsWarpMatrix_Rotate | ( | GraphicsWarpMatrix | _this, |
XFloat | aAngleX, | ||
XFloat | aAngleY, | ||
XFloat | aAngleZ | ||
) |
References EwMathCos(), and EwMathSin().
GraphicsWarpMatrix GraphicsWarpMatrix_Translate | ( | GraphicsWarpMatrix | _this, |
XFloat | aDeltaX, | ||
XFloat | aDeltaY, | ||
XFloat | aDeltaZ | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |