The function allocates and returns a pointer to a structure. Note that all fields in the structure are initially set to zero. If insufficient memory is available, returns NULL. To free the memory allocated to this structure, use
The function replaces the size hints for the WM_NORMAL_HINTS property on the specified window. If the property does not already exist, sets the size hints for the WM_NORMAL_HINTS property on the specified window. The property is stored with a type of WM_SIZE_HINTS and a format of 32.
can generate and errors.
The function returns the size hints stored in the WM_NORMAL_HINTS property on the specified window. If the property is of type WM_SIZE_HINTS, is of format 32, and is long enough to contain either an old (pre-ICCCM) or new size hints structure, sets the various fields of the structure, sets the supplied_return argument to the list of fields that were supplied by the user (whether or not they contained defined values), and returns a nonzero status. Otherwise, it returns a zero status.
If returns successfully and a pre-ICCCM size hints property is read, the supplied_return argument will contain the following bits:
(USPosition|USSize|PPosition|PSize|PMinSize| PMaxSize|PResizeInc|PAspect)
If the property is large enough to contain the base size and window gravity fields as well, the supplied_return argument will also contain the following bits:
PBaseSize|PWinGravity
can generate a PN BadWindow error.
The function replaces the size hints for the specified property on the named window. If the specified property does not already exist, sets the size hints for the specified property on the named window. The property is stored with a type of WM_SIZE_HINTS and a format of 32. To set a window's normal size hints, you can use the function.
can generate and errors.
The function returns the size hints stored in the specified property on the named window. If the property is of type WM_SIZE_HINTS, is of format 32, and is long enough to contain either an old (pre-ICCCM) or new size hints structure, sets the various fields of the structure, sets the supplied_return argument to the list of fields that were supplied by the user (whether or not they contained defined values), and returns a nonzero status. Otherwise, it returns a zero status. To get a window's normal size hints, you can use the function.
If returns successfully and a pre-ICCCM size hints property is read, the supplied_return argument will contain the following bits:
(USPosition|USSize|PPosition|PSize|PMinSize| PMaxSize|PResizeInc|PAspect);
If the property is large enough to contain the base size and window gravity fields as well, the supplied_return argument will also contain the following bits:
PBaseSize|PWinGravity
can generate and errors.