Gnash  0.8.11dev
Transform_as.h
Go to the documentation of this file.
1 // Transform_as.h: ActionScript "Transform" 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_TRANSFORM_H
22 #define GNASH_ASOBJ_TRANSFORM_H
23 
24 
25 namespace gnash {
26 
27 class as_object;
28 struct ObjectURI;
29 
31 void transform_class_init(as_object& where, const ObjectURI& uri);
32 
33 } // end of gnash namespace
34 
35 #endif
ASConversions.h
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
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
LOG_ONCE
#define LOG_ONCE(x)
Definition: log.h:49
_
#define _(String)
Definition: log.h:44
gnash::getCxForm
const SWFCxForm & getCxForm(const DisplayObject &o)
Definition: DisplayObject.h:1125
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
ColorTransform_as.h
gnash::getWorldMatrix
SWFMatrix getWorldMatrix(const DisplayObject &d, bool includeRoot=true)
Get concatenated SWFMatrix (all ancestor transforms and our SWFMatrix)
Definition: DisplayObject.h:1131
gnash::key::m
@ m
Definition: GnashKey.h:159
Global_as.h
__FUNCTION__
#define __FUNCTION__
Definition: log.h:437
gnash::getGlobal
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
gnash::twipsToPixels
double twipsToPixels(int i)
Definition: GnashNumeric.h:97
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
UNUSED
#define UNUSED(x)
Definition: utility.h:113
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::getWorldCxForm
SWFCxForm getWorldCxForm(const DisplayObject &d)
Get concatenated color transform of a DisplayObject.
Definition: DisplayObject.h:1141
gnash::fn_call::Args
FunctionArgs< as_value > Args
Definition: fn_call.h:121
gnash::toSWFMatrix
SWFMatrix toSWFMatrix(as_object &m)
Convert an object to a SWFMatrix.
Definition: ASConversions.cpp:45
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
MovieClip.h
GnashNumeric.h
VM.h
gnash::log_aserror
void log_aserror(StringType msg, Args... args)
Definition: log.h:331
log.h
fn_call.h
namedStrings.h
test.uri
uri
Definition: test.py:12
gnash::key::c
@ c
Definition: GnashKey.h:149
Transform_as.h
gnash::toCxForm
SWFCxForm toCxForm(const ColorTransform_as &tr)
Convert a ColorTransform_as to a SWFCxForm record.
Definition: ASConversions.cpp:85
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::getMatrix
const SWFMatrix & getMatrix(const DisplayObject &o)
Get local transform SWFMatrix for this DisplayObject.
Definition: DisplayObject.h:1119
gnash::log_unimpl
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45
GnashException.h
gnash::findObject
as_object * findObject(const as_environment &ctx, const std::string &path, const as_environment::ScopeStack *scope)
Find the object referenced by the given path.
Definition: as_environment.cpp:116
gnash::transform_class_init
void transform_class_init(as_object &where, const ObjectURI &uri)
Initialize the global Transform class.
Definition: Transform_as.cpp:95