Public Member Functions |
| FBGui (unsigned long xid, float scale, bool loop, RunResources &r) |
virtual | ~FBGui () |
virtual bool | init (int argc, char ***argv) |
| Initialize the framebuffer.
|
bool | createWindow (const char *title, int width, int height, int xPosition=0, int yPosition=0) |
| Create and display our window.
|
void | renderBuffer () |
bool | run () |
| Start main rendering loop.
|
bool | resize_view (int width, int height) |
| Resize the client area view and the window accordingly.
|
void | setInvalidatedRegion (const SWFRect &bounds) |
| Gives the GUI a hint which region of the stage should be redrawn.
|
void | setInvalidatedRegions (const InvalidatedRanges &ranges) |
bool | want_multiple_regions () |
double | getPixelAspectRatio () |
int | getScreenResX () |
int | getScreenResY () |
double | getScreenDPI () |
std::string | getScreenColor () |
void | setFullscreen () |
void | unsetFullscreen () |
bool | createMenu () |
bool | setupEvents () |
void | setInterval (unsigned int interval) |
| Set main loop delay in milliseconds.
|
void | setTimeout (unsigned int timeout) |
| Set the time in milliseconds after which the programme should exit.
|
void | showMenu (bool show) |
| Sets whether the menus should be shown (for fscommand)
|
bool | showMouse (bool show) |
| Sets whether the gui should show the system mouse pointer.
|
void | checkForData () |
virtual | ~Gui () |
virtual bool | init (int argc, char **argv[])=0 |
| / Initialise the gui and the associated renderer.
|
virtual VirtualClock & | getClock () |
| Return the clock provided by this Gui.
|
void | setScreenShotter (std::auto_ptr< ScreenShotter > ss) |
virtual void | resizeWindow (int width, int height) |
void | quit () |
| Always called on exit.
|
virtual void | beforeRendering () |
virtual bool | want_redraw () |
| Asks the GUI handler if the next frame should be redrawn completely.
|
virtual void | setCursor (gnash_cursor_type newcursor) |
| Sets the current mouse cursor for the Gui window.
|
virtual void | setClipboard (const std::string ©) |
virtual double | getPixelAspectRatio () const |
virtual std::pair< int, int > | screenResolution () const |
virtual double | getScreenDPI () const |
virtual std::string | getScreenColor () const |
| Get the screen color type.
|
bool | loops () const |
bool | isFullscreen () const |
void | notifyMouseMove (int x, int y) |
| Mouse notification callback to be called when the mouse is moved.
|
void | notifyMouseClick (bool mouse_pressed) |
| Mouse notification callback to be called when the mouse is clicked.
|
void | notifyMouseWheel (int delta) |
| Send a mouse wheel event to the stage.
|
void | notify_key_event (gnash::key::code k, int modifier, bool pressed) |
| Key event notification to be called when a key is pressed or depressed.
|
void | updateStageMatrix () |
bool | advanceMovie (bool doDisplay=true) |
| Give movie an heart-beat.
|
void | refreshView () |
virtual void | hideMenu () |
virtual void | allowScale (bool allow) |
| Sets whether scaling should be allowed (for fscommand)
|
void | toggleFullscreen () |
void | stop () |
| Put the application in "stop" mode.
|
void | play () |
| Put the application in "play" mode.
|
void | pause () |
| Toggle between "stop" and "play" mode.
|
void | start () |
| Start the movie.
|
bool | isStopped () const |
| See stop(), play() and pause()
|
bool | isPlugin () const |
| Whether gnash is is running as a plugin.
|
void | takeScreenShot () |
| Take a screenshot now!
|
void | setMaxAdvances (unsigned long ul) |
| Set the maximum number of frame advances before Gnash exits.
|
void | showUpdatedRegions (bool x) |
bool | showUpdatedRegions () const |
void | restart () |
void | setQuality (Quality q) |
| Set rendering quality, if not locked by RC file..
|
Quality | getQuality () const |
| Get current rendering quality.
|
void | toggleSound () |
void | addFlashVars (VariableMap &vars) |
| Add variables to set into instances of the top-level movie definition.
|
void | setMovieDefinition (movie_definition *md) |
| Set the definition of top-level movie.
|
void | setStage (movie_root *stage) |
| Set the stage to advance/display.
|
void | setAudioDump (const std::string &fname) |
| Set the name of a file to dump audio to.
|
movie_root * | getStage () |
| The root movie, or "Stage".
|
virtual void | error (const std::string &) |
| Handle error message from the core.
|
virtual bool | yesno (const std::string &question) |
| Prompt user with a question she can answer with yes/no.
|
float | getXScale () const |
| Width of a window pixel, in stage pseudopixel units.
|
float | getYScale () const |
| Height of a window pixel, in stage pseudopixel units.
|
float | getFPS () const |
| Height of a window pixel, in stage pseudopixel units.
|
Additional Inherited Members |
typedef std::map< std::string,
std::string > | VariableMap |
static bool | advance_movie (Gui *gui) |
| Convenience static wrapper around advanceMovie for callbacks happiness.
|
| Gui (RunResources &r) |
| Default constructor. Initialises members to safe defaults.
|
| Gui (unsigned long xid, float scale, bool loop, RunResources &r) |
| Expanded constructor for more control over member values.
|
virtual void | quitUI () |
| End main rendering loop calling GUI-specific exit functions.
|
virtual bool | watchFD (int) |
| Watch a file descriptor.
|
virtual void | stopHook () |
virtual void | playHook () |
| Called by Gui::play().
|
virtual bool | visible () |
| Determines whether the Gui is visible (not obscured).
|
bool | _loop |
| Determines if playback should restart after the movie ends.
|
unsigned long | _xid |
| The X Window ID to attach to. If zero, we create a new window.
|
geometry::Range2d< int > | _validbounds |
int | _width |
| Desired window width.
|
int | _height |
| Desired window height.
|
RunResources & | _runResources |
| Per-run resources.
|
unsigned int | _interval |
| Main loop interval: the time between successive advance_movie calls.
|
bool | _redraw_flag |
bool | _mouseShown |
unsigned long | _maxAdvances |
unsigned long | _advances |
| Counter to keep track of frame advances.
|
std::string | _audioDump |
| Name of a file to dump audio to.
|
A Framebuffer-based GUI for Gnash.
This is a simple "GUI" that works with any framebuffer device (/dev/fb0).
No window system is required, it will run straigt from a console.
The current version requires that your system boots in graphics mode (that
is, with a framebuffer driver - like vesafb - and most probably the
virtual console enabled). Which graphics mode Gnash runs in depends on the
mode your machine boots in and can be choosen using the kernel command line.
With other words: Gnash does not change the graphics mode.
Refer to the framebuffer docs for more information.
The fb gui now also supports pointing devices like mice or touchscreens, but
it is not required. It works with /dev/input/mice so any PS/2 compatible
mouse should do. Your kernel can emulate the "mice" device for other devices
(like touchscreens and tablets) so this method is very flexible.
There is currently no visible mouse pointer built in, which is fine for
touchscreens but will make it difficult for standard mice. This will be
fixed in near time.
Resolution: any
Pixel formats:
8 bit: none yet
15 bit: R5/G5/B5
16 bit: R5/G6/B5
24 bit: R8/G8/B8, B8/G8/R8
32 bit: R8/G8/B8/A8, B8/G8/R8/A8
Supported input devices:
any PS/2 compatible mouse (may be emulated by the kernel) talking
to /dev/input/mice