ArticleslgStudy

computer science

XView

XView is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand XView rather than just read about it. In short: XView is a widget toolkit from Sun Microsystems introduced in 1988. It provides an OPEN LOOK user interface for X Window System applications, with an object-oriented application programming interface (API) for the C programming language.

XView — main illustration
XView — illustration

Key takeaways

  • XView belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect XView to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of XView from memory before moving on to harder problems.

Reference excerpt

XView is a widget toolkit from Sun Microsystems introduced in 1988. It provides an OPEN LOOK user interface for X Window System applications, with an object-oriented application programming interface (API) for the C programming language. Its interface, controls, and layouts are very close to that of the earlier SunView window system, making it easy to convert existing applications from SunView to X. Sun also produced the User Interface Toolkit (UIT), a C++ API to XView. XView provides a semi-futuristic hi-tech user interface for X Window System applications which had been standardized by a larger group of manufacturers and software companies as the "OPEN LOOK system's specification". The XView source code has been freely available since the early 1990s, making it the "first open-source professional-quality X Window System toolkit". XView was later abandoned by Sun in favor of Motif (the basis of CDE), and more recently GTK+ (the basis of GNOME). SunView was reputedly the first system to use right-button context menus, which are now ubiquitous among computer user interfaces; XView as the first "instance" for X ported the contextual concept to the X Window System. The last XView releases included true-color patches and XPM/JPEG/PNG patches for the menus and icons. Internationalization (aka. I17N) is supported, but Unicode or UTF-8/16/32 are not, simply because XView is older than them. And, of course, the open-source XView does not support DPS/NeWS/HyperTalk. In modern terms, XView is just a framework supplying a WM and demos.

XView (open-source) and modern systems Although it is possible to compile XView under modern Unix/X11 systems, it is a 32bit-only toolkit written in C89 which major modern compiler suites might refuse to compile cleanly (especially the olvwm window manager), and the massive changes introduced into many libraries make them (the libraries) incompatible to C89 code, like is the case with the GNU LibC6, although most of the current compilers offer to compile C89 code via the "-std=c89" switch. Making the altered library structures compatible with C89 code is a bit of manual labor, both by adding symlinks into the right places and a bit of changing the code which is intended to be compiled. In addition to that, restrictive system daemons like SELinux and systemd are likely to make XView exit with errors and SIGSEGV upon startup because they mess around with memory allocation and library loading in a way not compatible with the original UNIX concept.

using XView on Solaris 10 and 11 and OpenSolaris/Illumos descendants Although Sun had dropped XView from the Solaris releases starting with Solaris 10, they are available as backwards-compatibility packages called OWACOMP (OpenWindows Application COMPatibility), which have once been officially provided by Sun Microsystems. For Solaris 10 and 11 and old RedHat Enterprise Linux releases (which had been officially supported by Sun) there are mirrors of those packages available on http://sourceforge.net/projects/owacomp. Note that those feature XViev 3.3, without DPS support.

See also OLIT MoOLIT OpenWindows

References

Further reading Ian Darwin, et al, X Window System User's Guide, OPEN LOOK Edition (O'Reilly & Associates, unpublished) Volume 3OL Dan Heller, XView Programming Manual (O'Reilly & Associates, 1991) ISBN 0-937175-87-0 Volume 7 Thomas Van Raalte, ed. XView Reference Manual (O'Reilly & Associates, 1991) ISBN 0-937175-88-9 Volume 7b

Illustrations

XView: SunOS XView calctool
SunOS XView calctool
XView: X Window System graphics stack
X Window System graphics stack

Worked examples

Example 1 — a first encounter with XView

Start with the simplest possible case. Write down what XView claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to XView before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about XView ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of XView

In research
XView appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses XView in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
XView is common in secondary-school and first-year university syllabi. It links to neighbouring topics Sun Microsystems software, Widget toolkits, X-based libraries, so understanding it makes those chapters shorter.
In everyday life
Look for XView outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “XView” →

How to study XView in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what XView means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain XView out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is XView in simple terms?

XView is a widget toolkit from Sun Microsystems introduced in 1988. It provides an OPEN LOOK user interface for X Window System applications, with an object-oriented application programming interface (API) for the C programming language.

Why does XView matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study XView?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on XView.

Tags

  • Sun Microsystems software
  • Widget toolkits
  • X-based libraries

Keep exploring