Clase wxAnimation
La clase wxAnimation maneja la interfaz entre el control de animación y los detalles de la imagen o datos de animación.
Jerarquía:

Funciones miembro
wxAnimation()
wxAnimation::wxAnimation()
Construye un nuevo objeto de animación vacío.
Llamar a Load() para inicializarlo.
wxAnimation()
wxAnimation::wxAnimation( const wxString & name, wxAnimationType type = wxANIMATION_TYPE_ANY )
Construye un nuevo objeto de animación y carga los datos de animación del nombre de archivo dado.
Parámetros
- name
- Un nombre de fichero.
- type
- Uno de los valores de wxAnimationType; wxANIMATION_TYPE_ANY significa que la función debería intentar detectar el tipo de archivo automáticamente.
wxAnimation()
wxAnimation::wxAnimation(const wxAnimation & other)
Constructor copia.
AddHandler()
static void wxAnimation::AddHandler(wxAnimationDecoder * handler)
Añade un nuevo descodificador a la lista de descodificadores de animación.
CleanUpHandlers()
static void wxAnimation::CleanUpHandlers()
Borra la lista de decodificadores de animación.
Se ejecuta automáticamente al cerrar el programa.
FindHandler()
static const wxAnimationDecoder* wxAnimation::FindHandler(wxAnimationType animType)
Busca un descodificador de animación por tipo.
GetDelay()
int wxAnimation::GetDelay(unsigned int frame) const
Devuelve el retardo de la i-ésima trama en milisegundos.
Si se devuelve -1, el fotograma se mostrará para siempre.
GetFrame()
wxImage wxAnimation::GetFrame(unsigned int frame) const
Devuelve el fotograma i-ésimo como una wxImage.
Este método no está implementado en la implementación nativa wxGTK de esta clase y siempre devuelve una imagen no válida.
GetFrameCount()
unsigned int wxAnimation::GetFrameCount() const
Devuelve el número de fotogramas de esta animación.
Este método no está implementado en la implementación nativa wxGTK de esta clase y siempre devuelve 0.
GetHandlers()
static wxAnimationDecoderList& wxAnimation::GetHandlers()
Devuelve la lista de decodificadores de animación utilizados por la animación genérica y wxGenericAnimationCtrl.
GetSize()
wxSize wxAnimation::GetSize() const
Devuelve el tamaño de la animación.
InitStandardHandlers()
static void wxAnimation::InitStandardHandlers()
Carga los decodificadores de animación de stock (actualmente GIF y ANI) en la lista de decodificadores.
Esta función se ejecuta automáticamente al iniciar el programa.
InsertHandler()
static void wxAnimation::InsertHandler(wxAnimationDecoder * handler)
Inserta un nuevo descodificador al principio de la lista de descodificadores de animación.
IsCompatibleWith()
bool wxAnimation::IsCompatibleWith(wxClassInfo * ci) const
Devuelve true si la animación puede ser usada con controles del tipo dado.
Esta función comprueba si este objeto de animación puede ser utilizado con wxAnimationCtrl de tipo particular. Este será siempre el caso para las plataformas donde solo una única implementación de wxAnimationCtrl está disponible, pero no necesariamente bajo, por ejemplo, wxGTK donde tanto la implementación nativa (pero limitada) de GTK como la implementación genérica pueden ser utilizadas.
IsOk()
bool wxAnimation::IsOk() const
Devuelve true si hay datos de animación.
Load()
bool wxAnimation::Load( wxInputStream & stream, wxAnimationType type = wxANIMATION_TYPE_ANY )
Carga una animación desde el flujo dado.
Parámetros
- stream
- El stream a utilizar para cargar la animación. En wxGTK puede ser cualquier tipo de stream; en otras plataformas debe ser un stream buscable.
- type
- Uno de los valores de la enumeración wxAnimationType.
Devuelve
true si la operación se ha realizado correctamente, false en caso contrario.
LoadFile()
bool wxAnimation::LoadFile( const wxString & name, wxAnimationType type = wxANIMATION_TYPE_ANY )
Carga una animación desde un archivo.
Parámetros
- name
- Un nombre de archivo.
- type
- Uno de los valores de wxAnimationType; wxANIMATION_TYPE_ANY significa que la función debería intentar detectar el tipo de archivo automáticamente.
Devuelve
true si la operación se ha realizado correctamente, false en caso contrario.
Métodos y datos heredados
Esta clase hereda los métodos y datos miembro públicos y protegidos de wxObject.