Name
get_window_extentsget_window_extentsGetWindowExtentsGetWindowExtents — Information about a window's size and position.
get_window_extentsget_window_extentsGetWindowExtentsGetWindowExtentsGetWindowExtents returns the position of the upper left
corner, as well as width and height of the output window.
Size and position of a window may be modified by the window manager, without
explicit instruction in the program. Therefore the values which are returned by
get_window_extentsget_window_extentsGetWindowExtentsGetWindowExtentsGetWindowExtents may change cause of side effects.
  - Multithreading type: reentrant (runs in parallel with non-exclusive operators).
 
- Multithreading scope: global (may be called from any thread).
 
  - Processed without parallelization.
 
  
  
Row index of upper left corner of the window.
 
  
Column index of upper left corner of the window.
 
  
  
open_window(100,100,200,200,'root','visible','',WindowHandle)
fwrite_string(FileHandle, 'Move the window with the mouse!')
fnew_line(FileHandle)
repeat
get_mbutton(WindowHandle,_,_,Button)
get_window_extents(WindowHandle,Row,Column,Width,Height)
fwrite_string(FileHandle, ['(',Row,',',Column,')'])
fnew_line(FileHandle)
until(Button == 4)
 
open_window(100,100,200,200,"root","visible","",&WindowHandle) ;
fwrite_string(FileHandle,"Move the window with the mouse!") ;
fnew_line(FileHandle) ;
create_tuple(&String,1) ;
do
{
  get_mbutton(WindowHandle,NULL,NULL,&Button) ;
  get_window_extents(WindowHandle,&Row,&Column,&Width,&Height) ;
  sprintf(buf,"Row %d Col %d ",Row,Column) ;
  set_s(String,buf,0) ;
  T_fwrite_string(FileHandle, String) ;
  fnew_line(FileHandle) ;
}
while(Button < 4) ;
 
open_window(100,100,200,200,'root','visible','',WindowHandle)
fwrite_string(FileHandle, 'Move the window with the mouse!')
fnew_line(FileHandle)
repeat
get_mbutton(WindowHandle,_,_,Button)
get_window_extents(WindowHandle,Row,Column,Width,Height)
fwrite_string(FileHandle, ['(',Row,',',Column,')'])
fnew_line(FileHandle)
until(Button == 4)
 
open_window(100,100,200,200,'root','visible','',WindowHandle)
fwrite_string(FileHandle, 'Move the window with the mouse!')
fnew_line(FileHandle)
repeat
get_mbutton(WindowHandle,_,_,Button)
get_window_extents(WindowHandle,Row,Column,Width,Height)
fwrite_string(FileHandle, ['(',Row,',',Column,')'])
fnew_line(FileHandle)
until(Button == 4)
 
open_window(100,100,200,200,'root','visible','',WindowHandle)
fwrite_string(FileHandle, 'Move the window with the mouse!')
fnew_line(FileHandle)
repeat
get_mbutton(WindowHandle,_,_,Button)
get_window_extents(WindowHandle,Row,Column,Width,Height)
fwrite_string(FileHandle, ['(',Row,',',Column,')'])
fnew_line(FileHandle)
until(Button == 4)
 
If the window is valid get_window_extentsget_window_extentsGetWindowExtentsGetWindowExtentsGetWindowExtents returns 2 (H_MSG_TRUE).
If necessary an exception is raised.
open_windowopen_windowOpenWindowOpenWindowOpenWindow, 
set_drawset_drawSetDrawSetDrawSetDraw, 
set_colorset_colorSetColorSetColorSetColor, 
set_coloredset_coloredSetColoredSetColoredSetColored, 
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth
set_window_extentsset_window_extentsSetWindowExtentsSetWindowExtentsSetWindowExtents, 
open_windowopen_windowOpenWindowOpenWindowOpenWindow
Foundation