reaction
| RA_CloseWindow() | RA_DisposeWindowObject() | RA_HandleInput() | RA_OpenWindow() |
RA_CloseWindow()
Synopsis
void RA_CloseWindow(
Object * windowobj );
Function
Closes a window previously opened with RA_OpenWindow(). The window.class object is not disposed; it can be reopened later.
Inputs
windowobj - Pointer to a window.class object.
Result
None.
See also
RA_DisposeWindowObject()
Synopsis
BOOL RA_DisposeWindowObject(
Object * windowobj );
Function
Closes and disposes a window.class object and all its children.
Inputs
windowobj - Pointer to a window.class object.
Result
TRUE if the object was successfully disposed.
See also
RA_HandleInput()
Synopsis
ULONG RA_HandleInput(
Object * windowobj,
WORD * code );
Function
Process input events for a window.class object. Call this repeatedly in your event loop until it returns WMHI_LASTMSG.
Inputs
windowobj - Pointer to a window.class object. code - Pointer to a WORD to receive additional event data.
Result
A message class identifier (WMHI_*). Returns WMHI_LASTMSG when there are no more messages to process.
Notes
Typical usage:
while ((result = RA_HandleInput(windowobj, &code)) != WMHI_LASTMSG)
{
switch (result & WMHI_CLASSMASK)
{
case WMHI_CLOSEWINDOW:
...
case WMHI_GADGETUP:
switch (result & WMHI_GADGETMASK)
{
...
}
}
}
See also
RA_OpenWindow()
Synopsis
struct Window * RA_OpenWindow(
Object * windowobj );
Function
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.
Inputs
windowobj - Pointer to a window.class object.
Result
Pointer to the opened Intuition Window structure, or NULL on failure.
Notes
The window object must have been created with NewObject() using
WINDOW_CLASSNAME ("window.class").


