1
// geom_pkg.cpp: ActionScript "flash.geom" package, for Gnash.
3
// Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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.
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.
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
20
#include "Object.h" // for getObjectInterface
21
#include "as_object.h"
23
#include "string_table.h"
26
#include "flash/geom/ColorTransform_as.h"
27
#include "flash/geom/Matrix_as.h"
28
#include "flash/geom/Point_as.h"
29
#include "flash/geom/Rectangle_as.h"
30
#include "flash/geom/Transform_as.h"
35
get_flash_geom_package(const fn_call& /*fn*/)
37
log_debug("Loading flash.geom package");
39
as_object* pkg = new as_object(getObjectInterface());
41
ColorTransform_class_init(*pkg);
42
Matrix_class_init(*pkg);
43
Point_class_init(*pkg);
44
Rectangle_class_init(*pkg);
45
Transform_class_init(*pkg);
51
flash_geom_package_init(as_object& where)
53
string_table& st = where.getVM().getStringTable();
54
where.init_destructive_property(st.find("geom"), get_flash_geom_package);
58
} // end of gnash namespace