home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!stanford.edu!ames!news.dfrf.nasa.gov!fred.dfrf.nasa.gov!todd
- From: todd@fred.dfrf.nasa.gov (Todd Vernon)
- Subject: Re: Centering X in Manager (yet again)
- Message-ID: <1993Jan27.002802.14056@news.dfrf.nasa.gov>
- Sender: news@news.dfrf.nasa.gov (Usenet news)
- Reply-To: todd@fred.dfrf.nasa.gov (Todd Vernon)
- Organization: NASA
- References: <1993Jan18.233458.3534@mercury.unt.edu> <1993Jan19.171849.22571@alex.com>
- Date: Wed, 27 Jan 1993 00:28:02 GMT
- Lines: 18
-
-
- For those really nasty widgets.........(not gadgets)
-
- void MTK_get_widget_size(widget, width, height)
- Widget widget;
- unsigned int *width;
- unsigned int *height;
- {
- XWindowAttributes wa;
-
- XGetWindowAttributes(XtDisplay(widget), XtWindow(widget), &wa);
-
- *width = wa.width;
- *height = wa.height;
- }
-
-
- -todd
-