Castle Game Engine: CastleXlib

# Unit CastleXlib
Description | Uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables
## 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 Xlib X XUtil SysUtils CastleUtils ## Overview ### Classes, Interfaces, Objects and Records
Name | Description
--- | ---
Class `EXlibError` |
### 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
`XBool = Xlib.TBool;`
`TXStandardColormap_Array = array [0..High(Word)] of TXStandardColormap;`
`PXStandardColormap_Array = ˆTXStandardColormap_Array;`
### Constants
`XlibDLL = 'libX11.so';`
`XmuDLL = 'libXmu.so';`
`XBool_true = 1 ;`
`XBool_false = 0 ;`
## 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
`XBool = Xlib.TBool;`
`TXStandardColormap_Array = array [0..High(Word)] of TXStandardColormap;`
`PXStandardColormap_Array = ˆTXStandardColormap_Array;`
### Constants
`XlibDLL = 'libX11.so';`
`XmuDLL = 'libXmu.so';`
`XBool_true = 1 ;`
`XBool_false = 0 ;`
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:15