[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

winposition Subroutine

Purpose

Changes the size and position of the current window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void winposition
(Int32 x1, Int32 x2,
Int32 y1, Int32 y2)

FORTRAN Syntax

SUBROUTINE WINPOS(x1, x2, y1, y2)
INTEGER*4 x1, x2, y1, y2;

Description

The winposition subroutine repositions and resizes the current window. The window is positioned at the new location as soon as the system receives the winposition subroutine call; the reposition is not deferred to a later time. If no window is open, this subroutine has no effect.

The winposition subroutine removes the current size constraint. After the winposition subroutine has been started, the user can interactively change the position and size of the window.

The winposition subroutine does not remove the other window constraints, such as the minimum and maximum size constraints, the aspect ratio, or the stepunit.

To keep the window size constrained, use the prefposition or the prefsize subroutines to move and resize a window.

Note: This subroutine cannot be used to add to a display list.

Parameters

x1 Specifies the x-pixel screen coordinate of the first corner of the new location for the current window. The first corner is diagonally opposite the second corner.
x2 Specifies the x-pixel screen coordinate of the second corner of the new location for the current window. The second corner is diagonally opposite the first corner.
y1 Specifies the y-pixel screen coordinate of the first corner of the new location for the current window.
y2 Specifies the y-pixel screen coordinate of the second corner of the new location for the current window.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Constraining the window position and size with the prefposition subroutine.

Constraining the window size with the prefsize subroutine.

Moving the current window by its lower-left corner with the winmove subroutine.

Raising the current window on top of all other windows with the winpop subroutine.

Lowering the current window beneath all other windows with the winpush subroutine.

Creating and Managing Windows.


[ Previous | Next | Contents | Glossary | Home | Search ]