Skip to content

Commit

Permalink
Introduce the getTokens API
Browse files Browse the repository at this point in the history
  • Loading branch information
alexp-sssup committed Oct 15, 2010
1 parent 18bb49e commit 18d8da9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parsing/tags.cpp
Expand Up @@ -1096,7 +1096,7 @@ Vector2 DefineShape3Tag::debugRender(FTFont* font, bool deep)
* * \param cur SHAPERECORD list head
* * \param shapes a vector to be populated with the shapes */

void lightspark::FromShaperecordListToShapeVector(const std::vector<SHAPERECORD>& shapeRecords, std::vector<GeomToken>& tokens,
void DefineShapeTag::FromShaperecordListToShapeVector(const std::vector<SHAPERECORD>& shapeRecords, std::vector<GeomToken>& tokens,
const std::list<FILLSTYLE>& fillStyles)
{
int startX=0;
Expand Down
3 changes: 2 additions & 1 deletion parsing/tags.h
Expand Up @@ -39,7 +39,6 @@ namespace lightspark
enum TAGTYPE {TAG=0,DISPLAY_LIST_TAG,SHOW_TAG,CONTROL_TAG,DICT_TAG,FRAMELABEL_TAG,END_TAG};

void ignore(std::istream& i, int count);
void FromShaperecordListToShapeVector(const std::vector<SHAPERECORD>& shapeRecords, std::vector<GeomToken>& tokens, const std::list<FILLSTYLE>& fillStyles);

class Tag
{
Expand Down Expand Up @@ -99,6 +98,8 @@ class DefineShapeTag: public DictionaryTag, public DisplayObject
private:
void computeCached();
void invalidate();
void FromShaperecordListToShapeVector(const std::vector<SHAPERECORD>& shapeRecords,
std::vector<GeomToken>& tokens, const std::list<FILLSTYLE>& fillStyles);
protected:
UI16 ShapeId;
RECT ShapeBounds;
Expand Down
4 changes: 4 additions & 0 deletions scripting/flashdisplay.h
Expand Up @@ -60,6 +60,10 @@ friend class GraphicsContainer;
void localToGlobal(number_t xin, number_t yin, number_t& xout, number_t& yout) const;
void becomeMaskOf(DisplayObject* m);
void setMask(DisplayObject* m);
virtual const std::vector<GeomToken>& getTokens()
{
throw RunTimeException("DisplayObject::getTokens");
}
protected:
void computeDeviceBoundsForRect(number_t xmin, number_t xmax, number_t ymin, number_t ymax,
uint32_t& outXMin, uint32_t& outYMin, uint32_t& outWidth, uint32_t& outHeight) const;
Expand Down

0 comments on commit 18d8da9

Please sign in to comment.