WINDOW(3L)

NAME
window: reshape, move, top, bottom, current, delete - window operations

SYNOPSIS
#include <dmd.h>

int reshape (r)

int move (p)

void top ( )

void bottom ( )

void current ( )

void delete ( )

Rectangle r;
Point p;

DESCRIPTION
The reshape function changes the size and/or position of the window in which the process is running. This will change the value of Drect and display. The reshape function will fail and do nothing if the given rectangle lies outside of the screen or is smaller than 32x32. It may also fail because of insufficient memory. On failure, reshape will reshape the window back to its original size or to 32x32. When successful, P->state is updated, and 1 is returned. Otherwise, 0 is returned.

The move function moves the process's window so that display.origin lies at the given point. It will fail and do nothing if p lies outside of the screen or there isn't enough memory. When successful, P->state is updated, and 1 is returned. Otherwise, 0 is returned.

The top function brings the window to the top so that it is not obscured by any other window. As its opposite, the bottom function puts the window on the bottom so that every window it overlapped will now obscure it.

The current function makes the process's window current. This directs the keyboard and mouse input to the process.

The delete function deletes the process and its window. This is the same as exit, only the window is also removed. The delete function will fail if the window is the last one connected to a host.

SEE ALSO
exit(3R), globals(3R), state(3R).