Go to the documentation of this file.
24 #include <proto/intuition.h>
25 #include <proto/graphics.h>
26 #include <graphics/blitattr.h>
27 #include <proto/Picasso96API.h>
28 #include <proto/layers.h>
29 #include <proto/dos.h>
30 #include <proto/gadtools.h>
43 bool init(
int argc,
char **argv[]);
48 void render(
int minx,
int miny,
int maxx,
int maxy);
58 std::vector< geometry::Range2d<int> > _drawbounds;
59 unsigned char *_offscreenbuf;
61 struct Window *_window;
62 struct Screen *_screen;
void unsetFullscreen()
Definition: aos4_agg_glue.cpp:164
@ GNASH_MOD_CONTROL
Definition: GnashKey.h:37
@ OBJ_OS_VALUE
Definition: aos4_gnash_prefs.h:124
virtual void set_invalidated_regions(const InvalidatedRanges &)
Sets the update region (called prior to begin_display).
Definition: Renderer.h:340
@ L
Definition: GnashKey.h:124
@ 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
int maxsizemovielib
Definition: aos4_gnash_prefs.h:86
@ height
Definition: klash_part.cpp:329
@ F2
Definition: GnashKey.h:191
virtual bool init(int argc, char **argv[])
/ Initialise the gui and the associated renderer.
Definition: aos4.cpp:592
@ F9
Definition: GnashKey.h:198
@ OBJ_SAVEMEDIASTREAMS
Definition: aos4_gnash_prefs.h:119
T getMaxY() const
Get max Y ordinate.
Definition: Range2d.h:633
@ OBJ_CONNECTLOCALHOST
Definition: aos4_gnash_prefs.h:107
void log_debug(StringType msg, Args... args)
Definition: log.h:301
#define GAD(x)
Definition: aos4.cpp:58
int logparser
Definition: aos4_gnash_prefs.h:66
struct NewMenu nm[]
Definition: aos4_agg_glue.cpp:30
virtual bool createWindow(const char *title, int width, int height, int xPosition=0, int yPosition=0)
Create and display our window.
Definition: aos4.cpp:619
Definition: aos4_agg_glue.h:38
#define _(String)
Definition: log.h:44
void saveOrigiginalDimension(int width, int height, int xPosition, int yPosition)
Definition: aos4_agg_glue.cpp:155
@ OBJ_SCROLLER_VALUE
Definition: aos4_gnash_prefs.h:98
modifier
Definition: GnashKey.h:34
int loglocalconn
Definition: aos4_gnash_prefs.h:70
@ OBJ_CONNECTLOCALDOMAIN
Definition: aos4_gnash_prefs.h:108
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 bool run()
Start main rendering loop.
Definition: aos4.cpp:171
T getMaxX() const
Get max X ordinate.
Definition: Range2d.h:613
@ CONTROL
Definition: GnashKey.h:62
@ F1
Definition: GnashKey.h:190
void render()
Definition: aos4_agg_glue.cpp:337
char savemediadir[255]
Definition: aos4_gnash_prefs.h:82
@ F4
Definition: GnashKey.h:193
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
void setFullscreen()
Definition: aos4_agg_glue.cpp:135
Base class for render handlers.
Definition: Renderer.h:189
void setInvalidatedRegions(const InvalidatedRanges &ranges)
Definition: aos4_agg_glue.cpp:318
@ OBJ_NETWORKTIMEOUT
Definition: aos4_gnash_prefs.h:115
@ GNASH_MOD_NONE
Definition: GnashKey.h:35
char detectedos[32]
Definition: aos4_gnash_prefs.h:84
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
struct Window * getWindow(void)
Definition: aos4_agg_glue.cpp:305
int _bpp
Definition: aos4_glue.h:39
int verbosity
Definition: aos4_gnash_prefs.h:63
bool init(int argc, char **argv[])
Definition: aos4_agg_glue.cpp:88
virtual void unsetFullscreen()
Definition: aos4.cpp:695
void pause()
Toggle between "stop" and "play" mode.
Definition: gui.cpp:875
struct MsgPort * AppPort
Definition: aos4_gnash_prefs.cpp:33
#define OBJ(x)
Definition: aos4.cpp:59
int audioTaskID
Definition: sound_handler_ahi.cpp:56
@ OBJ_SCROLLER
Definition: aos4_gnash_prefs.h:97
void log_error(StringType msg, Args... args)
Definition: log.h:283
bool showUpdatedRegions() const
Definition: gui.h:355
int logmalformedswf
Definition: aos4_gnash_prefs.h:68
AOS4AggGlue()
Definition: aos4_agg_glue.cpp:65
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
@ OBJ_ONLYLOCALSHAREDOBJ
Definition: aos4_gnash_prefs.h:112
bool _fullscreen
Definition: gui.h:513
@ 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
struct Menu * getMenu(void)
Definition: aos4_agg_glue.cpp:311
@ OBJ_NUM
Definition: aos4_gnash_prefs.h:131
void refreshView()
Definition: gui.cpp:547
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 setInvalidatedRegions(const InvalidatedRanges &ranges)
Definition: aos4.cpp:653
@ OBJ_DONTWRITESHAREDOBJ
Definition: aos4_gnash_prefs.h:111
@ r
Definition: GnashKey.h:164
Object * make_window(struct GnashPrefs *preferences)
Definition: aos4_gnash_prefs.cpp:36
Object * Objects[OBJ_NUM]
Definition: aos4_gnash_prefs.cpp:23
virtual void disableCoreTrap()
Definition: aos4.cpp:647
int dontwriteso
Definition: aos4_gnash_prefs.h:75
@ OBJ_OK
Definition: aos4_gnash_prefs.h:129
@ GNASH_MOD_SHIFT
Definition: GnashKey.h:36
@ OBJ_LOGLOCALCONNECTION
Definition: aos4_gnash_prefs.h:105
@ INSERT
Definition: GnashKey.h:210
@ ALT
Definition: GnashKey.h:63
virtual void showAboutDialog()
Definition: aos4.cpp:867
@ 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.
code
Definition: GnashKey.h:44
T getMinY() const
Get min Y ordinate.
Definition: Range2d.h:623
@ ENTER
Definition: GnashKey.h:58
@ OBJ_URLOPENER_VALUE
Definition: aos4_gnash_prefs.h:125
@ OBJ_STARTINPAUSE
Definition: aos4_gnash_prefs.h:127
void notifyMouseMove(int x, int y)
Mouse notification callback to be called when the mouse is moved.
Definition: gui.cpp:469
@ OBJ_DISABLESSL
Definition: aos4_gnash_prefs.h:109
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
@ OBJ_LOGMALFORMEDSWF
Definition: aos4_gnash_prefs.h:103
@ INVALID
Definition: GnashKey.h:45
@ F3
Definition: GnashKey.h:192
@ SHIFT
Definition: GnashKey.h:61
void toggleFullscreen()
Definition: gui.cpp:258
char logfilename[255]
Definition: aos4_gnash_prefs.h:65
@ UP
Definition: GnashKey.h:206
@ F7
Definition: GnashKey.h:196
@ HOME
Definition: GnashKey.h:211
void resize(int width, int height)
Definition: aos4_agg_glue.cpp:388
int logswf
Definition: aos4_gnash_prefs.h:67
void resize_view(int width, int height)
Resize the client area view and the window accordingly.
Definition: gui.cpp:429
@ F5
Definition: GnashKey.h:194
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
@ F8
Definition: GnashKey.h:197
bool _mouseShown
Definition: gui.h:516
#define RESET_TIME
Definition: aos4.cpp:61
virtual void setInterval(unsigned int interval)
Set main loop delay in milliseconds.
Definition: aos4.cpp:665
int logtofile
Definition: aos4_gnash_prefs.h:64
size_type size() const
Returns the number of ranges in the list.
Definition: snappingrange.h:320
void play()
Put the application in "play" mode.
Definition: gui.cpp:830
@ OBJ_SIZEMOVIELIB
Definition: aos4_gnash_prefs.h:126
@ OBJ_SHAREDOBJDIR_VALUE
Definition: aos4_gnash_prefs.h:110
virtual ~AOS4Gui()
Definition: aos4.cpp:87
int nettimeout
Definition: aos4_gnash_prefs.h:78
@ OBJ_SEVEDYNAMICSTREAMS
Definition: aos4_gnash_prefs.h:120
char urlopener[255]
Definition: aos4_gnash_prefs.h:85
int usesound
Definition: aos4_gnash_prefs.h:79
@ OBJ_CANCEL
Definition: aos4_gnash_prefs.h:130
int connectlocalhost
Definition: aos4_gnash_prefs.h:71
int savemedia
Definition: aos4_gnash_prefs.h:80
int connectlocaldomain
Definition: aos4_gnash_prefs.h:72
void gnashSleep(time_t useconds)
Sleep compatibly for the specified number of microseconds.
Definition: GnashSleep.h:35
void restart()
Definition: gui.cpp:269
@ F6
Definition: GnashKey.h:195
char playerversion[32]
Definition: aos4_gnash_prefs.h:83
@ OBJ_LOGFILENAME_VALUE
Definition: aos4_gnash_prefs.h:100
@ OBJ_LOGPARSER
Definition: aos4_gnash_prefs.h:101
@ F10
Definition: GnashKey.h:199
Definition: Renderer_agg.h:30
@ F11
Definition: GnashKey.h:200
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
virtual bool createMenu()
Definition: aos4.cpp:671
@ c
Definition: GnashKey.h:149
@ OBJ_PLAYERVERSION_VALUE
Definition: aos4_gnash_prefs.h:123
virtual void setFullscreen()
Definition: aos4.cpp:683
@ F12
Definition: GnashKey.h:201
virtual void renderBuffer()
Definition: aos4.cpp:659
Definition: aos4_glue.h:29
#define VERSION
Definition: gnashconfig.h:731
int savedynamic
Definition: aos4_gnash_prefs.h:81
virtual void setTimeout(unsigned int timeout)
Set the time in milliseconds after which the programme should exit.
Definition: aos4.cpp:586
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
@ OBJ_USESOUNDHANDLER
Definition: aos4_gnash_prefs.h:118
Renderer * createRenderHandler()
Definition: aos4_agg_glue.cpp:123
@ OBJ_LOGSWF
Definition: aos4_gnash_prefs.h:102
int disablelocal
Definition: aos4_gnash_prefs.h:77
__attribute__((used)) static const char *stackcookie
@ GNASH_MOD_ALT
Definition: GnashKey.h:38
Object * win
Definition: aos4_gnash_prefs.cpp:31
virtual struct GnashPrefs * ReadPrefs(void)
Definition: aos4.cpp:888
void key_event(gnash::key::code key, int state, bool down)
Definition: aos4.cpp:822
@ SPACE
Definition: GnashKey.h:77
int logactionscript
Definition: aos4_gnash_prefs.h:69
@ OBJ_LOGTOFILE
Definition: aos4_gnash_prefs.h:99
virtual bool setupEvents()
Definition: aos4.cpp:677
int onlylocalso
Definition: aos4_gnash_prefs.h:76
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
@ OBJ_DISABLELOCALCONNOBJ
Definition: aos4_gnash_prefs.h:113
@ width
Definition: klash_part.cpp:329
@ OBJ_LOGACTIONSCRIPT
Definition: aos4_gnash_prefs.h:104
virtual bool showMouse(bool show)
Sets whether the gui should show the system mouse pointer.
Definition: aos4.cpp:708
@ OBJ_MEDIASAVEDIR_VALUE
Definition: aos4_gnash_prefs.h:121
int disablessl
Definition: aos4_gnash_prefs.h:73
virtual ~AOS4AggGlue()
Definition: aos4_agg_glue.cpp:75
@ e
Definition: GnashKey.h:151
struct NewMenu nm[]
Definition: aos4_agg_glue.cpp:30
int _height
Desired window height.
Definition: gui.h:497
char sharedobjdir[255]
Definition: aos4_gnash_prefs.h:74
int startpaused
Definition: aos4_gnash_prefs.h:87
Definition: aos4_gnash_prefs.h:62
bool prepDrawingArea(int width, int height)
Definition: aos4_agg_glue.cpp:181
void stop()
Put the application in "stop" mode.
Definition: gui.cpp:853