Dillo
Public Types | Public Attributes | List of all members
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
 

Member Enumeration Documentation

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 

Member Data Documentation

BadnessAndPenalty dw::Textblock::Word::badnessAndPenalty
core::Content dw::Textblock::Word::content
short dw::Textblock::Word::effSpace
short dw::Textblock::Word::flags
short dw::Textblock::Word::hyphenWidth
int dw::Textblock::Word::maxAscent
int dw::Textblock::Word::maxDescent
short dw::Textblock::Word::origSpace
core::Requisition dw::Textblock::Word::size
SpaceImgRenderer* dw::Textblock::Word::spaceImgRenderer
core::style::Style* dw::Textblock::Word::spaceStyle
core::style::Style* dw::Textblock::Word::style
int dw::Textblock::Word::totalSpaceShrinkability
int dw::Textblock::Word::totalSpaceStretchability
int dw::Textblock::Word::totalWidth
WordImgRenderer* dw::Textblock::Word::wordImgRenderer

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