Page MenuHomePhorge
Diviner Tech Docs PhutilSpriteSheet

final class PhutilSpriteSheet
Phorge Technical Documentation (Aphront)

NOTE: This is very new and unstable.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

public function addSprite($sprite)

This method is not documented.
Parameters
PhutilSprite$sprite
Return
wild

public function setCSSHeader($header)

This method is not documented.
Parameters
$header
Return
wild

public function setScales($scales)

This method is not documented.
Parameters
array$scales
Return
wild

public function getScales()

This method is not documented.
Return
wild

public function setSheetType($type)

This method is not documented.
Parameters
$type
Return
wild

public function setBasePath($base_path)

This method is not documented.
Parameters
$base_path
Return
wild

private function generate()

This method is not documented.
Return
wild

public function generateImage($path, $scale)

This method is not documented.
Parameters
$path
$scale
Return
wild

public function generateCSS($path)

This method is not documented.
Parameters
$path
Return
wild

public function needsRegeneration($manifest)

This method is not documented.
Parameters
array$manifest
Return
wild

private function buildManifest()

This method is not documented.
Return
wild

public function generateManifest($path)

This method is not documented.
Parameters
$path
Return
wild

private function log($message)

This method is not documented.
Parameters
$message
Return
wild

private function loadSourceHash($sprite)

This method is not documented.
Parameters
PhutilSprite$sprite
Return
wild

private function loadSource($sprite, $scale)

This method is not documented.
Parameters
PhutilSprite$sprite
$scale
Return
wild