20 #ifndef GNASH_STATIC_TEXT_H
21 #define GNASH_STATIC_TEXT_H
27 #include <boost/dynamic_bitset.hpp>
28 #include <boost/intrusive_ptr.hpp>
52 _selectionColor(0, 255, 255, 255)
73 _selectedText.set(pos, selected);
91 return _def->bounds();
97 return _selectionColor;
102 const boost::intrusive_ptr<const SWF::DefineTextTag> _def;
108 boost::dynamic_bitset<> _selectedText;
113 rgba _selectionColor;
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
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: StaticText.cpp:49
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
virtual StaticText * getStaticText(std::vector< const SWF::TextRecord * > &to, size_t &numChars)
Return a pointer to this if our definition contains any static text.
Definition: StaticText.cpp:28
StaticText(movie_root &mr, as_object *object, const SWF::DefineTextTag *def, DisplayObject *parent)
Definition: StaticText.h:47
The base class for all ActionScript objects.
Definition: as_object.h:161
virtual SWFRect getBounds() const
Definition: StaticText.h:90
Base class for render handlers.
Definition: Renderer.h:188
const boost::dynamic_bitset & getSelected() const
Return a bitset showing which DisplayObjects (by index) are selected.
Definition: StaticText.h:84
const VGfloat color[4]
Definition: testr_gtk.cpp:82
void setSelected(size_t pos, bool selected)
Definition: StaticText.h:72
std::int32_t x
Definition: BitmapData_as.cpp:434
const rgba & selectionColor() const
Definition: StaticText.h:96
void setSelectionColor(std::uint32_t color)
Definition: StaticText.cpp:42
DisplayObject * parent() const
Return the parent of this DisplayObject, or NULL if the DisplayObject has no parent.
Definition: DisplayObject.h:252
std::int32_t y
Definition: BitmapData_as.cpp:435
Static text fields, SWF-defined with read-only text.
Definition: StaticText.h:43
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:44
virtual void display(Renderer &renderer, const Transform &xform)
Render the DisplayObject.
Definition: StaticText.cpp:59
Definition: GnashKey.h:331
Static text definition tag.
Definition: DefineTextTag.h:42
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:150
A basic RGBA type.
Definition: RGBA.h:35