NVDA Helper
In-process and lite high-speed utilities for NVDA
|
#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< long > | characterXArray |
displayModelFormatInfo_t | formatInfo |
int | direction |
HWND | hwnd |
Truncates the chunk's text so that only the text that fits in the resulting rectangle is left.
truncatePointX | the x position at which to truncate |
truncateBefore | if 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().
void displayModelChunk_t::generateXML | ( | std::wstring & | text | ) |
References appendCharToXML(), displayModelFormatInfo_t::backgroundColor, baseline, displayModelFormatInfo_t::bold, displayModelFormatInfo_t::color, direction, displayModelFormatInfo_t::fontName, displayModelFormatInfo_t::fontSize, formatInfo, hwnd, displayModelFormatInfo_t::italic, text, and displayModelFormatInfo_t::underline.
Referenced by displayModel_t::renderText().
RECT displayModelChunk_t::rect |
long displayModelChunk_t::baseline |
std::wstring displayModelChunk_t::text |
std::deque<long> displayModelChunk_t::characterXArray |
Referenced by displayModel_t::copyRectangle(), displayModel_t::insertChunk(), displayModel_t::renderText(), and truncate().
displayModelFormatInfo_t displayModelChunk_t::formatInfo |
Referenced by displayModel_t::copyRectangle(), generateXML(), and displayModel_t::insertChunk().
int displayModelChunk_t::direction |
Referenced by generateXML(), and displayModel_t::insertChunk().
HWND displayModelChunk_t::hwnd |
Referenced by generateXML(), displayModel_t::insertChunk(), and displayModel_t::renderText().