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

Developer

API Reference

ITEXTCTL_SETRECT()

Brew Release
Brew MP 1.0.2
See Also
AEERect ITextCtl ITEXTCTL_GetRect
Description
Fills the AEERect data structure with the coordinates of the current bounding rectangle to determining the size of the text (but not the title). This is particularly useful after a control is created to determine its optimal/default size and position.
Note: If the property TP_FIXSETRECT is set, this function fills the AEERect data structure with the actual bounding rectangle of the control, which may not be the rectangle set using ITEXTCTL_SetRect(). If the property TP_FIXSETRECT is NOT set, this function returns the AEERect data structure which contains the coordinates of rectangle set using ITEXTCTL_SetRect().
Params
pITextCtl
[]:
pointer to the ITextCtl interface object.
prc
[]:
bounding rectangle for the text control object.
Interface
  • ITEXTCTL
Prototype
  •     void ITEXTCTL_SetRect(ITextCtl * pITextCtl, const AEERect * prc);
    
Return
  • None
Side Effect
  • None.
Comments
By default, the control rectangle of the text control object has a device screen width as width and (device screen height - text height) as height starting from the upper left corner.