Name
get_window_extentsget_window_extentsGetWindowExtentsget_window_extentsGetWindowExtentsGetWindowExtents — Abfragen von Informationen über die Größe und Position eines Fensters.
get_window_extentsget_window_extentsGetWindowExtentsget_window_extentsGetWindowExtentsGetWindowExtents gibt die Position der linken oberen Ecke,
sowie die Breite und die Höhe des Ausgabefensters aus.
Die Größe und die Position eines Fensters können durch den Windowmanager
verändert werden, ohne dass dies vom Programm aus vorgenommen wurde. Deshalb
können sich die Werte, die get_window_extentsget_window_extentsGetWindowExtentsget_window_extentsGetWindowExtentsGetWindowExtents liefert,
durch diesen Seiteneffekt ändern.
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Zeilenindex der linken oberen Ecke des Fensters.
Spaltenindex der linken oberen Ecke des Fensters.
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)
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)
get_window_extentsget_window_extentsGetWindowExtentsget_window_extentsGetWindowExtentsGetWindowExtents liefert den Wert 2 (H_MSG_TRUE), falls das Fenster
gültig ist. Ansonsten wird eine Fehlerbehandlung durchgeführt.
open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow,
set_drawset_drawSetDrawset_drawSetDrawSetDraw,
set_colorset_colorSetColorset_colorSetColorSetColor,
set_coloredset_coloredSetColoredset_coloredSetColoredSetColored,
set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth
set_window_extentsset_window_extentsSetWindowExtentsset_window_extentsSetWindowExtentsSetWindowExtents,
open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow
Foundation