Rechercher une page de manuel
SDL::Console.3pm
Langue: en
Version: 2003-01-03 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- SYNOPSIS
- DESCRIPTION
- METHODS
- new (-surface => $app, ... )
- topmost () give this console the keyboard focus.
- draw () blit this console to the associated surface
- print ( @strings ) write a string(s) the console
- alpha ( $alpha )
- background ( $file, $x,$y)
- position ( $x, $y)
- resize ( SDL::Rect )
- Event ( SDL::Event )
- AddCommand ( $command, sub {} )
- list_commands ()
- AUTHOR
- SEE ALSO
NAME
SDL::Console - a SDL perl extensionSYNOPSIS
use SDL::Console;
my $console = new SDL::Console( -surface => $app, -rect => $console_rect, -font => "ConsoleFont.bmp", -lines => 100, );
DESCRIPTION
The "SDL::Console" module encapsulates the SDL_Console library, and many of its ancillatory functions.METHODS
new (-surface => $app, ... )
Specifies the surface on which the console will be blitted. This method takes the following additional parameters:- *
- -font the font file to use, default: ``ConsoleFont.bmp''
- *
- -lines number of lines in the console, default: 32
- *
- -rect a SDL::Rect which specifies the console bounding box,
topmost () give this console the keyboard focus.
draw () blit this console to the associated surface
print ( @strings ) write a string(s) the console
alpha ( $alpha )
set the console alpha component (0-255)background ( $file, $x,$y)
load a background imageposition ( $x, $y)
set the console originresize ( SDL::Rect )
resize the consoleEvent ( SDL::Event )
class method to be called when events are processed.AddCommand ( $command, sub {} )
class method to add a command to the Consoles repositorylist_commands ()
display the registered commands to the console & stdoutAUTHOR
Wayne KeenanSEE ALSO
perl SDL::Surface SDL::Rect SDL::App SDL::EventContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre