SysTutorials Posts

  • |

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

  • |

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

  • |

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

  • |

    XListDeviceProperties (3) Linux Manual Page

    XListDeviceProperties – List a device’s properties. Synopsis #include <X11/extensions/XInput.h> Atom* XListDeviceProperties( Display *display, XDevice *device, int *nprops_return); display Specifies the connection to the X server. device The device to list the properties for. nprops_return Specifies the number of Atoms returned. Description The XListDeviceProperties function returns a list of the properties associated with the input device…

  • |

    XListDepths (3) Linux Manual Page

    AllPlanes, BlackPixel, WhitePixel, ConnectionNumber, DefaultColormap, DefaultDepth, XListDepths, DefaultGC, DefaultRootWindow, DefaultScreenOfDisplay, DefaultScreen, DefaultVisual, DisplayCells, DisplayPlanes, DisplayString, XMaxRequestSize, XExtendedMaxRequestSize, LastKnownRequestProcessed, NextRequest, ProtocolVersion, ProtocolRevision, QLength, RootWindow, ScreenCount, ScreenOfDisplay, ServerVendor, VendorRelease – Display macros and functions Syntax unsigned long AllPlanes; unsigned long BlackPixel(Display *display, int screen_number); unsigned long WhitePixel(Display *display, int screen_number); int ConnectionNumber(Display *display); Colormap DefaultColormap(Display *display, int…

  • |

    XKillClient (3) Linux Manual Page

    XSetCloseDownMode, XKillClient – control clients Syntax int XSetCloseDownMode(Display *display, int close_mode); int XKillClient(Display *display, XID resource); Arguments close_mode Specifies the client close-down mode. You can pass DestroyAll, RetainPermanent, or RetainTemporary. display Specifies the connection to the X server. resource Specifies any resource associated with the client that you want to destroy or AllTemporary. Description The…

  • |

    XKeysymToString (3) Linux Manual Page

    XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase – convert keysyms Syntax KeySym XStringToKeysym(char *string); char *XKeysymToString(KeySym keysym); KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index); KeyCode XKeysymToKeycode(Display *display, KeySym keysym); void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return); Arguments display Specifies the connection to the X server. index Specifies the element of KeyCode vector. keycode Specifies the KeyCode. keysym…

  • |

    XKeysymToKeycode (3) Linux Manual Page

    XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase – convert keysyms Syntax KeySym XStringToKeysym(char *string); char *XKeysymToString(KeySym keysym); KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index); KeyCode XKeysymToKeycode(Display *display, KeySym keysym); void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return); Arguments display Specifies the connection to the X server. index Specifies the element of KeyCode vector. keycode Specifies the KeyCode. keysym…

  • |

    XKeymapEvent (3) Linux Manual Page

    XKeymapEvent – KeymapNotify event structure Structures The structure for KeymapNotify events contains: /* generated on EnterWindow and FocusIn when KeymapState selected */ typedef struct {         int type;       /* KeymapNotify */         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;         char key_vector[32]; }…

  • |

    XKeycodeToKeysym (3) Linux Manual Page

    XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase – convert keysyms Syntax KeySym XStringToKeysym(char *string); char *XKeysymToString(KeySym keysym); KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index); KeyCode XKeysymToKeycode(Display *display, KeySym keysym); void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return); Arguments display Specifies the connection to the X server. index Specifies the element of KeyCode vector. keycode Specifies the KeyCode. keysym…

  • |

    XKeyboardControl (3) Linux Manual Page

    XChangeKeyboardControl, XGetKeyboardControl, XAutoRepeatOn, XAutoRepeatOff, XBell, XQueryKeymap, XKeyboardControl – manipulate keyboard settings and keyboard control structure Syntax int 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]); Arguments display Specifies the connection to the X server. keys_return…

  • |

    XKeyEvent (3) Linux Manual Page

    XButtonEvent, XKeyEvent, XMotionEvent – KeyPress, KeyRelease, ButtonPress, ButtonRelease, and MotionNotify event structures Structures The structures for KeyPress, KeyRelease, ButtonPress, ButtonRelease, and MotionNotify events contain: typedef struct {         int type;       /* ButtonPress or ButtonRelease */         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…

  • |

    XIntersectRegion (3) Linux Manual Page

    XIntersectRegion, XUnionRegion, XUnionRectWithRegion, XSubtractRegion, XXorRegion, XOffsetRegion, XShrinkRegion – region arithmetic Syntax int 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…

  • |

    XInternalConnectionNumbers (3) Linux Manual Page

    XAddConnectionWatch, XRemoveConnectionWatch, XProcessInternalConnection, XInternalConnectionNumbers – handle Xlib internal connections Syntax typedef 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); Arguments client_data Specifies the additional client data….

  • |

    XInternAtoms (3) Linux Manual Page

    XInternAtom, XInternAtoms, XGetAtomName, XGetAtomNames – create or return atom names Syntax Atom 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); Arguments atom Specifies the atom for the property name you want returned….

  • |

    XInternAtom (3) Linux Manual Page

    XInternAtom, XInternAtoms, XGetAtomName, XGetAtomNames – create or return atom names Syntax Atom 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); Arguments atom Specifies the atom for the property name you want returned….

  • |

    XInstallColormap (3) Linux Manual Page

    XInstallColormap, XUninstallColormap, XListInstalledColormaps – control colormaps Syntax int XInstallColormap(Display *display, Colormap colormap); int XUninstallColormap(Display *display, Colormap colormap); Colormap *XListInstalledColormaps(Display *display, Window w, int *num_return); Arguments colormap Specifies the colormap. display Specifies the connection to the X server. num_return Returns the number of currently installed colormaps. w Specifies the window that determines the screen. Description The…

  • |

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

  • |

    XInitThreads (3) Linux Manual Page

    XInitThreads, XLockDisplay, XUnlockDisplay – multi-threading support Syntax Status XInitThreads(void); void XLockDisplay(Display *display); void XUnlockDisplay(Display *display); Arguments display Specifies the connection to the X server. Description The XInitThreads function initializes Xlib support for concurrent threads. This function must be the first Xlib function a multi-threaded program calls, and it must complete before any other Xlib call…

  • |

    XInitImage (3) Linux Manual Page

    XInitImage, XCreateImage, XGetPixel, XPutPixel, XSubImage, XAddPixel, XDestroyImage – image utilities Syntax Status 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…