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

minsize Subroutine

Purpose

Specifies the minimum size of a window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void minsize(Int32 x, Int32 y)

FORTRAN Syntax

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

Description

The minsize subroutine specifies the minimum 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 minsize subroutine can also be called in conjunction with the winconstraints subroutine to modify the enforced minimum size after the window is created. The default minimum size is 40 pixels wide and 30 pixels high. The window can be reshaped, but cannot become smaller than the specified minimum size.

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

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

Parameters

x Specifies the minimum width in pixels of a window. The lowest legal value for this parameter is 21.
y Specifies the minimum height in pixels of a window. The lowest legal value for this parameter is 21.

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 maximum size of a window with the maxsize 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.


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