Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
dw::Textblock::Line Struct Reference

#include <textblock.hh>

Public Types

enum  { LEFT , RIGHT , CENTER }
 

Public Member Functions

int totalHeight (int marginNextLine)
 Returns the difference between two vertical lines positions: height of this line plus space below this line.
 

Public Attributes

int firstWord
 
int lastWord
 
int top
 
int marginAscent
 
int marginDescent
 
int borderAscent
 
int borderDescent
 
int contentAscent
 
int contentDescent
 
int breakSpace
 
int textOffset
 
int maxLineWidth
 
int lastOofRefPositionedBeforeThisLine
 
int leftOffset
 
int rightOffset
 
enum dw::Textblock::Line:: { ... }  alignment
 

Detailed Description

Definition at line 368 of file textblock.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
LEFT 
RIGHT 
CENTER 

Definition at line 424 of file textblock.hh.

Member Function Documentation

◆ totalHeight()

int dw::Textblock::Line::totalHeight ( int  marginNextLine)
inline

Returns the difference between two vertical lines positions: height of this line plus space below this line.

The margin of the next line (marginAscent - borderAscent) must be passed seperately.

Definition at line 401 of file textblock.hh.

References borderAscent, borderDescent, breakSpace, marginDescent, and lout::misc::max().

Referenced by dw::Textblock::addLine().

Member Data Documentation

◆ []

enum { ... } dw::Textblock::Line::alignment

◆ borderAscent

◆ borderDescent

◆ breakSpace

◆ contentAscent

int dw::Textblock::Line::contentAscent

◆ contentDescent

int dw::Textblock::Line::contentDescent

Definition at line 390 of file textblock.hh.

Referenced by dw::Textblock::accumulateWordForLine(), and dw::Textblock::addLine().

◆ firstWord

◆ lastOofRefPositionedBeforeThisLine

int dw::Textblock::Line::lastOofRefPositionedBeforeThisLine

Definition at line 421 of file textblock.hh.

Referenced by dw::Textblock::addLine(), and dw::Textblock::moveWordIndices().

◆ lastWord

◆ leftOffset

int dw::Textblock::Line::leftOffset

◆ marginAscent

◆ marginDescent

int dw::Textblock::Line::marginDescent

◆ maxLineWidth

int dw::Textblock::Line::maxLineWidth

Definition at line 412 of file textblock.hh.

Referenced by dw::Textblock::addLine().

◆ rightOffset

int dw::Textblock::Line::rightOffset

◆ textOffset

◆ top

int dw::Textblock::Line::top

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