#include <mng_animation_storer.h>
Public Types | |
| enum | Result { OK, FINISHED, ERROR } |
Public Methods | |
| virtual | ~MngAnimationStorer () |
| MngAnimationStorer (Map const &map, Movements const &moves, Theme const &theme, int piece_size, int use_background, int start_delay, int delay, bool cycle, int end_delay, bool low_quality, KURL const &url) | |
| virtual Result | proccess () |
Private Methods | |
| QRect | getBoundingRect (QPoint const &position) const |
| void | createPngObject (int index, QImage const &image) |
| void | paintObject (int index, QPoint const &position) |
| void | paintPiece (QPoint const &position) |
Static Private Methods | |
| mng_ptr | allocMNG (mng_size_t length) |
| void | freeMNG (mng_ptr pointer, mng_size_t length) |
| mng_bool | openMNG (mng_handle handle) |
| mng_bool | closeMNG (mng_handle handle) |
| mng_bool | writeMNG (mng_handle handle, mng_ptr buffer, mng_uint32 size, mng_uint32 *written) |
Private Attributes | |
| Map | m_map |
| Movements | m_moves |
| Theme const & | m_theme |
| PixmapProvider | m_pixmap_provider |
| int | m_piece_size |
| QPoint | m_offset |
| int | m_keeper_direction |
| mng_handle | m_handle |
| int | m_background_width |
| int | m_background_height |
| bool | m_use_background |
| bool | m_use_background_image |
| bool | m_low_quality |
| int | m_delay |
| KURL | m_url |
| KTempFile * | m_temp_file |
|
|
Defines the result of proccess().
|
|
|
Releases the resources.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Creates the object.
|
|
|
The callback function for memory allocation.
|
|
|
The callback function for closing a stream (this is a dummy function).
|
|
|||||||||||||||
|
Creates a object in png format for the given image.
|
|
|||||||||||||||
|
The callback function for freeing memory.
|
|
|
Returns the bound rectangle of the piece at the given position.
|
|
|
The callback functions for opening a stream (this is a dummy function).
|
|
|||||||||||||||
|
Puts an object at the given position.
|
|
|
Paints an item of a map.
|
|
|
Call this as long as OK is returned.
|
|
|||||||||||||||||||||||||||||
|
The callback function for writing to a stream.
|
|
|
The height of the background image.
|
|
|
The width of the background image.
|
|
|
The delay to use.
|
|
|
The libmng handle.
|
|
|
The direction of the keeper.
|
|
|
If true, we use low quality images.
|
|
|
The current map.
|
|
|
The moves.
|
|
|
The offset.
|
|
|
The piece size.
|
|
|
The pixmap provider.
|
|
|
The temp file to use.
|
|
|
The theme used.
|
|
|
The url to save.
|
|
|
If true, we use the theme background.
|
|
|
If true, we use a background image.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001