X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDLx-App.html-inc;h=b1f6592f5736c5d96131ef23e62a463558886b47;hb=505f308d8b092747da8b2f5e9781475a1f06dfe8;hp=23e5cd32140330615901b5dbcf7b274b07b98aef;hpb=ca0a3441dd72000cbbbb4be484b18d0d305fdb29;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDLx-App.html-inc b/pages/SDLx-App.html-inc index 23e5cd3..b1f6592 100644 --- a/pages/SDLx-App.html-inc +++ b/pages/SDLx-App.html-inc @@ -45,10 +45,10 @@ use SDL::Events; my $app = SDLx::App->new( - -title => 'Application Title', - -width => 640, - -height => 480, - -depth => 32 + title => 'Application Title', + width => 640, + height => 480, + depth => 32 ); @@ -84,14 +84,14 @@ manager oriented functions.
and initializes some of the window manager properties.SDLx::App::new
takes a series of named parameters:
SDLx::App::resize
takes a new height and width of the application
-if the application was originally created with the -resizable option.
Example:
my $app = SDLx::App->new( - -title => "test.app", - -width => 800, - -height => 600, - -depth => 32 + title => "test.app", + width => 800, + height => 600, + depth => 32 ); my %actions = (