App-Chart
view release on metacpan or search on metacpan
lib/App/Chart/Gtk2/Ex/LineClipper.pm view on Meta::CPAN
C<$line_width> should be the width in pixels of the lines C<$gc> will draw.
This is used to know how far off the drawable the clipping must extend so
the C<cap_style> doesn't show. C<clipped_draw_lines> doesn't simply read
C<$line_width> from C<< $gc->get_values >> because that call does a
round-trip to the X server. A width bigger than actually in use is fine;
for instance you might just pass 20 pixels if you know you never draw lines
wider than that. A width 0 is interpreted as a 1 pixel "thin line", the
same as happens in the GC.
If C<$points> is an empty array, or an array of just one X,Y point, then
nothing at all is drawn. This handling of one point adds certainty to what
plain C<< $win->draw_lines >> does; for it a single X,Y of a 0-width "thin
line" might or might not be drawn, depending on the server.
=back
=head1 ACCUMULATOR OBJECT
=over 4
=item C<< App::Chart::Gtk2::Ex::LineClipper->new (drawable => $drawable, ...) >>
( run in 0.517 second using v1.01-cache-2.11-cpan-4e96b696675 )