XtMakeGeometryRequest, XtMakeResizeRequest − make geometry manager request


XtGeometryResult XtMakeGeometryRequest(Widget w, XtWidgetGeometry *request, XtWidgetGeometry *reply_return);

XtGeometryResult XtMakeResizeRequest(Widget w, Dimension width, height, Dimension *width_return, Dimension *height_return);



Returns the allowed widget size or may be NULL if the requesting widget is not interested in handling XtGeometryAlmost.


Specifies the desired widget geometry (size, position, border width, and stacking order).


Specifies the widget that is making the request.


Return the allowed widget width and height.


Depending on the condition, XtMakeGeometryRequest performs the following:

If the widget is unmanaged or the widget’s parent is not realized, it makes the changes and returns XtGeometryYes.

If the parent is not a subclass of compositeWidgetClass or the parent’s geometry_manager is NULL, it issues an error.

If the widget’s being_destroyed field is True, it returns XtGeometryNo.

If the widget x, y, width, height and border_width fields are all equal to the requested values, it returns XtGeometryYes; otherwise, it calls the parent’s geometry_manager procedure with the given parameters.

If the parent’s geometry manager returns XtGeometryYes and if XtCWQueryOnly is not set in the request_mode and if the widget is realized, XtMakeGeometryRequest calls the XConfigureWindow Xlib function to reconfigure the widget’s window (set its size, location, and stacking order as appropriate).

If the geometry manager returns XtGeometryDone, the change has been approved and actually has been done. In this case, XtMakeGeometryRequest does no configuring and returns XtGeometryYes. XtMakeGeometryRequest never returns XtGeometryDone.

Otherwise, XtMakeGeometryRequest returns the resulting value from the parent’s geometry manager.

Children of primitive widgets are always unmanaged; thus, XtMakeGeometryRequest always returns XtGeometryYes when called by a child of a primitive widget.

The XtMakeResizeRequest function, a simple interface to XtMakeGeometryRequest, creates a XtWidgetGeometry structure and specifies that width and height should change. The geometry manager is free to modify any of the other window attributes (position or stacking order) to satisfy the resize request. If the return value is XtGeometryAlmost, width_return and height_return contain a compromise width and height. If these are acceptable, the widget should immediately make an XtMakeResizeRequest and request that the compromise width and height be applied. If the widget is not interested in XtGeometryAlmost replies, it can pass NULL for width_return and height_return.


XtConfigureWidget(3Xt), XtQueryGeometery(3Xt)
X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface

More Linux Commands

irxevent(1) - infrared X-event sender - Linux manual page...
Irxevent is a program that I wrote to send button clicks and key presses to X applications triggered by a LIRC driven remote control. You can control your favor

glTexGeni(3gl) - control the generation of texture coordinat
glTexGen selects a texture-coordinate generation function or supplies coefficients for one of the functions. coord names one of the (s, t, r, q) texture coordin

XpEndJob(3x) - Indicates the ending of a single print job.
XpEndJob signals the end of a print job. Any accumulated print data that remains is either sent to the printer or made available to XpGetDocumentData. For clien

XCreateBitmapFromData(3) - manipulate bitmaps (Man Page)....
The XReadBitmapFile function reads in a file containing a bitmap. The file is parsed in the encoding of the current locale. The ability to read other than the s

strcpy(3) - copy a string (Library - Linux man page)........
The strcpy() function copies the string pointed to by src, including the terminating null byte (\0), to the buffer pointed to by dest. The strings may not overl

jbigtopnm(1) - JBIG to PNM image file converter (Man Page)
This program is part of Netpbm(1) jbigtopnm reads a JBIG bi-level image entity (BIE) from a file or standard input, decompresses it, and outputs a PBM or PGM fi

mpt-status(8) - retrieve configuration and health status fro
The mpt-status software is a query tool to access the running configuration and status of LSI SCSI HBAs. mpt-status allows you to monitor the health and status

getdate_err(3) - convert a date-plus-time string to broken-d
The function getdate() converts a string representation of a date and time, contained in the buffer pointed to by string, into a broken-down time. The broken-do

sasl_user_exists(3) - Check if a user exists on server......
sasl_user_exists will check if a user exists on the server. conn a connection context service Service name or NULL (for service name of connection context) user

Tk_GetRelief(3) - translate between strings and relief value
Tk_GetReliefFromObj places in *reliefPtr the relief value corresponding to the value of objPtr. This value will be one of TK_RELIEF_FLAT, TK_RELIEF_RAISED, TK_R

FcDirCacheLoadFile(3) - load a cache file - Linux man page
This function loads a directory cache from cache_file. If file_stat is non-NULL, it will be filled with the results of stat(2) on the cache file. VERSION Fontco

tc-ematch(8) extended matches for use with basic or flow fil
Simple comparison ematch: arithmetic compare of packet data to a given value. A full list of meta attributes can be obtained via # tc filter add dev eth1 bas...

We can't live, work or learn in freedom unless the software we use is free.