|
The CairoContext class
(Èíôîðìàöèÿ î âåðñèè íåèçâåñòíà, âîçìîæíî, òîëüêî â SVN)
Ââåäåíèå
Context is the main object used when drawing with cairo. To draw with cairo, you create a
CairoContext, set the target CairoSurface,
and drawing options for the CairoContext, create shapes with functions .
like CairoContext::moveTo() and
CairoContext::lineTo(), and then draw shapes with
CairoContext::stroke() or CairoContext::fill().
Contexts can be pushed to a stack via CairoContext::save().
They may then safely be changed, without loosing the current state. Use
CairoContext::restore()
to restore to the saved state.
Îáçîð êëàññîâ
CairoContext
{
public void arc
( float $x
, float $y
, float $radius
, float $angle1
, float $angle2
)
public void arcNegative
( float $x
, float $y
, float $radius
, float $angle1
, float $angle2
)
public void clip
( void
)
public void curveTo
( float $x1
, float $y1
, float $x2
, float $y2
, float $x3
, float $y3
)
public void fill
( void
)
public bool inFill
( string $x
, string $y
)
public bool inStroke
( string $x
, string $y
)
public void lineTo
( string $x
, string $y
)
public void mask
( string $pattern
)
public void maskSurface
( string $surface
[, string $x
[, string $y
]] )
public void moveTo
( string $x
, string $y
)
public void paint
( void
)
public void rectangle
( string $x
, string $y
, string $width
, string $height
)
public void relCurveTo
( string $x1
, string $y1
, string $x2
, string $y2
, string $x3
, string $y3
)
public void relLineTo
( string $x
, string $y
)
public void relMoveTo
( string $x
, string $y
)
public void rotate
( string $angle
)
public void save
( void
)
public void scale
( string $x
, string $y
)
public void selectFontFace
( string $family
[, string $slant
[, string $weight
]] )
public void setDash
( string $dashes
[, string $offset
] )
public void setSourceRGB
( string $red
, string $green
, string $blue
)
public void setSourceRGBA
( string $red
, string $green
, string $blue
, string $alpha
)
public void translate
( string $x
, string $y
)
}
Ñîäåðæàíèå
|
|