NVDA Helper
In-process and lite high-speed utilities for NVDA
displayModelChunk_t Struct Reference

#include <displayModel.h>

Public Member Functions

void truncate (int truncatePointX, BOOL truncateBefore)
 Truncates the chunk's text so that only the text that fits in the resulting rectangle is left.
 
void generateXML (std::wstring &text)
 

Public Attributes

RECT rect
 
long baseline
 
std::wstring text
 
std::deque< longcharacterXArray
 
displayModelFormatInfo_t formatInfo
 
int direction
 
HWND hwnd
 

Detailed Description

Member Function Documentation

◆ truncate()

void displayModelChunk_t::truncate ( int truncatePointX,
BOOL truncateBefore )

Truncates the chunk's text so that only the text that fits in the resulting rectangle is left.

Parameters
truncatePointXthe x position at which to truncate
truncateBeforeif true then the chunk is truncated from the left all the way up to truncation point, if false then its truncated from the point to the end.

References characterXArray, nhAssert, rect, and text.

Referenced by displayModel_t::clearRectangle(), displayModel_t::copyRectangle(), displayModel_t::insertChunk(), and displayModel_t::renderText().

◆ generateXML()

Member Data Documentation

◆ rect

◆ baseline

◆ text

◆ characterXArray

std::deque<long> displayModelChunk_t::characterXArray

◆ formatInfo

◆ direction

int displayModelChunk_t::direction

◆ hwnd

HWND displayModelChunk_t::hwnd

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