12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTint (*XESetCreateFont(display, extension, proc))( )Display *display;int extension;int (*proc)( );displayextensionprocSpecifies the connection to the X server.Specifies the extension number.Specifies the procedure to call when a font is created.The XESetCreateFont function defines a procedure to be called whenever XLoadQueryFontand XQueryFont are called. It returns any previously defined procedure, usually NULL.When XLoadQueryFont or XQueryFont is called, your procedure is called with these arguments:(*proc)(display, fs, codes)Display *display;XFontStruct *fs;XExtCodes *codes;int (*XESetFreeFont(display, extension, proc))( )Display *display;int extension;int (*proc)( );displayextensionprocSpecifies the connection to the X server.Specifies the extension number.Specifies the procedure to call when a font is freed.The XESetFreeFont function defines a procedure to be called whenever XFreeFont is called. Itreturns any previously defined procedure, usually NULL.When XFreeFont is called, your procedure is called with these arguments:(*proc)(display, fs, codes)Display *display;XFontStruct *fs;XExtCodes *codes;The XESetWireToEvent and XESetEventToWire functions allow you to define new events tothe library. An XEvent structure always has a type code (type int) asthe first component. Thisuniquely identifies what kind of event it is. The second component is always the serial number(type unsigned long) ofthe last request processed by the server. The third component is alwaysaBoolean (type Bool) indicating whether the event came from a SendEvent protocol request.The fourth component is always a pointer to the display the event was read from. The fifth componentis always a resource ID of one kind or another, usually a window, carefully selected to be443

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!