Gnash  0.8.11dev
Rectangle_as.h
Go to the documentation of this file.
1 // Rectangle_as.h: ActionScript "Rectangle" 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_RECTANGLE_H
22 #define GNASH_ASOBJ_RECTANGLE_H
23 
24 
25 #include <boost/intrusive_ptr.hpp>
26 
27 namespace gnash {
28 
29 class as_object;
30 struct ObjectURI;
31 
33 void rectangle_class_init(as_object& where, const ObjectURI& uri);
34 
35 } // end of gnash namespace
36 
37 // __GNASH_ASOBJ_RECTANGLE_H__
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::toBool
bool toBool(const as_value &v, const VM &vm)
Convert an as_value to boolean type.
Definition: VM.cpp:445
height
@ height
Definition: klash_part.cpp:329
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
LOG_ONCE
#define LOG_ONCE(x)
Definition: log.h:49
_
#define _(String)
Definition: log.h:44
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
as_value.h
Global_as.h
gnash::NSV::PROP_WIDTH
@ PROP_WIDTH
Definition: namedStrings.h:130
__FUNCTION__
#define __FUNCTION__
Definition: log.h:437
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
UNUSED
#define UNUSED(x)
Definition: utility.h:113
as_function.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::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::callMethod
as_value callMethod(fn_call::Args &args, as_object *obj, const ObjectURI &uri)
Call a member function of this object in an AS-compatible way.
Definition: Global_as.h:219
gnash::key::r
@ r
Definition: GnashKey.h:164
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::key::h
@ h
Definition: GnashKey.h:154
gnash::NSV::PROP_X
@ PROP_X
Definition: namedStrings.h:131
test.w
w
Definition: test.py:8
gnash::subtract
void subtract(as_value &op1, const as_value &op2, const VM &vm)
Carry out ActionSubtract.
Definition: VM.cpp:392
gnash::point
geometry::Point2d point
Definition: Point2d.h:143
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
namedStrings.h
test.uri
uri
Definition: test.py:12
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
gnash::rectangle_class_init
void rectangle_class_init(as_object &where, const ObjectURI &uri)
Initialize the global Rectangle class.
Definition: Rectangle_as.cpp:67
gnash::newLessThan
as_value newLessThan(const as_value &op1, const as_value &op2, const VM &vm)
Carry out ActionSubtract.
Definition: VM.cpp:400
gnash::NSV::PROP_HEIGHT
@ PROP_HEIGHT
Definition: namedStrings.h:78
Rectangle_as.h
gnash::key::o
@ o
Definition: GnashKey.h:161
width
@ width
Definition: klash_part.cpp:329
gnash::log_unimpl
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
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::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::key::b
@ b
Definition: GnashKey.h:148
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