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
);
</pre>
and initializes some of the window manager properties.
<code>SDLx::App::new</code> takes a series of named parameters:</p>
<ul>
- <li>-title </li>
- <li>-icon_title </li>
- <li>-icon </li>
- <li>-width </li>
- <li>-height </li>
- <li>-depth </li>
- <li>-flags </li>
- <li>-resizeable</li>
+ <li>title </li>
+ <li>icon_title </li>
+ <li>icon </li>
+ <li>width </li>
+ <li>height </li>
+ <li>depth </li>
+ <li>flags </li>
+ <li>resizeable</li>
</ul>
<h2 id="resize">resize</h2>
<div id="resize_CONTENT">
<p><code>SDLx::App::resize</code> takes a new height and width of the application
-if the application was originally created with the -resizable option.</p>
+if the application was originally created with the resizable option.</p>
</div>
<h2 id="fullscreen">fullscreen</h2>
the event object used in the loop.</p>
<p>Example:</p>
<pre> 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 = (