Functions | |
short | mt_wind_calc (short Type, short Parts, short InX, short InY, short InW, short InH, short *OutX, short *OutY, short *OutW, short *OutH, short *global_aes) |
short | mt_wind_close (short WindowHandle, short *global_aes) |
short | mt_wind_create (short Parts, short Wx, short Wy, short Ww, short Wh, short *global_aes) |
short | mt_wind_delete (short WindowHandle, short *global_aes) |
short | mt_wind_draw (short WindowHandle, short startob, short *global_aes) |
short | mt_wind_find (short X, short Y, short *global_aes) |
short | mt_wind_get (short WindowHandle, short What, short *W1, short *W2, short *W3, short *W4, short *global_aes) |
short | mt_wind_new (short *global_aes) |
short | mt_wind_open (short WindowHandle, short Wx, short Wy, short Ww, short Wh, short *global_aes) |
short | mt_wind_set (short WindowHandle, short What, short W1, short W2, short W3, short W4, short *global_aes) |
short | mt_wind_update (short Code, short *global_aes) |
short | mt_wind_calc_grect (short Type, short Parts, const GRECT *In, GRECT *Out, short *global_aes) |
short | mt_wind_create_grect (short Parts, const GRECT *r, short *global_aes) |
short | mt_wind_get_grect (short WindowHandle, short What, GRECT *r, short *global_aes) |
short | mt_wind_open_grect (short WindowHandle, const GRECT *r, short *global_aes) |
short | mt_wind_set_grect (short WindowHandle, short What, const GRECT *r, short *global_aes) |
short | mt_wind_set_str (short WindowHandle, short What, const char *str, short *global_aes) |
The Window Library is responsible for the displaying and maintenance of AES windows.
|
returns size information for a specific window.
If Type is WC_WORK (1), InX, InY, InW, and InH specify the full extent of a window of type Parts. The call fills in the WORDs pointed to by OutX, OutY, OutW, and OutH with the work area of the window. mt_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. |
|
returns size information for a specific window.
|
|
removes a window from the display screen.
|
|
initializes a new window structure and allocates any necessary memory.
A window is not actually displayed on screen with this call, you need to call mt_wind_open() to do that. The desktop was limited to four windows. The AES actually allowed seven windows. As of MultiTOS the number of open windows is limited only by memory and the capabilities of an application. You should ensure that your application calls a mt_wind_delete() for each mt_wind_create(), otherwise memory may not be deallocated when your application exits. |
|
initializes a new window structure and allocates any necessary memory.
|
|
destroys the specified window and releases any memory allocated for it.
|
|
Draws the Non-Client-Area (window widgets) of a window and checks the list of rectangles of the window specified.
|
|
returns the handle of the window found at the given coordinates.
|
|
returns various information about a window.
|
|
returns various information about a window.
|
|
closes and deletes all of the application's windows. In addition, the state of mt_wind_update(), and the mouse pointer hide count is reset.
|
|
opens the window specified.
|
|
opens the window specified.
|
|
sets various window attributes.
|
|
sets various window attributes.
the fields x, y, w and h of r are respectively sent in place of the parameters w1, w2, w3 and w4 of mt_wind_set(). |
|
sets various window attributes.
the str pointer (32 bits) is sent in place of the two first parameters w1 (most significant word of str) and w2 (less significant word of str) of mt_wind_set(). Parameters w3 and w4 of mt_wind_set() are undefined. |
|
manages the screen drawing semaphore.
All mt_wind_update() modes nest. For instance, to release the screen semaphore, the same number of END_UPDATE calls must be received as were BEG_UPDATE calls. It it recommended that you design your application in a manner that avoids nesting these calls. Both the BEG_UPDATE and BEG_MCTRL modes should be used prior to displaying a form or popup to prevent them from being overwritten or clicks to them being sent to other applications. Always wait until after the BEG_UPDATE call to turn off the mouse cursor when updating the screen to be sure you have gained control of the screen. Applications such as slide-show viewers which require the whole screen area (and may need to change screen modes) may call mt_wind_update() with parameters of both BEG_UPDATE and BEG_MCTRL to completely lock out the screen from other applications. The application would still be responsible for saving the screen area, manipulating video modes as necessary, restoring the screen when done, and returning control of the screen to other applications with END_UPDATE and END_MCTRL. |