Go to the documentation of this file.
19 #ifndef FLTK_GLUE_AGG_H
20 #define FLTK_GLUE_AGG_H
26 #include <fltk/Widget.h>
55 unsigned char* _offscreenbuf;
64 #endif //FLTK_GLUE_AGG_H
@ KEY
Definition: GnashKey.h:332
gnash_cursor_type
Enumerates mouse cursor types.
Definition: gui.h:81
void addMenuItems()
Definition: fltk.cpp:356
@ GNASH_MOD_CONTROL
Definition: GnashKey.h:37
@ RIGHT_BRACKET
Definition: GnashKey.h:142
@ 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
DSOEXPORT Renderer_agg_base * create_Renderer_agg(const char *pixelformat)
Create a render handler.
Definition: Renderer_agg.cpp:2048
@ BACKSPACE
Definition: GnashKey.h:53
@ CURSOR_INPUT
Definition: gui.h:84
pixel_iterator< T > begin(GnashImage &im)
Definition: ImageIterators.h:191
@ height
Definition: klash_part.cpp:329
virtual bool init(int argc, char **argv[])
/ Initialise the gui and the associated renderer.
Definition: fltk.cpp:205
Top-level gnash exception.
Definition: GnashException.h:31
void render(geometry::Range2d< int > &bounds)
Definition: fltk_glue_agg.cpp:89
~FltkAggGlue()
Definition: fltk_glue_agg.cpp:41
std::int32_t y
Definition: BitmapData_as.cpp:435
void create()
Definition: fltk.cpp:219
@ i
Definition: GnashKey.h:155
Renderer * createRenderHandler()
Definition: fltk_glue_cairo.cpp:65
#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
@ DELETEKEY
Definition: GnashKey.h:177
virtual void setInterval(unsigned int)
Set main loop delay in milliseconds.
Definition: fltk.cpp:212
@ LEFT_BRACKET
Definition: GnashKey.h:140
@ CAPSLOCK
Definition: GnashKey.h:65
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
Base class for render handlers.
Definition: Renderer.h:189
@ GNASH_MOD_NONE
Definition: GnashKey.h:35
Definition: fltk_glue_cairo.h:52
virtual void init_buffer(unsigned char *mem, int size, int x, int y, int rowstride)=0
virtual bool createWindow(const char *title, int width, int height, int xPosition=0, int yPosition=0)
Create and display our window.
Definition: fltk.cpp:232
T getMinX() const
Get min X ordinate.
Definition: Range2d.h:603
bool isNull() const
Returns true if this is the NULL Range2d.
Definition: Range2d.h:181
Definition: fltk_glue_agg.h:39
@ 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
Renderer * createRenderHandler()
Definition: fltk_glue_agg.cpp:46
@ RIGHT
Definition: GnashKey.h:208
void notifyMouseClick(bool mouse_pressed)
Mouse notification callback to be called when the mouse is clicked.
Definition: gui.cpp:531
Range2d< T > Intersection(const Range2d< T > &r1, const Range2d< T > &r2)
Return a rectangle being the intersetion of the two rectangles.
Definition: Range2d.h:762
bool isFinite() const
Returns true if this is a finite Range2d.
Definition: Range2d.h:210
@ r
Definition: GnashKey.h:164
@ 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
T getMinY() const
Get min Y ordinate.
Definition: Range2d.h:623
FltkGui(unsigned long xid, float scale, bool loop, RunResources &r)
Definition: fltk.cpp:54
@ ENTER
Definition: GnashKey.h:58
@ h
Definition: GnashKey.h:154
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
@ TAB
Definition: GnashKey.h:54
void initBuffer(int width, int height)
Definition: fltk_glue_cairo.cpp:72
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
@ 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
void setInvalidatedRegions(const InvalidatedRanges &ranges)
Definition: fltk.cpp:447
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
virtual bool run()
Start main rendering loop.
Definition: fltk.cpp:197
size_type size() const
Returns the number of ranges in the list.
Definition: snappingrange.h:320
@ CURSOR_HAND
Definition: gui.h:82
virtual ~FltkGui()
Definition: fltk.cpp:61
void draw()
Definition: fltk_glue_agg.cpp:96
@ ESCAPE
Definition: GnashKey.h:72
Definition: Renderer_agg.h:30
pixel_iterator< T > end(GnashImage &im)
Definition: ImageIterators.h:198
T height() const
Return height this Range2dangle.
Definition: Range2d.h:385
void resize(int width, int height)
Definition: fltk_glue_agg.cpp:108
unsigned long _xid
The X Window ID to attach to. If zero, we create a new window.
Definition: gui.h:486
@ MINUS
Definition: GnashKey.h:90
@ EQUALS
Definition: GnashKey.h:108
virtual bool createMenu()
Definition: fltk.cpp:396
@ BACKSLASH
Definition: GnashKey.h:141
void initBuffer(int width, int height)
Definition: fltk_glue_agg.cpp:55
Range2d< T > & setTo(T x, T y)
Set ourself to bound the given point.
Definition: Range2d.h:339
geometry::Range2d< int > _validbounds
Definition: gui.h:491
virtual void setCursor(gnash_cursor_type newcursor)
Sets the current mouse cursor for the Gui window.
Definition: fltk.cpp:428
int handle(int event)
Definition: fltk.cpp:99
@ GNASH_MOD_ALT
Definition: GnashKey.h:38
@ SLASH
Definition: GnashKey.h:92
@ 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
const RangeType & getRange(size_type index) const
Returns the range at the specified index.
Definition: snappingrange.h:326
@ width
Definition: klash_part.cpp:329
@ HELP
Definition: GnashKey.h:325
@ SEMICOLON
Definition: GnashKey.h:106
std::int32_t x
Definition: BitmapData_as.cpp:434
virtual void renderBuffer()
Definition: fltk.cpp:68
int _height
Desired window height.
Definition: gui.h:497
void layout()
Definition: fltk.cpp:411
@ NUM_LOCK
Definition: GnashKey.h:223