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

prefsize Subroutine

Purpose

Constrains the size of a window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void prefsize(Int32 x, Int32 y)

FORTRAN Syntax

SUBROUTINE PREFSI(x, y)
INTEGER*4 x, y

Description

The prefsize subroutine constrains the size, in pixels, of a window. With the prefsize subroutine, the applications programmer can prevent the user from resizing a window.

To remove constraints from a window, call the winconstraints subroutine immediately after calling the winopen subroutine. Calling winconstraints twice in a row also removes constraints from the window. Note that doing this nullifies all constraints, not just that of size.

If the prefsize subroutine call is followed by a call to the winopen subroutine, the window manager displays a window outline of the suggested size, allowing the user to position the window with the cursor.

If the prefsize subroutine call is followed by a call to the winconstraints subroutine, the current window is resized. The resizing occurs at the time of the winconstraints call; the prefsize subroutine has no effect on the current window until that time.

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

Parameters

x Specifies the width of the window in pixels.
y Specifies the height of the window in pixels.

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

Specifying pixel values to be added to a window with the fudge subroutine.

Obtaining the size of the window with the getsize subroutine.

Specifying the maximum size of a window with the maxsize subroutine.

Specifying the minimum size of a window with the minsize subroutine.

Constraining the window position and size with the prefposition subroutine.

Specifying a window size change in discrete steps with the stepunit subroutine.

Binding window constraints to the current window with the winconstraints subroutine.

Creating a window with the winopen subroutine.

Creating and Managing Windows.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]