Linux Manuals session 3

Section 3: library functions

  • |

    XGetAtomName (3) Linux Manual Page

    XInternAtom, XInternAtoms, XGetAtomName, XGetAtomNames – create or return atom names SyntaxAtom XInternAtom(Display *display, char *atom_name, Bool only_if_exists); Status XInternAtoms(Display *display, char **names, int count, Bool only_if_exists, Atom *atoms_return); char *XGetAtomName(Display *display, Atom atom); Status XGetAtomNames(Display *display, Atom *atoms, int count, char **names_return);Argumentsatom Specifies the atom for the property name you want returned. atoms Specifies the…

  • |

    XGenericEventCookie (3) Linux Manual Page

    XGetEventData, XFreeEventData, XGenericEventCookie – retrieve and free additional event data through cookies. SyntaxBool XGetEventData(Display *display, XGenericEventCookie *cookie); void XFreeEventData(Display *display, XGenericEventCookie *cookie); Argumentsdisplay Specifies the connection to the X server. cookie Specifies the cookie to free or retrieve the data for. Structurestypedef struct {         int type;         unsigned long serial;         Bool send_event;         Display *display;         int extension;         int…

  • |

    XGContextFromGC (3) Linux Manual Page

    XCreateGC, XCopyGC, XChangeGC, XGetGCValues, XFreeGC, XGContextFromGC, XGCValues – create or free graphics contexts and graphics context structure SyntaxGC XCreateGC(Display *display, Drawable d, unsigned long valuemask, XGCValues *values); int XCopyGC(Display *display, GC src, unsigned long valuemask, GC dest); int XChangeGC(Display *display, GC gc, unsigned long valuemask, XGCValues *values); Status XGetGCValues(Display *display, GC gc, unsigned long valuemask,…

  • |

    XGCValues (3) Linux Manual Page

    XCreateGC, XCopyGC, XChangeGC, XGetGCValues, XFreeGC, XGContextFromGC, XGCValues – create or free graphics contexts and graphics context structure SyntaxGC XCreateGC(Display *display, Drawable d, unsigned long valuemask, XGCValues *values); int XCopyGC(Display *display, GC src, unsigned long valuemask, GC dest); int XChangeGC(Display *display, GC gc, unsigned long valuemask, XGCValues *values); Status XGetGCValues(Display *display, GC gc, unsigned long valuemask,…

  • |

    XFreeStringList (3) Linux Manual Page

    XStringListToTextProperty, XTextPropertyToStringList, XFreeStringList, XTextProperty – convert string lists and text property structure SyntaxStatus XStringListToTextProperty(char **list, int count, XTextProperty *text_prop_return); Status XTextPropertyToStringList(XTextProperty *text_prop, char ***list_return, int *count_return); void XFreeStringList(char **list);Argumentscount Specifies the number of strings. count_return Returns the number of strings. list Specifies the list of strings to be freed. list Specifies a list of null-terminated…

  • |

    XFreePixmap (3) Linux Manual Page

    XCreatePixmap, XFreePixmap – create or destroy pixmaps SyntaxPixmap XCreatePixmap(Display *display, Drawable d, unsigned int width, unsigned int height, unsigned int depth); int XFreePixmap(Display *display, Pixmap pixmap);Argumentsd Specifies which screen the pixmap is created on. depth Specifies the depth of the pixmap. display Specifies the connection to the X server. pixmap Specifies the pixmap. width height…

  • |

    XFreeModifierMap (3) Linux Manual Page

    XChangeKeyboardMapping, XGetKeyboardMapping, XDisplayKeycodes, XSetModifierMapping, XGetModifierMapping, XNewModifiermap, XInsertModifiermapEntry, XDeleteModifiermapEntry, XFreeModifiermap, XModifierKeymap – manipulate keyboard encoding and keyboard encoding structure Syntaxint XChangeKeyboardMapping(Display *display, int first_keycode, int keysyms_per_keycode, KeySym *keysyms, int num_codes); KeySym *XGetKeyboardMapping(Display *display, KeyCode first_keycode, int keycode_count, int *keysyms_per_keycode_return); int XDisplayKeycodes(Display *display, int *min_keycodes_return, int *max_keycodes_return); int XSetModifierMapping(Display *display, XModifierKeymap *modmap); XModifierKeymap *XGetModifierMapping(Display *display); XModifierKeymap *XNewModifiermap(int…

  • |

    XFreeGC (3) Linux Manual Page

    XCreateGC, XCopyGC, XChangeGC, XGetGCValues, XFreeGC, XGContextFromGC, XGCValues – create or free graphics contexts and graphics context structure SyntaxGC XCreateGC(Display *display, Drawable d, unsigned long valuemask, XGCValues *values); int XCopyGC(Display *display, GC src, unsigned long valuemask, GC dest); int XChangeGC(Display *display, GC gc, unsigned long valuemask, XGCValues *values); Status XGetGCValues(Display *display, GC gc, unsigned long valuemask,…

  • |

    XFreeFontSet (3) Linux Manual Page

    XCreateFontSet, XFreeFontSet – create and free an international text drawing font set SyntaxXFontSet XCreateFontSet(Display *display, char *base_font_name_list, char ***missing_charset_list_return, int *missing_charset_count_return, char **def_string_return); void XFreeFontSet(Display *display, XFontSet font_set);Argumentsdisplay Specifies the connection to the X server. base_font_name_list Specifies the base font names. def_string_return Returns the string drawn for missing charsets. font_set Specifies the font set. missing_charset_count_return…

  • |

    XFreeFontPath (3) Linux Manual Page

    XSetFontPath, XGetFontPath, XFreeFontPath – set, get, or free the font search path Syntaxint XSetFontPath(Display *display, char **directories, int ndirs); char **XGetFontPath(Display *display, int *npaths_return); int XFreeFontPath(char **list);Argumentsdirectories Specifies the directory path used to look for a font. Setting the path to the empty list restores the default path defined for the X server. display Specifies…

  • |

    XFreeFontNames (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…

  • |

    XFreeFontInfo (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…

  • |

    XFreeFont (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…

  • |

    XFreeExtensionList (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…

  • |

    XFreeEventData (3) Linux Manual Page

    XGetEventData, XFreeEventData, XGenericEventCookie – retrieve and free additional event data through cookies. SyntaxBool XGetEventData(Display *display, XGenericEventCookie *cookie); void XFreeEventData(Display *display, XGenericEventCookie *cookie); Argumentsdisplay Specifies the connection to the X server. cookie Specifies the cookie to free or retrieve the data for. Structurestypedef struct {         int type;         unsigned long serial;         Bool send_event;         Display *display;         int extension;         int…

  • |

    XFreeDeviceList (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…

  • |

    XFreeCursor (3) Linux Manual Page

    XRecolorCursor, XFreeCursor, XQueryBestCursor – manipulate cursors Syntaxint XRecolorCursor(Display *display, Cursor cursor, XColor *foreground_color, XColor *background_color); int XFreeCursor(Display *display, Cursor cursor); Status XQueryBestCursor(Display *display, Drawable d, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return);Argumentsbackground_color Specifies the RGB values for the background of the source. cursor Specifies the cursor. d Specifies the drawable,…

  • |

    XFreeColors (3) Linux Manual Page

    XAllocColor, XAllocNamedColor, XAllocColorCells, XAllocColorPlanes, XFreeColors – allocate and free colors SyntaxStatus XAllocColor(Display *display, Colormap colormap, XColor *screen_in_out); Status XAllocNamedColor(Display *display, Colormap colormap, char *color_name, XColor *screen_def_return, XColor *exact_def_return); Status XAllocColorCells(Display *display, Colormap colormap, Bool contig, unsigned long plane_masks_return[], unsigned int nplanes, unsigned long pixels_return[], unsigned int npixels); Status XAllocColorPlanes(Display *display, Colormap colormap, Bool contig, unsigned…

  • |

    XFreeColormap (3) Linux Manual Page

    XCreateColormap, XCopyColormapAndFree, XFreeColormap, XColor – create, copy, or destroy colormaps and color structure SyntaxColormap XCreateColormap(Display *display, Window w, Visual *visual, int alloc); Colormap XCopyColormapAndFree(Display *display, Colormap colormap); int XFreeColormap(Display *display, Colormap colormap);Argumentsalloc Specifies the colormap entries to be allocated. You can pass AllocNone or AllocAll. colormap Specifies the colormap that you want to create, copy,…

  • |

    XFree86-DGA (3) Linux Manual Page

    XDGA – Client library for the XFree86-DGA extension. Synopsis#include <X11/extensions/xf86dga.h> Bool XDGAQueryExtension( Display *dpy, int *eventBase, int *errorBase) Bool XDGAQueryVersion( Display *dpy, int *majorVersion, int *minorVersion) XDGAMode *XDGAQueryModes( Display *dpy, int screen, int *num) XDGADevice *XDGASetMode( Display *dpy, int screen, int mode) Bool XDGAOpenFramebuffer( Display *dpy, int screen) void XDGACloseFramebuffer( Display *dpy, int screen) void…