Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwindowgetframesize.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwindowgetframesize.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwindowgetframesize.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwindowgetframesize.html on line 8
Determine the size of a window's frame
int PtWindowGetFrameSize( PtWidget_t *window,
PhRect_t *rect );
- window
- The window you want to query the size of.
- rect
- A pointer to a PhRect_t in which the function stores the
size of the window.
ph
This function determines the size of the frame for the window pointed to by
window.
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 |
- 0
- Success.
- -1
- The frame size was estimated, or an error occurred.
- EINVAL
- The widget given isn't a window.
- EOK
- The frame size is an estimate.
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
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwindowgetframesize.html on line 179
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwindowgetframesize.html on line 179