Gnash  0.8.11dev
ContextMenu_as.h
Go to the documentation of this file.
1 // ContextMenu_as.h: ActionScript 3 "ContextMenu" class, for Gnash.
2 //
3 // Copyright (C) 2009, 2010, 2011, 2012 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_ASOBJ3_CONTEXTMENU_H
21 #define GNASH_ASOBJ3_CONTEXTMENU_H
22 
23 
24 
25 namespace gnash {
26 
27 // Forward declarations
28 class as_object;
29 struct ObjectURI;
30 
32 void contextmenu_class_init(as_object& where, const ObjectURI& uri);
33 
34 } // gnash namespace
35 
36 // GNASH_ASOBJ3_CONTEXTMENU_H
37 #endif
38 
39 // local Variables:
40 // mode: C++
41 // indent-tabs-mode: t
42 // End:
43 
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
as_object.h
gnash::NSV::PROP_ON_SELECT
@ PROP_ON_SELECT
Definition: namedStrings.h:176
gnash::toObject
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
ContextMenu_as.h
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::PropFlags::dontEnum
@ dontEnum
Protect from enumeration.
Definition: PropFlags.h:36
gnash::PropFlags::dontDelete
@ dontDelete
Protect from deletion.
Definition: PropFlags.h:39
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
as_function.h
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::createObject
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
gnash::NSV::PROP_PUSH
@ PROP_PUSH
Definition: namedStrings.h:88
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
gnash::fn_call::Args
FunctionArgs< as_value > Args
Definition: fn_call.h:121
gnash::as_value::to_function
as_function * to_function() const
Return the value as a function only if it is a function.
Definition: as_value.cpp:499
gnash::constructInstance
as_object * constructInstance(as_function &ctor, const as_environment &env, fn_call::Args &args)
Definition: as_function.cpp:47
gnash::getClassConstructor
as_function * getClassConstructor(const fn_call &fn, const std::string &s)
Convenience function for finding a class constructor.
Definition: Global_as.h:249
gnash::PropFlags::onlySWF7Up
@ onlySWF7Up
Only visible by VM initialized for version 7 or higher.
Definition: PropFlags.h:51
log.h
fn_call.h
gnash::contextmenu_class_init
void contextmenu_class_init(as_object &where, const ObjectURI &uri)
Initialize the global ContextMenu class.
Definition: ContextMenu_as.cpp:45
namedStrings.h
gnash::registerBuiltinClass
as_object * registerBuiltinClass(as_object &where, Global_as::ASFunction ctor, Global_as::Properties p, Global_as::Properties c, const ObjectURI &uri)
Register a built-in class.
Definition: Global_as.h:144
test.uri
uri
Definition: test.py:12
gnash::key::c
@ c
Definition: GnashKey.h:149
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
Array_as.h
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::foreachArray
void foreachArray(as_object &array, T &pred)
Definition: Array_as.h:78
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45
gnash::NSV::CLASS_CONTEXTMENU
@ CLASS_CONTEXTMENU
Definition: namedStrings.h:205