# cdCanvasGetTextBox

Definition: | include pGUI.e atom {xmin, xmax, ymin, ymax} = cdCanvasGetTextBox(cdCanvas canvas, atom x, y, string text) -- or -- atom {xmin, xmax, ymin, ymax} = wdCanvasGetTextBox(cdCanvas canvas, atom x, y, string text)
Description: | Returns the horizontal bounding rectangle occupied by a text at a given position.
pwa/p2js: | Not supported.
Comments: | If orientation is not 0 then its area is always larger than the area of the rectangle returned by cdCanvasGetTextBounds. Since the pGUI wrapper functions can accept integers and floats in the parameters, and return atoms or integers, there is no need for a separate cdfCanvasGetTextBox wrapper. Internally cdCanvasGetTextBox uses the cdfCanvasGetTextBox C function. [CORRECTION: well, that was the plan, but (the C) cdfCanvasGetTextBox gave me jip on 64-bit while cdCanvasGetTextBox did not.]