Linux Manuals session 3

Section 3: library functions

  • |

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

  • |

    XFocusChangeEvent (3) Linux Manual Page

    XFocusChangeEvent – FocusIn and FocusOut event structure Structures The structure for FocusIn and FocusOut events contains: typedef struct {         int type;       /* FocusIn or FocusOut */         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;  /* window of event */         int mode;       /* NotifyNormal, NotifyGrab, NotifyUngrab */         int…

  • |

    XFlush (3) Linux Manual Page

    XFlush, XSync, XEventsQueued, XPending – handle output buffer or event queue Syntax int XFlush(Display *display); int XSync(Display *display, Bool discard); int XEventsQueued(Display *display, int mode); int XPending(Display *display); Arguments discard Specifies a Boolean value that indicates whether XSync discards all events on the event queue. display Specifies the connection to the X server. mode Specifies…

  • |

    XFindContext (3) Linux Manual Page

    XSaveContext, XFindContext, XDeleteContext, XUniqueContext – associative look-up routines Syntax int XSaveContext(Display *display, XID rid, XContext context, XPointer data); int XFindContext(Display *display, XID rid, XContext context, XPointer *data_return); int XDeleteContext(Display *display, XID rid, XContext context); XContext XUniqueContext(void); Arguments context Specifies the context type to which the data belongs. data Specifies the data to be associated with…

  • |

    XFilterEvent (3) Linux Manual Page

    XFilterEvent – filter X events for an input method Syntax Bool XFilterEvent(XEvent *event, Window w); Arguments event Specifies the event to filter. w Specifies the window for which the filter is to be applied. Description If the window argument is None, XFilterEvent applies the filter to the window specified in the XEvent structure. The window…

  • |

    XFillRectangles (3) Linux Manual Page

    XFillRectangle, XFillRectangles, XFillPolygon, XFillArc, XFillArcs – fill rectangles, polygons, or arcs Syntax int XFillRectangle(Display *display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height); int XFillRectangles(Display *display, Drawable d, GC gc, XRectangle *rectangles, int nrectangles); int XFillPolygon(Display *display, Drawable d, GC gc, XPoint *points, int npoints, int shape, int mode);…

  • |

    XFillRectangle (3) Linux Manual Page

    XFillRectangle, XFillRectangles, XFillPolygon, XFillArc, XFillArcs – fill rectangles, polygons, or arcs Syntax int XFillRectangle(Display *display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height); int XFillRectangles(Display *display, Drawable d, GC gc, XRectangle *rectangles, int nrectangles); int XFillPolygon(Display *display, Drawable d, GC gc, XPoint *points, int npoints, int shape, int mode);…

  • |

    XFillPolygon (3) Linux Manual Page

    XFillRectangle, XFillRectangles, XFillPolygon, XFillArc, XFillArcs – fill rectangles, polygons, or arcs Syntax int XFillRectangle(Display *display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height); int XFillRectangles(Display *display, Drawable d, GC gc, XRectangle *rectangles, int nrectangles); int XFillPolygon(Display *display, Drawable d, GC gc, XPoint *points, int npoints, int shape, int mode);…

  • |

    XFillArcs (3) Linux Manual Page

    XFillRectangle, XFillRectangles, XFillPolygon, XFillArc, XFillArcs – fill rectangles, polygons, or arcs Syntax int XFillRectangle(Display *display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height); int XFillRectangles(Display *display, Drawable d, GC gc, XRectangle *rectangles, int nrectangles); int XFillPolygon(Display *display, Drawable d, GC gc, XPoint *points, int npoints, int shape, int mode);…

  • |

    XFillArc (3) Linux Manual Page

    XFillRectangle, XFillRectangles, XFillPolygon, XFillArc, XFillArcs – fill rectangles, polygons, or arcs Syntax int XFillRectangle(Display *display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height); int XFillRectangles(Display *display, Drawable d, GC gc, XRectangle *rectangles, int nrectangles); int XFillPolygon(Display *display, Drawable d, GC gc, XPoint *points, int npoints, int shape, int mode);…

  • |

    XFetchName (3) Linux Manual Page

    XSetWMName, XGetWMName, XStoreName, XFetchName – set or read a window’s WM_NAME property Syntax void XSetWMName(Display *display, Window w, XTextProperty *text_prop); Status XGetWMName(Display *display, Window w, XTextProperty *text_prop_return); int XStoreName(Display *display, Window w, char *window_name); Status XFetchName(Display *display, Window w, char **window_name_return); Arguments display Specifies the connection to the X server. text_prop Specifies the XTextProperty structure…

  • |

    XFetchBytes (3) Linux Manual Page

    XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers – manipulate cut and paste buffers Syntax int XStoreBytes(Display *display, char *bytes, int nbytes); int XStoreBuffer(Display *display, char *bytes, int nbytes, int buffer); char *XFetchBytes(Display *display, int *nbytes_return); char *XFetchBuffer(Display *display, int *nbytes_return, int buffer); int XRotateBuffers(Display *display, int rotate); Arguments buffer Specifies the buffer in which you want to…

  • |

    XFetchBuffer (3) Linux Manual Page

    XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers – manipulate cut and paste buffers Syntax int XStoreBytes(Display *display, char *bytes, int nbytes); int XStoreBuffer(Display *display, char *bytes, int nbytes, int buffer); char *XFetchBytes(Display *display, int *nbytes_return); char *XFetchBuffer(Display *display, int *nbytes_return, int buffer); int XRotateBuffers(Display *display, int rotate); Arguments buffer Specifies the buffer in which you want to…

  • |

    XF86VidModeValidateModeLine (3) Linux Manual Page

    XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions – Extension library for the XFree86-VidMode X extension Synopsis #include <X11/extensions/xf86vmode.h> Bool XF86VidModeQueryExtension( Display *display, int *event_base_return, int *error_base_return); Bool XF86VidModeQueryVersion( Display *display, int *major_version_return, int *minor_version_return); Bool XF86VidModeSetClientVersion( Display *display); Bool XF86VidModeGetModeLine(…

  • |

    XF86VidModeSwitchToMode (3) Linux Manual Page

    XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions – Extension library for the XFree86-VidMode X extension Synopsis #include <X11/extensions/xf86vmode.h> Bool XF86VidModeQueryExtension( Display *display, int *event_base_return, int *error_base_return); Bool XF86VidModeQueryVersion( Display *display, int *major_version_return, int *minor_version_return); Bool XF86VidModeSetClientVersion( Display *display); Bool XF86VidModeGetModeLine(…

  • |

    XF86VidModeSwitchMode (3) Linux Manual Page

    XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions – Extension library for the XFree86-VidMode X extension Synopsis #include <X11/extensions/xf86vmode.h> Bool XF86VidModeQueryExtension( Display *display, int *event_base_return, int *error_base_return); Bool XF86VidModeQueryVersion( Display *display, int *major_version_return, int *minor_version_return); Bool XF86VidModeSetClientVersion( Display *display); Bool XF86VidModeGetModeLine(…

  • |

    XF86VidModeSetViewPort (3) Linux Manual Page

    XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions – Extension library for the XFree86-VidMode X extension Synopsis #include <X11/extensions/xf86vmode.h> Bool XF86VidModeQueryExtension( Display *display, int *event_base_return, int *error_base_return); Bool XF86VidModeQueryVersion( Display *display, int *major_version_return, int *minor_version_return); Bool XF86VidModeSetClientVersion( Display *display); Bool XF86VidModeGetModeLine(…

  • |

    XF86VidModeSetGammaRamp (3) Linux Manual Page

    XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions – Extension library for the XFree86-VidMode X extension Synopsis #include <X11/extensions/xf86vmode.h> Bool XF86VidModeQueryExtension( Display *display, int *event_base_return, int *error_base_return); Bool XF86VidModeQueryVersion( Display *display, int *major_version_return, int *minor_version_return); Bool XF86VidModeSetClientVersion( Display *display); Bool XF86VidModeGetModeLine(…

  • |

    XF86VidModeSetGamma (3) Linux Manual Page

    XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions – Extension library for the XFree86-VidMode X extension Synopsis #include <X11/extensions/xf86vmode.h> Bool XF86VidModeQueryExtension( Display *display, int *event_base_return, int *error_base_return); Bool XF86VidModeQueryVersion( Display *display, int *major_version_return, int *minor_version_return); Bool XF86VidModeSetClientVersion( Display *display); Bool XF86VidModeGetModeLine(…

  • |

    XF86VidModeSetClientVersion (3) Linux Manual Page

    XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions – Extension library for the XFree86-VidMode X extension Synopsis #include <X11/extensions/xf86vmode.h> Bool XF86VidModeQueryExtension( Display *display, int *event_base_return, int *error_base_return); Bool XF86VidModeQueryVersion( Display *display, int *major_version_return, int *minor_version_return); Bool XF86VidModeSetClientVersion( Display *display); Bool XF86VidModeGetModeLine(…