Public Types | Public Member Functions | Private Attributes

claw::graphic::gif::frame Class Reference

One frame in the animation. More...

#include <gif.hpp>

Inheritance diagram for claw::graphic::gif::frame:
claw::graphic::image

List of all members.

Public Types

typedef image super
 The type of the parent class.

Public Member Functions

 frame ()
 Constructor.
 frame (std::size_t w, std::size_t h)
 Constructor.
void set_delay (unsigned int d)
 Set the time duration of this frame.
unsigned int get_delay () const
 Get the time duration of this frame.

Private Attributes

unsigned int m_delay
 Hundredths of a seconds to wait before continuing with the next frame.

Detailed Description

One frame in the animation.

Definition at line 55 of file gif.hpp.


Member Typedef Documentation

The type of the parent class.

Definition at line 60 of file gif.hpp.


Constructor & Destructor Documentation

claw::graphic::gif::frame::frame (  )

Constructor.

Definition at line 36 of file gif_frame.cpp.

  : m_delay(0)
{

} // gif::frame::frame()
claw::graphic::gif::frame::frame ( std::size_t  w,
std::size_t  h 
)

Constructor.

Parameters:
wThe width of the frame.
hThe height of the frame.

Definition at line 48 of file gif_frame.cpp.

  : super(w, h), m_delay(0)
{

} // gif::frame::frame()

Member Function Documentation

unsigned int claw::graphic::gif::frame::get_delay (  ) const

Get the time duration of this frame.

Definition at line 68 of file gif_frame.cpp.

Referenced by claw::graphic::gif::reader::make_frames().

{
  return m_delay;
} // gif::frame::get_delay()
void claw::graphic::gif::frame::set_delay ( unsigned int  d )

Set the time duration of this frame.

Parameters:
dThe delay.

Definition at line 59 of file gif_frame.cpp.

Referenced by claw::graphic::gif::reader::make_frames(), and claw::graphic::gif::reader::read_frame_with_gce().

{
  m_delay = d;
} // gif::frame::set_delay()

Member Data Documentation

unsigned int claw::graphic::gif::frame::m_delay [private]

Hundredths of a seconds to wait before continuing with the next frame.

Definition at line 72 of file gif.hpp.


The documentation for this class was generated from the following files: