Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-Filewind_create()Window Librarywind_calc() AESSyntaxWORD wind_calc( request, kind, x1, y1, w1, h1, x2, y2, w2, h2 )
WORD request, kind, x1, y1, w1, h1;
WORD *x2, *y2, *w2, *h2;
Function wind_calc() returns size information for a specific window.
Opcode 108 (0x6C)
Availability All AESversions.
Parameters request specifies the mode of this call.
If request is WC_BORDER (0), x1, y1, w1, and h1 specify
the work area of a window of type kind. The call then fills
in the WORDs pointed to by x2, y2, w2, and h2 with the full
extent of the window.
If request is WC_WORK (1), x1, y1, w1, and h1 specify the
full extent of a window of type kind. The call fills in the
WORDs pointed to by x2, y2, w2, and h2 with the work area
of the window.
kind is a bit mask of window 'widgets' present with the
window. For a detailed listing of these elements see
wind_create().
Binding intin[0] = request;
intin[1] = kind;
intin[2] = x1;
intin[3] = y1;
intin[4] = w1;
intin[5] = h1;
crys_if(0x6C);
*x2 = intout[1];
*y2 = intout[2];
*w2 = intout[3];
*h2 = intout[4];
return intout[0];
Return Value wind_calc() returns 0 if an error occurred or non-zero
otherwise.
Comments wind_calc() is unable to calculate correct values when
a toolbar is attached to a window. This can be corrected,
though, by adjusting the values output by this function
with the height of the toolbar.
See Also wind_create()Group Window Library