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

maxsize Subroutine

Purpose

Specifies the maximum size of a window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void maxsize(Int32 x, Int32 y)

FORTRAN Syntax

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

Description

The maxsize subroutine specifies the maximum size (in pixels) of a window. It is called at the beginning of a graphics program, but only takes effect when the winopen subroutine is called.

The maxsize subroutine can also be called in conjunction with the winconstraints subroutine to modify the enforced maximum size after the window is created. The default maximum size is 1280 pixels wide and 1024 pixels high. The window can be reshaped, but cannot become larger than the specified maximum size.

With the maxsize subroutine, the programmer can prevent the user from resizing a window to a size larger than the specified size.

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

Parameters

x Specifies the maximum width in pixels of a window.
y Specifies the maximum height in pixels of a 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

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 size of a window icon with the iconsize subroutine.

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

Constraining the size of a window with the prefsize 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 ]