Gnash  0.8.11dev
Video_as.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 // 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 #ifndef GNASH_ASOBJ_VIDEO_AS_H
20 #define GNASH_ASOBJ_VIDEO_AS_H
21 
22 // Forward declarations
23 namespace gnash {
24  class Global_as;
25  struct ObjectURI;
26  class as_object;
27 }
28 
29 namespace gnash {
30 
32 //
35 as_object* createVideoObject(Global_as& gl);
36 
37 void video_class_init(as_object& global, const ObjectURI& uri);
38 
39 void registerVideoNative(as_object& global);
40 
41 } // namespace gnash
42 
43 #endif
gnash::isNativeType
bool isNativeType(const as_object *obj, T *&relay)
Check whether the object is an instance of a known type.
Definition: as_object.h:875
Video_as.h
gnash::toBool
bool toBool(const as_value &v, const VM &vm)
Convert an as_value to boolean type.
Definition: VM.cpp:445
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
as_object.h
gnash::toObject
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
Video.h
_
#define _(String)
Definition: log.h:44
gnash::as_object::init_member
void init_member(const std::string &name, const as_value &val, int flags=DefaultFlags)
Initialize a member value by string.
Definition: as_object.cpp:669
gnash::VM
The AVM1 virtual machine.
Definition: VM.h:72
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::createVideoObject
as_object * createVideoObject(Global_as &gl)
Native function to create a plain object with Video properties.
Definition: Video_as.cpp:46
gnash::PropFlags::dontDelete
@ dontDelete
Protect from deletion.
Definition: PropFlags.h:39
gnash::NSV::CLASS_VIDEO
@ CLASS_VIDEO
Definition: namedStrings.h:256
as_value.h
NativeFunction.h
Global_as.h
gnash::getGlobal
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
UNUSED
#define UNUSED(x)
Definition: utility.h:113
gnash::createObject
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
NetStream_as.h
gnash::as_object::DefaultFlags
static const int DefaultFlags
The most common flags for built-in properties.
Definition: as_object.h:192
gnash::Global_as::createClass
as_object * createClass(Global_as::ASFunction ctor, as_object *prototype)
Create an ActionScript class.
Definition: Global_as.cpp:180
IF_VERBOSE_ASCODING_ERRORS
#define IF_VERBOSE_ASCODING_ERRORS(x)
Definition: log.h:397
gnash::emptyFunction
as_value emptyFunction(const fn_call &)
Definition: Global_as.h:256
gnash::VM::registerNative
void registerNative(as_c_function_ptr fun, unsigned int x, unsigned int y)
Definition: VM.cpp:268
gnash::log_aserror
void log_aserror(StringType msg, Args... args)
Definition: log.h:331
fn_call.h
gnash::as_object::get_prototype
as_object * get_prototype() const
Return this object's proto member.
Definition: as_object.cpp:932
namedStrings.h
gnash::Global_as
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:50
test.uri
uri
Definition: test.py:12
gnash::getObjectWithPrototype
as_object * getObjectWithPrototype(Global_as &gl, const ObjectURI &c)
Definition: as_object.cpp:1109
gnash::registerVideoNative
void registerVideoNative(as_object &global)
Definition: Video_as.cpp:70
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::PropFlags::readOnly
@ readOnly
Protect from assigning a value.
Definition: PropFlags.h:42
gnash::log_unimpl
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
gnash::video_class_init
void video_class_init(as_object &global, const ObjectURI &uri)
Definition: Video_as.cpp:58
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45