<!-- $XConsortium: WidgetGB.sgm /main/8 1996/09/08 21:21:55 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN571.rsml.1">
<RefMeta>
<RefEntryTitle>XmWidgetGetDisplayRect</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmWidgetGetDisplayRect</Function></RefName>
<RefPurpose>Retrieves display rectangle
information for a widget
<IndexTerm>
<Primary>XmWidgetGetDisplayRect</Primary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/Xm.h>
</FuncSynopsisInfo>
<FuncDef>Boolean <Function>XmWidgetGetDisplayRect</Function></FuncDef>
<!--<ParamDef><Replaceable>widget, displayrect</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
<ParamDef>XRectangle *<Parameter>displayrect</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmWidgetGetDisplayRect</Function> returns the width, height and
the x and y-coordinates of the upper left corner of the display
rectangle of the specified widget. The display rectangle
is the smallest rectangle that encloses either a string
or a pixmap.
</Para>
<Para>If the widget contains a string, the return values specify
the x and y-coordinates of the upper left corner of
the display rectangle relative to the origin of the widget
and the width and height in pixels.
</Para>
<Para>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.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">widget</Symbol></Term>
<ListItem>
<Para>Specifies the widget ID
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">displayrect</Symbol></Term>
<ListItem>
<Para>Specifies a pointer to an XRectangle structure in which the
x and y-coordinates, width and height of the display rectangle
are returned
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns True if the specified widget has an associated
display rectangle; otherwise, returns False.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmWidgetGetBaselines;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
