8 $this->values
= array();
11 function colour( $colour )
13 $this->colour
= $colour;
18 *@param $font as string. e.g. "Verdana"
19 *@param $size as integer. Size in px
21 function font($font, $size)
24 $this->{'font-size'} = $size;
29 *@param $x as integer. Size of x padding in px
30 *@param $y as integer. Size of y padding in px
32 function padding($x, $y)
34 $this->{"pad-x"} = $x;
35 $this->{"pad-y"} = $y;
40 function rotate( $angle )
42 $this->rotate
= $angle;
44 function align_x_center()
46 $this->{"align-x"} = "center";
50 function align_x_left()
52 $this->{"align-x"} = "left";
56 function align_x_right()
58 $this->{"align-x"} = "right";
62 function align_y_above()
64 $this->{"align-y"} = "above";
68 function align_y_below()
70 $this->{"align-y"} = "below";
74 function align_y_center()
76 $this->{"align-y"} = "center";
81 * This can contain some HTML, e.g:
82 * - "More <a href="javascript:alert(12);">info</a>"
83 * - "<a href="http://teethgrinder.co.uk">ofc</a>"
92 * This works, but to get the mouse pointer to change
93 * to a little hand you need to use "<a href="">stuff</a>"-- see text()
95 function on_click($on_click)
97 $this->{'on-click'} = $on_click;
102 *@param $bold boolean.
103 *@param $underline boolean.
104 *@param $border boolean.
105 *@prarm $alpha real (0 to 1.0)
107 function style($bold, $underline, $border, $alpha )
110 $this->border
= $underline;
111 $this->underline
= $border;
112 $this->alpha
= $alpha;
117 *@param $tag as ofc_tag
119 function append_tag($tag)
121 $this->values
[] = $tag;
125 class ofc_tag
extends ofc_tags
127 function ofc_tag($x, $y)