Gnash  0.8.11dev
gnash-view.h
Go to the documentation of this file.
1 /* gnash-view.h: Gtk view widget for gnash
2 **
3 ** Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 3 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 #ifndef __GNASH_VIEW_H__
21 #define __GNASH_VIEW_H__
22 
23 #include <gtk/gtkbin.h>
24 
25 G_BEGIN_DECLS
26 
27 typedef struct _GnashView GnashView;
28 typedef struct _GnashViewClass GnashViewClass;
29 
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))
36 
38  GtkBinClass base_class;
39 };
40 
41 GType gnash_view_get_type (void);
42 GtkWidget *gnash_view_new (void);
43 const gchar *gnash_view_call (GnashView *view, const gchar *func_name, const gchar *input_data);
44 
45 G_END_DECLS
46 
47 #endif
48 
gnash::geometry::SnappingRanges2d< std::int32_t >
gnash::LogFile::getDefaultInstance
static LogFile & getDefaultInstance()
Definition: log.cpp:77
sound_handler.h
gnash::key::GNASH_MOD_CONTROL
@ GNASH_MOD_CONTROL
Definition: GnashKey.h:37
path
VGPath path
Definition: testr_gtk.cpp:84
gnash_canvas_get_renderer
std::shared_ptr< gnash::Renderer > gnash_canvas_get_renderer(GnashCanvas *canvas)
Get the Renderer for this canvas.
Definition: gtk_canvas.cpp:323
GnashCanvas
typedefG_BEGIN_DECLS struct _GnashCanvas GnashCanvas
Definition: gtk_canvas.h:35
gnash::key::DOWN
@ DOWN
Definition: GnashKey.h:207
SystemClock.h
Movie.h
movie_root.h
gnash::MovieFactory::makeMovie
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
gnash::key::BACKSPACE
@ BACKSPACE
Definition: GnashKey.h:53
_GnashViewClass
Definition: gnash-view.h:37
dbglogfile
#define dbglogfile
Definition: gtkext.cpp:48
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
y
std::int32_t y
Definition: BitmapData_as.cpp:435
gnash_view_new
GtkWidget * gnash_view_new(void)
Definition: gnash-view.cpp:99
gnash::key::i
@ i
Definition: GnashKey.h:155
gnash::LogFile
Definition: log.h:64
VirtualClock.h
NamingPolicy.h
_
#define _(String)
Definition: log.h:44
Renderer.h
gnash_view_get_type
GType gnash_view_get_type(void)
gnash::key::modifier
modifier
Definition: GnashKey.h:34
gnash::VM
The AVM1 virtual machine.
Definition: VM.h:72
MediaHandler.h
PROP_URI
@ PROP_URI
Definition: gnash-view.cpp:49
gnash-view.h
gnash::key::DELETEKEY
@ DELETEKEY
Definition: GnashKey.h:177
gnash::SoundException
An exception from SoundHandler subsystem.
Definition: GnashException.h:70
gnash::key::CONTROL
@ CONTROL
Definition: GnashKey.h:62
gnash::key::CAPSLOCK
@ CAPSLOCK
Definition: GnashKey.h:65
gnash::key::F1
@ F1
Definition: GnashKey.h:190
GNASH_REPORT_FUNCTION
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
GnashFactory.h
gnash::URL::parse_querystring
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
GNASH_VIEW
#define GNASH_VIEW(object)
Definition: gnash-view.h:31
gnash::key::m
@ m
Definition: GnashKey.h:159
gnash::key::s
@ s
Definition: GnashKey.h:165
gnash::key::GNASH_MOD_NONE
@ GNASH_MOD_NONE
Definition: GnashKey.h:35
Global_as.h
gnash::key::KP_0
@ KP_0
Definition: GnashKey.h:179
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
gnash::getMember
as_value getMember(as_object &o, const ObjectURI &uri)
Get a member of an object using AS lookup rules.
Definition: as_object.h:756
gnash::key::PGUP
@ PGUP
Definition: GnashKey.h:213
gnash::key::LEFT
@ LEFT
Definition: GnashKey.h:209
gnash::key::RIGHT
@ RIGHT
Definition: GnashKey.h:208
gnash::DisplayObject::allowHandCursor
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
main
int main(int argc, char *argv[])
Definition: gnash-test.c:30
MovieFactory.h
gnash::callMethod
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
_GnashViewClass::base_class
GtkBinClass base_class
Definition: gnash-view.h:38
gnash_view_call
const gchar * gnash_view_call(GnashView *view, const gchar *func_name, const gchar *input_data)
Definition: gnash-view.cpp:105
gnash::StreamProvider
A StreamProvider makes IOChannels available to the core on request.
Definition: StreamProvider.h:50
gnash::key::GNASH_MOD_SHIFT
@ GNASH_MOD_SHIFT
Definition: GnashKey.h:36
gnash::IncrementalRename
Definition: NamingPolicy.h:54
gnash::DisplayObject::isSelectableTextField
virtual bool isSelectableTextField() const
Return true if this DisplayObject is a selectable TextField.
Definition: DisplayObject.h:845
gnash::key::INSERT
@ INSERT
Definition: GnashKey.h:210
gnash::key::ALT
@ ALT
Definition: GnashKey.h:63
gnash::key::PGDN
@ PGDN
Definition: GnashKey.h:214
gnash::key::END
@ END
Definition: GnashKey.h:212
gnash::as_value::to_string
DSOTEXPORT std::string to_string(int version=7) const
Get a std::string representation for this value.
Definition: as_value.cpp:205
gnash::key::code
code
Definition: GnashKey.h:44
gnash::get
T * get(as_object *o)
Extract the DisplayObject attached to an object.
Definition: as_object.h:842
gnash::key::ENTER
@ ENTER
Definition: GnashKey.h:58
gnash::key::TAB
@ TAB
Definition: GnashKey.h:54
gnash::key::CLEAR
@ CLEAR
Definition: GnashKey.h:57
gnash::key::INVALID
@ INVALID
Definition: GnashKey.h:45
GNASH_TYPE_VIEW
#define GNASH_TYPE_VIEW
Definition: gnash-view.h:30
gnash::key::SHIFT
@ SHIFT
Definition: GnashKey.h:61
gnash_view_new
GtkWidget * gnash_view_new(void)
Definition: gnash-view.cpp:99
gnash::key::UP
@ UP
Definition: GnashKey.h:206
gnash::key::HOME
@ HOME
Definition: GnashKey.h:211
PROP_0
@ PROP_0
Definition: gnash-view.cpp:48
gnash::RunResources
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
gnash::as_value
ActionScript value type.
Definition: as_value.h:95
gnash::Movie
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:47
gnash_canvas_setup
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
VM.h
gnash::movie_root::getActiveEntityUnderPointer
DisplayObject * getActiveEntityUnderPointer() const
Return the topmost active entity under the pointer.
Definition: movie_root.cpp:1143
GnashView
typedefG_BEGIN_DECLS struct _GnashView GnashView
Definition: gnash-view.h:27
gnash_canvas_new
GtkWidget * gnash_canvas_new()
allocate memory for canvas to draw in
Definition: gtk_canvas.cpp:80
DisplayObject.h
gnash::RcInitFile::addLocalSandboxPath
void addLocalSandboxPath(const std::string &dir)
Add a directory to the local sandbox list.
Definition: rc.h:181
log.h
gnash_canvas_before_rendering
void gnash_canvas_before_rendering(GnashCanvas *canvas, gnash::movie_root *stage)
Definition: gtk_canvas.cpp:317
gnash::sound::sound_handler
Sound mixer.
Definition: sound_handler.h:88
url
std::string url
Definition: gnash.cpp:59
gnash::key::ESCAPE
@ ESCAPE
Definition: GnashKey.h:72
gnash::InterruptableVirtualClock
A VirtualClock wrapper adding pause/resume capabilities.
Definition: VirtualClock.h:55
gnash::getObject
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
gnash::key::f
@ f
Definition: GnashKey.h:152
gnash::as_value::is_string
bool is_string() const
Return true if this value is a string.
Definition: as_value.h:207
gtk_canvas.h
gnash::RcInitFile::getDefaultInstance
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
gnash::movie_root
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
gnash_view_call
const gchar * gnash_view_call(GnashView *view, const gchar *func_name, const gchar *input_data)
Definition: gnash-view.cpp:105
gnash::GnashFactory::instance
static GnashFactory & instance()
Get the GnashFactory singleton.
Definition: GnashFactory.h:78
RunResources.h
test.uri
uri
Definition: test.py:12
gnash::key::c
@ c
Definition: GnashKey.h:149
gnash::as_value::is_function
bool is_function() const
Return true if this value is a function.
Definition: as_value.cpp:753
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
movie_definition.h
gnash::sound::create_sound_handler_sdl
sound_handler * create_sound_handler_sdl(media::MediaHandler *m)
Definition: sound_handler_sdl.cpp:234
gnash::DisplayObject
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
gnash::key::GNASH_MOD_ALT
@ GNASH_MOD_ALT
Definition: GnashKey.h:38
gnash::key::NOBREAKSPACE
@ NOBREAKSPACE
Definition: GnashKey.h:227
gnash::SystemClock
A system-clock based virtual clock.
Definition: SystemClock.h:37
gnash::key::SPACE
@ SPACE
Definition: GnashKey.h:77
gnash::URL
Uniform Resource Locator.
Definition: URL.h:35
StreamProvider.h
gnash::key::HELP
@ HELP
Definition: GnashKey.h:325
x
std::int32_t x
Definition: BitmapData_as.cpp:434
data
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
gnash::DisplayObject::stage
movie_root & stage() const
Get the movie_root to which this DisplayObject belongs.
Definition: DisplayObject.h:981
gnash::RcInitFile
Definition: rc.h:44
gnash::geometry::SnappingRanges2d::setWorld
void setWorld()
Resets to one range with world flags.
Definition: snappingrange.h:303
gnash::key::NUM_LOCK
@ NUM_LOCK
Definition: GnashKey.h:223
GNASH_CANVAS
#define GNASH_CANVAS(object)
Definition: gtk_canvas.h:39