Linux Manuals session 3

Section 3: library functions

  • |

    XLocaleOfOM (3) Linux Manual Page

    XOpenOM, XCloseOM, XSetOMValues, XGetOMValues, XDisplayOfOM, XLocaleOfOM – open output methods SyntaxXOM 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);Argumentsdisplay Specifies the connection to the X server. db Specifies a pointer to the resource database. res_name Specifies the full resource name…

  • |

    XLocaleOfIM (3) Linux Manual Page

    XOpenIM, XCloseIM, XSetIMValues, XGetIMValues, XDisplayOfIM, XLocaleOfIM, XRegisterIMInstantiateCallback, XUnregisterIMInstantiateCallback – open, close, and obtain input method information SyntaxXIM 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 client_data);…

  • |

    XLocaleOfFontSet (3) Linux Manual Page

    XFontsOfFontSet, XBaseFontNameListOfFontSet, XLocaleOfFontSet, XContextDependentDrawing, XContextualDrawing, XDirectionalDependentDrawing – obtain fontset information Syntaxint 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);Argumentsfont_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.DescriptionThe XFontsOfFontSet function returns a list…

  • |

    XLoadQueryFont (3) Linux Manual Page

    XLoadFont, XQueryFont, XLoadQueryFont, XFreeFont, XGetFontProperty, XUnloadFont, XCharStruct, XFontProp, XChar2b, XFontStruct – load or unload fonts and font metric structures SyntaxFont 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);Argumentsatom Specifies the atom…

  • |

    XLoadFont (3) Linux Manual Page

    XLoadFont, XQueryFont, XLoadQueryFont, XFreeFont, XGetFontProperty, XUnloadFont, XCharStruct, XFontProp, XChar2b, XFontStruct – load or unload fonts and font metric structures SyntaxFont 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);Argumentsatom Specifies the atom…

  • |

    XListProperties (3) Linux Manual Page

    XGetWindowProperty, XListProperties, XChangeProperty, XRotateWindowProperties, XDeleteProperty – obtain and change window properties Syntaxint 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 type,…

  • |

    XListPixmapFormats (3) Linux Manual Page

    ImageByteOrder, BitmapBitOrder, BitmapPad, BitmapUnit, DisplayHeight, DisplayHeightMM, DisplayWidth, DisplayWidthMM, XListPixmapFormats, XPixmapFormatValues – image format functions and macros SyntaxXPixmapFormatValues *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);Argumentsdisplay Specifies the…

  • |

    XListInstalledColormaps (3) Linux Manual Page

    XInstallColormap, XUninstallColormap, XListInstalledColormaps – control colormaps Syntaxint XInstallColormap(Display *display, Colormap colormap); int XUninstallColormap(Display *display, Colormap colormap); Colormap *XListInstalledColormaps(Display *display, Window w, int *num_return);Argumentscolormap 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.DescriptionThe XInstallColormap function installs the specified…

  • |

    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 frees the list of available extension…

  • |

    XListHosts (3) Linux Manual Page

    XAddHost, XAddHosts, XListHosts, XRemoveHost, XRemoveHosts, XSetAccessControl, XEnableAccessControl, XDisableAccessControl, XHostAddress, XServerInterpretedAddress – control host access and host control structure Syntaxint 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); int…

  • |

    XListFontsWithInfo (3) Linux Manual Page

    XListFonts, XFreeFontNames, XListFontsWithInfo, XFreeFontInfo – obtain or free font names and information Syntaxchar **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);Argumentsactual_count Specifies the actual number of font names. actual_count_return Returns the actual number of…

  • |

    XListFonts (3) Linux Manual Page

    XListFonts, XFreeFontNames, XListFontsWithInfo, XFreeFontInfo – obtain or free font names and information Syntaxchar **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);Argumentsactual_count Specifies the actual number of font names. actual_count_return Returns the actual number of…

  • |

    XListExtensions (3) Linux Manual Page

    XQueryExtension, XListExtensions, XFreeExtensionList – list available extensions SyntaxBool XQueryExtension(display, name, major_opcode_return, first_event_return, first_error_return) char **XListExtensions(display, nextensions_return) XFreeExtensionList(list)Argumentsdisplay 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 the number of…

  • |

    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.DescriptionThe XListDeviceProperties function returns a list of the properties associated with the input device specified in device. Each device may have…

  • |

    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 Syntaxunsigned 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 screen_number);…

  • |

    XKillClient (3) Linux Manual Page

    XSetCloseDownMode, XKillClient – control clients Syntaxint XSetCloseDownMode(Display *display, int close_mode); int XKillClient(Display *display, XID resource);Argumentsclose_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.DescriptionThe XSetCloseDownMode defines what will happen…

  • |

    XKeysymToString (3) Linux Manual Page

    XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase – convert keysyms SyntaxKeySym XStringToKeysym(char *string); char *XKeysymToString(KeySym keysym); KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index); KeyCode XKeysymToKeycode(Display *display, KeySym keysym); void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return);Argumentsdisplay Specifies the connection to the X server. index Specifies the element of KeyCode vector. keycode Specifies the KeyCode. keysym Specifies the KeySym…

  • |

    XKeysymToKeycode (3) Linux Manual Page

    XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase – convert keysyms SyntaxKeySym XStringToKeysym(char *string); char *XKeysymToString(KeySym keysym); KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index); KeyCode XKeysymToKeycode(Display *display, KeySym keysym); void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return);Argumentsdisplay Specifies the connection to the X server. index Specifies the element of KeyCode vector. keycode Specifies the KeyCode. keysym Specifies the KeySym…

  • |

    XKeymapEvent (3) Linux Manual Page

    XKeymapEvent – KeymapNotify event structure StructuresThe structure for KeymapNotify events contains: /* generated on EnterWindow and FocusIn when KeymapState selected */ typedef struct {         int type;       /* KeymapNotify */         unsigned long serial;   /* # of last request processed by server */         Bool send_event;        /* true if this came from a SendEvent request */         Display *display;       /* Display the event was read from */         Window window;         char key_vector[32]; } XKeymapEvent;…

  • |

    XKeycodeToKeysym (3) Linux Manual Page

    XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase – convert keysyms SyntaxKeySym XStringToKeysym(char *string); char *XKeysymToString(KeySym keysym); KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index); KeyCode XKeysymToKeycode(Display *display, KeySym keysym); void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return);Argumentsdisplay Specifies the connection to the X server. index Specifies the element of KeyCode vector. keycode Specifies the KeyCode. keysym Specifies the KeySym…