home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!dubhe.anu.edu.au!csis!mizar!dave
- From: dave@mizar.csis.dit.csiro.au (David Campbell)
- Subject: What are the null macros for X types?
- Message-ID: <1992Dec30.071140.12876@csis.dit.csiro.au>
- Sender: dave@mizar (David Campbell)
- Nntp-Posting-Host: mizar
- Organization: CSIRO Division of Information Technology
- Date: Wed, 30 Dec 1992 07:11:40 GMT
- Lines: 22
-
- X defines many types (eg Display, Window, Pixmap, Colormap). Some of these
- types are used as pointers (eg Display), but others are actually unsigned
- longs (eg Window, Pixmap, Colormap).
-
- Is XCreateWindow guaranteed to never return 0? I can't seem to find any detail
- of such semantics; otherwise I would assume that an acceptable null value for
- a window is 0. Is there a macro which can be used instead of hardcoding 0? There seem to be a handful of macros like NULL, None, etc but I don't know
- which to use and NULL seems inappropriate because a Window is not a pointer.
-
- Thanks,
- --
- +--------------------------------------------------+-----------------------+
- | Dave Campbell | UNIX & C++ |
- | Phone: + 61 6 275 0944 Fax: + 61 6 257 1052 | _--_|\ PLEASE |
- | CSIRO Division of Information Technology | / \ |
- | Centre for Spatial Information Systems | \_.--._/ <- Canberra |
- | PO BOX 664 | v |
- | CANBERRA ACT 2601 +------------------------+ |
- | AUSTRALIA | dave@csis.dit.csiro.au | |
- +-------------------------+------------------------+-----------------------+
- | Get right.....or get left. |
- +--------------------------------------------------------------------------+
-