TouchVG framework
GiGraphics
_drawPolygon
_xf
beginPaint
beginShape
calcPenColor
calcPenWidth
copy
drawArc
drawArc3P
drawArrayHead
drawBeeline
drawBeziers
drawBeziers
drawBSplines
drawCircle
drawEllipse
drawEllipse
drawHandle
drawHermiteSplines
drawLine
drawLines
drawPath
drawPath_
drawPathWithArrayHead
drawPie
drawPolygon
drawQuadSplines
drawRayline
drawRect
drawRoundRect
drawTextAt
drawTextAt
endPaint
endShape
fromHandle
getBkColor
getCanvas
getClipBox
getClipModel
getClipWorld
GiGraphics
GiGraphics
GiGraphics
isDrawing
isGrayMode
isPrint
isStopping
m_impl
operator=
rawBeginPath
rawBeziers
rawBezierTo
rawClosePath
rawEllipse
rawEndPath
rawImage
rawLine
rawLines
rawLineTo
rawMoveTo
rawPolygon
rawQuadTo
rawRect
rawText
setBkColor
setBrush
setClipBox
setClipWorld
setGrayMode
setMaxPenWidth
setPen
setPenWidthFactor
setPhaseEnabled
stopDrawing
toHandle
xf
~GiGraphics
◆
drawRect()
bool GiGraphics::drawRect
(
const
GiContext
*
ctx
,
const
Box2d
&
rect
,
bool
modelUnit
=
true
)
绘制并填充直角矩形,模型坐标或世界坐标
参数
ctx
绘图参数,为NULL时取为上一个绘图参数
rect
直角矩形
modelUnit
指定的坐标尺寸是模型坐标(true)还是世界坐标(false)
返回
是否显示成功。失败原因为参数错误或超出剪裁区域
函数调用图:
这是这个函数的调用关系图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证