[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/asobj/gen-asclass.pl ser...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/asobj/gen-asclass.pl ser... |
Date: |
Mon, 05 May 2008 13:36:26 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/05/05 13:36:26
Modified files:
. : ChangeLog
server/asobj : gen-asclass.pl
server/asobj/flash/display: BitmapData_as.cpp
server/asobj/flash/external: ExternalInterface_as.cpp
server/asobj/flash/filters: DisplacementMapFilter_as.cpp
server/asobj/flash/geom: ColorTransform_as.cpp Matrix_as.cpp
Point_as.cpp Rectangle_as.cpp
Transform_as.cpp
server/asobj/flash/net: FileReferenceList_as.cpp
FileReference_as.cpp
server/asobj/flash/text: TextRenderer_as.cpp
Log message:
add support for stubbing properties as native getter-setters in the
gen-asclass.pl script, regenerated classes in the 'flash' package.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6501&r2=1.6502
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/gen-asclass.pl?cvsroot=gnash&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/display/BitmapData_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/external/ExternalInterface_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/filters/DisplacementMapFilter_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/ColorTransform_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Matrix_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Point_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Rectangle_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Transform_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/net/FileReferenceList_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/net/FileReference_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/text/TextRenderer_as.cpp?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6501
retrieving revision 1.6502
diff -u -b -r1.6501 -r1.6502
--- ChangeLog 5 May 2008 13:29:49 -0000 1.6501
+++ ChangeLog 5 May 2008 13:36:24 -0000 1.6502
@@ -1,3 +1,16 @@
+2008-05-05 Sandro Santilli <address@hidden>
+
+ * server/asobj/gen-asclass.pl: add support for stubbing
+ properties as native getter-setters.
+ * server/asobj/flash/: display/BitmapData_as.cpp,
+ external/ExternalInterface_as.cpp,
+ filters/DisplacementMapFilter_as.cpp,
+ geom/ColorTransform_as.cpp, geom/Matrix_as.cpp
+ geom/Point_as.cpp, geom/Rectangle_as.cpp,
+ geom/Transform_as.cpp, net/FileReferenceList_as.cpp,
+ net/FileReference_as.cpp, text/TextRenderer_as.cpp:
+ Re-generated.
+
2008-05-05 Benjamin Wolsey <address@hidden>
* server/asobj/Global.{h,cpp}: drop goto from initialization, use
Index: server/asobj/gen-asclass.pl
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/gen-asclass.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- server/asobj/gen-asclass.pl 5 May 2008 08:45:05 -0000 1.7
+++ server/asobj/gen-asclass.pl 5 May 2008 13:36:25 -0000 1.8
@@ -135,6 +135,37 @@
}
+ ## Loop through the list of properties. Generate code, stored in
+ ## $declarations, $registrations, and $implementations. $declarations
+ ## contains the declaration code for all methods, etc. These will
+ ## be printed later, in the section delimited with EOF. You may
+ ## change the output of these three looped sections.
+ foreach my $p (@{$args{properties}}) {
+
+ ## Where you see 'qq|' and '|', read '"' and '"'. Using the quote
+ ## operator eliminates the need to escape literal quotes. Thus,
+ ## qq|This is an "example".\n| == "This is an \"example\".\n"
+ ## A '.' concatenates a string.
+
+ $declarations .=
+ qq|\nstatic as_value $args{lc}_| .$p. "_getset". qq|(const fn_call&
fn);|;
+
+ $registrations .=
+ qq|\n o.init_property("$p", $args{lc}_${p}_getset,
$args{lc}_${p}_getset);|;
+
+ $implementations .=
+ qq|\nstatic as_value\n$args{lc}_| .$p. "_getset" .
+ qq|(const fn_call& fn)
+{
+ boost::intrusive_ptr<$args{lc}_as> ptr =
ensureType<$args{lc}_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+|;
+
+ }
+
## The text between the EOFs will be printed in the C++ source file.
print $fh <<EOF;
Index: server/asobj/flash/display/BitmapData_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/display/BitmapData_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/display/BitmapData_as.cpp 5 May 2008 08:57:30
-0000 1.1
+++ server/asobj/flash/display/BitmapData_as.cpp 5 May 2008 13:36:25
-0000 1.2
@@ -58,6 +58,10 @@
static as_value BitmapData_setPixel(const fn_call& fn);
static as_value BitmapData_setPixel32(const fn_call& fn);
static as_value BitmapData_threshold(const fn_call& fn);
+static as_value BitmapData_height_getset(const fn_call& fn);
+static as_value BitmapData_rectangle_getset(const fn_call& fn);
+static as_value BitmapData_transparent_getset(const fn_call& fn);
+static as_value BitmapData_width_getset(const fn_call& fn);
as_value BitmapData_ctor(const fn_call& fn);
static void
@@ -87,6 +91,10 @@
o.init_member("setPixel", new builtin_function(BitmapData_setPixel));
o.init_member("setPixel32", new builtin_function(BitmapData_setPixel32));
o.init_member("threshold", new builtin_function(BitmapData_threshold));
+ o.init_property("height", BitmapData_height_getset,
BitmapData_height_getset);
+ o.init_property("rectangle", BitmapData_rectangle_getset,
BitmapData_rectangle_getset);
+ o.init_property("transparent", BitmapData_transparent_getset,
BitmapData_transparent_getset);
+ o.init_property("width", BitmapData_width_getset, BitmapData_width_getset);
}
static as_object*
@@ -337,6 +345,42 @@
return as_value();
}
+static as_value
+BitmapData_height_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<BitmapData_as> ptr =
ensureType<BitmapData_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+BitmapData_rectangle_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<BitmapData_as> ptr =
ensureType<BitmapData_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+BitmapData_transparent_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<BitmapData_as> ptr =
ensureType<BitmapData_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+BitmapData_width_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<BitmapData_as> ptr =
ensureType<BitmapData_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
BitmapData_ctor(const fn_call& fn)
{
Index: server/asobj/flash/external/ExternalInterface_as.cpp
===================================================================
RCS file:
/sources/gnash/gnash/server/asobj/flash/external/ExternalInterface_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/external/ExternalInterface_as.cpp 5 May 2008
08:57:30 -0000 1.1
+++ server/asobj/flash/external/ExternalInterface_as.cpp 5 May 2008
13:36:25 -0000 1.2
@@ -36,6 +36,7 @@
static as_value ExternalInterface_addCallback(const fn_call& fn);
static as_value ExternalInterface_call(const fn_call& fn);
+static as_value ExternalInterface_available_getset(const fn_call& fn);
as_value ExternalInterface_ctor(const fn_call& fn);
static void
@@ -43,6 +44,7 @@
{
o.init_member("addCallback", new
builtin_function(ExternalInterface_addCallback));
o.init_member("call", new builtin_function(ExternalInterface_call));
+ o.init_property("available", ExternalInterface_available_getset,
ExternalInterface_available_getset);
}
static as_object*
@@ -95,6 +97,15 @@
return as_value();
}
+static as_value
+ExternalInterface_available_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ExternalInterface_as> ptr =
ensureType<ExternalInterface_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
ExternalInterface_ctor(const fn_call& fn)
{
Index: server/asobj/flash/filters/DisplacementMapFilter_as.cpp
===================================================================
RCS file:
/sources/gnash/gnash/server/asobj/flash/filters/DisplacementMapFilter_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/filters/DisplacementMapFilter_as.cpp 5 May 2008
08:57:31 -0000 1.1
+++ server/asobj/flash/filters/DisplacementMapFilter_as.cpp 5 May 2008
13:36:25 -0000 1.2
@@ -28,19 +28,37 @@
#include "smart_ptr.h" // for boost intrusive_ptr
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
-#include "flash/filters/BitmapFilter_as.h" // for AS inheritance
+#include "Object.h" // for AS inheritance
#include <sstream>
namespace gnash {
static as_value DisplacementMapFilter_clone(const fn_call& fn);
+static as_value DisplacementMapFilter_alpha_getset(const fn_call& fn);
+static as_value DisplacementMapFilter_color_getset(const fn_call& fn);
+static as_value DisplacementMapFilter_componentX_getset(const fn_call& fn);
+static as_value DisplacementMapFilter_componentY_getset(const fn_call& fn);
+static as_value DisplacementMapFilter_mapBitmap_getset(const fn_call& fn);
+static as_value DisplacementMapFilter_mapPoint_getset(const fn_call& fn);
+static as_value DisplacementMapFilter_mode_getset(const fn_call& fn);
+static as_value DisplacementMapFilter_scaleX_getset(const fn_call& fn);
+static as_value DisplacementMapFilter_scaleY_getset(const fn_call& fn);
as_value DisplacementMapFilter_ctor(const fn_call& fn);
static void
attachDisplacementMapFilterInterface(as_object& o)
{
o.init_member("clone", new builtin_function(DisplacementMapFilter_clone));
+ o.init_property("alpha", DisplacementMapFilter_alpha_getset,
DisplacementMapFilter_alpha_getset);
+ o.init_property("color", DisplacementMapFilter_color_getset,
DisplacementMapFilter_color_getset);
+ o.init_property("componentX", DisplacementMapFilter_componentX_getset,
DisplacementMapFilter_componentX_getset);
+ o.init_property("componentY", DisplacementMapFilter_componentY_getset,
DisplacementMapFilter_componentY_getset);
+ o.init_property("mapBitmap", DisplacementMapFilter_mapBitmap_getset,
DisplacementMapFilter_mapBitmap_getset);
+ o.init_property("mapPoint", DisplacementMapFilter_mapPoint_getset,
DisplacementMapFilter_mapPoint_getset);
+ o.init_property("mode", DisplacementMapFilter_mode_getset,
DisplacementMapFilter_mode_getset);
+ o.init_property("scaleX", DisplacementMapFilter_scaleX_getset,
DisplacementMapFilter_scaleX_getset);
+ o.init_property("scaleY", DisplacementMapFilter_scaleY_getset,
DisplacementMapFilter_scaleY_getset);
}
static as_object*
@@ -49,7 +67,9 @@
static boost::intrusive_ptr<as_object> o;
if ( ! o )
{
- o = new as_object(bitmapFilter_interface());
+ // TODO: check if this class should inherit from Object
+ // or from a different class
+ o = new as_object(getObjectInterface());
attachDisplacementMapFilterInterface(*o);
}
return o.get();
@@ -82,6 +102,87 @@
return as_value();
}
+static as_value
+DisplacementMapFilter_alpha_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+DisplacementMapFilter_color_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+DisplacementMapFilter_componentX_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+DisplacementMapFilter_componentY_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+DisplacementMapFilter_mapBitmap_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+DisplacementMapFilter_mapPoint_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+DisplacementMapFilter_mode_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+DisplacementMapFilter_scaleX_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+DisplacementMapFilter_scaleY_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<DisplacementMapFilter_as> ptr =
ensureType<DisplacementMapFilter_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
DisplacementMapFilter_ctor(const fn_call& fn)
{
Index: server/asobj/flash/geom/ColorTransform_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/ColorTransform_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/geom/ColorTransform_as.cpp 5 May 2008 08:57:32
-0000 1.1
+++ server/asobj/flash/geom/ColorTransform_as.cpp 5 May 2008 13:36:25
-0000 1.2
@@ -36,6 +36,15 @@
static as_value ColorTransform_concat(const fn_call& fn);
static as_value ColorTransform_toString(const fn_call& fn);
+static as_value ColorTransform_alphaMultiplier_getset(const fn_call& fn);
+static as_value ColorTransform_alphaOffset_getset(const fn_call& fn);
+static as_value ColorTransform_blueMultiplier_getset(const fn_call& fn);
+static as_value ColorTransform_blueOffset_getset(const fn_call& fn);
+static as_value ColorTransform_greenMultiplier_getset(const fn_call& fn);
+static as_value ColorTransform_greenOffset_getset(const fn_call& fn);
+static as_value ColorTransform_redMultiplier_getset(const fn_call& fn);
+static as_value ColorTransform_redOffset_getset(const fn_call& fn);
+static as_value ColorTransform_rgb_getset(const fn_call& fn);
as_value ColorTransform_ctor(const fn_call& fn);
static void
@@ -43,6 +52,15 @@
{
o.init_member("concat", new builtin_function(ColorTransform_concat));
o.init_member("toString", new builtin_function(ColorTransform_toString));
+ o.init_property("alphaMultiplier", ColorTransform_alphaMultiplier_getset,
ColorTransform_alphaMultiplier_getset);
+ o.init_property("alphaOffset", ColorTransform_alphaOffset_getset,
ColorTransform_alphaOffset_getset);
+ o.init_property("blueMultiplier", ColorTransform_blueMultiplier_getset,
ColorTransform_blueMultiplier_getset);
+ o.init_property("blueOffset", ColorTransform_blueOffset_getset,
ColorTransform_blueOffset_getset);
+ o.init_property("greenMultiplier", ColorTransform_greenMultiplier_getset,
ColorTransform_greenMultiplier_getset);
+ o.init_property("greenOffset", ColorTransform_greenOffset_getset,
ColorTransform_greenOffset_getset);
+ o.init_property("redMultiplier", ColorTransform_redMultiplier_getset,
ColorTransform_redMultiplier_getset);
+ o.init_property("redOffset", ColorTransform_redOffset_getset,
ColorTransform_redOffset_getset);
+ o.init_property("rgb", ColorTransform_rgb_getset,
ColorTransform_rgb_getset);
}
static as_object*
@@ -95,6 +113,87 @@
return as_value();
}
+static as_value
+ColorTransform_alphaMultiplier_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+ColorTransform_alphaOffset_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+ColorTransform_blueMultiplier_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+ColorTransform_blueOffset_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+ColorTransform_greenMultiplier_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+ColorTransform_greenOffset_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+ColorTransform_redMultiplier_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+ColorTransform_redOffset_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+ColorTransform_rgb_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<ColorTransform_as> ptr =
ensureType<ColorTransform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
ColorTransform_ctor(const fn_call& fn)
{
Index: server/asobj/flash/geom/Matrix_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Matrix_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/geom/Matrix_as.cpp 5 May 2008 08:57:32 -0000
1.1
+++ server/asobj/flash/geom/Matrix_as.cpp 5 May 2008 13:36:26 -0000
1.2
@@ -46,6 +46,12 @@
static as_value Matrix_toString(const fn_call& fn);
static as_value Matrix_transformPoint(const fn_call& fn);
static as_value Matrix_translate(const fn_call& fn);
+static as_value Matrix_a_getset(const fn_call& fn);
+static as_value Matrix_b_getset(const fn_call& fn);
+static as_value Matrix_c_getset(const fn_call& fn);
+static as_value Matrix_d_getset(const fn_call& fn);
+static as_value Matrix_tx_getset(const fn_call& fn);
+static as_value Matrix_ty_getset(const fn_call& fn);
as_value Matrix_ctor(const fn_call& fn);
static void
@@ -63,6 +69,12 @@
o.init_member("toString", new builtin_function(Matrix_toString));
o.init_member("transformPoint", new
builtin_function(Matrix_transformPoint));
o.init_member("translate", new builtin_function(Matrix_translate));
+ o.init_property("a", Matrix_a_getset, Matrix_a_getset);
+ o.init_property("b", Matrix_b_getset, Matrix_b_getset);
+ o.init_property("c", Matrix_c_getset, Matrix_c_getset);
+ o.init_property("d", Matrix_d_getset, Matrix_d_getset);
+ o.init_property("tx", Matrix_tx_getset, Matrix_tx_getset);
+ o.init_property("ty", Matrix_ty_getset, Matrix_ty_getset);
}
static as_object*
@@ -205,6 +217,60 @@
return as_value();
}
+static as_value
+Matrix_a_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Matrix_as> ptr =
ensureType<Matrix_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Matrix_b_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Matrix_as> ptr =
ensureType<Matrix_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Matrix_c_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Matrix_as> ptr =
ensureType<Matrix_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Matrix_d_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Matrix_as> ptr =
ensureType<Matrix_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Matrix_tx_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Matrix_as> ptr =
ensureType<Matrix_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Matrix_ty_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Matrix_as> ptr =
ensureType<Matrix_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
Matrix_ctor(const fn_call& fn)
{
Index: server/asobj/flash/geom/Point_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Point_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/geom/Point_as.cpp 5 May 2008 08:57:32 -0000
1.1
+++ server/asobj/flash/geom/Point_as.cpp 5 May 2008 13:36:26 -0000
1.2
@@ -44,6 +44,9 @@
static as_value Point_polar(const fn_call& fn);
static as_value Point_subtract(const fn_call& fn);
static as_value Point_toString(const fn_call& fn);
+static as_value Point_length_getset(const fn_call& fn);
+static as_value Point_x_getset(const fn_call& fn);
+static as_value Point_y_getset(const fn_call& fn);
as_value Point_ctor(const fn_call& fn);
static void
@@ -59,6 +62,9 @@
o.init_member("polar", new builtin_function(Point_polar));
o.init_member("subtract", new builtin_function(Point_subtract));
o.init_member("toString", new builtin_function(Point_toString));
+ o.init_property("length", Point_length_getset, Point_length_getset);
+ o.init_property("x", Point_x_getset, Point_x_getset);
+ o.init_property("y", Point_y_getset, Point_y_getset);
}
static as_object*
@@ -183,6 +189,33 @@
return as_value();
}
+static as_value
+Point_length_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Point_x_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Point_y_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
Point_ctor(const fn_call& fn)
{
Index: server/asobj/flash/geom/Rectangle_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Rectangle_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/geom/Rectangle_as.cpp 5 May 2008 08:57:32 -0000
1.1
+++ server/asobj/flash/geom/Rectangle_as.cpp 5 May 2008 13:36:26 -0000
1.2
@@ -49,6 +49,17 @@
static as_value Rectangle_setEmpty(const fn_call& fn);
static as_value Rectangle_toString(const fn_call& fn);
static as_value Rectangle_union(const fn_call& fn);
+static as_value Rectangle_bottom_getset(const fn_call& fn);
+static as_value Rectangle_bottomRight_getset(const fn_call& fn);
+static as_value Rectangle_height_getset(const fn_call& fn);
+static as_value Rectangle_left_getset(const fn_call& fn);
+static as_value Rectangle_right_getset(const fn_call& fn);
+static as_value Rectangle_size_getset(const fn_call& fn);
+static as_value Rectangle_top_getset(const fn_call& fn);
+static as_value Rectangle_topLeft_getset(const fn_call& fn);
+static as_value Rectangle_width_getset(const fn_call& fn);
+static as_value Rectangle_x_getset(const fn_call& fn);
+static as_value Rectangle_y_getset(const fn_call& fn);
as_value Rectangle_ctor(const fn_call& fn);
static void
@@ -69,6 +80,17 @@
o.init_member("setEmpty", new builtin_function(Rectangle_setEmpty));
o.init_member("toString", new builtin_function(Rectangle_toString));
o.init_member("union", new builtin_function(Rectangle_union));
+ o.init_property("bottom", Rectangle_bottom_getset,
Rectangle_bottom_getset);
+ o.init_property("bottomRight", Rectangle_bottomRight_getset,
Rectangle_bottomRight_getset);
+ o.init_property("height", Rectangle_height_getset,
Rectangle_height_getset);
+ o.init_property("left", Rectangle_left_getset, Rectangle_left_getset);
+ o.init_property("right", Rectangle_right_getset, Rectangle_right_getset);
+ o.init_property("size", Rectangle_size_getset, Rectangle_size_getset);
+ o.init_property("top", Rectangle_top_getset, Rectangle_top_getset);
+ o.init_property("topLeft", Rectangle_topLeft_getset,
Rectangle_topLeft_getset);
+ o.init_property("width", Rectangle_width_getset, Rectangle_width_getset);
+ o.init_property("x", Rectangle_x_getset, Rectangle_x_getset);
+ o.init_property("y", Rectangle_y_getset, Rectangle_y_getset);
}
static as_object*
@@ -238,6 +260,105 @@
return as_value();
}
+static as_value
+Rectangle_bottom_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_bottomRight_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_height_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_left_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_right_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_size_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_top_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_topLeft_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_width_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_x_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Rectangle_y_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Rectangle_as> ptr =
ensureType<Rectangle_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
Rectangle_ctor(const fn_call& fn)
{
Index: server/asobj/flash/geom/Transform_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Transform_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/geom/Transform_as.cpp 5 May 2008 08:57:33 -0000
1.1
+++ server/asobj/flash/geom/Transform_as.cpp 5 May 2008 13:36:26 -0000
1.2
@@ -34,11 +34,21 @@
namespace gnash {
+static as_value Transform_colorTransform_getset(const fn_call& fn);
+static as_value Transform_concatenatedColorTransform_getset(const fn_call& fn);
+static as_value Transform_concatenatedMatrix_getset(const fn_call& fn);
+static as_value Transform_matrix_getset(const fn_call& fn);
+static as_value Transform_pixelBounds_getset(const fn_call& fn);
as_value Transform_ctor(const fn_call& fn);
static void
attachTransformInterface(as_object& o)
{
+ o.init_property("colorTransform", Transform_colorTransform_getset,
Transform_colorTransform_getset);
+ o.init_property("concatenatedColorTransform",
Transform_concatenatedColorTransform_getset,
Transform_concatenatedColorTransform_getset);
+ o.init_property("concatenatedMatrix", Transform_concatenatedMatrix_getset,
Transform_concatenatedMatrix_getset);
+ o.init_property("matrix", Transform_matrix_getset,
Transform_matrix_getset);
+ o.init_property("pixelBounds", Transform_pixelBounds_getset,
Transform_pixelBounds_getset);
}
static as_object*
@@ -73,6 +83,51 @@
};
+static as_value
+Transform_colorTransform_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Transform_as> ptr =
ensureType<Transform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Transform_concatenatedColorTransform_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Transform_as> ptr =
ensureType<Transform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Transform_concatenatedMatrix_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Transform_as> ptr =
ensureType<Transform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Transform_matrix_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Transform_as> ptr =
ensureType<Transform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+Transform_pixelBounds_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<Transform_as> ptr =
ensureType<Transform_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
Transform_ctor(const fn_call& fn)
{
Index: server/asobj/flash/net/FileReferenceList_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/net/FileReferenceList_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/net/FileReferenceList_as.cpp 5 May 2008 08:57:33
-0000 1.1
+++ server/asobj/flash/net/FileReferenceList_as.cpp 5 May 2008 13:36:26
-0000 1.2
@@ -37,6 +37,7 @@
static as_value FileReferenceList_addListener(const fn_call& fn);
static as_value FileReferenceList_browse(const fn_call& fn);
static as_value FileReferenceList_removeListener(const fn_call& fn);
+static as_value FileReferenceList_fileList_getset(const fn_call& fn);
as_value FileReferenceList_ctor(const fn_call& fn);
static void
@@ -45,6 +46,7 @@
o.init_member("addListener", new
builtin_function(FileReferenceList_addListener));
o.init_member("browse", new builtin_function(FileReferenceList_browse));
o.init_member("removeListener", new
builtin_function(FileReferenceList_removeListener));
+ o.init_property("fileList", FileReferenceList_fileList_getset,
FileReferenceList_fileList_getset);
}
static as_object*
@@ -106,6 +108,15 @@
return as_value();
}
+static as_value
+FileReferenceList_fileList_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<FileReferenceList_as> ptr =
ensureType<FileReferenceList_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
FileReferenceList_ctor(const fn_call& fn)
{
Index: server/asobj/flash/net/FileReference_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/net/FileReference_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/net/FileReference_as.cpp 5 May 2008 08:57:33 -0000
1.1
+++ server/asobj/flash/net/FileReference_as.cpp 5 May 2008 13:36:26 -0000
1.2
@@ -40,6 +40,12 @@
static as_value FileReference_download(const fn_call& fn);
static as_value FileReference_removeListener(const fn_call& fn);
static as_value FileReference_upload(const fn_call& fn);
+static as_value FileReference_creationDate_getset(const fn_call& fn);
+static as_value FileReference_creator_getset(const fn_call& fn);
+static as_value FileReference_modificationDate_getset(const fn_call& fn);
+static as_value FileReference_name_getset(const fn_call& fn);
+static as_value FileReference_size_getset(const fn_call& fn);
+static as_value FileReference_type_getset(const fn_call& fn);
as_value FileReference_ctor(const fn_call& fn);
static void
@@ -51,6 +57,12 @@
o.init_member("download", new builtin_function(FileReference_download));
o.init_member("removeListener", new
builtin_function(FileReference_removeListener));
o.init_member("upload", new builtin_function(FileReference_upload));
+ o.init_property("creationDate", FileReference_creationDate_getset,
FileReference_creationDate_getset);
+ o.init_property("creator", FileReference_creator_getset,
FileReference_creator_getset);
+ o.init_property("modificationDate", FileReference_modificationDate_getset,
FileReference_modificationDate_getset);
+ o.init_property("name", FileReference_name_getset,
FileReference_name_getset);
+ o.init_property("size", FileReference_size_getset,
FileReference_size_getset);
+ o.init_property("type", FileReference_type_getset,
FileReference_type_getset);
}
static as_object*
@@ -139,6 +151,60 @@
return as_value();
}
+static as_value
+FileReference_creationDate_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<FileReference_as> ptr =
ensureType<FileReference_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+FileReference_creator_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<FileReference_as> ptr =
ensureType<FileReference_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+FileReference_modificationDate_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<FileReference_as> ptr =
ensureType<FileReference_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+FileReference_name_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<FileReference_as> ptr =
ensureType<FileReference_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+FileReference_size_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<FileReference_as> ptr =
ensureType<FileReference_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
+static as_value
+FileReference_type_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<FileReference_as> ptr =
ensureType<FileReference_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
FileReference_ctor(const fn_call& fn)
{
Index: server/asobj/flash/text/TextRenderer_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/text/TextRenderer_as.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- server/asobj/flash/text/TextRenderer_as.cpp 5 May 2008 08:57:34 -0000
1.1
+++ server/asobj/flash/text/TextRenderer_as.cpp 5 May 2008 13:36:26 -0000
1.2
@@ -35,12 +35,14 @@
namespace gnash {
static as_value TextRenderer_setAdvancedAntialiasingTable(const fn_call& fn);
+static as_value TextRenderer_maxLevel_getset(const fn_call& fn);
as_value TextRenderer_ctor(const fn_call& fn);
static void
attachTextRendererInterface(as_object& o)
{
o.init_member("setAdvancedAntialiasingTable", new
builtin_function(TextRenderer_setAdvancedAntialiasingTable));
+ o.init_property("maxLevel", TextRenderer_maxLevel_getset,
TextRenderer_maxLevel_getset);
}
static as_object*
@@ -84,6 +86,15 @@
return as_value();
}
+static as_value
+TextRenderer_maxLevel_getset(const fn_call& fn)
+{
+ boost::intrusive_ptr<TextRenderer_as> ptr =
ensureType<TextRenderer_as>(fn.this_ptr);
+ UNUSED(ptr);
+ LOG_ONCE( log_unimpl (__FUNCTION__) );
+ return as_value();
+}
+
as_value
TextRenderer_ctor(const fn_call& fn)
{
- [Gnash-commit] gnash ChangeLog server/asobj/gen-asclass.pl ser...,
Sandro Santilli <=