--- Cannot embed stylesheet: [Errno 2] No such file or directory: '../../../aros.css' --->
| RA_CloseWindow() | RA_DisposeWindowObject() | RA_HandleInput() | RA_OpenWindow() |
void RA_CloseWindow(
Object * windowobj );
Closes a window previously opened with RA_OpenWindow(). The window.class object is not disposed; it can be reopened later.
windowobj - Pointer to a window.class object.
None.
BOOL RA_DisposeWindowObject(
Object * windowobj );
Closes and disposes a window.class object and all its children.
windowobj - Pointer to a window.class object.
TRUE if the object was successfully disposed.
ULONG RA_HandleInput(
Object * windowobj,
WORD * code );
Process input events for a window.class object. Call this repeatedly in your event loop until it returns WMHI_LASTMSG.
windowobj - Pointer to a window.class object. code - Pointer to a WORD to receive additional event data.
A message class identifier (WMHI_*). Returns WMHI_LASTMSG when there are no more messages to process.
Typical usage:
while ((result = RA_HandleInput(windowobj, &code)) != WMHI_LASTMSG)
{
switch (result & WMHI_CLASSMASK)
{
case WMHI_CLOSEWINDOW:
...
case WMHI_GADGETUP:
switch (result & WMHI_GADGETMASK)
{
...
}
}
}
struct Window * RA_OpenWindow(
Object * windowobj );
Opens a window previously created with WindowObject. This function sends the OM_OPEN method to the window.class object, which creates and opens the Intuition window with all child gadgets laid out.
windowobj - Pointer to a window.class object.
Pointer to the opened Intuition Window structure, or NULL on failure.
The window object must have been created with NewObject() using
WINDOW_CLASSNAME ("window.class").