Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

  • Jaguar
    • Action
      • Blur
      • Color
      • Pixelate
      • Preset
    • Color
    • Drawable
      • Border
      • Style
      • Text
    • Exception
    • Factory
    • Format
    • Gradient

Classes

  • Outline
  • Plain
  • Shadow

Interfaces

  • TextDrawerInterface

Class Shadow

Jaguar\Drawable\Text\Shadow implements Jaguar\Drawable\Text\TextDrawerInterface
Namespace: Jaguar\Drawable\Text
Located at Jaguar/Drawable/Text/Shadow.php

Methods summary

public
# __construct( Jaguar\Color\RGBColor $color = null, integer $x = 0, integer $y = 0 )

construct new shadow object

construct new shadow object

Parameters

$color
Jaguar\Color\RGBColor
$color
$x
integer
$x
$y
integer
$y
public Jaguar\Drawable\Text\Shadow
# setXOffset( integer $x )

Set x offset

Set x offset

Parameters

$x
integer
$x

Returns

Jaguar\Drawable\Text\Shadow
public integer
# getXOffset( )

Get x offset

Get x offset

Returns

integer
public Jaguar\Drawable\Text\Shadow
# setYOffset( integer $y )

Set y offset

Set y offset

Parameters

$y
integer
$y

Returns

Jaguar\Drawable\Text\Shadow
public integer
# getYOffset( )

Get y offset

Get y offset

Returns

integer
public Jaguar\Drawable\Text\Shadow
# setOffset( integer $x, integer $y )

Set offset

Set offset

Parameters

$x
integer
$x
$y
integer
$y

Returns

Jaguar\Drawable\Text\Shadow
public Jaguar\Drawable\Text\Shadow
# setColor( Jaguar\Color\RGBColor $color )

Set color

Set color

Parameters

$color
Jaguar\Color\RGBColor
$color

Returns

Jaguar\Drawable\Text\Shadow
public Jaguar\Color\RGBColor
# getColor( )

Get color

Get color

Returns

Jaguar\Color\RGBColor
public boolean
# draw( Jaguar\CanvasInterface $canvas, Jaguar\Drawable\Text $text )

Apply the style on the text object

Apply the style on the text object

Parameters

$canvas
Jaguar\CanvasInterface
$canvas
$text
Jaguar\Drawable\Text
$text

Returns

boolean
true on success false otherwise

Implementation of

Jaguar\Drawable\Text\TextDrawerInterface::draw()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0