Linux Manuals session 3

Section 3: library functions

  • |

    XFreePixmap (3) Linux Manual Page

    XCreatePixmap, XFreePixmap – create or destroy pixmaps Syntax Pixmap XCreatePixmap(Display *display, Drawable d, unsigned int width, unsigned int height, unsigned int depth); int XFreePixmap(Display *display, Pixmap pixmap); Arguments d 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…

  • |

    XFreeModifierMap (3) Linux Manual Page

    XChangeKeyboardMapping, XGetKeyboardMapping, XDisplayKeycodes, XSetModifierMapping, XGetModifierMapping, XNewModifiermap, XInsertModifiermapEntry, XDeleteModifiermapEntry, XFreeModifiermap, XModifierKeymap – manipulate keyboard encoding and keyboard encoding structure Syntax int 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…

  • |

    XFreeGC (3) Linux Manual Page

    XCreateGC, XCopyGC, XChangeGC, XGetGCValues, XFreeGC, XGContextFromGC, XGCValues – create or free graphics contexts and graphics context structure Syntax GC 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…

  • |

    XFreeFontSet (3) Linux Manual Page

    XCreateFontSet, XFreeFontSet – create and free an international text drawing font set Syntax XFontSet 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); Arguments display 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…

  • |

    XFreeFontPath (3) Linux Manual Page

    XSetFontPath, XGetFontPath, XFreeFontPath – set, get, or free the font search path Syntax int XSetFontPath(Display *display, char **directories, int ndirs); char **XGetFontPath(Display *display, int *npaths_return); int XFreeFontPath(char **list); Arguments directories 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…

  • |

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

  • |

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

  • |

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

  • |

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

  • |

    XFreeEventData (3) Linux Manual Page

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

  • |

    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…

  • |

    XFreeCursor (3) Linux Manual Page

    XRecolorCursor, XFreeCursor, XQueryBestCursor – manipulate cursors Syntax int 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); Arguments background_color Specifies the RGB values for the background of the source. cursor Specifies the cursor. d…

  • |

    XFreeColors (3) Linux Manual Page

    XAllocColor, XAllocNamedColor, XAllocColorCells, XAllocColorPlanes, XFreeColors – allocate and free colors Syntax Status 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,…

  • |

    XFreeColormap (3) Linux Manual Page

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

  • |

    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)…

  • |

    XForceScreenSaver (3) Linux Manual Page

    XSetScreenSaver, XForceScreenSaver, XActivateScreenSaver, XResetScreenSaver, XGetScreenSaver – manipulate the screen saver Syntax int XSetScreenSaver(Display *display, int timeout, int interval, int prefer_blanking, int allow_exposures); int XForceScreenSaver(Display *display, int mode); int XActivateScreenSaver(Display *display); int XResetScreenSaver(Display *display); int XGetScreenSaver(Display *display, int *timeout_return, int *interval_return, int *prefer_blanking_return, int *allow_exposures_return); Arguments allow_exposures Specifies the screen save control values. You can pass…

  • |

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

  • |

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

  • |

    XFontSetExtents (3) Linux Manual Page

    XFontSetExtents – XFontSetExtents structure Structures The XFontSetExtents structure contains: typedef struct {         XRectangle max_ink_extent;      /* over all drawable characters */         XRectangle max_logical_extent;  /* over all drawable characters */ } XFontSetExtents; The XRectangle structures used to return font set metrics are the usual Xlib screen-oriented rectangles with x, y giving the upper left corner, and width and height always positive. The max_ink_extent…