Wt  3.3.9
Public Member Functions | List of all members
Wt::Render::WTextRenderer::Node Class Reference

A rendering box of a layed out DOM node. More...

Public Member Functions

DomElementType type () const
 Returns the element type.
 
std::string attributeValue (const std::string &attribute) const
 Returns an attribute value. More...
 
int page () const
 Returns the page.
 
double x () const
 Returns the x position.
 
double y () const
 Returns the y position.
 
double width () const
 Returns the width.
 
double height () const
 Returns the height.
 
int fragment () const
 Returns the fragment number. More...
 
int fragmentCount () const
 Returns the fragment count. More...
 

Detailed Description

A rendering box of a layed out DOM node.

See also
paintNode()

Member Function Documentation

std::string Wt::Render::WTextRenderer::Node::attributeValue ( const std::string &  attribute) const

Returns an attribute value.

This returns an empty string for an undefined attribute.

int Wt::Render::WTextRenderer::Node::fragment ( ) const

Returns the fragment number.

A single DOM node can result in multiple layout boxes: e.g. inline contents can be split over multiple lines, resulting in a layout box for each line, and block layout contents can be split over multiple pages, resulting in a layout box per page.

int Wt::Render::WTextRenderer::Node::fragmentCount ( ) const

Returns the fragment count.

See also
fragment()

Generated on Tue Nov 21 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11