Pigment - User interfaces with embedded multimedia
See the examples/ directory.
examples/
Pigment allows building of user interfaces with embedded multimedia components. It is designed with portability in mind and its plugin system will select a particular underlying graphical API on each platform. This module binds the pigment library to perl.
Initializes Pigment. Automatically parses @ARGV, stripping any options known Pigment. This is called implicitly by use Pigment; unless the -no_init option is specified.
@ARGV
use Pigment;
-no_init
Checks if initialization is possible. Returns a true value if so.
Deinitializs Pigment.
Runs the mainloop. Will not return until terminated with main_quit.
main_quit
Quits running the mainloop.
Checks if there are events that weren't processed by the mainloop yet. Blocks until at least one event was processed.
Run one iteration of the mainloop, then return.
$blocking (boolean)
Run one iteration of the mainloop, then return. Same as main_iteration, but allows passing a false value as the only argument to prevent blocking if there are no events to be processed.
main_iteration
Returns the version information of the Pigment library this module was compiled against.
Returns a textual description of the pigment library version.
List of automatically generated documentation.
Pigment library's website.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
Florian Ragwitz <rafl@debian.org>
Copyright (c) 2009 Florian Ragwitz
To install Pigment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pigment
CPAN shell
perl -MCPAN -e shell install Pigment
For more information on module installation, please visit the detailed CPAN module installation guide.