|
Graphics.UI.SDL.Video | Portability | portable | Stability | provisional | Maintainer | lemmih@gmail.com |
|
|
|
Description |
|
|
Synopsis |
|
|
|
Documentation |
|
|
Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
Returns the video surface or Nothing on error.
|
|
|
Returns the video surface, throwing an exception on error.
|
|
|
Returns the video driver name or Nothing on error. Notice, the driver name is limited to 256 chars.
|
|
|
Returns the video driver name, throwing an exception on error. See also tryVideoDriverName.
|
|
|
|
|
Constructors | Modes [Rect] | List of available resolutions.
| NonAvailable | No modes available!
| AnyOK | All resolutions available.
|
| Instances | |
|
|
|
|
|
|
:: Int | Width.
| -> Int | Height.
| -> Int | Bits-per-pixel.
| -> [SurfaceFlag] | Flags.
| -> IO (Maybe Int) | | Check to see if a particular video mode is supported.
Returns the bits-per-pixel of the closest available mode with the given width,
height and requested surface flags, or Nothing on error.
|
|
|
|
:: Int | Width.
| -> Int | Height.
| -> Int | Bits-per-pixel.
| -> [SurfaceFlag] | Flags.
| -> IO (Maybe Surface) | | Set up a video mode with the specified width, height and bits-per-pixel.
Returns Nothing on error.
|
|
|
|
Same as trySetVideoMode except it throws an exception on error.
|
|
|
Makes sure the given area is updated on the given screen.
|
|
|
Makes sure the given list of rectangles is updated on the given screen.
The rectangles are not automatically merged or checked for overlap.
In general, the programmer can use his knowledge about his particular
rectangles to merge them in an efficient way, to avoid overdraw.
|
|
|
Swaps screen buffers.
|
|
|
Same as tryFlip but throws an exception on error.
|
|
|
Sets a portion of the colormap for the given 8-bit surface.
|
|
|
Sets the colors in the palette of an 8-bit surface.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get RGB values from a pixel in the specified pixel format.
|
|
|
Gets RGBA values from a pixel in the specified pixel format.
|
|
|
Creates an empty Surface. Returns Nothing on error.
|
|
|
Creates an empty Surface. Throws an exception on error.
|
|
|
Creates an empty Surface with (r/g/b/a)mask determined from the local endian.
Returns Nothing on error.
|
|
|
Creates an empty Surface with (r/g/b/a)mask determined from the local endian.
Throws an exception on error.
|
|
|
|
|
|
|
Forces the finalization of a Surface. Only supported with GHC.
|
|
|
Locks a surface for direct access.
|
|
|
Unlocks a previously locked surface.
|
|
|
|
|
|
|
|
|
Adjusts the alpha properties of a surface.
|
|
|
Sets the clipping rectangle for a surface.
|
|
|
Gets the clipping rectangle for a surface.
|
|
|
Run an action with a given clipping rect applied.
If an exception is raised, then withClipRect will re-raise the exception (after resetting the original clipping rect).
|
|
|
Converts a surface to the same format as another surface. Returns Nothing on error.
|
|
|
Converts a surface to the same format as another surface. Throws an exception on error.
|
|
|
This function performs a fast blit from the source surface to the destination surface.
|
|
|
This function performs a fast fill of the given rectangle with some color.
|
|
|
Converts a surface to the display format. Returns Nothing on error.
|
|
|
Converts a surface to the display format. Throws an exception on error.
|
|
|
Converts a surface to the display format. Returns Nothing on error.
|
|
|
Converts a surface to the display format. Throws an exception on error.
|
|
|
:: Word16 | Mouse X position.
| -> Word16 | Mouse Y position.
| -> IO () | | Sets the position of the mouse cursor.
|
|
|
|
Toggle whether or not the cursor is shown on the screen.
|
|
|
Returns True when the cursor is set to visible. See also showCursor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gets the value of a special SDL/OpenGL attribute. Returns Nothing on error.
|
|
|
Gets the value of a special SDL/OpenGL attribute. Throws an exception on error.
|
|
|
Sets a special SDL/OpenGL attribute. Returns False on error.
|
|
|
Sets a special SDL/OpenGL attribute. Throws an exception on error.
|
|
|
Swaps OpenGL framebuffers/Update Display.
|
|
|
|
Produced by Haddock version 0.8 |