home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: dave@mizar.csis.dit.csiro.au (David Campbell)
- Newsgroups: fj.mail-lists.x-window
- Subject: What are the null macros for X types?
- Message-ID: <1992Dec30.091244.1885@sm.sony.co.jp>
- Date: 30 Dec 92 09:12:44 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: CSIRO Division of Information Technology
- Lines: 27
- Approved: michael@sm.sony.co.jp
-
- Date: Wed, 30 Dec 1992 07:11:40 GMT
- Message-Id: <1992Dec30.071140.12876@csis.dit.csiro.au>
- Newsgroups: comp.windows.x
- Sender: xpert-request@expo.lcs.mit.edu
-
- 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. |
- +--------------------------------------------------------------------------+
-