Gnash
0.8.11dev
|
SWF Tag DefineEditText (37). More...
#include <DefineEditTextTag.h>
Public Member Functions | |
~DefineEditTextTag () | |
const SWFRect & | bounds () const |
DisplayObject * | createDisplayObject (Global_as &gl, DisplayObject *parent) const |
Create a DisplayObject with the given parent. More... | |
const std::string & | defaultText () const |
const std::string & | variableName () const |
unsigned int | maxChars () const |
Return the maximum length of text this widget can hold. More... | |
std::uint16_t | rightMargin () const |
Get right margin in twips. More... | |
std::uint16_t | leftMargin () const |
Get left margin in twips. More... | |
std::uint16_t | indent () const |
Get indentation in twips. More... | |
std::uint16_t | textHeight () const |
Get height of font in twips. More... | |
const rgba & | color () const |
Get color of the text. More... | |
std::uint16_t | leading () const |
Get extra space between lines (in twips). More... | |
bool | multiline () const |
bool | password () const |
TextField::TextAlignment | alignment () const |
Get text alignment. More... | |
bool | border () const |
Is border requested ? More... | |
bool | autoSize () const |
bool | wordWrap () const |
Word wrap requested ? More... | |
bool | hasText () const |
Has text defined ? More... | |
bool | readOnly () const |
bool | noSelect () const |
bool | html () const |
Return true if HTML was allowed by definition. More... | |
bool | getUseEmbeddedGlyphs () const |
Return true if this DisplayObject definition requested use of device fonts. More... | |
boost::intrusive_ptr< Font > | getFont () const |
![]() | |
virtual | ~DefinitionTag () |
virtual DSOTEXPORT void | executeState (MovieClip *m, DisplayList &) const |
Executing a DefinitionTag adds its id to list of known characters. More... | |
std::uint16_t | id () const |
The immutable id of the DefinitionTag. More... | |
![]() | |
virtual | ~ControlTag () |
virtual void | executeActions (MovieClip *, DisplayList &) const |
Execute Action tags. More... | |
![]() | |
ref_counted () | |
ref_counted (const ref_counted &) | |
void | add_ref () const |
void | drop_ref () const |
long | get_ref_count () const |
Static Public Member Functions | |
static void | loader (SWFStream &in, TagType tag, movie_definition &m, const RunResources &r) |
Load an SWF::DEFINEEDITTEXT (37) tag. More... | |
Additional Inherited Members | |
![]() | |
enum | Type { TAG_ACTION = 1 << 0, TAG_DLIST = 1 << 1 } |
Type of ControlTag. More... | |
![]() | |
DefinitionTag (std::uint16_t id) | |
![]() | |
virtual | ~ref_counted () |
SWF Tag DefineEditText (37).
Virtual control tag for syncing streaming sound to playhead
Gnash will register instances of this ControlTag in the frame containing blocks of a streaming sound, which is occurrences of SWF Tag StreamSoundBlock (19).
The tag will then be used to start playing the specific block in sync with the frame playhead.
|
inline |
References loader(), gnash::key::m, and gnash::key::r.
|
inline |
Get text alignment.
|
inline |
|
inline |
Is border requested ?
|
inline |
References createDisplayObject().
|
inline |
Get color of the text.
|
virtual |
Create a DisplayObject with the given parent.
This function will determine the correct prototype and associated object using the passed global.
gl | The global object used to set prototype and associated object. Calling this function creates a new DisplayObject from the DefinitionTag and adds it as a child of the specified parent DisplayObject. |
Implements gnash::SWF::DefinitionTag.
References gnash::SWFStream::align(), gnash::TextField::ALIGN_LEFT, gnash::createTextFieldObject(), gnash::SWF::DefinitionTag::DefinitionTag(), gnash::SWFStream::ensureBytes(), gnash::movie_definition::get_font(), getFont(), IF_VERBOSE_MALFORMED_SWF, IF_VERBOSE_PARSE, gnash::log_error(), gnash::log_parse(), gnash::log_swferror(), gnash::log_unimpl(), gnash::key::m, gnash::SWFStream::read_s16(), gnash::SWFStream::read_string(), gnash::SWFStream::read_u16(), gnash::SWFStream::read_u8(), gnash::readRect(), gnash::readRGBA(), and UNUSED.
Referenced by bounds().
|
inline |
Return a reference to the default text associated with this EditText definition.
|
inline |
Referenced by createDisplayObject().
|
inline |
Return true if this DisplayObject definition requested use of device fonts.
Used by TextFielf constructor to set its default.
|
inline |
Has text defined ?
|
inline |
Return true if HTML was allowed by definition.
|
inline |
Get indentation in twips.
|
inline |
Get extra space between lines (in twips).
This is in addition to default font line spacing.
|
inline |
Get left margin in twips.
|
static |
Load an SWF::DEFINEEDITTEXT (37) tag.
References gnash::movie_definition::addDisplayObject(), gnash::SWF::DEFINEEDITTEXT, gnash::SWFStream::ensureBytes(), and gnash::SWFStream::read_u16().
Referenced by gnash::SWF::addDefaultLoaders(), and ~DefineEditTextTag().
|
inline |
Return the maximum length of text this widget can hold.
If zero, the text length is unlimited.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get right margin in twips.
|
inline |
Get height of font in twips.
|
inline |
Return a reference to the "VariableName" associated with this EditText definition. The variable name is allowed to contain path information and should be used to provide an 'alias' to the 'text' member of instances.
|
inline |
Word wrap requested ?