Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Graphics::Primitive::Driver::CairoPango 0.62

    Download button

    No screenshots available
    Downloads: 183  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Cory G Watson | More programs
    Perl Artistic License / FREE
    February 1st, 2012, 06:26 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Graphics::Primitive::Driver::CairoPango description

    Cairo/Pango backend for Graphics::Primitive

    Graphics::Primitive::Driver::CairoPango is a Perl module that draws Graphics::Primitive objects using Cairo and Pango. This is a separate distribution due to the Pango requirement. The Pango specific bits will be rolled into the normal Cairo driver at some point.

    SYNOPSIS

     use Graphics::Pritive::Component;
     use Graphics::Pritive::Component;
     use Graphics::Primitive::Driver::CairoPango;

     my $driver = Graphics::Primitive::Driver::CairoPango->new;
     my $container = Graphics::Primitive::Container->new(
     width => $form->sheet_width,
     height => $form->sheet_height
     );
     $container->border->width(1);
     $container->border->color($black);
     $container->padding(
     Graphics::Primitive::Insets->new(top => 5, bottom => 5, left => 5, right => 5)
     );
     my $comp = Graphics::Primitive::Component->new;
     $comp->background_color($black);
     $container->add_component($comp, 'c');

     my $lm = Layout::Manager::Compass->new;
     $lm->do_layout($container);

     my $driver = Graphics::Primitive::Driver::CairoPango->new(
     format => 'PDF'
     );
     $driver->draw($container);
     $driver->write('/Users/gphat/foo.pdf');



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Graphics::Primitive objects | Perl module | Graphics::Primitive | objects | Cairo

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM