From: Tobias Leich type
.
Available type constants:
SDL::Events::push_event
. The contents of the
programmer, the only requirement is that type is a value from SDL_USEREVENT
to SDL_NUMEVENTS-1
(inclusive)
my $event = SDL::Event->new(); $event->type ( SDL_USEREVENT + 3 ); - $event->event_code(10); - $event->data1('hello event'); + $event->user_code(10); + $event->user_data1('hello event'); SDL::Events::push_event($event); diff --git a/pages/SDLx-App.html-inc b/pages/SDLx-App.html-inc index 6c6b72f..8db7209 100644 --- a/pages/SDLx-App.html-inc +++ b/pages/SDLx-App.html-inc @@ -5,6 +5,7 @@
An alternative to the manual Event processing is through the SDLx::Controller module. SDLx::App is a Controller so see the CALLBACKS section below. -=head1 DESCRIPTION
+An alternative to the manual Event processing is through the SDLx::Controller module. SDLx::App is a Controller so see the CALLBACKS section below.
+ + +SDLx::App controls the root window of the of your SDL based application. It extends the SDL::Surface class, and provides an interface to the window manager oriented functions.
diff --git a/pages/documentation.html-inc b/pages/documentation.html-inc index 21ccb79..080cc03 100644 --- a/pages/documentation.html-inc +++ b/pages/documentation.html-inc @@ -1,2 +1,2 @@Core | ||
SDL | - Simple DirectMedia Layer for Perl | |
SDL::Credits | - Authors and contributors of the SDL Perl project | |
SDL::Deprecated | - Log of Deprecated items per release | |
SDL::Time | - An SDL Perl extension for managing timers |
Audio | ||
SDL::Audio | - SDL Bindings for Audio |
Structure | ||
SDL::AudioCVT | - Audio Conversion Structure | |
SDL::AudioSpec | - SDL Bindings for structure SDL::AudioSpec |
CDROM | ||
SDL::CDROM | - SDL Bindings for the CDROM device |
Structure | ||
SDL::CD | - SDL Bindings for structure SDL_CD | |
SDL::CDTrack | - SDL Bindings for structure SDL_CDTrack |
Events | ||
SDL::Events | - Bindings to the Events Category in SDL API |
Structure | ||
SDL::Event | - General event structure |
Joystick | ||
SDL::Joystick | - SDL Bindings for the Joystick device |
Mouse | ||
SDL::Mouse | - SDL Bindings for the Mouse device |
Structure | ||
SDL::Cursor | - Mouse cursor structure |
Structure | ||
SDL::Version | - SDL Bindings for structure SDL_Version |
Video | ||
SDL::Video | - Bindings to the video category in SDL API |
Structure | ||
SDL::Color | - Format independent color description | |
SDL::Overlay | - YUV Video overlay | |
SDL::Palette | - Color palette for 8-bit pixel formats | |
SDL::PixelFormat | - Stores surface format information | |
SDL::Rect | - Defines a rectangular area | |
SDL::Surface | - Graphic surface structure | |
SDL::VideoInfo | - Video Target Information |
Cookbook | ||
SDL::Cookbook | ||
SDL::Cookbook::OpenGL | - Using SDL with OpenGL | |
SDL::Cookbook::PDL |
Extension | ||
SDLx::App | - a SDL perl extension | |
SDLx::Layer | - Storage object for surface and position information | |
SDLx::LayerManager | - Extension for managing layers in a 2D world | |
SDLx::Rect | - SDL extension for storing and manipulating rectangular coordinates | |
SDLx::SFont | - Extension making fonts out of images and printing them | |
SDLx::Sound | ||
SDLx::Sprite | - interact with images quick and easily in SDL | |
SDLx::Sprite::Animated | - create animated SDL sprites easily! | |
SDLx::Surface | - Graphic surface matrix extension |
Controller | ||
SDLx::Controller | - Handles the loops for events, movement and rendering | |
SDLx::Controller::Interface | - Interface Physics and Rendering with the Controller with callbacks |
GFX | ||
SDL::GFX::Framerate | - framerate calculating functions | |
SDL::GFX::Primitives | - basic drawing functions |
Structure | ||
SDL::GFX::FPSManager | - data structure used by SDL::GFX::Framerate |
Image | ||
SDL::Image | - Bindings for the SDL_Image library |
Mixer | ||
SDL::Mixer | - Sound and music functions | |
SDL::Mixer::Channels | - SDL::Mixer channel functions and bindings | |
SDL::Mixer::Effects | - sound effect functions | |
SDL::Mixer::Groups | - Audio channel group functions | |
SDL::Mixer::Music | - functions for music | |
SDL::Mixer::Samples | - functions for loading sound samples |
Structure | ||
SDL::Mixer::MixChunk | - SDL Bindings for structure SDL_MixChunk | |
SDL::Mixer::MixMusic | - SDL Bindings for structure SDL_MixMusic |
Pango | ||
SDL::Pango | - Text rendering engine |
Structure | ||
SDL::Pango::Context | - Context object for SDL::Pango |
TODO | ||
SDL::MPEG | - a SDL perl extension | |
SDL::SMPEG | - a SDL perl extension |
MultiThread | ||
SDL::MultiThread | - Bindings to the MultiThread category in SDL API |
Structure | ||
SDL::RWOps | - SDL Bindings to SDL_RWOPs |
GFX | ||
SDL::GFX::BlitFunc | - blitting functions | |
SDL::GFX::ImageFilter | - image filtering functions | |
SDL::GFX::Rotozoom | - rotation and zooming functions for surfaces |
TTF | ||
SDL::TTF | - True Type Font functions (libfreetype) |
Structure | ||
SDL::TTF::Font | - Font object type for SDL_ttf |
Tutorials | ||
SDL::Tutorial | - introduction to Perl SDL | |
SDL::Tutorial::Animation | ||
SDL::Tutorial::LunarLander | - a small tutorial on Perl SDL |
Core | ||
SDL | - Simple DirectMedia Layer for Perl | |
SDL::Credits | - Authors and contributors of the SDL Perl project | |
SDL::Deprecated | - Log of Deprecated items per release | |
SDL::Time | - An SDL Perl extension for managing timers |
Audio | ||
SDL::Audio | - SDL Bindings for Audio |
Structure | ||
SDL::AudioCVT | - Audio Conversion Structure | |
SDL::AudioSpec | - SDL Bindings for structure SDL::AudioSpec |
CDROM | ||
SDL::CDROM | - SDL Bindings for the CDROM device |
Structure | ||
SDL::CD | - SDL Bindings for structure SDL_CD | |
SDL::CDTrack | - SDL Bindings for structure SDL_CDTrack |
Events | ||
SDL::Events | - Bindings to the Events Category in SDL API |
Structure | ||
SDL::Event | - General event structure |
Joystick | ||
SDL::Joystick | - SDL Bindings for the Joystick device |
Mouse | ||
SDL::Mouse | - SDL Bindings for the Mouse device |
Structure | ||
SDL::Cursor | - Mouse cursor structure |
Structure | ||
SDL::Version | - SDL Bindings for structure SDL_Version |
Video | ||
SDL::Video | - Bindings to the video category in SDL API |
Structure | ||
SDL::Color | - Format independent color description | |
SDL::Overlay | - YUV Video overlay | |
SDL::Palette | - Color palette for 8-bit pixel formats | |
SDL::PixelFormat | - Stores surface format information | |
SDL::Rect | - Defines a rectangular area | |
SDL::Surface | - Graphic surface structure | |
SDL::VideoInfo | - Video Target Information |
Cookbook | ||
SDL::Cookbook | ||
SDL::Cookbook::OpenGL | - Using SDL with OpenGL | |
SDL::Cookbook::PDL |
Extension | ||
SDLx::App | - a SDL perl extension | |
SDLx::Layer | - Storage object for surface and position information | |
SDLx::LayerManager | - Extension for managing layers in a 2D world | |
SDLx::Rect | - SDL extension for storing and manipulating rectangular coordinates | |
SDLx::SFont | - Extension making fonts out of images and printing them | |
SDLx::Sound | ||
SDLx::Sprite | - interact with images quick and easily in SDL | |
SDLx::Sprite::Animated | - create animated SDL sprites easily! | |
SDLx::Surface | - Graphic surface matrix extension |
Controller | ||
SDLx::Controller | - Handles the loops for events, movement and rendering | |
SDLx::Controller::Interface | - Interface Physics and Rendering with the Controller with callbacks |
GFX | ||
SDL::GFX::Framerate | - framerate calculating functions | |
SDL::GFX::Primitives | - basic drawing functions |
Structure | ||
SDL::GFX::FPSManager | - data structure used by SDL::GFX::Framerate |
Image | ||
SDL::Image | - Bindings for the SDL_Image library |
Mixer | ||
SDL::Mixer | - Sound and music functions | |
SDL::Mixer::Channels | - SDL::Mixer channel functions and bindings | |
SDL::Mixer::Effects | - sound effect functions | |
SDL::Mixer::Groups | - Audio channel group functions | |
SDL::Mixer::Music | - functions for music | |
SDL::Mixer::Samples | - functions for loading sound samples |
Structure | ||
SDL::Mixer::MixChunk | - SDL Bindings for structure SDL_MixChunk | |
SDL::Mixer::MixMusic | - SDL Bindings for structure SDL_MixMusic |
Pango | ||
SDL::Pango | - Text rendering engine |
Structure | ||
SDL::Pango::Context | - Context object for SDL::Pango |
TODO | ||
SDL::MPEG | - a SDL perl extension | |
SDL::SMPEG | - a SDL perl extension |
MultiThread | ||
SDL::MultiThread | - Bindings to the MultiThread category in SDL API |
Structure | ||
SDL::RWOps | - SDL Bindings to SDL_RWOPs |
GFX | ||
SDL::GFX::BlitFunc | - blitting functions | |
SDL::GFX::ImageFilter | - image filtering functions | |
SDL::GFX::Rotozoom | - rotation and zooming functions for surfaces |
TTF | ||
SDL::TTF | - True Type Font functions (libfreetype) |
Structure | ||
SDL::TTF::Font | - Font object type for SDL_ttf |
Tutorials | ||
SDL::Tutorial | - introduction to Perl SDL | |
SDL::Tutorial::Animation | ||
SDL::Tutorial::LunarLander | - a small tutorial on Perl SDL |