Go to the documentation of this file.
19 #ifndef GNASH_FB_GLUE_H
20 #define GNASH_FB_GLUE_H
27 #ifdef BUILD_EGL_DEVICE
30 #ifdef BUILD_RAWFB_DEVICE
33 #ifdef BUILD_DIRECTFB_DEVICE
36 #ifdef BUILD_X11_DEVICE
61 virtual bool init(
int argc,
char **argv[]) = 0;
74 virtual void render(
void*
const ) {};
virtual Renderer * createRenderHandler()=0
int height()
Definition: fb_glue_agg.cpp:245
virtual ~FBGui()
Definition: fb.cpp:172
virtual void prepDrawingArea(FbWidget *drawing_area)=0
void init(float x, float y)
Definition: OpenVGRenderer.cpp:248
@ height
Definition: klash_part.cpp:329
void setInterval(unsigned int interval)
Set main loop delay in milliseconds.
Definition: fb.cpp:458
A class used to virtualize time flow.
Definition: VirtualClock.h:34
void unsetFullscreen()
Definition: fb.cpp:479
void setInvalidatedRegions(const InvalidatedRanges &ranges)
Definition: fb.cpp:508
void log_debug(StringType msg, Args... args)
Definition: log.h:301
std::int32_t y
Definition: BitmapData_as.cpp:435
std::string & getRenderBackend()
Definition: RunResources.h:136
int getopt(int, char *const *, const char *)
#define _(String)
Definition: log.h:44
virtual ~FBGlue()
Definition: fb_glue.h:57
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Parent class from which all GUI implementations will depend.
Definition: gui.h:88
void FbWidget
Definition: fb_glue.h:48
virtual void setInvalidatedRegions(const InvalidatedRanges &)
Definition: fb_glue.h:67
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
Base class for render handlers.
Definition: Renderer.h:189
virtual void setRenderHandlerSize(int, int)
Definition: fb_glue.h:66
void renderBuffer()
Definition: fb.cpp:425
FBGlue()
Definition: fb_glue.h:56
bool showMouse(bool show)
Sets whether the gui should show the system mouse pointer.
Definition: fb.cpp:491
Definition: fb_glue_gles1.h:64
void log_error(StringType msg, Args... args)
Definition: log.h:283
RunResources & _runResources
Per-run resources.
Definition: gui.h:500
void setRenderer(std::shared_ptr< Renderer > r)
Definition: RunResources.h:108
virtual unsigned long int elapsed() const =0
Return number of milliseconds elapsed since start.
void notifyMouseClick(bool mouse_pressed)
Mouse notification callback to be called when the mouse is clicked.
Definition: gui.cpp:531
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
DSOEXPORT Renderer * create_handler(const char *)
Definition: OpenVGRenderer.cpp:1265
@ r
Definition: GnashKey.h:164
void setFullscreen()
Definition: fb.cpp:473
float getFPS() const
Height of a window pixel, in stage pseudopixel units.
Definition: gui.h:434
virtual void render(void *const)
Definition: fb_glue.h:74
void showMenu(bool show)
Sets whether the menus should be shown (for fscommand)
Definition: fb.cpp:485
void notifyMouseMove(int x, int y)
Mouse notification callback to be called when the mouse is moved.
Definition: gui.cpp:469
int _width
Desired window width.
Definition: gui.h:494
T width() const
Return width this Range2d.
Definition: Range2d.h:374
int width()
The Width of the drawing area, in pixels. For framebuffer based devices, this is the size of the disp...
Definition: fb_glue_agg.cpp:234
static bool advance_movie(Gui *gui)
Convenience static wrapper around advanceMovie for callbacks happiness.
Definition: gui.h:272
virtual bool init(int argc, char **argv[])=0
size_t getHeight()
Definition: DeviceGlue.h:128
Definition: OpenVGRenderer.h:73
void checkForData()
Definition: fb.cpp:735
void resize_view(int width, int height)
Resize the client area view and the window accordingly.
Definition: gui.cpp:429
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
virtual void beforeRendering(movie_root *)
Definition: fb_glue.h:76
virtual VirtualClock & getClock()
Return the clock provided by this Gui.
Definition: gui.h:112
bool createWindow(const char *title, int width, int height, int xPosition=0, int yPosition=0)
Create and display our window.
Definition: fb.cpp:433
void gnashSleep(time_t useconds)
Sleep compatibly for the specified number of microseconds.
Definition: GnashSleep.h:35
void setTimeout(unsigned int timeout)
Set the time in milliseconds after which the programme should exit.
Definition: fb.cpp:464
int terminate_request
Definition: fb.cpp:139
Definition: fb_glue_agg.h:37
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
void quitUI()
Stop main rendering loop.
Definition: fb.cpp:516
T height() const
Return height this Range2dangle.
Definition: Range2d.h:385
movie_root * getStage()
The root movie, or "Stage".
Definition: gui.h:407
void terminate_signal(int)
Called on CTRL-C and alike.
Definition: fb.cpp:150
@ c
Definition: GnashKey.h:149
bool resize_view(int width, int height)
Definition: fb.cpp:357
Renderer * create_handler(const char *)
Definition: Renderer_gles1.cpp:315
Range2d< T > & setTo(T x, T y)
Set ourself to bound the given point.
Definition: Range2d.h:339
unsigned int _interval
Main loop interval: the time between successive advance_movie calls.
Definition: gui.h:503
geometry::Range2d< int > _validbounds
Definition: gui.h:491
bool setupEvents()
Definition: fb.cpp:451
Renderer * createRenderHandler()
Create the renderer handler.
Definition: fb_glue_agg.cpp:147
bool createMenu()
Definition: fb.cpp:444
Definition: fb_glue_ovg.h:50
std::unique_ptr< Renderer > _renderer
Definition: fb_glue.h:76
@ width
Definition: klash_part.cpp:329
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
std::unique_ptr< Gui > createFBGui(unsigned long windowid, float scale, bool do_loop, RunResources &r)
Definition: fb.cpp:141
size_t getWidth()
Definition: DeviceGlue.h:124
bool run()
Start main rendering loop.
Definition: fb.cpp:368
void setInvalidatedRegion(const SWFRect &bounds)
Gives the GUI a hint which region of the stage should be redrawn.
Definition: fb.cpp:500
std::int32_t x
Definition: BitmapData_as.cpp:434
Definition: DeviceGlue.h:37
int _height
Desired window height.
Definition: gui.h:497
virtual bool init(int argc, char ***argv)
Initialize the framebuffer.
Definition: fb.cpp:180