Unit CastleXlib
Description
Various helper things for Xlib.
In initialization of this unit we register our own Xlib ErrorHandler that doesn't halt the program in case of error. It raises EXlibError with appropriate Message. This allows to use ObjectPascal exceptions to handle Xlib errors, so we can gracefully finalize our program, or (in special cases) catch the exception etc. Default Xlib ErrorHandler was just printing error message and unconditionally stopping program, so it wasn's very nice.
In finalization of this unit we set back previous error handler.
Uses
Overview
Classes, Interfaces, Objects and Records
Functions and Procedures
function XSetStandardProperties(dpy: PDisplay; win: TWindow; window_name: pchar; icon_name: pchar; icon_pixmap: TPixmap; argv: PPChar; argc: Integer; hints: PXSizeHints): integer; cdecl; external XLibDLL; |
function XSetStandardProperties_Pascal(dpy: PDisplay; win: TWindow; window_name: pchar; icon_name: pchar; icon_pixmap: TPixmap; hints: PXSizeHints) :integer; |
procedure XSetWMProperties_Pascal(Display: PDisplay; W: TWindow; WindowName: PXTextProperty; IconName: PXTextProperty; NormalHints: PXSizeHints; WMHints: PXWMHints; ClassHints: PXClassHint); |
function XParseGeometry(parsestring: PChar; x_return, y_return: PInteger; width_return, height_return: PLongWord): integer; cdecl; external XlibDLL; |
function XmuLookupStandardColormap(dpy: PDisplay; screen: integer; AVisualid: TVisualID; depth: Longword; AProperty: TAtom; replace, retain: XBool) :TStatus; cdecl; external XmuDLL; |
Types
Constants
Description
Functions and Procedures
function XSetStandardProperties(dpy: PDisplay; win: TWindow; window_name: pchar; icon_name: pchar; icon_pixmap: TPixmap; argv: PPChar; argc: Integer; hints: PXSizeHints): integer; cdecl; external XLibDLL; |
|
function XSetStandardProperties_Pascal(dpy: PDisplay; win: TWindow; window_name: pchar; icon_name: pchar; icon_pixmap: TPixmap; hints: PXSizeHints) :integer; |
|
procedure XSetWMProperties_Pascal(Display: PDisplay; W: TWindow; WindowName: PXTextProperty; IconName: PXTextProperty; NormalHints: PXSizeHints; WMHints: PXWMHints; ClassHints: PXClassHint); |
|
function XParseGeometry(parsestring: PChar; x_return, y_return: PInteger; width_return, height_return: PLongWord): integer; cdecl; external XlibDLL; |
|
function XmuLookupStandardColormap(dpy: PDisplay; screen: integer; AVisualid: TVisualID; depth: Longword; AProperty: TAtom; replace, retain: XBool) :TStatus; cdecl; external XmuDLL; |
|
Types
TXStandardColormap_Array = array [0..High(Word)] of TXStandardColormap; |
|
Constants
Generated by PasDoc 0.13.0 on 2014-04-30 22:06:46
|