RetroArch
Public Attributes | List of all members
DWRITE_TEXT_METRICS Struct Reference

Overall metrics associated with text after layout. All coordinates are in device independent pixels (DIPs). More...

#include <dwrite.h>

Inheritance diagram for DWRITE_TEXT_METRICS:
[legend]

Public Attributes

FLOAT left
 Left-most point of formatted text relative to layout box (excluding any glyph overhang). More...
 
FLOAT top
 Top-most point of formatted text relative to layout box (excluding any glyph overhang). More...
 
FLOAT width
 The width of the formatted text ignoring trailing whitespace at the end of each line. More...
 
FLOAT widthIncludingTrailingWhitespace
 The width of the formatted text taking into account the trailing whitespace at the end of each line. More...
 
FLOAT height
 The height of the formatted text. The height of an empty string is determined by the size of the default font's line height. More...
 
FLOAT layoutWidth
 Initial width given to the layout. Depending on whether the text was wrapped or not, it can be either larger or smaller than the text content width. More...
 
FLOAT layoutHeight
 Initial height given to the layout. Depending on the length of the text, it may be larger or smaller than the text content height. More...
 
UINT32 maxBidiReorderingDepth
 The maximum reordering count of any line of text, used to calculate the most number of hit-testing boxes needed. If the layout has no bidirectional text or no text at all, the minimum level is 1. More...
 
UINT32 lineCount
 Total number of lines. More...
 

Detailed Description

Overall metrics associated with text after layout. All coordinates are in device independent pixels (DIPs).

Member Data Documentation

◆ height

FLOAT DWRITE_TEXT_METRICS::height

The height of the formatted text. The height of an empty string is determined by the size of the default font's line height.

◆ layoutHeight

FLOAT DWRITE_TEXT_METRICS::layoutHeight

Initial height given to the layout. Depending on the length of the text, it may be larger or smaller than the text content height.

◆ layoutWidth

FLOAT DWRITE_TEXT_METRICS::layoutWidth

Initial width given to the layout. Depending on whether the text was wrapped or not, it can be either larger or smaller than the text content width.

◆ left

FLOAT DWRITE_TEXT_METRICS::left

Left-most point of formatted text relative to layout box (excluding any glyph overhang).

◆ lineCount

UINT32 DWRITE_TEXT_METRICS::lineCount

Total number of lines.

◆ maxBidiReorderingDepth

UINT32 DWRITE_TEXT_METRICS::maxBidiReorderingDepth

The maximum reordering count of any line of text, used to calculate the most number of hit-testing boxes needed. If the layout has no bidirectional text or no text at all, the minimum level is 1.

◆ top

FLOAT DWRITE_TEXT_METRICS::top

Top-most point of formatted text relative to layout box (excluding any glyph overhang).

◆ width

FLOAT DWRITE_TEXT_METRICS::width

The width of the formatted text ignoring trailing whitespace at the end of each line.

◆ widthIncludingTrailingWhitespace

FLOAT DWRITE_TEXT_METRICS::widthIncludingTrailingWhitespace

The width of the formatted text taking into account the trailing whitespace at the end of each line.


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