webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
WebCore::TextRun Class Reference

#include <TextRun.h>

Public Member Functions

 TextRun (StringView text, float xpos=0, float expansion=0, ExpansionBehavior expansionBehavior=DefaultExpansion, TextDirection direction=LTR, bool directionalOverride=false, bool characterScanForCodePath=true)
 
TextRun subRun (unsigned startOffset, unsigned length) const
 
UChar operator[] (unsigned i) const
 
const LChardata8 (unsigned i) const
 
const UChardata16 (unsigned i) const
 
const LCharcharacters8 () const
 
const UCharcharacters16 () const
 
bool is8Bit () const
 
unsigned length () const
 
unsigned charactersLength () const
 
String string () const
 
void setText (const LChar *c, unsigned len)
 
void setText (const UChar *c, unsigned len)
 
void setText (StringView stringView)
 
void setCharactersLength (unsigned charactersLength)
 
float horizontalGlyphStretch () const
 
void setHorizontalGlyphStretch (float scale)
 
bool allowTabs () const
 
unsigned tabSize () const
 
void setTabSize (bool, unsigned)
 
float xPos () const
 
void setXPos (float xPos)
 
float expansion () const
 
ExpansionBehavior expansionBehavior () const
 
TextDirection direction () const
 
bool rtl () const
 
bool ltr () const
 
bool directionalOverride () const
 
bool characterScanForCodePath () const
 
bool spacingDisabled () const
 
void disableSpacing ()
 
void setDirection (TextDirection direction)
 
void setDirectionalOverride (bool override)
 
void setCharacterScanForCodePath (bool scan)
 
StringView text () const
 
 TextRun (StringView text, float xpos=0, float expansion=0, ExpansionBehavior expansionBehavior=DefaultExpansion, TextDirection direction=LTR, bool directionalOverride=false, bool characterScanForCodePath=true)
 
TextRun subRun (unsigned startOffset, unsigned length) const
 
UChar operator[] (unsigned i) const
 
const LChardata8 (unsigned i) const
 
const UChardata16 (unsigned i) const
 
const LCharcharacters8 () const
 
const UCharcharacters16 () const
 
bool is8Bit () const
 
unsigned length () const
 
unsigned charactersLength () const
 
String string () const
 
void setText (const LChar *c, unsigned len)
 
void setText (const UChar *c, unsigned len)
 
void setText (StringView stringView)
 
void setCharactersLength (unsigned charactersLength)
 
float horizontalGlyphStretch () const
 
void setHorizontalGlyphStretch (float scale)
 
bool allowTabs () const
 
unsigned tabSize () const
 
void setTabSize (bool, unsigned)
 
float xPos () const
 
void setXPos (float xPos)
 
float expansion () const
 
ExpansionBehavior expansionBehavior () const
 
TextDirection direction () const
 
bool rtl () const
 
bool ltr () const
 
bool directionalOverride () const
 
bool characterScanForCodePath () const
 
bool spacingDisabled () const
 
void disableSpacing ()
 
void setDirection (TextDirection direction)
 
void setDirectionalOverride (bool override)
 
void setCharacterScanForCodePath (bool scan)
 
StringView text () const
 

Constructor & Destructor Documentation

◆ TextRun() [1/2]

WebCore::TextRun::TextRun ( StringView  text,
float  xpos = 0,
float  expansion = 0,
ExpansionBehavior  expansionBehavior = DefaultExpansion,
TextDirection  direction = LTR,
bool  directionalOverride = false,
bool  characterScanForCodePath = true 
)
inlineexplicit

◆ TextRun() [2/2]

WebCore::TextRun::TextRun ( StringView  text,
float  xpos = 0,
float  expansion = 0,
ExpansionBehavior  expansionBehavior = DefaultExpansion,
TextDirection  direction = LTR,
bool  directionalOverride = false,
bool  characterScanForCodePath = true 
)
inlineexplicit

Member Function Documentation

◆ allowTabs() [1/2]

bool WebCore::TextRun::allowTabs ( ) const
inline

◆ allowTabs() [2/2]

bool WebCore::TextRun::allowTabs ( ) const
inline

◆ characters16() [1/2]

const UChar* WebCore::TextRun::characters16 ( ) const
inline

◆ characters16() [2/2]

const UChar* WebCore::TextRun::characters16 ( ) const
inline

◆ characters8() [1/2]

const LChar* WebCore::TextRun::characters8 ( ) const
inline

◆ characters8() [2/2]

const LChar* WebCore::TextRun::characters8 ( ) const
inline

◆ characterScanForCodePath() [1/2]

bool WebCore::TextRun::characterScanForCodePath ( ) const
inline

◆ characterScanForCodePath() [2/2]

bool WebCore::TextRun::characterScanForCodePath ( ) const
inline

◆ charactersLength() [1/2]

unsigned WebCore::TextRun::charactersLength ( ) const
inline

◆ charactersLength() [2/2]

unsigned WebCore::TextRun::charactersLength ( ) const
inline

◆ data16() [1/2]

const UChar* WebCore::TextRun::data16 ( unsigned  i) const
inline

◆ data16() [2/2]

const UChar* WebCore::TextRun::data16 ( unsigned  i) const
inline

◆ data8() [1/2]

const LChar* WebCore::TextRun::data8 ( unsigned  i) const
inline

◆ data8() [2/2]

const LChar* WebCore::TextRun::data8 ( unsigned  i) const
inline

◆ direction() [1/2]

TextDirection WebCore::TextRun::direction ( ) const
inline

◆ direction() [2/2]

TextDirection WebCore::TextRun::direction ( ) const
inline

◆ directionalOverride() [1/2]

bool WebCore::TextRun::directionalOverride ( ) const
inline

