Go to the documentation of this file.
19 #ifndef HAIKU_AGG_GLUE_H
20 #define HAIKU_AGG_GLUE_H
26 #include <SupportDefs.h>
54 bool init(
int argc,
char **argv[], BWindow **
win, std::string sharefilename);
62 void render(
int minx,
int miny,
int maxx,
int maxy);
67 unsigned char *_offscreenbuf;
68 unsigned char *_sharebuf;
70 unsigned int _bufsize;
74 std::vector< geometry::Range2d<int> > _drawbounds;
80 std::string _sharefilename;
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
virtual ~HaikuAggGlue()
Definition: haiku_agg_glue.cpp:231
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
const int GNASH_SHOWN
Definition: haiku_agg_glue.h:42
void ViewNeeded()
Definition: haiku_agg_glue.cpp:312
@ height
Definition: klash_part.cpp:329
Top-level gnash exception.
Definition: GnashException.h:31
T getMaxY() const
Get max Y ordinate.
Definition: Range2d.h:633
void Hidden()
Definition: haiku.cpp:586
const int32 GNASH_QUITTING
Definition: haiku.cpp:49
void setInvalidatedRegions(const InvalidatedRanges &ranges)
Definition: haiku_agg_glue.cpp:440
void log_debug(StringType msg, Args... args)
Definition: log.h:301
void render()
Definition: haiku_agg_glue.cpp:459
std::int32_t y
Definition: BitmapData_as.cpp:435
@ i
Definition: GnashKey.h:155
virtual bool init(int argc, char **argv[])
/ Initialise the gui and the associated renderer.
Definition: haiku.cpp:364
virtual bool createMenu()
Definition: haiku.cpp:485
int getopt(int, char *const *, const char *)
virtual bool createMenuBar()
Definition: haiku.cpp:492
#define _(String)
Definition: log.h:44
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
const int GNASH_MOUSE_CLICKED
Definition: haiku_agg_glue.h:37
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
Base class for render handlers.
Definition: Renderer.h:189
@ m
Definition: GnashKey.h:159
@ s
Definition: GnashKey.h:165
virtual void setInterval(unsigned int interval)
Set main loop delay in milliseconds.
Definition: haiku.cpp:447
virtual void init_buffer(unsigned char *mem, int size, int x, int y, int rowstride)=0
T getMinX() const
Get min X ordinate.
Definition: Range2d.h:603
virtual bool setupEvents()
Definition: haiku.cpp:499
std::unique_ptr< Gui > createFLTKGui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_fltk.cpp:40
std::unique_ptr< Gui > createKDEGui(unsigned long xid, float scale, bool loop, RunResources &r)
virtual void resize_view(int width, int height)
Definition: haiku.cpp:572
Renderer * createRenderHandler(int depth)
Definition: haiku_agg_glue.cpp:270
void log_error(StringType msg, Args... args)
Definition: log.h:283
bool prepDrawingArea(int width, int height, std::uint32_t sdl_flags)
Definition: haiku_agg_glue.cpp:329
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
const int GNASH_MOUSE_MOVED
Definition: haiku_agg_glue.h:38
std::unique_ptr< Gui > createSDLGui(unsigned long xid, float scale, bool loop, RunResources &r)
unsigned int getInterval()
Definition: haiku.cpp:566
@ RIGHT
Definition: GnashKey.h:208
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
void GnashPulse()
Definition: haiku.cpp:554
virtual void unsetFullscreen()
Definition: haiku.cpp:532
@ r
Definition: GnashKey.h:164
HaikuAggGlue(Gui *gui, unsigned long xid)
Definition: haiku_agg_glue.cpp:213
#define QQ(x)
Definition: adipe.h:7
std::int32_t x
The x coordinate.
Definition: Point2d.h:43
virtual void setFullscreenEtc()
Definition: haiku.cpp:513
virtual void renderBuffer()
Definition: haiku.cpp:441
const int GNASH_HIDDEN
Definition: haiku_agg_glue.h:41
@ INSERT
Definition: GnashKey.h:210
@ PGDN
Definition: GnashKey.h:214
@ END
Definition: GnashKey.h:212
const int32 GNASH_PULSE
Definition: haiku.cpp:47
virtual geometry::Range2d< int > world_to_pixel(const SWFRect &worldbounds) const =0
Converts world coordinates to pixel coordinates.
const int32 GNASH_SEND_PULSE
Definition: haiku.cpp:48
code
Definition: GnashKey.h:44
T getMinY() const
Get min Y ordinate.
Definition: Range2d.h:623
virtual void error(const std::string &msg)
Handle error message from the core.
Definition: haiku.cpp:460
virtual bool run()
Start main rendering loop.
Definition: haiku.cpp:433
int _width
Desired window width.
Definition: gui.h:494
virtual ~HaikuGui()
Definition: haiku.cpp:356
static bool advance_movie(Gui *gui)
Convenience static wrapper around advanceMovie for callbacks happiness.
Definition: gui.h:272
@ INVALID
Definition: GnashKey.h:45
Definition: haiku_agg_glue.h:49
const int GNASH_RESIZE
Definition: haiku_agg_glue.h:40
virtual void setTimeout(unsigned int timeout)
Set the time in milliseconds after which the programme should exit.
Definition: haiku.cpp:453
@ UP
Definition: GnashKey.h:206
geometry::Point2d point
Definition: Point2d.h:143
@ 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
const int GNASH_UNSET_FULLSCREEN
Definition: haiku_agg_glue.h:46
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
std::unique_ptr< Gui > createAOS4Gui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_aos4.cpp:40
void setInvalidatedRegions(const InvalidatedRanges &ranges)
Definition: haiku.cpp:479
std::unique_ptr< Gui > createGTKGui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_gtk.cpp:41
virtual void unsetFullscreenEtc()
Definition: haiku.cpp:539
std::unique_ptr< Gui > createQt4Gui(unsigned long xid, float scale, bool loop, RunResources &r)
std::unique_ptr< Gui > createAQUAGui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_aqua.cpp:40
bool init(int argc, char **argv[], BWindow **win, std::string sharefilename)
Definition: haiku_agg_glue.cpp:247
Definition: haikusup.h:47
void Shown()
Definition: haiku.cpp:580
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
void Shown()
Definition: haiku_agg_glue.cpp:489
Range2d< T > & setTo(T x, T y)
Set ourself to bound the given point.
Definition: Range2d.h:339
std::uint32_t maskFlags(std::uint32_t sdl_flags)
unsigned int _interval
Main loop interval: the time between successive advance_movie calls.
Definition: gui.h:503
std::int32_t y
The y coordinate.
Definition: Point2d.h:46
virtual bool yesno(const std::string &question)
Prompt user with a question she can answer with yes/no.
Definition: haiku.cpp:469
Object * win
Definition: aos4_gnash_prefs.cpp:31
virtual void setFullscreen()
Definition: haiku.cpp:506
std::unique_ptr< Gui > createDumpGui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_dump.cpp:40
const RangeType & getRange(size_type index) const
Returns the range at the specified index.
Definition: snappingrange.h:326
@ width
Definition: klash_part.cpp:329
void Hidden()
Definition: haiku_agg_glue.cpp:495
std::unique_ptr< Gui > createFBGui(unsigned long windowid, float scale, bool do_loop, RunResources &r)
Definition: fb.cpp:141
virtual bool createWindow(const char *title, int width, int height, int xPosition=0, int yPosition=0)
Create and display our window.
Definition: haiku.cpp:403
std::int32_t x
Definition: BitmapData_as.cpp:434
std::unique_ptr< Gui > createHaikuGui(unsigned long xid, float scale, bool loop, RunResources &r)
@ b
Definition: GnashKey.h:148
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
int _height
Desired window height.
Definition: gui.h:497
const int GNASH_SET_FULLSCREEN
Definition: haiku_agg_glue.h:45
const int GNASH_KEY_EVENT
Definition: haiku_agg_glue.h:39
void ViewNoMore()
Definition: haiku_agg_glue.cpp:306