Dillo v3.1.1-111-gd4f56d0d
Loading...
Searching...
No Matches
dw::Textblock::Word Struct Reference

#include <textblock.hh>

Public Types

enum  {
  CAN_BE_HYPHENATED = 1 << 0 , DIV_CHAR_AT_EOL = 1 << 1 , PERM_DIV_CHAR = 1 << 2 , DRAW_AS_ONE_TEXT = 1 << 3 ,
  UNBREAKABLE_FOR_MIN_WIDTH = 1 << 4 , WORD_START = 1 << 5 , WORD_END = 1 << 6 , TOPLEFT_OF_LINE = 1 << 7
}
 

Public Attributes

core::Requisition size
 
short origSpace
 
short effSpace
 
short hyphenWidth
 
short flags
 
core::Content content
 
int totalWidth
 
int maxAscent
 
int maxDescent
 
int totalSpaceStretchability
 
int totalSpaceShrinkability
 
BadnessAndPenalty badnessAndPenalty
 
core::style::Stylestyle
 
core::style::StylespaceStyle
 
WordImgRendererwordImgRenderer
 
SpaceImgRendererspaceImgRenderer
 

Detailed Description

Definition at line 427 of file textblock.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
CAN_BE_HYPHENATED 

Can be hyphenated automatically.

(Cleared after hyphenation.)

DIV_CHAR_AT_EOL 

Must be drawn with a hyphen, when at the end of the line.

PERM_DIV_CHAR 

Is or ends with a "division character", which is part of the word.

DRAW_AS_ONE_TEXT 

This word must be drawn, together with the following word(s), by only one call of View::drawText(), to get kerning, ligatures etc.

right. The last of the words drawn as one text does not have this flag set.

UNBREAKABLE_FOR_MIN_WIDTH 
WORD_START 
WORD_END 
TOPLEFT_OF_LINE 

Definition at line 429 of file textblock.hh.

Member Data Documentation

◆ badnessAndPenalty

◆ content

◆ effSpace

◆ flags

◆ hyphenWidth

◆ maxAscent

int dw::Textblock::Word::maxAscent

◆ maxDescent

int dw::Textblock::Word::maxDescent

◆ origSpace

◆ size

◆ spaceImgRenderer

◆ spaceStyle

◆ style

◆ totalSpaceShrinkability

int dw::Textblock::Word::totalSpaceShrinkability

Definition at line 488 of file textblock.hh.

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

◆ totalSpaceStretchability

int dw::Textblock::Word::totalSpaceStretchability

Definition at line 487 of file textblock.hh.

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

◆ totalWidth

int dw::Textblock::Word::totalWidth

◆ wordImgRenderer


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