◆ directionalOverride() [2/2]

bool WebCore::TextRun::directionalOverride ( ) const
inline

◆ disableSpacing() [1/2]

void WebCore::TextRun::disableSpacing ( )
inline

◆ disableSpacing() [2/2]

void WebCore::TextRun::disableSpacing ( )
inline

◆ expansion() [1/2]

float WebCore::TextRun::expansion ( ) const
inline

◆ expansion() [2/2]

float WebCore::TextRun::expansion ( ) const
inline

◆ expansionBehavior() [1/2]

ExpansionBehavior WebCore::TextRun::expansionBehavior ( ) const
inline

◆ expansionBehavior() [2/2]

ExpansionBehavior WebCore::TextRun::expansionBehavior ( ) const
inline

◆ horizontalGlyphStretch() [1/2]

float WebCore::TextRun::horizontalGlyphStretch ( ) const
inline

◆ horizontalGlyphStretch() [2/2]

float WebCore::TextRun::horizontalGlyphStretch ( ) const
inline

◆ is8Bit() [1/2]

bool WebCore::TextRun::is8Bit ( ) const
inline

◆ is8Bit() [2/2]

bool WebCore::TextRun::is8Bit ( ) const
inline

◆ length() [1/2]

unsigned WebCore::TextRun::length ( void  ) const
inline

◆ length() [2/2]

unsigned WebCore::TextRun::length ( void  ) const
inline

◆ ltr() [1/2]

bool WebCore::TextRun::ltr ( ) const
inline

◆ ltr() [2/2]

bool WebCore::TextRun::ltr ( ) const
inline

◆ operator[]() [1/2]

UChar WebCore::TextRun::operator[] ( unsigned  i) const
inline

◆ operator[]() [2/2]

UChar WebCore::TextRun::operator[] ( unsigned  i) const
inline

◆ rtl() [1/2]

bool WebCore::TextRun::rtl ( ) const
inline

◆ rtl() [2/2]

bool WebCore::TextRun::rtl ( ) const
inline

◆ setCharacterScanForCodePath() [1/2]

void WebCore::TextRun::setCharacterScanForCodePath ( bool  scan)
inline

◆ setCharacterScanForCodePath() [2/2]

void WebCore::TextRun::setCharacterScanForCodePath ( bool  scan)
inline

◆ setCharactersLength() [1/2]

void WebCore::TextRun::setCharactersLength ( unsigned  charactersLength)
inline

◆ setCharactersLength() [2/2]

void WebCore::TextRun::setCharactersLength ( unsigned  charactersLength)
inline

◆ setDirection() [1/2]

void WebCore::TextRun::setDirection ( TextDirection  direction)
inline

◆ setDirection() [2/2]

void WebCore::TextRun::setDirection ( TextDirection  direction)
inline

◆ setDirectionalOverride() [1/2]

void WebCore::TextRun::setDirectionalOverride ( bool  override)
inline

◆ setDirectionalOverride() [2/2]

void WebCore::TextRun::setDirectionalOverride ( bool  override)
inline

◆ setHorizontalGlyphStretch() [1/2]

void WebCore::TextRun::setHorizontalGlyphStretch ( float  scale)
inline

◆ setHorizontalGlyphStretch() [2/2]

void WebCore::TextRun::setHorizontalGlyphStretch ( float  scale)
inline

◆ setTabSize() [1/2]

void WebCore::TextRun::setTabSize ( bool  allow,
unsigned  size 
)
inline

◆ setTabSize() [2/2]

void WebCore::TextRun::setTabSize ( bool  ,
unsigned   
)

◆ setText() [1/6]

void WebCore::TextRun::setText ( const LChar c,
unsigned  len 
)
inline

◆ setText() [2/6]

void WebCore::TextRun::setText ( const LChar c,
unsigned  len 
)
inline

◆ setText() [3/6]

void WebCore::TextRun::setText ( const UChar c,
unsigned  len 
)
inline

◆ setText() [4/6]

void WebCore::TextRun::setText ( const UChar c,
unsigned  len 
)
inline

◆ setText() [5/6]

void WebCore::TextRun::setText ( StringView  stringView)
inline

◆ setText() [6/6]

void WebCore::TextRun::setText ( StringView  stringView)
inline

◆ setXPos() [1/2]

void WebCore::TextRun::setXPos ( float  xPos)
inline

◆ setXPos() [2/2]

void WebCore::TextRun::setXPos ( float  xPos)
inline

◆ spacingDisabled() [1/2]

bool WebCore::TextRun::spacingDisabled ( ) const
inline

◆ spacingDisabled() [2/2]

bool WebCore::TextRun::spacingDisabled ( ) const
inline

◆ string() [1/2]

String WebCore::TextRun::string ( ) const
inline

◆ string() [2/2]

String WebCore::TextRun::string ( ) const
inline

◆ subRun() [1/2]

TextRun WebCore::TextRun::subRun ( unsigned  startOffset,
unsigned  length 
) const
inline

◆ subRun() [2/2]

TextRun WebCore::TextRun::subRun ( unsigned  startOffset,
unsigned  length 
) const
inline

◆ tabSize() [1/2]

unsigned WebCore::TextRun::tabSize ( ) const
inline

◆ tabSize() [2/2]

unsigned WebCore::TextRun::tabSize ( ) const
inline

◆ text() [1/2]

StringView WebCore::TextRun::text ( ) const
inline

◆ text() [2/2]

StringView WebCore::TextRun::text ( ) const
inline

◆ xPos() [1/2]

float WebCore::TextRun::xPos ( ) const
inline

◆ xPos() [2/2]

float WebCore::TextRun::xPos ( ) const
inline

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