Go to the documentation of this file.
20 #ifndef GNASH_BITMAP_H
21 #define GNASH_BITMAP_H
23 #include <boost/intrusive_ptr.hpp>
30 class BitmapMovieDefinition;
97 void checkBitmapData();
103 const boost::intrusive_ptr<const BitmapMovieDefinition> _def;
121 #endif // GNASH_DYNAMIC_SHAPE_H
size_t addFillStyle(const FillStyle &stl)
Add a fill style, possibly reusing an existing one if existent.
Definition: DynamicShape.cpp:261
A "movie" definition for a bitmap file.
Definition: BitmapMovieDefinition.h:46
virtual SWFRect getBounds() const
Get the bounds of the Bitmap.
Definition: Bitmap.cpp:139
@ height
Definition: klash_part.cpp:329
void clear()
Remove all paths and style informations.
Definition: DynamicShape.cpp:39
void add_path(const Path &pth)
Add a path, updating _currpath and recomputing bounds.
Definition: DynamicShape.cpp:55
The base class for all ActionScript objects.
Definition: as_object.h:162
void finalize() const
Always call this function before displaying !
Definition: DynamicShape.cpp:139
const CachedBitmap * bitmapInfo() const
Return the image data.
Definition: BitmapData_as.h:111
geometry::Range2d< std::int32_t > getRange() const
Construct and return a Range2d object.
Definition: SWFRect.h:222
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
std::int32_t pixelsToTwips(double a)
Definition: GnashNumeric.h:144
virtual bool pointInShape(std::int32_t x, std::int32_t y) const
Test whether a point is in the Bitmap's bounds.
Definition: Bitmap.cpp:108
FillStyle describes the various fill styles for shapes.
Definition: FillStyle.h:282
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
SWFMatrix getWorldMatrix(const DisplayObject &d, bool includeRoot=true)
Get concatenated SWFMatrix (all ancestor transforms and our SWFMatrix)
Definition: DisplayObject.h:1131
@ SMOOTHING_UNSPECIFIED
Definition: FillStyle.h:76
Base class for render handlers.
Definition: Renderer.h:189
InvalidatedRanges m_old_invalidated_ranges
Bounds of this DisplayObject instance before first invalidation since last call to clear_invalidated(...
Definition: DisplayObject.h:1029
Bitmap(movie_root &mr, as_object *object, BitmapData_as *bd, DisplayObject *parent)
Construct a Bitmap character from a BitmapData.
Definition: Bitmap.cpp:35
const Transform & transform() const
Definition: DisplayObject.h:292
@ CLIPPED
Definition: FillStyle.h:86
void display(Renderer &renderer, const Transform &xform) const
Display a DynamicShape object.
Definition: DynamicShape.cpp:49
virtual void update()
Notify the Bitmap that it's been updated during ActionScript execution.
Definition: Bitmap.cpp:145
virtual void construct(as_object *init=nullptr)
Called when the object is placed on stage.
Definition: Bitmap.cpp:74
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
VGPaint fill
Definition: testr_gtk.cpp:86
virtual ~Bitmap()
Definition: Bitmap.cpp:61
bool disposed() const
Whether the BitmapData has been disposed.
Definition: BitmapData_as.h:139
void drawLineTo(std::int32_t dx, std::int32_t dy)
Draw a straight line.
Definition: Geometry.h:325
The DynamicShape class represents a mutable shape.
Definition: DynamicShape.h:45
A subset of a shape, a series of edges sharing a single set of styles.
Definition: Geometry.h:167
@ h
Definition: GnashKey.h:154
virtual void setReachable()
Overrides Relay::setReachable().
Definition: BitmapData_as.cpp:615
virtual void display(Renderer &renderer, const Transform &xform)
Display this Bitmap.
Definition: Bitmap.cpp:114
void set_invalidated()
This function marks the DisplayObject as being modified in aspect and keeps track of current invalida...
Definition: DisplayObject.cpp:183
Definition: SWFMatrix.h:54
void clear_invalidated()
Definition: DisplayObject.h:720
DisplayObject * parent() const
Return the parent of this DisplayObject, or NULL if the DisplayObject has no parent.
Definition: DisplayObject.h:252
void add(const RangeType &range)
Add a Range to the set, merging when possible and appropriate.
Definition: snappingrange.h:250
virtual void add_invalidated_bounds(InvalidatedRanges &ranges, bool force)
Add the DisplayObject's invalidated bounds to the given ranges list.
Definition: Bitmap.cpp:126
void markReachableObjects() const
Definition: Bitmap.h:82
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
A BitmapFill.
Definition: FillStyle.h:71
void setBounds(const SWFRect &bounds)
Definition: DynamicShape.h:77
const SWFRect & getBounds() const
Definition: DynamicShape.h:73
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
Implements the BitmapData native type.
Definition: BitmapData_as.h:64
void set_scale(double x_scale, double y_scale)
Set x and y scales, rotation is unchanged.
Definition: SWFMatrix.cpp:225
virtual const SWFRect & get_frame_size() const
Return size of frame, in TWIPS.
Definition: BitmapMovieDefinition.h:87
@ width
Definition: klash_part.cpp:329
bool invalidated() const
Return whether this DisplayObject has been invalidated or not.
Definition: DisplayObject.h:657
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:38
std::int32_t x
Definition: BitmapData_as.cpp:434
DSOEXPORT void expand_to_transformed_rect(const SWFMatrix &m, const SWFRect &r)
Definition: SWFRect.cpp:74
void attach(DisplayObject *obj)
Attach this BitmapData to an object.
Definition: BitmapData_as.h:126