Gnash
0.8.11dev
|
The TextFormat_as Relay type stores text properties. More...
#include <TextFormat_as.h>
Public Member Functions | |
TextFormat_as () | |
~TextFormat_as () | |
const boost::optional< bool > & | underlined () const |
Return a Boolean value that indicates whether the text is underlined. More... | |
const boost::optional< bool > & | bold () const |
Return a Boolean value that indicates whether the text is boldface. More... | |
const boost::optional< bool > & | italic () const |
Return a Boolean value that indicates whether the text is italicized. More... | |
const boost::optional< rgba > & | color () const |
Return the color of text using this text format. More... | |
const boost::optional< bool > & | bullet () const |
Whether the text should have a bullet. More... | |
TextField::TextFormatDisplay | display () const |
The display type (block or inline). More... | |
const boost::optional< std::vector< int > > & | tabStops () const |
const boost::optional< std::uint16_t > & | indent () const |
Indentation from left margin to the first character in the paragraph. More... | |
const boost::optional< TextField::TextAlignment > & | align () const |
Paragraph alignment. More... | |
const boost::optional< std::string > & | font () const |
Font name. More... | |
const boost::optional< std::string > & | target () const |
const boost::optional< std::string > & | url () const |
const boost::optional< std::uint32_t > & | blockIndent () const |
The block indent. More... | |
const boost::optional< std::uint16_t > & | leading () const |
const boost::optional< std::uint16_t > & | leftMargin () const |
Indicates the left margin of the paragraph, in points. More... | |
const boost::optional< std::uint16_t > & | rightMargin () const |
Indicates the right margin of the paragraph in twips. More... | |
const boost::optional< std::uint16_t > & | size () const |
Return a float that indicates the point size in twips. More... | |
void | targetSet (const boost::optional< std::string > &s) |
Setters. More... | |
void | urlSet (const boost::optional< std::string > &s) |
void | underlinedSet (const boost::optional< bool > &x) |
void | italicSet (const boost::optional< bool > &x) |
void | boldSet (const boost::optional< bool > &x) |
void | bulletSet (const boost::optional< bool > &x) |
void | colorSet (const boost::optional< rgba > &x) |
void | indentSet (const boost::optional< std::uint16_t > &x) |
void | fontSet (const boost::optional< std::string > &font) |
void | alignSet (const boost::optional< TextField::TextAlignment > &x) |
void | alignSet (const std::string &align) |
void | blockIndentSet (const boost::optional< std::uint32_t > &x) |
void | leadingSet (const boost::optional< std::uint16_t > &x) |
void | leftMarginSet (const boost::optional< std::uint16_t > &x) |
void | rightMarginSet (const boost::optional< std::uint16_t > &x) |
void | sizeSet (const boost::optional< std::uint16_t > &x) |
void | tabStopsSet (const std::vector< int > &tabStops) |
void | displaySet (TextField::TextFormatDisplay x) |
These are not optional! More... | |
void | displaySet (const std::string &display) |
![]() | |
virtual | ~Relay ()=0 |
virtual void | setReachable () |
A Relay itself is not a GC object, but may point to GC resources. More... | |
virtual void | clean () |
Handle any cleanup necessary before the Relay is destroyed. More... | |
The TextFormat_as Relay type stores text properties.
Most properties can either have a value or be null. TODO: SWF8 has two additional members: kerning and letterSpacing.
gnash::TextFormat_as::TextFormat_as | ( | ) |
|
inline |
|
inline |
Paragraph alignment.
Referenced by alignSet(), gnash::TextField::setTextFormat(), and gnash::textformat_class_init().
|
inline |
Referenced by alignSet(), and gnash::textformat_class_init().
void gnash::TextFormat_as::alignSet | ( | const std::string & | align | ) |
|
inline |
The block indent.
Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Return a Boolean value that indicates whether the text is boldface.
Referenced by gnash::textformat_class_init().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Whether the text should have a bullet.
Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Return the color of text using this text format.
Referenced by gnash::TextField::setTextFormat(), and gnash::textformat_class_init().
|
inline |
References x.
Referenced by gnash::textformat_class_init().
|
inline |
The display type (block or inline).
Note this is not an optional parameter.
Referenced by displaySet(), gnash::TextField::setTextFormat(), and gnash::textformat_class_init().
|
inline |
These are not optional!
References display(), gnash::registerTextFormatNative(), gnash::textformat_class_init(), test::uri, and x.
Referenced by displaySet(), and gnash::textformat_class_init().
void gnash::TextFormat_as::displaySet | ( | const std::string & | display | ) |
References displaySet().
|
inline |
Font name.
Referenced by fontSet(), and gnash::textformat_class_init().
|
inline |
References font().
Referenced by gnash::registerTextFormatNative().
|
inline |
Indentation from left margin to the first character in the paragraph.
Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Return a Boolean value that indicates whether the text is italicized.
Referenced by gnash::textformat_class_init().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Return a number that indicates the amount of leading vertical space between lines.
Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Indicates the left margin of the paragraph, in points.
Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Indicates the right margin of the paragraph in twips.
Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Return a float that indicates the point size in twips.
Referenced by gnash::registerTextFormatNative(), gnash::TextField::setTextFormat(), and gnash::textformat_class_init().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Referenced by gnash::TextField::setTextFormat(), tabStopsSet(), and gnash::textformat_class_init().
|
inline |
References tabStops().
Referenced by gnash::textformat_class_init().
|
inline |
Referenced by gnash::TextField::setTextFormat().
|
inline |
|
inline |
Return a Boolean value that indicates whether the text is underlined.
Referenced by gnash::TextField::setTextFormat().
|
inline |
References x.
Referenced by gnash::registerTextFormatNative().
|
inline |
Referenced by gnash::TextField::setTextFormat().
|
inline |
References gnash::key::s.
Referenced by gnash::registerTextFormatNative().