Linux Manuals session 3

Section 3: library functions

  • |

    XLookupString (3) Linux Manual Page

    XLookupKeysym, XRefreshKeyboardMapping, XLookupString, XRebindKeysym – handle keyboard input events in Latin-1 Syntax KeySym XLookupKeysym(XKeyEvent *key_event, int index); int XRefreshKeyboardMapping(XMappingEvent *event_map); int XLookupString(XKeyEvent *event_struct, char *buffer_return, int bytes_buffer, KeySym *keysym_return, XComposeStatus *status_in_out); int XRebindKeysym(Display *display, KeySym keysym, KeySym list[], int mod_count, unsigned char *string, int num_bytes); Arguments buffer_return Returns the translated characters. bytes_buffer Specifies the length…

  • |

    XLookupKeysym (3) Linux Manual Page

    XLookupKeysym, XRefreshKeyboardMapping, XLookupString, XRebindKeysym – handle keyboard input events in Latin-1 Syntax KeySym XLookupKeysym(XKeyEvent *key_event, int index); int XRefreshKeyboardMapping(XMappingEvent *event_map); int XLookupString(XKeyEvent *event_struct, char *buffer_return, int bytes_buffer, KeySym *keysym_return, XComposeStatus *status_in_out); int XRebindKeysym(Display *display, KeySym keysym, KeySym list[], int mod_count, unsigned char *string, int num_bytes); Arguments buffer_return Returns the translated characters. bytes_buffer Specifies the length…

  • |

    XLookupColor (3) Linux Manual Page

    XQueryColor, XQueryColors, XLookupColor, XParseColor – obtain color values Syntax int XQueryColor(Display *display, Colormap colormap, XColor *def_in_out); int XQueryColors(Display *display, Colormap colormap, XColor defs_in_out[], int ncolors); Status XLookupColor(Display *display, Colormap colormap, char *color_name, XColor *exact_def_return, XColor *screen_def_return); Status XParseColor(Display *display, Colormap colormap, char *spec, XColor *exact_def_return); Arguments colormap Specifies the colormap. color_name Specifies the color name…

  • |

    XLockDisplay (3) Linux Manual Page

    XInitThreads, XLockDisplay, XUnlockDisplay – multi-threading support Syntax Status XInitThreads(void); void XLockDisplay(Display *display); void XUnlockDisplay(Display *display); Arguments display Specifies the connection to the X server. Description The XInitThreads function initializes Xlib support for concurrent threads. This function must be the first Xlib function a multi-threaded program calls, and it must complete before any other Xlib call…

  • |

    XLocaleOfOM (3) Linux Manual Page

    XOpenOM, XCloseOM, XSetOMValues, XGetOMValues, XDisplayOfOM, XLocaleOfOM – open output methods Syntax XOM XOpenOM(Display *display, XrmDatabase db, char *res_name, char *res_class); Status XCloseOM(XOM om); char *XSetOMValues(XOM om); char *XGetOMValues(XOM om); Display *XDisplayOfOM(XOM om); char *XLocaleOfOM(XOM om); Arguments display Specifies the connection to the X server. db Specifies a pointer to the resource database. res_name Specifies the…

  • |

    XLocaleOfIM (3) Linux Manual Page

    XOpenIM, XCloseIM, XSetIMValues, XGetIMValues, XDisplayOfIM, XLocaleOfIM, XRegisterIMInstantiateCallback, XUnregisterIMInstantiateCallback – open, close, and obtain input method information Syntax XIM XOpenIM(Display *display, XrmDatabase db, char *res_name, char *res_class); Status XCloseIM(XIM im); char *XSetIMValues(XIM im, …); char *XGetIMValues(XIM im, …); Display *XDisplayOfIM(XIM im); char *XLocaleOfIM(XIM im); Bool XRegisterIMInstantiateCallback(Display *display, XrmDatabase db, char *res_name, char *res_class, XIDProc callback, XPointer…

  • |

    XLocaleOfFontSet (3) Linux Manual Page

    XFontsOfFontSet, XBaseFontNameListOfFontSet, XLocaleOfFontSet, XContextDependentDrawing, XContextualDrawing, XDirectionalDependentDrawing – obtain fontset information Syntax int XFontsOfFontSet(XFontSet font_set, XFontStruct ***font_struct_list_return, char ***font_name_list_return); char *XBaseFontNameListOfFontSet(XFontSet font_set); char *XLocaleOfFontSet(XFontSet font_set); Bool XContextDependentDrawing(XFontSet font_set); Bool XContextualDrawing(XFontSet font_set); Bool XDirectionalDependentDrawing(XFontSet font_set); Arguments font_set Specifies the font set. font_name_list_return Returns the list of font names. font_struct_list_return Returns the list of font structs. Description The…

  • |

    XLoadQueryFont (3) Linux Manual Page

    XLoadFont, XQueryFont, XLoadQueryFont, XFreeFont, XGetFontProperty, XUnloadFont, XCharStruct, XFontProp, XChar2b, XFontStruct – load or unload fonts and font metric structures Syntax Font XLoadFont(Display *display, char *name); XFontStruct *XQueryFont(Display *display, XID font_ID); XFontStruct *XLoadQueryFont(Display *display, char *name); int XFreeFont(Display *display, XFontStruct *font_struct); Bool XGetFontProperty(XFontStruct *font_struct, Atom atom, unsigned long *value_return); int XUnloadFont(Display *display, Font font); Arguments atom…

  • |

    XLoadFont (3) Linux Manual Page

    XLoadFont, XQueryFont, XLoadQueryFont, XFreeFont, XGetFontProperty, XUnloadFont, XCharStruct, XFontProp, XChar2b, XFontStruct – load or unload fonts and font metric structures Syntax Font XLoadFont(Display *display, char *name); XFontStruct *XQueryFont(Display *display, XID font_ID); XFontStruct *XLoadQueryFont(Display *display, char *name); int XFreeFont(Display *display, XFontStruct *font_struct); Bool XGetFontProperty(XFontStruct *font_struct, Atom atom, unsigned long *value_return); int XUnloadFont(Display *display, Font font); Arguments atom…

  • |

    XListProperties (3) Linux Manual Page

    XGetWindowProperty, XListProperties, XChangeProperty, XRotateWindowProperties, XDeleteProperty – obtain and change window properties Syntax int XGetWindowProperty(Display *display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return); Atom *XListProperties(Display *display, Window w, int *num_prop_return); int XChangeProperty(Display *display, Window w, Atom property, Atom…

  • |

    XListPixmapFormats (3) Linux Manual Page

    ImageByteOrder, BitmapBitOrder, BitmapPad, BitmapUnit, DisplayHeight, DisplayHeightMM, DisplayWidth, DisplayWidthMM, XListPixmapFormats, XPixmapFormatValues – image format functions and macros Syntax XPixmapFormatValues *XListPixmapFormats(Display *display, int *count_return); int ImageByteOrder(Display *display); int BitmapBitOrder(Display *display); int BitmapPad(Display *display); int BitmapUnit(Display *display); int DisplayHeight(Display *display, int screen_number); int DisplayHeightMM(Display *display, int screen_number); int DisplayWidth(Display *display, int screen_number); int DisplayWidthMM(Display *display, int screen_number); Arguments…

  • |

    XListInstalledColormaps (3) Linux Manual Page

    XInstallColormap, XUninstallColormap, XListInstalledColormaps – control colormaps Syntax int XInstallColormap(Display *display, Colormap colormap); int XUninstallColormap(Display *display, Colormap colormap); Colormap *XListInstalledColormaps(Display *display, Window w, int *num_return); Arguments colormap Specifies the colormap. display Specifies the connection to the X server. num_return Returns the number of currently installed colormaps. w Specifies the window that determines the screen. Description The…

  • |

    XListInputDevices (3) Linux Manual Page

    XListInputDevices, XFreeDeviceList – list available input devices Synopsis #include <X11/extensions/XInput.h> XDeviceInfo *XListInputDevices( Display *display, int *ndevices_return); int XFreeDeviceList( XDeviceInfo *list); display Specifies the connection to the X server. ndevices_return Specifies a pointer to a variable where the number of available devices can be returned. list Specifies the list of devices to free. The XFreeDeviceList function…

  • |

    XListHosts (3) Linux Manual Page

    XAddHost, XAddHosts, XListHosts, XRemoveHost, XRemoveHosts, XSetAccessControl, XEnableAccessControl, XDisableAccessControl, XHostAddress, XServerInterpretedAddress – control host access and host control structure Syntax int XAddHost(Display *display, XHostAddress *host); int XAddHosts(Display *display, XHostAddress *hosts, int num_hosts); XHostAddress *XListHosts(Display *display, int *nhosts_return, Bool state_return); int XRemoveHost(Display *display, XHostAddress *host); int XRemoveHosts(Display *display, XHostAddress *hosts, int num_hosts); int XSetAccessControl(Display *display, int mode);…

  • |

    XListFontsWithInfo (3) Linux Manual Page

    XListFonts, XFreeFontNames, XListFontsWithInfo, XFreeFontInfo – obtain or free font names and information Syntax char **XListFonts(Display *display, char *pattern, int maxnames, int *actual_count_return); int XFreeFontNames(char *list[]); char **XListFontsWithInfo(Display *display, char *pattern, int maxnames, int *count_return, XFontStruct **info_return); int XFreeFontInfo(char **names, XFontStruct *free_info, int actual_count); Arguments actual_count Specifies the actual number of font names. actual_count_return Returns the…

  • |

    XListFonts (3) Linux Manual Page

    XListFonts, XFreeFontNames, XListFontsWithInfo, XFreeFontInfo – obtain or free font names and information Syntax char **XListFonts(Display *display, char *pattern, int maxnames, int *actual_count_return); int XFreeFontNames(char *list[]); char **XListFontsWithInfo(Display *display, char *pattern, int maxnames, int *count_return, XFontStruct **info_return); int XFreeFontInfo(char **names, XFontStruct *free_info, int actual_count); Arguments actual_count Specifies the actual number of font names. actual_count_return Returns the…

  • |

    XListExtensions (3) Linux Manual Page

    XQueryExtension, XListExtensions, XFreeExtensionList – list available extensions Syntax Bool XQueryExtension(display, name, major_opcode_return, first_event_return, first_error_return) char **XListExtensions(display, nextensions_return) XFreeExtensionList(list) Arguments display Specifies the connection to the X server. name Specifies the extension name. major_opcode_return Returns the major opcode. first_event_return Returns the first event code, if any. first_error_return Returns the first error code, if any. nextensions_return Returns…

  • |

    XListDeviceProperties (3) Linux Manual Page

    XListDeviceProperties – List a device’s properties. Synopsis #include <X11/extensions/XInput.h> Atom* XListDeviceProperties( Display *display, XDevice *device, int *nprops_return); display Specifies the connection to the X server. device The device to list the properties for. nprops_return Specifies the number of Atoms returned. Description The XListDeviceProperties function returns a list of the properties associated with the input device…

  • |

    XListDepths (3) Linux Manual Page

    AllPlanes, BlackPixel, WhitePixel, ConnectionNumber, DefaultColormap, DefaultDepth, XListDepths, DefaultGC, DefaultRootWindow, DefaultScreenOfDisplay, DefaultScreen, DefaultVisual, DisplayCells, DisplayPlanes, DisplayString, XMaxRequestSize, XExtendedMaxRequestSize, LastKnownRequestProcessed, NextRequest, ProtocolVersion, ProtocolRevision, QLength, RootWindow, ScreenCount, ScreenOfDisplay, ServerVendor, VendorRelease – Display macros and functions Syntax unsigned long AllPlanes; unsigned long BlackPixel(Display *display, int screen_number); unsigned long WhitePixel(Display *display, int screen_number); int ConnectionNumber(Display *display); Colormap DefaultColormap(Display *display, int…

  • |

    XKillClient (3) Linux Manual Page

    XSetCloseDownMode, XKillClient – control clients Syntax int XSetCloseDownMode(Display *display, int close_mode); int XKillClient(Display *display, XID resource); Arguments close_mode Specifies the client close-down mode. You can pass DestroyAll, RetainPermanent, or RetainTemporary. display Specifies the connection to the X server. resource Specifies any resource associated with the client that you want to destroy or AllTemporary. Description The…