Brew MP 1.0.2
This function is used to get the beginning and end positions of a text
widget's text from it's underlying TextLayout object. Given a starting
index and a type of range to retrieve, the function will search for positions
of the text boundaries surrounding that index. If the client passes in
W_TEXT_RANGE_TYPE_WORD for the type, the function will find the start
and end word boundaries surrounding the provided index. If the client
passes in W_TEXT_RANGE_TYPE_PARAGRAPH, the function will provide the
start and end locations of the paragraph boundaries surrounding the
[in] Pointer to the text widget object.
[in] Starting index to search from for boundaries in both directions.
[in] Type of range you are requesting, either
W_TEXT_RANGE_TYPE_WORD, or W_TEXT_RANGE_TYPE_PARAGRAPH
[out] Pointer to start position of text range.
pnEndIndex [out] Pointer to end position of text range.
int IWidget_GetTextRange(IWidget* po, int nIndex, int nTextRangeType, int* pnStartIndex, int* pnEndIndex);