Goo::Canvas::Polyline acts not as expected



Hi everyone:

I tried to use Polyline to make a part of another complexed widget. However, it seems the Polyline object always use its north-west of boundingbox as its (0,0) point. For instance:

###################################

my $sz = 10;

my $coll_anchor = Goo::Canvas::Polyline->new(
        $self,
        TRUE,
        [0,$sz,$sz,0,0,-$sz,-$sz,0],
);

###################################

I expect this should draw a diamond, with its center on (0,0) point.


Hotmail: Free, trusted and rich email service. Get it now.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]