mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
horizontal alignment parameters for textbox
git-svn-id: https://svn.fhem.de/fhem/trunk@4431 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a3ba05522e
commit
ffdf09b63b
@ -19,7 +19,7 @@ require "98_SVG.pm"; # enable use of plotAsPng()
|
|||||||
my @cmd_halign= qw(halign thalign ihalign);
|
my @cmd_halign= qw(halign thalign ihalign);
|
||||||
my @cmd_valign= qw(valign tvalign ivalign);
|
my @cmd_valign= qw(valign tvalign ivalign);
|
||||||
my @valid_valign = qw(top center base bottom);
|
my @valid_valign = qw(top center base bottom);
|
||||||
my @valid_halign = qw(left center right);
|
my @valid_halign = qw(left center right justified);
|
||||||
|
|
||||||
# we can
|
# we can
|
||||||
# use vars qw(%FW_types); # device types,
|
# use vars qw(%FW_types); # device types,
|
||||||
@ -268,7 +268,7 @@ RSS_itemTextBox {
|
|||||||
text => $text,
|
text => $text,
|
||||||
);
|
);
|
||||||
$wrapbox->set_font($params{font}, $params{pt});
|
$wrapbox->set_font($params{font}, $params{pt});
|
||||||
$wrapbox->set(align => 'justified', width => $boxwidth);
|
$wrapbox->set(align => $params{thalign}, width => $boxwidth);
|
||||||
my ($left, $top, $right, $bottom) = $wrapbox->draw($x, $y);
|
my ($left, $top, $right, $bottom) = $wrapbox->draw($x, $y);
|
||||||
return $bottom;
|
return $bottom;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user