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

getsize Subroutine

Purpose

Returns the size of a window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void getsize(Int32 *x, Int32 *y)

FORTRAN Syntax

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

Description

The getsize subroutine returns the size of the current window. A window must be open for this subroutine to work.

Call the winopen subroutine to open a window, or the winset subroutine to choose the current window.

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

Parameters

x Specifies a pointer to the location into which to copy the width (in pixels) of the window.
y Specifies a pointer to the location into which to copy the height (in pixels) of the window.

Example

The example C language program paint.c uses the getsize subroutine to determine the size 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 position of a window with the getorigin 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 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.

Setting the current window with the winset subroutine.

Creating and Managing Windows.


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