XAllocIconSize()XAllocIconSize()NameXAllocIconSize – allocate an XIconSize structure.
Synopsis
XIconSize *XAllocIconSize( )
Returns
The allocated structure.
Availability
Release 4 and later.
DescriptionXAllocIconSize() allocates and returns a pointer to an XIconSize struc‐
ture, for use in calling XGetIconSizes() or XSetIconSizes(). Note that
all fields in the XIconSize structure are initially set to zero. If
insufficient memory is available, XAllocIconSize() returns NULL. To
free the memory allocated to this structure, use XFree().
The purpose of this function is to avoid compiled-in structure sizes,
so that object files will be binary compatible with later releases that
may have new members added to structures.
For more information, see Volume One, Chapter 12, Interclient Communi‐
cation.
Structures
typedef struct {
int min_width, min_height;
int max_width, max_height;
int width_inc, height_inc;
} XIconSize;
See AlsoXGetIconSizes(), XSetIconSizes().
Xlib - Window Manager Hints XAllocIconSize()