|
|
pc4p
pc4p_box
pc4p_object | +-- pc4p_box
|
private class pc4p_box extends pc4p_object
Provides functionality for drawing boxes around other objects
Authors | Alexander Wirtz <alex@pc4p.net> |
Version | $Id: pc4p_box.html,v 1.16.2.1 2002/08/12 22:47:04 eru Exp $ |
|
|
|
Methods inherited from pc4p_object |
pc4p_object, pc4p_calc_rot, pc4p_calc_rot_dim, pc4p_set_rot, pc4p_set_margin, pc4p_set_width, pc4p_set_alignment, pc4p_set_textleading, pc4p_set_linecolor, pc4p_set_fillcolor, pc4p_make_objcopy, pc4p_draw_children |
|
|
|
Fields inherited from pc4p_object |
$children, $pdfp, $pdfobj, $pagewidth, $pageheight, $width, $height, $act_x, $act_y, $draw_x, $draw_y, $alignment, $phi, $leading, $linecolor, $fillcolor |
|
Public Field Summary |
array |
$margin Margins for the box
|
array |
$borders Borders of the box
|
|
Public Method Details |
pc4p_box |
public void pc4p_box(object pc4p_page &$parent)
|
|
Calls the constructor of pc4p_object
|
Parameter |
|
object pc4p_page |
&$parent |
|
|
Parent of the box |
|
Returns |
void |
See Also |
pc4p_init::&pc4p_create_object(), pc4p_object::pc4p_object(), pc4p_object::pc4p_set_rot() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_boxborder |
public void pc4p_set_boxborder([ mixed $border, mixed $style, mixed $width ])
|
|
With this function you can set the borders of the box for each side individually, or completely
|
Parameter |
|
mixed |
$border |
= >>"all"<< |
|
"top", "bottom", "left", "right" or an array of these or "all" |
|
|
mixed |
$style |
= >>"single"<< |
|
"none", "single" or "double" or an array of these |
|
|
mixed |
$width |
= >>1<< |
|
The width of the line or an array of widths |
|
Returns |
void |
See Also |
pc4p_line::pc4p_set_linestyle(), pc4p_line::pc4p_set_linewidth() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_boxbordercolor |
public void pc4p_set_boxbordercolor([ mixed $border, mixed $color ])
|
|
With this function you can set the colors of the borders of the box for each side individually, or completely
|
Parameter |
|
mixed |
$border |
= >>"all"<< |
|
"top", "bottom", "left", "right" or an array of these or "all" |
|
|
mixed |
$color |
= >>""<< |
|
You can use one of the 16 standardcolors from HTML or the hex-notation (#rrggbb) or an array of these |
|
Returns |
void |
See Also |
pc4p_line::pc4p_set_linecolor() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
|
|
Public Field Details |
$margin |
public array $margin
>>array( "top" => 5, "bottom" => 5, "left" => 5, "right" => 5 ) <<
|
|
$borders |
public array $borders
>>array( "top" => NULL, "bottom" => NULL, "left" => NULL, "right" => NULL ) <<
|
|
|
|
|
Generated on Tue, 13 Aug 2002 00:43:10 +0200 by PHPDoc v1.5 www.phpdoc.de
|