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

winconstraints Subroutine

Purpose

Binds window constraints to the current window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void winconstraints( )

FORTRAN Syntax

SUBROUTINE WINCON

Description

The winconstraints subroutine binds the specified constraints to the current window. Because this subroutine assumes the existence of a current window, the winopen subroutine must be called before the winconstraints subroutine.

The values of the window constraints are set by using the following subroutines:

After binding these constraints to a window, the winconstraints subroutine resets the specified window constraints to their default values. Thus, to reset and bind the current constraints, call the winconstraints subroutine twice in a row.

The changes made to window attributes (whether actual constraints imposed by the maxsize and minsize subroutines, or limits only suggested by the prefsize and prefposition subroutines) are bound to the window and take effect immediately.

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

Example

To set the current window's aspect ratio, the example C language program colored.c calls the winconstraints subroutine after calling the keepaspect subroutine.

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.

Specifying the size of a window icon with the iconsize subroutine.

Specifying the aspect ratio of a window with the keepaspect subroutine.

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

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

Removing the border from a window with the noborder subroutine.

Specifying that a program does not require a window with the noport subroutine.

Constraining the size of a window with the prefsize subroutine.

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

Creating a window with the winopen subroutine.

Creating and Managing Windows.


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