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

#include <SVGTextMetrics.h>

Classes

struct  Glyph
 

Public Types

enum  MetricsType { SkippedSpaceMetrics }
 

Public Member Functions

 SVGTextMetrics ()
 
 SVGTextMetrics (MetricsType)
 
 SVGTextMetrics (RenderSVGInlineText &, unsigned length, float width)
 
bool isEmpty () const
 
float width () const
 
void setWidth (float width)
 
float height () const
 
unsigned length () const
 
const Glyphglyph () const
 

Static Public Member Functions

static SVGTextMetrics measureCharacterRange (RenderSVGInlineText &, unsigned position, unsigned length)
 
static TextRun constructTextRun (RenderSVGInlineText &, unsigned position=0, unsigned length=std::numeric_limits< unsigned >::max())
 

Member Enumeration Documentation

◆ MetricsType

Enumerator
SkippedSpaceMetrics 

Constructor & Destructor Documentation

◆ SVGTextMetrics() [1/3]

WebCore::SVGTextMetrics::SVGTextMetrics ( )

◆ SVGTextMetrics() [2/3]

WebCore::SVGTextMetrics::SVGTextMetrics ( SVGTextMetrics::MetricsType  )
explicit

◆ SVGTextMetrics() [3/3]

WebCore::SVGTextMetrics::SVGTextMetrics ( RenderSVGInlineText text,
unsigned  length,
float  width 
)

Member Function Documentation

◆ constructTextRun()

TextRun WebCore::SVGTextMetrics::constructTextRun ( RenderSVGInlineText text,
unsigned  position = 0,
unsigned  length = std::numeric_limits<unsigned>::max() 
)
static

◆ glyph()

const Glyph& WebCore::SVGTextMetrics::glyph ( ) const
inline

◆ height()

float WebCore::SVGTextMetrics::height ( ) const
inline

◆ isEmpty()

bool WebCore::SVGTextMetrics::isEmpty ( void  ) const
inline

◆ length()

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

◆ measureCharacterRange()

SVGTextMetrics WebCore::SVGTextMetrics::measureCharacterRange ( RenderSVGInlineText text,
unsigned  position,
unsigned  length 
)
static

◆ setWidth()

void WebCore::SVGTextMetrics::setWidth ( float  width)
inline

◆ width()

float WebCore::SVGTextMetrics::width ( ) const
inline

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