(C) 1998 AROS - The Amiga Research OS


NAME
#include <clib/intuition_protos.h>

void ScreenPosition (screen , flags , x1 , y1 , x2 , y2)

LOCATION
In IntuitionBase at offset 132

SYNOPSIS
struct Screen * screen
ULONG flags
LONG x1
LONG y1
LONG x2
LONG y2

FUNCTION
Move a screen to the specified position or by the specified increment. Resolution is always the screen resolution. If this move would be out of bounds, the move is clipped at these boundaries. The real new position can be obtained from LeftEdge and TopEdge of the screen's structure.

INPUTS
screen
Move this screen
flags
One of SPOS_RELATIVE, SPOS_ABSOLUTE or SPOS_MAKEVISIBLE
non
movable screens ie. screens opened with {SA_Draggable,FLASE} attribute.

SPOS_RELATIVE (or NULL) moves the screen by a delta of x1,y1.

SPOS_ABSOLUTE moves the screen to the specified position x1,y1.

SPOS_MAKEVISIBLE moves an oversized scrolling screen to make the rectangle (x1,y1),(x2,y2) visible x1,y1 - Absolute (SPOS_ABSOLUTE) or relative (SPOS_RELATIVE) coordinate

upper
left corner of rectangle (SPOS_MAKEVISIBLE) x2,y2 - Ignored with SPOS_ABSOLUTE and SPOS_RELATIVE.
Lower
right corner of rectangle with SPOS_MAKEVISIBLE.

RESULT
None.

EXAMPLE

SEE ALSO
MoveScreen(), RethinkDisplay()

NOTES
SPOS_FORCEDRAG should only be used by the owner of the screen.

BUGS

INTERNALS

HISTORY
30.01.1999 hkiel
Added empty skeletons