Gnash  0.8.11dev
Point_as.h
Go to the documentation of this file.
1 // Point_as.h: ActionScript "Point" class, for Gnash.
2 //
3 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4 // Free Software Foundation, Inc
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 //
20 
21 #ifndef GNASH_ASOBJ_POINT_H
22 #define GNASH_ASOBJ_POINT_H
23 
24 
25 
26 namespace gnash {
27 
28 class as_function;
29 class as_object;
30 struct ObjectURI;
31 class fn_call;
32 
34 void point_class_init(as_object& where, const ObjectURI& uri);
35 
36 } // end of gnash namespace
37 
38 #endif
gnash::toNumber
double toNumber(const as_value &v, const VM &vm)
Convert an as_value to a double.
Definition: VM.cpp:451
gnash::key::l
@ l
Definition: GnashKey.h:158
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
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
y
std::int32_t y
Definition: BitmapData_as.cpp:435
_
#define _(String)
Definition: log.h:44
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
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::as_object::init_destructive_property
bool init_destructive_property(const ObjectURI &uri, as_function &getter, int flags=PropFlags::dontEnum)
Initialize a destructive getter property.
Definition: as_object.cpp:720
gnash::createObject
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
gnash::isFinite
bool isFinite(double d)
Definition: GnashNumeric.h:47
gnash::fn_call::Args
FunctionArgs< as_value > Args
Definition: fn_call.h:121
IF_VERBOSE_ASCODING_ERRORS
#define IF_VERBOSE_ASCODING_ERRORS(x)
Definition: log.h:397
gnash::constructInstance
as_object * constructInstance(as_function &ctor, const as_environment &env, fn_call::Args &args)
Definition: as_function.cpp:47
gnash::NSV::PROP_X
@ PROP_X
Definition: namedStrings.h:131
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
GnashNumeric.h
VM.h
gnash::log_aserror
void log_aserror(StringType msg, Args... args)
Definition: log.h:331
log.h
fn_call.h
gnash::point_class_init
void point_class_init(as_object &where, const ObjectURI &uri)
Initialize the global Point class.
Definition: Point_as.cpp:57
namedStrings.h
test.uri
uri
Definition: test.py:12
Point_as.h
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::NSV::PROP_Y
@ PROP_Y
Definition: namedStrings.h:132
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45
GnashException.h
x
std::int32_t x
Definition: BitmapData_as.cpp:434
gnash::equals
bool equals(const as_value &a, const as_value &b, const VM &vm)
Check if two values are equal.
Definition: VM.cpp:439
gnash::newAdd
void newAdd(as_value &op1, const as_value &op2, const VM &vm)
Carry out ActionNewAdd.
Definition: VM.cpp:356