Clutter.3pm

Langue: en

Autres versions - même langue

Version: 2009-08-28 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Clutter - Simple GL-based canvas library

SYNOPSIS

   use Clutter qw( :init );
   
   # create the main stage
   my $stage = Clutter::Stage->get_default();
   $stage->set_color(Clutter::Color->parse('DarkSlateGray'));
   $stage->signal_connect('key-press-event' => sub { Clutter->main_quit() });
   $stage->set_size(800, 600);
   
   # add an actor and place it right in the middle
   my $label = Clutter::Text->new("Sans 30", "Hello, Clutter!");
   $label->set_color(Clutter::Color->new(0xff, 0xcc, 0xcc, 0xdd));
   $label->set_anchor_point($label->get_width() / 2,
                            $label->get_height() / 2);
   $label->set_position($stage->get_width() / 2, $stage->get_height() / 2);
   $stage->add($label);
 
   $stage->show_all();
   
   Clutter->main();
   
   0;
 
 

DESCRIPTION

Clutter is a GObject based library for creating fast, visually rich graphical user interfaces. It is intended for creating single window heavily stylised applications such as media box UI's, presentations or kiosk style programs in preference to regular 'desktop' style applications.

Clutter's underlying graphics rendering is OpenGL (version 1.2+) based. The clutter API is intended to be easy to use, attempting to hide many of the GL complexities. It targets mainly 2D based graphics and is definetly not intended to be a general interface for all OpenGL functionality.

As well as OpenGL Clutter depends on and uses Glib, Glib::Object, Pango and Cairo.

For more informations about Clutter, visit:

   http://www.clutter-project.org
 
 

You can also subscribe to the Clutter mailing list by sending a blank message <clutter+subscribe AT o-hand.com>, then follow the instructions in resulting reply.

SEE ALSO

Clutter::index, Cairo, Pango, Glib.

AUTHOR

Emmanuele Bassi <ebassi (AT) linux.intel.com> Copyright (C) 2006, 2007, 2008 OpenedHand Ltd Copyright (C) 2009 Intel Corporation

This module is free software; you can redistribute it and/or modify it under the terms of:

the GNU Lesser General Public License, version 2.1; or
the Artistic License, version 2.0.

This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

You should have received a copy of the GNU Library General Public License along with this module; if not, see <http://www.gnu.org/licenses/>.

For the terms of The Artistic License, see perlartistic.