27 #include <boost/intrusive_ptr.hpp>
29 #include <boost/shared_ptr.hpp>
64 return _def ? _def->bounds() : _shape->getBounds();
67 virtual bool pointInShape(boost::int32_t
x, boost::int32_t
y)
const;
71 const boost::intrusive_ptr<const SWF::DefineShapeTag> _def;
73 boost::shared_ptr<DynamicShape> _shape;
virtual bool pointInShape(boost::int32_t x, boost::int32_t y) const
Return true if the given point falls in this DisplayObject's shape.
Definition: Shape.cpp:27
Shape(movie_root &mr, as_object *object, const SWF::DefineShapeTag *def, DisplayObject *parent)
Definition: Shape.h:52
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
Shape(movie_root &mr, as_object *object, boost::shared_ptr< DynamicShape > sh, DisplayObject *parent)
Definition: Shape.h:43
The base class for all ActionScript objects.
Definition: as_object.h:161
Base class for render handlers.
Definition: Renderer.h:190
virtual SWFRect getBounds() const
Definition: Shape.h:63
Represents the outline of one or more shapes, along with information on fill and line styles...
Definition: DefineShapeTag.h:32
boost::int32_t x
Definition: BitmapData_as.cpp:434
DisplayObject * parent() const
Return the parent of this DisplayObject, or NULL if the DisplayObject has no parent.
Definition: DisplayObject.h:252
boost::int32_t y
Definition: BitmapData_as.cpp:435
For DisplayObjects that don't store unusual state in their instances.
Definition: Shape.h:38
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:44
virtual void display(Renderer &renderer, const Transform &xform)
Render the DisplayObject.
Definition: Shape.cpp:56
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:150