Go to the documentation of this file.
23 #if GNASH_QT_VERSION == 4
24 # include <Qt/qwidget.h>
38 virtual bool init(
int argc,
char **argv[]) = 0;
gnash_cursor_type
Enumerates mouse cursor types.
Definition: gui.h:81
@ GNASH_MOD_CONTROL
Definition: GnashKey.h:37
@ position
Definition: klash_part.cpp:329
@ DOWN
Definition: GnashKey.h:207
std::shared_ptr< Renderer > _renderer
The handler which is called to update the client area of our window.
Definition: gui.h:506
@ BACKSPACE
Definition: GnashKey.h:53
@ CURSOR_INPUT
Definition: gui.h:84
virtual void setInvalidatedRegions(const InvalidatedRanges &)
Definition: kde_glue.h:43
@ height
Definition: klash_part.cpp:329
void setInvalidatedRegions(const InvalidatedRanges &ranges)
Definition: kde.cpp:130
QWidget * _drawing_area
Definition: kde_glue.h:47
void resize(int width, int height)
Definition: kde.cpp:328
@ i
Definition: GnashKey.h:155
virtual void handleKeyEvent(QKeyEvent *event, bool down)
Definition: kde.cpp:320
std::int32_t pixelsToTwips(double a)
Definition: GnashNumeric.h:144
#define _(String)
Definition: log.h:44
modifier
Definition: GnashKey.h:34
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
virtual void initBuffer(int, int)
Definition: kde_glue.h:45
@ DELETEKEY
Definition: GnashKey.h:177
@ CONTROL
Definition: GnashKey.h:62
@ CAPSLOCK
Definition: GnashKey.h:65
virtual void setInterval(unsigned int interval)
Set main loop delay in milliseconds.
Definition: kde.cpp:143
@ F1
Definition: GnashKey.h:190
virtual bool createMenu()
Definition: kde.cpp:182
virtual ~KdeGlue()
Definition: kde_glue.h:37
virtual void prepDrawingArea(QWidget *drawing_area)=0
Base class for render handlers.
Definition: Renderer.h:189
virtual void renderBuffer()
Definition: kde.cpp:122
@ GNASH_MOD_NONE
Definition: GnashKey.h:35
virtual void setTimeout(unsigned int timeout)
Set the time in milliseconds after which the programme should exit.
Definition: kde.cpp:136
void pause()
Toggle between "stop" and "play" mode.
Definition: gui.cpp:875
@ KP_0
Definition: GnashKey.h:179
@ PGUP
Definition: GnashKey.h:213
RunResources & _runResources
Per-run resources.
Definition: gui.h:500
void setRenderer(std::shared_ptr< Renderer > r)
Definition: RunResources.h:108
@ LEFT
Definition: GnashKey.h:209
@ RIGHT
Definition: GnashKey.h:208
@ COLON
Definition: GnashKey.h:105
void notifyMouseClick(bool mouse_pressed)
Mouse notification callback to be called when the mouse is clicked.
Definition: gui.cpp:531
void refreshView()
Definition: gui.cpp:547
Definition: kde_glue.h:34
virtual bool init(int argc, char **argv[])
/ Initialise the gui and the associated renderer.
Definition: kde.cpp:66
@ r
Definition: GnashKey.h:164
virtual Renderer * createRenderHandler()=0
@ GNASH_MOD_SHIFT
Definition: GnashKey.h:36
@ INSERT
Definition: GnashKey.h:210
@ ALT
Definition: GnashKey.h:63
@ PGDN
Definition: GnashKey.h:214
@ END
Definition: GnashKey.h:212
code
Definition: GnashKey.h:44
@ _0
Definition: GnashKey.h:94
@ ENTER
Definition: GnashKey.h:58
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
@ TAB
Definition: GnashKey.h:54
static bool advance_movie(Gui *gui)
Convenience static wrapper around advanceMovie for callbacks happiness.
Definition: gui.h:272
@ CLEAR
Definition: GnashKey.h:57
@ INVALID
Definition: GnashKey.h:45
@ SHIFT
Definition: GnashKey.h:61
virtual bool init(int argc, char **argv[])=0
KdeGlue()
Definition: kde_glue.h:36
virtual bool createWindow(const char *windowtitle, int width, int height, int xPosition=0, int yPosition=0)
Create and display our window.
Definition: kde.cpp:83
@ UP
Definition: GnashKey.h:206
@ HOME
Definition: GnashKey.h:211
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
void play()
Put the application in "play" mode.
Definition: gui.cpp:830
virtual void resize(int, int)
Definition: kde_glue.h:44
void quit()
Always called on exit.
Definition: gui.cpp:215
@ CURSOR_HAND
Definition: gui.h:82
void add(const RangeType &range)
Add a Range to the set, merging when possible and appropriate.
Definition: snappingrange.h:250
void restart()
Definition: gui.cpp:269
@ ESCAPE
Definition: GnashKey.h:72
unsigned long _xid
The X Window ID to attach to. If zero, we create a new window.
Definition: gui.h:486
@ c
Definition: GnashKey.h:149
virtual void setCursor(gnash_cursor_type newcursor)
Sets the current mouse cursor for the Gui window.
Definition: kde.cpp:150
@ GNASH_MOD_ALT
Definition: GnashKey.h:38
@ NOBREAKSPACE
Definition: GnashKey.h:227
void quitUI()
End main rendering loop calling GUI-specific exit functions.
Definition: kde.cpp:335
virtual bool run()
Start main rendering loop.
Definition: kde.cpp:173
@ SPACE
Definition: GnashKey.h:77
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.
Definition: gui.cpp:560
@ width
Definition: klash_part.cpp:329
@ HELP
Definition: GnashKey.h:325
virtual bool setupEvents()
Definition: kde.cpp:190
int _height
Desired window height.
Definition: gui.h:497
void stop()
Put the application in "stop" mode.
Definition: gui.cpp:853
@ NUM_LOCK
Definition: GnashKey.h:223