Gnash  0.8.11dev
ASConversions.h
Go to the documentation of this file.
1 // ASConversions.h Conversions between AS and SWF types.
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_ASCONVERSIONS_H
22 #define GNASH_ASCONVERSIONS_H
23 
24 namespace gnash {
25  class as_object;
26  class SWFMatrix;
27  class SWFCxForm;
28  class ColorTransform_as;
29 }
30 
31 namespace gnash {
32 
34 SWFMatrix toSWFMatrix(as_object& o);
35 
37 SWFCxForm toCxForm(const ColorTransform_as& tr);
38 
39 } // namespace gnash
40 
41 #endif
ASConversions.h
gnash::ColorTransform_as::getBlueMultiplier
double getBlueMultiplier() const
Definition: ColorTransform_as.h:60
gnash::toNumber
double toNumber(const as_value &v, const VM &vm)
Convert an as_value to a double.
Definition: VM.cpp:451
gnash::ColorTransform_as::getRedMultiplier
double getRedMultiplier() const
Definition: ColorTransform_as.h:59
gnash::key::d
@ d
Definition: GnashKey.h:150
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
as_object.h
gnash::ColorTransform_as::getAlphaOffset
double getAlphaOffset() const
Definition: ColorTransform_as.h:63
y
std::int32_t y
Definition: BitmapData_as.cpp:435
gnash::NSV::PROP_R
@ PROP_R
Definition: namedStrings.h:89
gnash::pixelsToTwips
std::int32_t pixelsToTwips(double a)
Definition: GnashNumeric.h:144
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
ColorTransform_as.h
gnash::NSV::PROP_C
@ PROP_C
Definition: namedStrings.h:63
gnash::key::m
@ m
Definition: GnashKey.h:159
as_value.h
Global_as.h
gnash::SWFCxForm
Color transformation record.
Definition: SWFCxForm.h:35
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
gnash::ColorTransform_as
Definition: ColorTransform_as.h:36
SWFCxForm.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::NSV::PROP_H
@ PROP_H
Definition: namedStrings.h:77
gnash::ColorTransform_as::getBlueOffset
double getBlueOffset() const
Definition: ColorTransform_as.h:65
gnash::NSV::PROP_A
@ PROP_A
Definition: namedStrings.h:58
gnash::key::r
@ r
Definition: GnashKey.h:164
gnash::ColorTransform_as::getAlphaMultiplier
double getAlphaMultiplier() const
Definition: ColorTransform_as.h:58
gnash::key::a
@ a
Definition: GnashKey.h:147
gnash::ColorTransform_as::getGreenMultiplier
double getGreenMultiplier() const
Definition: ColorTransform_as.h:61
gnash::toSWFMatrix
SWFMatrix toSWFMatrix(as_object &m)
Convert an object to a SWFMatrix.
Definition: ASConversions.cpp:45
gnash::key::h
@ h
Definition: GnashKey.h:154
gnash::NSV::PROP_TY
@ PROP_TY
Definition: namedStrings.h:98
gnash::NSV::PROP_X
@ PROP_X
Definition: namedStrings.h:131
gnash::NSV::PROP_MATRIX_TYPE
@ PROP_MATRIX_TYPE
Definition: namedStrings.h:146
test.w
w
Definition: test.py:8
GnashNumeric.h
gnash::SWFMatrix
Definition: SWFMatrix.h:54
gnash::NSV::PROP_B
@ PROP_B
Definition: namedStrings.h:61
gnash::ColorTransform_as::getRedOffset
double getRedOffset() const
Definition: ColorTransform_as.h:64
gnash::ColorTransform_as::getGreenOffset
double getGreenOffset() const
Definition: ColorTransform_as.h:66
log.h
namedStrings.h
gnash::key::c
@ c
Definition: GnashKey.h:149
gnash::NSV::PROP_D
@ PROP_D
Definition: namedStrings.h:69
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::NSV::PROP_TX
@ PROP_TX
Definition: namedStrings.h:97
gnash::NSV::PROP_W
@ PROP_W
Definition: namedStrings.h:129
gnash::NSV::PROP_Y
@ PROP_Y
Definition: namedStrings.h:132
x
std::int32_t x
Definition: BitmapData_as.cpp:434
gnash::key::b
@ b
Definition: GnashKey.h:148
SWFMatrix.h