Xlib
| Xlib | |
|---|---|
| Basisdaten
| |
| Hauptentwickler | X.Org Foundation |
| Entwickler | X.Org Foundation |
| Erscheinungsjahr | 1985 |
| Aktuelle Version | 1.8.13[1] (7. Februar 2026) |
| Betriebssystem | GNU/Linux, BSD-Betriebssystem, Unix-ähnliches System |
| Programmiersprache | C |
| Kategorie | Programmbibliothek |
| Lizenz | ? |
| www.x.org, documentation: x.org/xlib (PDF; 2,7 MB) | |

Xlib ist eine Programmbibliothek unter anderem für das Zeichnen grafischer Benutzeroberflächen über das X Window System auf unixoiden Systemen. Sie regelt als Client-Bibliothek für das X-Window-Protokoll im X Window System die Interaktion von Clients mit einem X-Server. Sie stellt Transaktionen des X-Window-Protokolls über Funktionsaufrufe in der Programmiersprache C zur Verfügung. Diese Funktionen schaffen eine Abstraktion, mit der das Programmieren ermöglicht wird, ohne sich um Details des Protokolls kümmern zu müssen. Wenige Anwendungen nutzen die Bibliothek direkt, stattdessen wird meist auf andere Bibliotheken zurückgegriffen, die die Xlib-Funktionen nutzen, um Widgets zur Verfügung zu stellen, wie zum Beispiel die X11-Versionen der GUI-Toolkits Motif, Qt, FLTK, XForms oder GTK.
Die Wayland-Versionen der Widget-Toolkits Clutter, GTK+, Qt, SDL[2] und EFL verwenden XLib nicht mehr, sondern libwayland-client.
Die Xlib erschien erstmals 1985 und ist immer noch für die grafischen Benutzeroberflächen vieler Anwendungsprogramme in Benutzung. Eine Alternative ist die Bibliothek XCB, bei der insbesondere Wert auf eine gesteigerte Effizienz gelegt wird. Xlib wird zudem für die Erstellung von sog. Window Managern verwendet. Unter macOS existiert Apples eigene, von X11 unabhängige Weiterentwicklung namens XQuartz.
Literatur
- Adrian Nye: Xlib programming manual (= Definitive Guides to the X Window System). 3. Auflage. O’Reilly Media, 1994, ISBN 978-1-56592-002-6.
Weblinks
- Xlib-Handbuch (englisch)
Einzelnachweise
- ↑ Alan Coopersmith: [ANNOUNCE] libX11 1.8.13. 7. Februar 2026 (abgerufen am 8. Februar 2026).
- ↑ github.com
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.