Go to the documentation of this file.
34 bool init(
int argc,
char **argv[]);
40 void render(
int minx,
int miny,
int maxx,
int maxy);
42 SDL_Surface *_sdl_surface;
43 unsigned char *_offscreenbuf;
48 std::vector< geometry::Range2d<int> > _drawbounds;
@ GNASH_MOD_CONTROL
Definition: GnashKey.h:37
virtual void set_invalidated_regions(const InvalidatedRanges &)
Sets the update region (called prior to begin_display).
Definition: Renderer.h:340
@ 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
@ height
Definition: klash_part.cpp:329
virtual void disableCoreTrap()
Definition: sdl.cpp:200
T getMaxY() const
Get max Y ordinate.
Definition: Range2d.h:633
bool init(int argc, char **argv[])
Definition: sdl_agg_glue.cpp:52
void log_debug(StringType msg, Args... args)
Definition: log.h:301
#define _(String)
Definition: log.h:44
modifier
Definition: GnashKey.h:34
virtual bool run()
Start main rendering loop.
Definition: sdl.cpp:49
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
T getMaxX() const
Get max X ordinate.
Definition: Range2d.h:613
@ CONTROL
Definition: GnashKey.h:62
Definition: sdl_agg_glue.h:29
@ F1
Definition: GnashKey.h:190
Base class for render handlers.
Definition: Renderer.h:189
@ GNASH_MOD_NONE
Definition: GnashKey.h:35
virtual void init_buffer(unsigned char *mem, int size, int x, int y, int rowstride)=0
std::uint32_t maskFlags(std::uint32_t sdl_flags)
virtual bool createMenu()
Definition: sdl.cpp:225
T getMinX() const
Get min X ordinate.
Definition: Range2d.h:603
virtual ~SDLGui()
Definition: sdl.cpp:44
virtual bool createWindow(const char *title, int width, int height, int xPosition=0, int yPosition=0)
Create and display our window.
Definition: sdl.cpp:174
@ KP_0
Definition: GnashKey.h:179
void log_error(StringType msg, Args... args)
Definition: log.h:283
bool isNull() const
Returns true if this is the NULL Range2d.
Definition: Range2d.h:181
@ 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
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
@ 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
virtual geometry::Range2d< int > world_to_pixel(const SWFRect &worldbounds) const =0
Converts world coordinates to pixel coordinates.
Renderer * createRenderHandler(int depth)
Definition: sdl_agg_glue.cpp:61
code
Definition: GnashKey.h:44
T getMinY() const
Get min Y ordinate.
Definition: Range2d.h:623
void key_event(SDL_KeyboardEvent *key, bool down)
Definition: sdl.cpp:294
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
bool prepDrawingArea(int width, int height, std::uint32_t sdl_flags)
Definition: sdl_agg_glue.cpp:86
@ INVALID
Definition: GnashKey.h:45
@ SHIFT
Definition: GnashKey.h:61
@ UP
Definition: GnashKey.h:206
@ HOME
Definition: GnashKey.h:211
void setInvalidatedRegions(const InvalidatedRanges &ranges)
Definition: sdl.cpp:207
void render()
Definition: sdl_agg_glue.cpp:174
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
size_type size() const
Returns the number of ranges in the list.
Definition: snappingrange.h:320
virtual bool setupEvents()
Definition: sdl.cpp:231
virtual bool init(int argc, char **argv[])
/ Initialise the gui and the associated renderer.
Definition: sdl.cpp:141
Definition: sdl_glue.h:26
virtual void setInterval(unsigned int interval)
Set main loop delay in milliseconds.
Definition: sdl.cpp:219
SdlAggGlue()
Definition: sdl_agg_glue.cpp:33
Definition: Renderer_agg.h:30
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 renderBuffer()
Definition: sdl.cpp:213
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
int _bpp
Definition: sdl_glue.h:36
@ GNASH_MOD_ALT
Definition: GnashKey.h:38
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
virtual void setTimeout(unsigned int timeout)
Set the time in milliseconds after which the programme should exit.
Definition: sdl.cpp:135
@ width
Definition: klash_part.cpp:329
bool advanceMovie(bool doDisplay=true)
Give movie an heart-beat.
Definition: gui.cpp:935
int _height
Desired window height.
Definition: gui.h:497
void setInvalidatedRegions(const InvalidatedRanges &ranges)
Modified from fb_gui.
Definition: sdl_agg_glue.cpp:155
virtual ~SdlAggGlue()
Definition: sdl_agg_glue.cpp:43