[ Index ] |
|
Code source de Cr@wltr@ck 2.2.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 598 lignes (10 kb) |
Inclus ou requis: | 2 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
awLabel:: (29 méthodes):
__construct()
get()
all()
set()
count()
setCallbackFunction()
getCallbackFunction()
setFormat()
setFont()
setAngle()
setColor()
setBackground()
setBackgroundColor()
setBackgroundGradient()
setPadding()
hide()
show()
hideKey()
hideValue()
hideFirst()
hideLast()
setInterval()
move()
setAlign()
getText()
getMaxWidth()
getMaxHeight()
draw()
getMax()
__construct($label = NULL, $font = NULL, $color = NULL, $angle = 0) X-Ref |
Build the label param: string $label First label |
get($key) X-Ref |
Get an element of the label from its key param: int $key Element key return: string A value |
all() X-Ref |
Get all labels return: array |
set($labels) X-Ref |
Set one or several labels param: array $labels Array of string or a string |
count() X-Ref |
Count number of texts in the label return: int |
setCallbackFunction($function) X-Ref |
Set a callback function for labels param: string $function |
getCallbackFunction() X-Ref |
Return the callback function for labels return: string |
setFormat($format) X-Ref |
Change labels format param: string $format New format (printf style: %.2f for example) |
setFont(awFont $font, $color = NULL) X-Ref |
Change font for label param: awFont $font New font param: awColor $color Font color (can be NULL) |
setAngle($angle) X-Ref |
Change font angle param: int $angle New angle |
setColor($color) X-Ref |
Change font color param: awColor $color |
setBackground($background) X-Ref |
Change text background param: mixed $background |
setBackgroundColor(awColor $color) X-Ref |
Change text background color param: Color |
setBackgroundGradient(awGradient $gradient) X-Ref |
Change text background gradient param: Gradient |
setPadding($left, $right, $top, $bottom) X-Ref |
Change padding param: int $left Left padding param: int $right Right padding param: int $top Top padding param: int $bottom Bottom padding |
hide($hide = TRUE) X-Ref |
Hide all labels ? param: bool $hide |
show($show = TRUE) X-Ref |
Show all labels ? param: bool $show |
hideKey($key) X-Ref |
Hide a key param: int $key The key to hide |
hideValue($value) X-Ref |
Hide a value param: int $value The value to hide |
hideFirst($hide) X-Ref |
Hide first label param: bool $hide |
hideLast($hide) X-Ref |
Hide last label param: bool $hide |
setInterval($interval) X-Ref |
Set label interval param: int |
move($x, $y) X-Ref |
Change label position param: int $x Add this interval to X coord param: int $y Add this interval to Y coord |
setAlign($h = NULL, $v = NULL) X-Ref |
Change alignment param: int $h Horizontal alignment param: int $v Vertical alignment |
getText($key) X-Ref |
Get a text from the labele param: mixed $key Key in the array text return: Text |
getMaxWidth(awDrawer $drawer) X-Ref |
Get max width of all texts param: awDrawer $drawer A drawer return: int |
getMaxHeight(awDrawer $drawer) X-Ref |
Get max height of all texts param: awDrawer $drawer A drawer return: int |
draw(awDrawer $drawer, awPoint $p, $key = 0) X-Ref |
Draw the label param: awDrawer $drawer param: awPoint $p Label center param: int $key Text position in the array of texts (default to zero) |
getMax(awDrawer $drawer, $function) X-Ref |
Pas de description |
Généré le : Thu Sep 6 14:14:11 2007 | par Balluche grâce à PHPXref 0.7 |