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

iconsize Subroutine

Purpose

Specifies the icon size of a window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void iconsize(Int32 x, Int32 y)

FORTRAN Syntax

SUBROUTINE ICONSI(x, y)
integer*4 x, y

Description

The iconsize subroutine specifies the size of a window icon as x pixels by y pixels. If a window has an icon size, the window manager reshapes the window to be that size and sends a REDRAWICONIC token to the graphics queue when the user stores that window. Windows without an icon size are handled by the window manager with the appropriate default behavior.

To assign a new window an icon size, call the iconsize subroutine before opening the window. To give an existing window an icon size, use the iconsize subroutine with the winconstraints subroutine.

Any application using the iconsize subroutine should also call the qdevice subroutine to queue the tokens WINFREEZE and WINTHAW after opening the window.

In the current implementation, the iconsize subroutine does not set the size of the icon. The actual size and shape of the icon are controlled by the window manager application.

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

Parameters

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

Obtaining the size of the window with the getsize subroutine.

Specifying the title of a window icon with the icontitle 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.

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 ]