Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::TextFormat_as Class Reference

The TextFormat_as Relay type stores text properties. More...

#include <TextFormat_as.h>

Inheritance diagram for gnash::TextFormat_as:
gnash::Relay

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)
 
- Public Member Functions inherited from gnash::Relay
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...
 

Detailed Description

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.

Constructor & Destructor Documentation

§ TextFormat_as()

gnash::TextFormat_as::TextFormat_as ( )

§ ~TextFormat_as()

gnash::TextFormat_as::~TextFormat_as ( )
inline

Member Function Documentation

§ align()

const boost::optional<TextField::TextAlignment>& gnash::TextFormat_as::align ( ) const
inline

§ alignSet() [1/2]

void gnash::TextFormat_as::alignSet ( const boost::optional< TextField::TextAlignment > &  x)
inline

References align(), and x.

Referenced by alignSet(), and gnash::textformat_class_init().

§ alignSet() [2/2]

void gnash::TextFormat_as::alignSet ( const std::string &  align)

§ blockIndent()

const boost::optional<std::uint32_t>& gnash::TextFormat_as::blockIndent ( ) const
inline

§ blockIndentSet()

void gnash::TextFormat_as::blockIndentSet ( const boost::optional< std::uint32_t > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ bold()

const boost::optional<bool>& gnash::TextFormat_as::bold ( ) const
inline

Return a Boolean value that indicates whether the text is boldface.

Referenced by gnash::textformat_class_init().

§ boldSet()

void gnash::TextFormat_as::boldSet ( const boost::optional< bool > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ bullet()

const boost::optional<bool>& gnash::TextFormat_as::bullet ( ) const
inline

Whether the text should have a bullet.

Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().

§ bulletSet()

void gnash::TextFormat_as::bulletSet ( const boost::optional< bool > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ color()

const boost::optional<rgba>& gnash::TextFormat_as::color ( ) const
inline

Return the color of text using this text format.

Referenced by gnash::TextField::setTextFormat(), and gnash::textformat_class_init().

§ colorSet()

void gnash::TextFormat_as::colorSet ( const boost::optional< rgba > &  x)
inline

References x.

Referenced by gnash::textformat_class_init().

§ display()

TextField::TextFormatDisplay gnash::TextFormat_as::display ( ) const
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().

§ displaySet() [1/2]

void gnash::TextFormat_as::displaySet ( TextField::TextFormatDisplay  x)
inline

§ displaySet() [2/2]

void gnash::TextFormat_as::displaySet ( const std::string &  display)

References displaySet().

§ font()

const boost::optional<std::string>& gnash::TextFormat_as::font ( ) const
inline

Font name.

Referenced by fontSet(), and gnash::textformat_class_init().

§ fontSet()

void gnash::TextFormat_as::fontSet ( const boost::optional< std::string > &  font)
inline

References font().

Referenced by gnash::registerTextFormatNative().

§ indent()

const boost::optional<std::uint16_t>& gnash::TextFormat_as::indent ( ) const
inline

Indentation from left margin to the first character in the paragraph.

Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().

§ indentSet()

void gnash::TextFormat_as::indentSet ( const boost::optional< std::uint16_t > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ italic()

const boost::optional<bool>& gnash::TextFormat_as::italic ( ) const
inline

Return a Boolean value that indicates whether the text is italicized.

Referenced by gnash::textformat_class_init().

§ italicSet()

void gnash::TextFormat_as::italicSet ( const boost::optional< bool > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ leading()

const boost::optional<std::uint16_t>& gnash::TextFormat_as::leading ( ) const
inline

Return a number that indicates the amount of leading vertical space between lines.

Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().

§ leadingSet()

void gnash::TextFormat_as::leadingSet ( const boost::optional< std::uint16_t > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ leftMargin()

const boost::optional<std::uint16_t>& gnash::TextFormat_as::leftMargin ( ) const
inline

Indicates the left margin of the paragraph, in points.

Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().

§ leftMarginSet()

void gnash::TextFormat_as::leftMarginSet ( const boost::optional< std::uint16_t > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ rightMargin()

const boost::optional<std::uint16_t>& gnash::TextFormat_as::rightMargin ( ) const
inline

Indicates the right margin of the paragraph in twips.

Referenced by gnash::registerTextFormatNative(), and gnash::TextField::setTextFormat().

§ rightMarginSet()

void gnash::TextFormat_as::rightMarginSet ( const boost::optional< std::uint16_t > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ size()

const boost::optional<std::uint16_t>& gnash::TextFormat_as::size ( ) const
inline

Return a float that indicates the point size in twips.

Referenced by gnash::registerTextFormatNative(), gnash::TextField::setTextFormat(), and gnash::textformat_class_init().

§ sizeSet()

void gnash::TextFormat_as::sizeSet ( const boost::optional< std::uint16_t > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ tabStops()

const boost::optional<std::vector<int> >& gnash::TextFormat_as::tabStops ( ) const
inline

§ tabStopsSet()

void gnash::TextFormat_as::tabStopsSet ( const std::vector< int > &  tabStops)
inline

References tabStops().

Referenced by gnash::textformat_class_init().

§ target()

const boost::optional<std::string>& gnash::TextFormat_as::target ( ) const
inline

§ targetSet()

void gnash::TextFormat_as::targetSet ( const boost::optional< std::string > &  s)
inline

Setters.

References gnash::key::s.

Referenced by gnash::registerTextFormatNative().

§ underlined()

const boost::optional<bool>& gnash::TextFormat_as::underlined ( ) const
inline

Return a Boolean value that indicates whether the text is underlined.

Referenced by gnash::TextField::setTextFormat().

§ underlinedSet()

void gnash::TextFormat_as::underlinedSet ( const boost::optional< bool > &  x)
inline

References x.

Referenced by gnash::registerTextFormatNative().

§ url()

const boost::optional<std::string>& gnash::TextFormat_as::url ( ) const
inline

§ urlSet()

void gnash::TextFormat_as::urlSet ( const boost::optional< std::string > &  s)
inline

The documentation for this class was generated from the following files: