XAllocSizeHints()XAllocSizeHints()NameXAllocSizeHints – allocate an XSizeHints structure.
Synopsis
XSizeHints *XAllocSizeHints( )
Returns
The allocated structure.
Availability
Release 4 and later.
DescriptionXAllocSizeHints() allocates and returns a pointer to an XSizeHints
structure, for use in calling XSetWMProperties(), XSetWMNormalHints(),
or XGetWMNormalHints(). Note that all fields in the XSizeHints struc‐
ture are initially set to zero. If insufficient memory is available,
XAllocSizeHints() 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 {
long flags; /* marks which fields in this structure are defined */
int x, y; /* Obsolete */
int width, height; /* Obsolete */
int min_width, min_height;
int max_width, max_height;
int width_inc, height_inc;
struct {
int x; /* numerator */
int y; /* denominator */
} min_aspect, max_aspect;
int base_width, base_height;
int win_gravity;
} XSizeHints;
See AlsoXGetWMNormalHints(), XSetWMNormalHints(), XSetWMProperties().
Xlib - Window Manager Hints XAllocSizeHints()