Get the text area of a progress bar
void PtProgressTextRect( PtWidget_t const *widget, PhRect_t *rect );
This function gets the rectangle in which text is drawn on the PtProgress pointed to by widget. The rectangle's coordinates are stored in the PhRect_t structure pointed to by rect.
PtProgress, PtProgressEntireSegment(), PtProgressFirstSegment(), PtProgressNextSegment()
PhRect_t in the Photon Library Reference