Go to the documentation of this file.
19 #ifndef GNASH_INTERACTIVE_DISPLAY_OBJECT_H
20 #define GNASH_INTERACTIVE_DISPLAY_OBJECT_H
134 log_error(
"Character %s did not override pointInShape() - "
135 "using pointInBounds() instead",
typeid(*this).name());
The base class for all ActionScript objects.
Definition: as_object.h:162
void add_invalidated_bounds(InvalidatedRanges &ranges, bool force)=0
Add the DisplayObject's invalidated bounds to the given ranges list.
std::int32_t y
Definition: BitmapData_as.cpp:435
bool pointInBounds(std::int32_t x, std::int32_t y) const
Return true if the given point falls in this DisplayObject's bounds.
Definition: DisplayObject.h:488
as_object * object() const
Definition: DisplayObject.h:931
virtual void mouseEvent(const event_id &id)=0
Called whenever a mouse event affects this InteractiveObject.
virtual SWFRect getBounds() const =0
Returns local, untransformed bounds of this DisplayObject in TWIPS.
A class to identify 'static' SWF events (system events).
Definition: event_id.h:53
virtual InteractiveObject * topmostMouseEntity(std::int32_t, std::int32_t)=0
Return the topmost entity covering the given point and enabled to receive mouse events.
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
virtual StaticText * getStaticText(std::vector< const SWF::TextRecord * > &, size_t &)
Allow extraction of static text.
Definition: InteractiveObject.h:79
Base class for render handlers.
Definition: Renderer.h:189
virtual bool pointInShape(std::int32_t x, std::int32_t y) const
Return true if the given point falls in this DisplayObject's shape.
Definition: InteractiveObject.h:132
virtual bool mouseEnabled() const =0
Whether the DisplayObject can handle a mouse event.
void log_error(StringType msg, Args... args)
Definition: log.h:283
virtual ~InteractiveObject()
Definition: InteractiveObject.h:59
The base class for interactive objects.
Definition: InteractiveObject.h:45
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
Static text fields, SWF-defined with read-only text.
Definition: StaticText.h:44
DisplayObject * parent() const
Return the parent of this DisplayObject, or NULL if the DisplayObject has no parent.
Definition: DisplayObject.h:252
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
InteractiveObject(as_object *object, DisplayObject *parent)
Definition: InteractiveObject.h:49
virtual bool trackAsMenu()
ActionScript property of Buttons and MovieClips altering mouse handling.
Definition: InteractiveObject.h:71
virtual void display(Renderer &renderer, const Transform &xform)=0
Render this InteractiveObject.
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
@ SWF
Definition: GnashKey.h:331
std::int32_t x
Definition: BitmapData_as.cpp:434