X Toolkit Intrinsics
   HOME

TheInfoList



OR:

X Toolkit Intrinsics (also known as Xt, for X toolkit) is a
library A library is a collection of materials, books or media that are accessible for use and not just for display purposes. A library provides physical (hard copies) or digital access (soft copies) materials, and may be a physical location or a vi ...
that implements an API to facilitate the development of programs with a
graphical user interface The GUI ( "UI" by itself is still usually pronounced . or ), graphical user interface, is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, ins ...
(GUI) for the
X Window System The X Window System (X11, or simply X) is a windowing system for bitmap displays, common on Unix-like operating systems. X provides the basic framework for a GUI environment: drawing and moving windows on the display device and interacting wi ...
. It can be used in the C or
C++ C++ (pronounced "C plus plus") is a high-level general-purpose programming language created by Danish computer scientist Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". The language has expanded significan ...
languages. The low-level library
Xlib Xlib (also known as libX11) is an X Window System protocol client library written in the C programming language. It contains functions for interacting with an X server. These functions allow programmers to write programs without knowing the ...
is the client-side implementation of the X11 protocol. It communicates with an X server, but does not provide any function for implementing
graphical control elements Graphics () are visual images or designs on some surface, such as a wall, canvas, screen, paper, or stone, to inform, illustrate, or entertain. In contemporary usage, it includes a pictorial representation of data, as in design and manufacture, ...
("widgets"), such as
buttons A button is a fastener that joins two pieces of fabric together by slipping through a loop or by sliding through a buttonhole. In modern clothing and fashion design, buttons are commonly made of plastic but also may be made of metal, wood ...
or menus. The Xt library provides support for creating widget types, but does not provide any itself. A programmer could use the Xt library to create and use a new type of widget. Xt implemented some object oriented concepts, such as inheritance (the user could make their own button by reusing code written for another type of button), events, and callbacks. Since the graphical user interface of applications typically requires a number of widget types, most developers are reluctant to write their own, and instead prefer to use libraries such as Xaw, Motif and OLIT that provide a set of widgets. Most widely used toolkits such as
GTK GTK (formerly GIMP ToolKit and GTK+) is a free and open-source cross-platform widget toolkit for creating graphical user interfaces (GUIs). It is licensed under the terms of the GNU Lesser General Public License, allowing both free and propriet ...
and Qt do not use the Xt library. Rather, they use Xlib or
XCB XCB (''X protocol C-language Binding'') is a library implementing the client-side of the X11 display server protocol. XCB is written in the C programming language and distributed under the MIT License. The project was started in 2001 by ...
directly.


External links


''X Toolkit Intrinsics – C Language Interface''pdf
,
X.Org Foundation The X.Org Foundation is a non-profit corporation chartered to research, develop, support, organize, administrate, standardize, promote, and defend a free and open accelerated graphics stack. This includes, but is not limited to, the following p ...
*
The place of Intrinsics in X11
Professor David Marshall, Cardiff School of Computer Science,
Cardiff University , latin_name = , image_name = Shield of the University of Cardiff.svg , image_size = 150px , caption = Coat of arms of Cardiff University , motto = cy, Gwirionedd, Undod a Chytgord , mottoeng = Truth, Unity and Concord , established = 1 ...

TestXt2
Example C program that creates a Menu Bar using just Xt/Xaw * {{Widget toolkits X-based libraries C (programming language) libraries Graphics libraries