Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmwidgetgetdisplayrect(3x) [osf1 man page]

XmWidgetGetDisplayRect(3X)												XmWidgetGetDisplayRect(3X)

NAME
XmWidgetGetDisplayRect - Retrieves display rectangle information for a widget SYNOPSIS
#include <Xm/Xm.h> Boolean XmWidgetGetDisplayRect (widget, displayrect) Widget widget; XRectangle *displayrect; DESCRIPTION
XmWidgetGetDisplayRect returns the width, height and the x and y coordinates of the upper left corner of the display rectangle of the spec- ified widget. The display rectangle is the smallest rectangle that encloses either a string or a pixmap. If the widget contains a string, the return values specify the x and y coordinates of the upper left corner of the display rectangle rela- tive to the origin of the widget and the width and height in pixels. In the case of a pixmap, the return values specify the x and y coordinates of the upper left corner of the pixmap relative to the origin, and the width and height of the pixmap in pixels. Specifies the widget ID Specifies a pointer to an XRectangle structure in which the x and y coordinates, width and height of the display rectangle are returned RETURN VALUE
Returns True if the specified widget has an associated display rectangle; otherwise, returns False. SEE ALSO
XmWidgetGetBaselines(3X) XmWidgetGetDisplayRect(3X)

Check Out this Related Man Page

XmListPosToBounds(3X)													     XmListPosToBounds(3X)

NAME
XmListPosToBounds - A List function that returns the bounding box of an item at a specified position in a list SYNOPSIS
#include <Xm/List.h> Boolean XmListPosToBounds (widget, position, x, y, width, height) Widget widget; int position; Position *x; Position *y; Dimension *width; Dimension *height; DESCRIPTION
XmListPosToBounds returns the coordinates of an item within a list and the dimensions of its bounding box. The function returns the asso- ciated x and y coordinates of the upper left corner of the bounding box relative to the upper left corner of the List widget, as well as the width and the height of the box. The caller can pass a NULL value for the x, y, width, or height parameters to indicate that the return value for that parameter is not requested. Specifies the ID of the List widget. Specifies the position of the specified item. A value of 1 indicates the first item in the list; a value of 2 indicates the second item; and so on. A value of 0 specifies the last item in the list. Specifies a pointer to the returned x coordinate of the item. Specifies the pointer to the returned y coordinate of the item. Specifies the pointer to the returned width of the item. Specifies the pointer to the returned height of the item. For a complete definition of List and its associated resources, see XmList(3X). RETURN VALUE
If the item at the specified position is not visible, returns False, and the returned values (if any) are undefined. Otherwise, returns True. SEE ALSO
XmList(3X), XmListYToPos(3X) XmListPosToBounds(3X)
Man Page