Scaleform::GFx::FileTypeConstants Scaleform::GFx::StateBag Scaleform::GFx::DrawTextManager
class DrawTextManager : public RefCountBaseNTS<DrawTextManager, Stat_Default_Mem>, public StateBag;
DrawTextManager class manages the DrawText objects. DrawTextManager should be used for creation of DrawText objects. It also may be used to measure text extents.
One DrawTextManager instance may be used to manage (create, measure, render) multiple DrawText instances.
There are 3 ways to create DrawTextManager: using default constructor, passing pointer on MovieDef, and passing pointer on Loader /GFxStateBag:
1.
Ptr<DrawTextManager> pdtm = *new DrawTextManager();
2.
3.
In the case #2 all created DrawText instances will be able to use all fonts defined by the loaded "fonts.swf".
In the case #3 DrawTextManager will inherit all states (log, font cache manager, etc) from the loader.
Method |
Description |
Captures the current DrawText state. | |
Creates and initializes a DrawText object using the specified HTML. | |
Creates an empty DrawText object. | |
Creates and initializes a DrawText object using plain text. | |
Sets the expected thread the Capture function will be called from. | |
DrawTextManager constructor. | |
Returns a display handle that should be passed to the render thread and used for text rendering. | |
Returns the currently set default text parameters. | |
Returns size of the text rectangle that would be necessary to render the specified HTML text. | |
Returns the size of the text rectangle that would be necessary to render the specified text. | |
Returns true once rendering has been shut down after ShutdownRendering call. | |
Sets default text parameters. If optional 'ptxtParams' parameter for CreateText is not specified, then these default parameters will be used. | |
Sets the viewport dimensions for DrawText instances being displayed. | |
Shuts down rendering of the movie. | |
Swaps the depth of the current text with the depth of another text. |
Structure |
Description |
A structure which defines the parameters of the newly created text. |
GFx_DrawText.h