Public Member Functions | Public Attributes | List of all members
Celartem::DjVu::TextWithFontConfig Struct Reference

#include <djv_common.h>

Public Member Functions

 TextWithFontConfig (const String &inText=NullString, const FontConfig &inFontConfig=FontConfig())
 
 TextWithFontConfig (const TextWithFontConfig &inTWFC)
 
TextWithFontConfigoperator= (const TextWithFontConfig &inTWFC)
 
bool operator== (const TextWithFontConfig &inTWFC) const
 
bool operator!= (const TextWithFontConfig &inTWFC) const
 
bool isEmpty () const
 
void clear ()
 

Public Attributes

String text
 
FontConfig fontConfig
 

Detailed Description

This structure describes a text flagment with font configuration.

Constructor & Destructor Documentation

Celartem::DjVu::TextWithFontConfig::TextWithFontConfig ( const String inText = NullString,
const FontConfig inFontConfig = FontConfig() 
)
inline

Initializes an instance.

Parameters
inTextText.
inFontConfigFont configuration for the text.
Celartem::DjVu::TextWithFontConfig::TextWithFontConfig ( const TextWithFontConfig inTWFC)
inline

Duplicate an instance.

Parameters
inTWFCAn instance to duplicate.

Member Function Documentation

void Celartem::DjVu::TextWithFontConfig::clear ( )
inline

Clears all the existing data.

bool Celartem::DjVu::TextWithFontConfig::isEmpty ( ) const
inline

Determines whether the instance is empty or not.

Returns
true if the instance contains any texts; otherwise false.
bool Celartem::DjVu::TextWithFontConfig::operator!= ( const TextWithFontConfig inTWFC) const
inline

Compare this instance with another (check inequality).

Parameters
inFontConfigAnother TextWithFontConfig instance to compare with.
Returns
true if there're any differences between the instances.
TextWithFontConfig& Celartem::DjVu::TextWithFontConfig::operator= ( const TextWithFontConfig inTWFC)
inline

Duplicate an instance.

Parameters
inTWFCAn instance to duplicate.
Returns
Reference to this instance.
bool Celartem::DjVu::TextWithFontConfig::operator== ( const TextWithFontConfig inTWFC) const
inline

Compare this instance with another (check equality).

Parameters
inFontConfigAnother TextWithFontConfig instance to compare with.
Returns
true if no difference between the instances.

Member Data Documentation

FontConfig Celartem::DjVu::TextWithFontConfig::fontConfig

Font configuration.

Referenced by clear(), operator=(), and operator==().

String Celartem::DjVu::TextWithFontConfig::text

A text.

Referenced by clear(), isEmpty(), operator=(), and operator==().


The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:07.
Cuminas Logo