📄 class_hfshape.html
字号:
</div><a name="a1" doxytag="HFShape::~HFShape"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>virtual HFShape::~HFShape ()<code> [virtual]</code></b></td></tr></table></a><div class="in"><p><p></div><a name="a2" doxytag="HFShape::SetLineWidth"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetLineWidth (int <em>_lineWidth</em>)<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Set the width of the shape outline.<p>If the line width is set to zero, no line is displayed. <dl compact><dt><b>Parameters: </b><dd><em>_lineWidth</em> - The line width in twips. </dl></div><a name="a3" doxytag="HFShape::GetLineWidth"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>int HFShape::GetLineWidth ()<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Get the line width.<p><dl compact><dt><b>Returns: </b><dd>Return the line width in twips. </dl></div><a name="a4" doxytag="HFShape::SetLineColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetLineColor (const <a class="el" href="class_frgba.html">FRGBA</a> & <em>_lineColor</em>)</b></td></tr></table></a><div class="in"><p>Set the line color.<p><dl compact><dt><b>Parameters: </b><dd><em>_lineColor</em> - The line color. Alpha is currently supported. </dl></div><a name="a5" doxytag="HFShape::GetLineColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b><a class="el" href="class_frgba.html">FRGBA</a> HFShape::GetLineColor ()<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Get the line color.<p><dl compact><dt><b>Returns: </b><dd>Return the line color. </dl></div><a name="a6" doxytag="HFShape::SetNoFill"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetNoFill ()<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Turns off fill for the object.<p>The shape will not be filled, and will only be an outline. </div><a name="a7" doxytag="HFShape::SetSolidFill"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetSolidFill (const <a class="el" href="class_frgba.html">FRGBA</a> & <em>fillColor</em>)</b></td></tr></table></a><div class="in"><p>Solid fills the shape.<p><dl compact><dt><b>Parameters: </b><dd><em>fillColor</em> - The solid fill color. Alpha is currently supported. </dl></div><a name="a8" doxytag="HFShape::GetSolidFillColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b><a class="el" href="class_frgba.html">FRGBA</a> HFShape::GetSolidFillColor ()<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Get the solid fill color.<p><dl compact><dt><b>Returns: </b><dd>Return the solid fill color. </dl></div><a name="a9" doxytag="HFShape::SetLinearFill"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetLinearFill (const <a class="el" href="class_frgba.html">FRGBA</a> & <em>left</em>, const <a class="el" href="class_frgba.html">FRGBA</a> & <em>right</em>)</b></td></tr></table></a><div class="in"><p>Fills the shape with a linear gradient.<p>The shape will be filled with a linear gradient from the first to the second color. The fill center is defaulted at the center of the shape. <dl compact><dt><b>Parameters: </b><dd><em>left</em> - The color on the left-most of color-ramp. <dd><em>right</em> - The color on the right-most of color-ramp. </dl></div><a name="a10" doxytag="HFShape::SetLinearFillCenter"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetLinearFillCenter (int <em>centerX</em>, int <em>centerY</em>)</b></td></tr></table></a><div class="in"><p>Set the linear fill center.<p>Coordinates are in untransformed object coordinates. <dl compact><dt><b>Parameters: </b><dd><em>centerX</em> - The x coordiate of the linear fill center. <dd><em>centerY</em> - The y coordiate of the linear fill center. </dl></div><a name="a11" doxytag="HFShape::SetRadialFill"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetRadialFill (const <a class="el" href="class_frgba.html">FRGBA</a> & <em>center</em>, const <a class="el" href="class_frgba.html">FRGBA</a> & <em>outside</em>)</b></td></tr></table></a><div class="in"><p>Fills the shape with a radial gradient.<p>The shape will be filled with a radial gradient from the first to the second color. The fill center is defaulted at the center of the shape. <dl compact><dt><b>Parameters: </b><dd><em>center</em> - The color on the center of concentric color-ramp circles. <dd><em>outside</em> - The color on the outer-most of concentric color-ramp circles. </dl></div><a name="a12" doxytag="HFShape::SetRadialFillCenter"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetRadialFillCenter (int <em>centerX</em>, int <em>centerY</em>)</b></td></tr></table></a><div class="in"><p>Set the linear fill center.<p>Coordinates are in untransformed object coordinates. <dl compact><dt><b>Parameters: </b><dd><em>centerX</em> - The x coordiate of the radial fill center. <dd><em>centerY</em> - The y coordiate of the radial fill center. </dl></div><a name="a13" doxytag="HFShape::SetBitmapFillJpeg"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>int HFShape::SetBitmapFillJpeg (int <em>bitmap_X</em>, int <em>bitmap_Y</em>, const void * <em>JPEG</em>, int <em>JPEG_size</em>)</b></td></tr></table></a><div class="in"><p>Fills the shape with a JPEG image.<p>The JPEG data passed in will be unmodified by this call. <dl compact><dt><b>Parameters: </b><dd><em>bitmap_X</em> - Width of the bitmap in pixel. <dd><em>bitmap_Y</em> - Height of the bitmap in pixel. <dd><em>JPEG</em> - Pointer a JPEG image data. <dd><em>JPEG_size</em> - Size of the JPEG data in bytes. </dl><dl compact><dt><b>Returns: </b><dd>Returns the ID of this JPEG bitmap fill. </dl></div><a name="a14" doxytag="HFShape::SetBitmapFillLossless"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>int HFShape::SetBitmapFillLossless (int <em>format</em>, int <em>bitmap_X</em>, int <em>bitmap_Y</em>, int <em>numPaletteEntries</em>, bool <em>alpha</em>, const void * <em>bitmap</em>, const void * <em>palette</em>)</b></td></tr></table></a><div class="in"><p>Fills the shape with an image compressed without any quality loss.<p>The image data passed in will be unmodified by this call. <dl compact><dt><b>Parameters: </b><dd><em>format</em> - Format type. See <a class="el" href="class_fdtdefinebitslosslessbase.html">FDTDefineBitsLosslessBase</a> for a list of formats. <dd><em>bitmap_X</em> - Width of the bitmap in pixel. <dd><em>bitmap_Y</em> - Height of the bitmap in pixel. <dd><em>numPaletteEntries</em> - Number of palette entries. 0 for many formats. <dd><em>alpha</em> - True if alpha data is included. The value of this parameter must be consistent with the format. <dd><em>bitmap</em> - Address of bitmap in memory. <dd><em>palette</em> - Address of palette, if applicable. </dl><dl compact><dt><b>Returns: </b><dd>Return the ID of this Lossless bitmap fill. </dl></div><a name="a15" doxytag="HFShape::Translate"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::Translate (int <em>x</em>, int <em>y</em>)<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Moves the Shape.<p>Translate, like all the positioning calls, changes the objects position relative to the position it was created at. In other words, Translate( 10, 10 ) followed by Translate( 10, 10 ), would move the object 10 twips down and right from its original position; the effect of a Translate call is not cumlative. <dl compact><dt><b>Parameters: </b><dd><em>x</em> - horizontal motion in twips <dd><em>y</em> - vertical (positive down) motion in twips </dl></div><a name="a16" doxytag="HFShape::Rotate"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::Rotate (<a class="el" href="Macromedia.H.html#a19">SFIXED</a> <em>degree</em>)<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Rotates the shape about its own center.<p><dl compact><dt><b>Parameters: </b><dd><em>degree</em> - Rotation in degrees, using fixed point notation. </dl></div><a name="a17" doxytag="HFShape::Scale"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::Scale (<a class="el" href="Macromedia.H.html#a19">SFIXED</a> <em>_scaleX</em>, <a class="el" href="Macromedia.H.html#a19">SFIXED</a> <em>_scaleY</em>)<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Scales the shape about its own center.<p><dl compact><dt><b>Parameters: </b><dd><em>_scaleX</em> - horizontal scaling in fixed point notation. /*! <dd><em>_scaleX</em> - vertical scaling in fixed point notation. </dl></div><a name="a18" doxytag="HFShape::AddToObjectList"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>virtual void HFShape::AddToObjectList (std::list<FObj *>* <em>objList</em>, <a class="el" href="class_hfmovie.html">HFMovie</a> * <em>movie</em>)<code> [pure virtual]</code></b></td></tr></table></a><div class="in"><p><p><p>Reimplemented from <a class="el" href="class_hfobject.html#a4">HFObject</a>.<p>Reimplemented in <a class="el" href="class_hfedittext.html#a6">HFEditText</a>, <a class="el" href="class_hfoval.html#a2">HFOval</a>, <a class="el" href="class_hfpolygon.html#a6">HFPolygon</a>, <a class="el" href="class_hfrectangle.html#a2">HFRectangle</a>, and <a class="el" href="class_hftext.html#a1">HFText</a>.</div><a name="b0" doxytag="HFShape::AddLinearFillColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::AddLinearFillColor (<a class="el" href="Macromedia.H.html#a13">U8</a> ratio, const <a class="el" href="class_frgba.html">FRGBA</a> & <em>linearFillColor</em>)<code> [protected]</code></b></td></tr></table></a><div class="in"><p><p></div><a name="b1" doxytag="HFShape::AddRadialFillColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::AddRadialFillColor (<a class="el" href="Macromedia.H.html#a13">U8</a> ratio, const <a class="el" href="class_frgba.html">FRGBA</a> & <em>radialFillColor</em>)<code> [protected]</code></b></td></tr></table></a><div class="in"><p><p></div><a name="b2" doxytag="HFShape::HasMatrix"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>virtual bool HFShape::HasMatrix ()<code> [protected, virtual]</code></b></td></tr></table></a><div class="in"><p><p><p>Reimplemented from <a class="el" href="class_hfobject.html#b0">HFObject</a>.</div><a name="b3" doxytag="HFShape::CreateMatrix"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>virtual <a class="el" href="class_fmatrix.html">FMatrix</a>* HFShape::CreateMatrix ()<code> [protected, virtual]</code></b></td></tr></table></a><div class="in"><p><p><p>Reimplemented from <a class="el" href="class_hfobject.html#b1">HFObject</a>.</div><a name="b4" doxytag="HFShape::SetBounds"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::SetBounds (int xmin, int ymin, int xmax, int ymax)<code> [protected]</code></b></td></tr></table></a><div class="in"><p><p></div><a name="b5" doxytag="HFShape::FillShapeHeader"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFShape::FillShapeHeader (std::list<FObj *>* <em>objList</em>, <a class="el" href="class_fdtdefineshape3.html">FDTDefineShape3</a> * <em>shapeTag</em>)<code> [protected]</code></b></td></tr></table></a><div class="in"><p><p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -