Determine the size of a window's frame
int PtWindowFrameSize( PtConnectionClient_t *client,
PtWidget_t *widget,
PhRect_t *rect );
ph
This function determines the size of the frame for the window pointed to by widget. The results are stored in the PhRect_t structure pointed to by rect; each member gives the size of a different part of the frame:
| Member | Part of frame |
|---|---|
| ul.y | Top |
| lr.y | Bottom |
| ul.x | Left |
| lr.x | Right |
The client argument can be a current connection to the window manager, or NULL to create a temporary connection.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PhRect_t, PtCalcCanvas(), PtWidgetArea(), PtWidgetDim(), PtWidgetExtent()
Window Management chapter of the Photon Programmer's Guide