353 must_upt_label_status =
true;
366 must_upt_label_status =
true;
424 surface * target = NULL)
const;
454 s_int8 load (
string fname);
483 s_int8 save (
string fname)
const;
502 return frame.size ();
513 return t_frame.size ();
524 return currentframe_;
534 currentframe_ = framenbr;
592 return &(frame[nbr]);
708 void calculate_dimensions ();
710 mutable vector <image *> t_frame;
711 mutable vector <animationframe> frame;
718 friend class win_anim;
void set_image_nbr(u_int16 imnbr)
Sets the image this frame should point to.
Class to write data from a Gzip compressed file.
Class to read data from a Gzip compressed file.
void stop()
Stops the playback of the animation.
play_state
Whether the animation is currently playing or not.
bool is_masked() const
Returns whether this frame is masked or not.
void set_currentframe(u_int16 framenbr)
Sets the current frame.
#define u_int16
16 bits long unsigned integer
~animationframe()
Destructor.
Class where drawables can actually be drawn to.
u_int16 nextframe() const
Returns the index of the frame that will be displayed once the delay of this one expired.
void clear()
Resets an animationframe to it's initial (i.e post-constructor) state.
Image manipulation class.
void set_offset(u_int16 ox, u_int16 oy)
Sets the offset for this frame.
#define u_int8
8 bits long unsigned integer
s_int8 put(ogzstream &file) const
Saves an animationframe into an opened file.
void copy(const animation &src)
Synonym of operator = to guarantee its access from Python.
u_int16 image_nbr() const
Returns the image number this frame points to.
void set_delay(u_int16 d)
Sets the duration of this frame.
Declares the image class.
u_int8 alpha() const
Returns the alpha value the this frame.
u_int16 currentframe() const
Returns the index of the currently displayed frame.
void rewind()
Rewinds the animation to it's beginning.
Implements "drawing zones" for drawing operations.
void set_nextframe(u_int16 nf)
Sets the index of the frame that will be displayed right after this one.
animationframe * get_frame(u_int16 nbr)
Returns a pointer to a desired frame.
s_int16 yoffset() const
Returns the global Y offset of the animation.
void set_mask(bool mask)
Sets the mask parameter of this frame.
Handles images properties in an animation.
u_int16 offx() const
Returns the X offset (i.e position relative to the animation's position) of this frame.
#define s_int16
16 bits long signed integer
void set_alpha(u_int8 a)
Sets the alpha value for this frame.
void play()
Starts the playback of the animation.
s_int16 xoffset() const
Returns the global X offset of the animation.
u_int16 nbr_of_frames() const
Returns the number of frames in this animation.
animationframe()
Default constructor.
Abstract class for drawable objects manipulation.
play_state playstate() const
Returns whether the animation is currently being played.
Class that handles animated elements, their update and their playback.
u_int16 nbr_of_images() const
Returns the number of images in this animation.
u_int16 delay() const
Returns the duration of this frame.
void set_offset(s_int16 x, s_int16 y)
Set the global offsets of this animation.
#define s_int8
8 bits long signed integer
image * get_image(u_int16 nbr)
Returns a pointer to a desired image.
u_int16 offy() const
Returns the Y offset (i.e position relative to the animation's position) of this frame.