Go to the documentation of this file.
20 #ifndef __GNASH_VIEW_H__
21 #define __GNASH_VIEW_H__
23 #include <gtk/gtkbin.h>
30 #define GNASH_TYPE_VIEW (gnash_view_get_type())
31 #define GNASH_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST((object), GNASH_TYPE_VIEW, GnashView))
32 #define GNASH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNASH_TYPE_VIEW, GnashViewClass))
33 #define GNASH_IS_VIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), GNASH_TYPE_VIEW))
34 #define GNASH_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNASH_TYPE_VIEW))
35 #define GNASH_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), GNASH_TYPE_VIEW, GnashViewClass))
static LogFile & getDefaultInstance()
Definition: log.cpp:77
@ GNASH_MOD_CONTROL
Definition: GnashKey.h:37
VGPath path
Definition: testr_gtk.cpp:84
std::shared_ptr< gnash::Renderer > gnash_canvas_get_renderer(GnashCanvas *canvas)
Get the Renderer for this canvas.
Definition: gtk_canvas.cpp:323
typedefG_BEGIN_DECLS struct _GnashCanvas GnashCanvas
Definition: gtk_canvas.h:35
@ DOWN
Definition: GnashKey.h:207
static DSOEXPORT boost::intrusive_ptr< movie_definition > makeMovie(const URL &url, const RunResources &runResources, const char *real_url=nullptr, bool startLoaderThread=true, const std::string *postdata=nullptr)
Create a gnash::movie_definition from the given URL.
Definition: MovieFactory.cpp:109
@ BACKSPACE
Definition: GnashKey.h:53
Definition: gnash-view.h:37
#define dbglogfile
Definition: gtkext.cpp:48
void log_debug(StringType msg, Args... args)
Definition: log.h:301
std::int32_t y
Definition: BitmapData_as.cpp:435
GtkWidget * gnash_view_new(void)
Definition: gnash-view.cpp:99
@ i
Definition: GnashKey.h:155
#define _(String)
Definition: log.h:44
GType gnash_view_get_type(void)
modifier
Definition: GnashKey.h:34
The AVM1 virtual machine.
Definition: VM.h:72
@ PROP_URI
Definition: gnash-view.cpp:49
@ DELETEKEY
Definition: GnashKey.h:177
An exception from SoundHandler subsystem.
Definition: GnashException.h:70
@ CONTROL
Definition: GnashKey.h:62
@ CAPSLOCK
Definition: GnashKey.h:65
@ F1
Definition: GnashKey.h:190
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
static void parse_querystring(const std::string &query_string, std::map< std::string, std::string > &target_map)
Parse a query string filling the provided map.
Definition: URL.cpp:354
#define GNASH_VIEW(object)
Definition: gnash-view.h:31
@ m
Definition: GnashKey.h:159
@ s
Definition: GnashKey.h:165
@ GNASH_MOD_NONE
Definition: GnashKey.h:35
@ KP_0
Definition: GnashKey.h:179
void log_error(StringType msg, Args... args)
Definition: log.h:283
as_value getMember(as_object &o, const ObjectURI &uri)
Get a member of an object using AS lookup rules.
Definition: as_object.h:756
@ PGUP
Definition: GnashKey.h:213
@ LEFT
Definition: GnashKey.h:209
@ RIGHT
Definition: GnashKey.h:208
bool DSOEXPORT allowHandCursor() const
Return true if this DisplayObject allows turning the cursor into an hand shape when it happens to be ...
Definition: DisplayObject.cpp:713
int main(int argc, char *argv[])
Definition: gnash-test.c:30
as_value callMethod(fn_call::Args &args, as_object *obj, const ObjectURI &uri)
Call a member function of this object in an AS-compatible way.
Definition: Global_as.h:219
GtkBinClass base_class
Definition: gnash-view.h:38
const gchar * gnash_view_call(GnashView *view, const gchar *func_name, const gchar *input_data)
Definition: gnash-view.cpp:105
A StreamProvider makes IOChannels available to the core on request.
Definition: StreamProvider.h:50
@ GNASH_MOD_SHIFT
Definition: GnashKey.h:36
Definition: NamingPolicy.h:54
virtual bool isSelectableTextField() const
Return true if this DisplayObject is a selectable TextField.
Definition: DisplayObject.h:845
@ INSERT
Definition: GnashKey.h:210
@ ALT
Definition: GnashKey.h:63
@ PGDN
Definition: GnashKey.h:214
@ END
Definition: GnashKey.h:212
DSOTEXPORT std::string to_string(int version=7) const
Get a std::string representation for this value.
Definition: as_value.cpp:205
code
Definition: GnashKey.h:44
T * get(as_object *o)
Extract the DisplayObject attached to an object.
Definition: as_object.h:842
@ ENTER
Definition: GnashKey.h:58
@ TAB
Definition: GnashKey.h:54
@ CLEAR
Definition: GnashKey.h:57
@ INVALID
Definition: GnashKey.h:45
#define GNASH_TYPE_VIEW
Definition: gnash-view.h:30
@ SHIFT
Definition: GnashKey.h:61
GtkWidget * gnash_view_new(void)
Definition: gnash-view.cpp:99
@ UP
Definition: GnashKey.h:206
@ HOME
Definition: GnashKey.h:211
@ PROP_0
Definition: gnash-view.cpp:48
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
ActionScript value type.
Definition: as_value.h:95
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:47
void gnash_canvas_setup(GnashCanvas *canvas, std::string &hwaccel, std::string &renderer, int argc, char **argv[])
Select renderer and hwaccel, prep canvas for drawing.
Definition: gtk_canvas.cpp:200
DisplayObject * getActiveEntityUnderPointer() const
Return the topmost active entity under the pointer.
Definition: movie_root.cpp:1143
typedefG_BEGIN_DECLS struct _GnashView GnashView
Definition: gnash-view.h:27
GtkWidget * gnash_canvas_new()
allocate memory for canvas to draw in
Definition: gtk_canvas.cpp:80
void addLocalSandboxPath(const std::string &dir)
Add a directory to the local sandbox list.
Definition: rc.h:181
void gnash_canvas_before_rendering(GnashCanvas *canvas, gnash::movie_root *stage)
Definition: gtk_canvas.cpp:317
Sound mixer.
Definition: sound_handler.h:88
std::string url
Definition: gnash.cpp:59
@ ESCAPE
Definition: GnashKey.h:72
A VirtualClock wrapper adding pause/resume capabilities.
Definition: VirtualClock.h:55
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
@ f
Definition: GnashKey.h:152
bool is_string() const
Return true if this value is a string.
Definition: as_value.h:207
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
const gchar * gnash_view_call(GnashView *view, const gchar *func_name, const gchar *input_data)
Definition: gnash-view.cpp:105
static GnashFactory & instance()
Get the GnashFactory singleton.
Definition: GnashFactory.h:78
uri
Definition: test.py:12
@ c
Definition: GnashKey.h:149
bool is_function() const
Return true if this value is a function.
Definition: as_value.cpp:753
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
sound_handler * create_sound_handler_sdl(media::MediaHandler *m)
Definition: sound_handler_sdl.cpp:234
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
@ GNASH_MOD_ALT
Definition: GnashKey.h:38
@ NOBREAKSPACE
Definition: GnashKey.h:227
A system-clock based virtual clock.
Definition: SystemClock.h:37
@ SPACE
Definition: GnashKey.h:77
Uniform Resource Locator.
Definition: URL.h:35
@ HELP
Definition: GnashKey.h:325
std::int32_t x
Definition: BitmapData_as.cpp:434
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
movie_root & stage() const
Get the movie_root to which this DisplayObject belongs.
Definition: DisplayObject.h:981
void setWorld()
Resets to one range with world flags.
Definition: snappingrange.h:303
@ NUM_LOCK
Definition: GnashKey.h:223
#define GNASH_CANVAS(object)
Definition: gtk_canvas.h:39