Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

wftk::Video Class Reference

Wrapper class for loading and playing mpeg video. More...

#include <video.h>

Inheritance diagram for wftk::Video:

wftk::Sound wftk::Surface wftk::VideoWidget List of all members.

Public Member Functions

 Video (const Point &screen_loc=Point(0, 0), ScreenSurface *screen=0)
 create a Video instance
void setMask (const Region &r)
 set the MPEG drawing mask
void clearMask ()
 clear the MPEG drawing mask
void move (const Point &)
 move the video to a different location on the screen
virtual bool load (const std::string &file)
 overrides Sound::load() pure virtual
virtual bool load (const std::string &, double scale)
 load MPEG video, and configure it to display resized by factor 'scale'
virtual bool play (int loops=0) const
 play the video
virtual int setVolume (int vol)
 set volume (0..100)
virtual void stop () const
 cease playback
virtual bool playing () const
 true if music is playing
virtual bool paused () const
 true if music is paused
virtual void pause ()
 pause playback
virtual void rewind () const
 rewind song to beginning
virtual void resume ()
 resume song (if paused)

Detailed Description

Wrapper class for loading and playing mpeg video.


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

Generated Tue Apr 12 22:48:57 2005.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.