Linux Manuals session 3

Section 3: library functions

  • |

    XStoreName (3) Linux Manual Page

    XSetWMName, XGetWMName, XStoreName, XFetchName – set or read a window’s WM_NAME property Syntaxvoid 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);Argumentsdisplay Specifies the connection to the X server. text_prop Specifies the XTextProperty structure to be used….

  • |

    XStoreColors (3) Linux Manual Page

    XStoreColors, XStoreColor, XStoreNamedColor – set colors Syntaxint XStoreColors(Display *display, Colormap colormap, XColor color[], int ncolors); int XStoreColor(Display *display, Colormap colormap, XColor *color); int XStoreNamedColor(Display *display, Colormap colormap, char *color, unsigned long pixel, int flags);Argumentscolor Specifies the pixel and RGB values or the color name string (for example, red). color Specifies an array of color definition…

  • |

    XStoreColor (3) Linux Manual Page

    XStoreColors, XStoreColor, XStoreNamedColor – set colors Syntaxint XStoreColors(Display *display, Colormap colormap, XColor color[], int ncolors); int XStoreColor(Display *display, Colormap colormap, XColor *color); int XStoreNamedColor(Display *display, Colormap colormap, char *color, unsigned long pixel, int flags);Argumentscolor Specifies the pixel and RGB values or the color name string (for example, red). color Specifies an array of color definition…

  • |

    XStoreBytes (3) Linux Manual Page

    XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers – manipulate cut and paste buffers Syntaxint 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);Argumentsbuffer Specifies the buffer in which you want to store the bytes…

  • |

    XStoreBuffer (3) Linux Manual Page

    XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers – manipulate cut and paste buffers Syntaxint 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);Argumentsbuffer Specifies the buffer in which you want to store the bytes…

  • |

    XStandardColormap (3) Linux Manual Page

    XAllocStandardColormap, XSetRGBColormaps, XGetRGBColormaps, XStandardColormap – allocate, set, or read a standard colormap structure SyntaxXStandardColormap *XAllocStandardColormap(void); void XSetRGBColormaps(Display *display, Window w, XStandardColormap *std_colormap, int count, Atom property); Status XGetRGBColormaps(Display *display, Window w, XStandardColormap **std_colormap_return, int *count_return, Atom property);Argumentsdisplay Specifies the connection to the X server. count Specifies the number of colormaps. count_return Returns the number of…

  • |

    XSizeHints (3) Linux Manual Page

    XAllocSizeHints, XSetWMNormalHints, XGetWMNormalHints, XSetWMSizeHints, XGetWMSizeHints, XSizeHints – allocate size hints structure and set or read a window’s WM_NORMAL_HINTS property SyntaxXSizeHints *XAllocSizeHints(void); void XSetWMNormalHints(Display *display, Window w, XSizeHints *hints); Status XGetWMNormalHints(Display *display, Window w, XSizeHints *hints_return, long *supplied_return); void XSetWMSizeHints(Display *display, Window w, XSizeHints *hints, Atom property); Status XGetWMSizeHints(Display *display, Window w, XSizeHints *hints_return, long *supplied_return,…

  • |

    XShrinkRegion (3) Linux Manual Page

    XIntersectRegion, XUnionRegion, XUnionRectWithRegion, XSubtractRegion, XXorRegion, XOffsetRegion, XShrinkRegion – region arithmetic Syntaxint XIntersectRegion(Region sra, Region srb, Region dr_return); int XUnionRegion(Region sra, Region srb, Region dr_return); int XUnionRectWithRegion(XRectangle *rectangle, Region src_region, Region dest_region_return); int XSubtractRegion(Region sra, Region srb, Region dr_return); int XXorRegion(Region sra, Region srb, Region dr_return); int XOffsetRegion(Region r, int dx, int dy); int XShrinkRegion(Region r,…

  • |

    XShmQueryVersion (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmQueryExtension (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmPutImage (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmPixmapFormat (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmGetImage (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmGetEventBase (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmDetach (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmCreatePixmap (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmCreateImage (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShmAttach (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShm (3) Linux Manual Page

    XShmQueryExtension, XShmQueryVersion, XShmPixmapFormat, XShmAttach, XShmDetach XShmCreateImage, XShmPutImage, XShmGetImage, XShmCreatePixmap, XShmGetEventBase – X Shared Memory extension functions Syntax#include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Bool XShmQueryExtension( Display *display); Bool XShmQueryVersion( Display *display; int *major, *minor; Bool *pixmaps); int XShmPixmapFormat( Display *display); Bool XShmAttach( Display *display; XShmSegmentInfo *shminfo); Bool XShmDetach( Display *display; XShmSegmentInfo *shminfo); XImage *XShmCreateImage…

  • |

    XShapeSelectInput (3) Linux Manual Page

    XShapeQueryExtension, XShapeQueryVersion, XShapeCombineRegion, XShapeCombineRectangles, XShapeCombineMask, XShapeCombineShape, XShapeOffsetShape, XShapeQueryExtents, XShapeSelectInput, XShapeInputSelected, XShapeGetRectangles – X nonrectangular shape functions Syntax#include <X11/extensions/shape.h> Bool XShapeQueryExtension ( Display *dpy, int *event_basep, int *error_basep); Status XShapeQueryVersion ( Display *dpy, int *major_versionp, int *minor_versionp); void XShapeCombineRegion ( Display *dpy, Window dest, int destKind, int xOff, int yOff, struct _XRegion *r, int op); void…