Linux Manuals session 3

Section 3: library functions

  • |

    XAutoRepeatOn (3) Linux Manual Page

    XChangeKeyboardControl, XGetKeyboardControl, XAutoRepeatOn, XAutoRepeatOff, XBell, XQueryKeymap, XKeyboardControl – manipulate keyboard settings and keyboard control structure Syntaxint XChangeKeyboardControl(Display *display, unsigned long value_mask, XKeyboardControl *values); int XGetKeyboardControl(Display *display, XKeyboardState *values_return); int XAutoRepeatOn(Display *display); int XAutoRepeatOff(Display *display); int XBell(Display *display, int percent); int XQueryKeymap(Display *display, char keys_return[32]);Argumentsdisplay Specifies the connection to the X server. keys_return Returns an array…

  • |

    XAutoRepeatOff (3) Linux Manual Page

    XChangeKeyboardControl, XGetKeyboardControl, XAutoRepeatOn, XAutoRepeatOff, XBell, XQueryKeymap, XKeyboardControl – manipulate keyboard settings and keyboard control structure Syntaxint XChangeKeyboardControl(Display *display, unsigned long value_mask, XKeyboardControl *values); int XGetKeyboardControl(Display *display, XKeyboardState *values_return); int XAutoRepeatOn(Display *display); int XAutoRepeatOff(Display *display); int XBell(Display *display, int percent); int XQueryKeymap(Display *display, char keys_return[32]);Argumentsdisplay Specifies the connection to the X server. keys_return Returns an array…

  • |

    XArc (3) Linux Manual Page

    XDrawArc, XDrawArcs, XArc – draw arcs and arc structure Syntaxint XDrawArc(Display *display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height, int angle1, int angle2); int XDrawArcs(Display *display, Drawable d, GC gc, XArc *arcs, int narcs);Argumentsangle1 Specifies the start of the arc relative to the three-o’clock position from the center,…

  • |

    XAnyEvent (3) Linux Manual Page

    XAnyEvent, XEvent – generic X event structures StructuresAll the event structures declared in have the following common members: typedef struct {         int type;         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; } XAnyEvent; The type member is set…

  • |

    XAllowEvents (3) Linux Manual Page

    XAllowEvents – release queued events Syntaxint XAllowEvents(Display *display, int event_mode, Time time);Argumentsdisplay Specifies the connection to the X server. event_mode Specifies the event mode. You can pass AsyncPointer, SyncPointer, AsyncKeyboard, SyncKeyboard, ReplayPointer, ReplayKeyboard, AsyncBoth, or SyncBoth. time Specifies the time. You can pass either a timestamp or CurrentTime.DescriptionThe XAllowEvents function releases some queued events if…

  • |

    XAllowDeviceEvents (3) Linux Manual Page

    XAllowDeviceEvents – release queued events Synopsis#include <X11/extensions/XInput.h>int XAllowDeviceEvents( Display *display, XDevice *device, int event_mode, Time time); display Specifies the connection to the X server.device Specifies the device from which events are to be allowed.event_mode Specifies the event mode.You can pass AsyncThisDevice, SyncThisDevice, ReplayThisDevice, AsyncOtherDevices, SyncAll, or AsyncAll.time Specifies the time. You can pass either a…

  • |

    XAllocWMHints (3) Linux Manual Page

    XAllocWMHints, XSetWMHints, XGetWMHints, XWMHints – allocate window manager hints structure and set or read a window’s WM_HINTS property SyntaxXWMHints *XAllocWMHints(void); int XSetWMHints(Display *display, Window w, XWMHints *wmhints); XWMHints *XGetWMHints(Display *display, Window w);Argumentsdisplay Specifies the connection to the X server. w Specifies the window. wmhints Specifies the XWMHints structure to be used.DescriptionThe XAllocWMHints function allocates and…

  • |

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

  • |

    XAllocSizeHints (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,…

  • |

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

  • |

    XAllocIconSize (3) Linux Manual Page

    XAllocIconSize, XSetIconSizes, XGetIconSizes, XIconSize – allocate icon size structure and set or read a window’s WM_ICON_SIZES property SyntaxXIconSize *XAllocIconSize(void); int XSetIconSizes(Display *display, Window w, XIconSize *size_list, int count); Status XGetIconSizes(Display *display, Window w, XIconSize **size_list_return, int count_return); Argumentsdisplay Specifies the connection to the X server. count Specifies the number of items in the size list….

  • |

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

  • |

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

  • |

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

  • |

    XAllocClassHint (3) Linux Manual Page

    XAllocClassHint, XSetClassHint, XGetClassHint, XClassHint – allocate class hints structure and set or read a window’s WM_CLASS property SyntaxXClassHint *XAllocClassHint(void); XSetClassHint(Display *display, Window w, XClassHint *class_hints); Status XGetClassHint(Display *display, Window w, XClassHint *class_hints_return);Argumentsdisplay Specifies the connection to the X server. class_hints Specifies the XClassHint structure that is to be used. class_hints_return Returns the XClassHint structure. w…

  • |

    XAddToSaveSet (3) Linux Manual Page

    XChangeSaveSet, XAddToSaveSet, XRemoveFromSaveSet – change a client’s save set Syntaxint XChangeSaveSet(Display *display, Window w, int change_mode); int XAddToSaveSet(Display *display, Window w); int XRemoveFromSaveSet(Display *display, Window w);Argumentschange_mode Specifies the mode. You can pass SetModeInsert or SetModeDelete. display Specifies the connection to the X server. w Specifies the window that you want to add or delete from…

  • |

    XAddPixel (3) Linux Manual Page

    XInitImage, XCreateImage, XGetPixel, XPutPixel, XSubImage, XAddPixel, XDestroyImage – image utilities SyntaxStatus XInitImage(XImage *image); XImage *XCreateImage(Display *display, Visual *visual, unsigned int depth, int format, int offset, char *data, unsigned int width, unsigned int height, int bitmap_pad, int bytes_per_line); unsigned long XGetPixel(XImage *ximage, int x, int y); int XPutPixel(XImage *ximage, int x, int y, unsigned long pixel);…

  • |

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

  • |

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

  • |

    XAddConnectionWatch (3) Linux Manual Page

    XAddConnectionWatch, XRemoveConnectionWatch, XProcessInternalConnection, XInternalConnectionNumbers – handle Xlib internal connections Syntaxtypedef void (*XConnectionWatchProc)(Display *display, XPointer client_data, int fd, Bool opening, XPointer *watch_data); Status XAddConnectionWatch(Display *display, XWatchProc procedure, XPointer client_data); Status XRemoveConnectionWatch(Display *display, XWatchProc procedure, XPointer client_data); void XProcessInternalConnection(Display *display, int fd); Status XInternalConnectionNumbers(Display *display, int **fd_return, int *count_return);Argumentsclient_data Specifies the additional client data. count_return Returns the…