API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

WTEXTRANGE

Brew Release
Brew MP 1.0.2
See Also
IWidget_GetTextRange
Description
This structure is used to get the beginning and end positions of a text widget's text from it's underlying TextLayout object.
Members
  • nIndex      : The index to begin the search.
  • nType       : The range type to search.
  • nStartIndex : The returned start index of the search.
  • nEndIndex   : The returned end index of the search.
    
Definition
  • typedef struct {
       int   nIndex;
       int   nType;
       int   nStartIndex;
       int   nEndIndex;
    } WTextRange;
    
Comments
It is recommended you interact with this structure through the IWidget_GetTextRange function because it will automatically pack up the data for you and report any error conditions.