SysTutorials Posts

  • |

    XRRConfigSizes (3) Linux Manual Page

     Xrandr – X Resize, Rotate and Reflection extension. Syntax #include <X11/extensions/Xrandr.h> Bool XRRQueryExtension (Display *dpy, int *event_base_return, int *error_base_return); Status XRRQueryVersion (Display *dpy, int *major_version_return, int *minor_version_return); XRRScreenConfiguration *XRRGetScreenInfo (Display *dpy, Drawable draw); void XRRFreeScreenConfigInfo ( XRRScreenConfiguration *config); Status XRRSetScreenConfig (Display *dpy, XRRScreenConfiguration *config, Drawable draw, int size_index, Rotation rotation, Time timestamp); Status XRRSetScreenConfigAndRate (Display…

  • |

    XRRConfigRotations (3) Linux Manual Page

     Xrandr – X Resize, Rotate and Reflection extension. Syntax #include <X11/extensions/Xrandr.h> Bool XRRQueryExtension (Display *dpy, int *event_base_return, int *error_base_return); Status XRRQueryVersion (Display *dpy, int *major_version_return, int *minor_version_return); XRRScreenConfiguration *XRRGetScreenInfo (Display *dpy, Drawable draw); void XRRFreeScreenConfigInfo ( XRRScreenConfiguration *config); Status XRRSetScreenConfig (Display *dpy, XRRScreenConfiguration *config, Drawable draw, int size_index, Rotation rotation, Time timestamp); Status XRRSetScreenConfigAndRate (Display…

  • |

    XRRConfigRates (3) Linux Manual Page

     Xrandr – X Resize, Rotate and Reflection extension. Syntax #include <X11/extensions/Xrandr.h> Bool XRRQueryExtension (Display *dpy, int *event_base_return, int *error_base_return); Status XRRQueryVersion (Display *dpy, int *major_version_return, int *minor_version_return); XRRScreenConfiguration *XRRGetScreenInfo (Display *dpy, Drawable draw); void XRRFreeScreenConfigInfo ( XRRScreenConfiguration *config); Status XRRSetScreenConfig (Display *dpy, XRRScreenConfiguration *config, Drawable draw, int size_index, Rotation rotation, Time timestamp); Status XRRSetScreenConfigAndRate (Display…

  • |

    XRRConfigCurrentRate (3) Linux Manual Page

     Xrandr – X Resize, Rotate and Reflection extension. Syntax #include <X11/extensions/Xrandr.h> Bool XRRQueryExtension (Display *dpy, int *event_base_return, int *error_base_return); Status XRRQueryVersion (Display *dpy, int *major_version_return, int *minor_version_return); XRRScreenConfiguration *XRRGetScreenInfo (Display *dpy, Drawable draw); void XRRFreeScreenConfigInfo ( XRRScreenConfiguration *config); Status XRRSetScreenConfig (Display *dpy, XRRScreenConfiguration *config, Drawable draw, int size_index, Rotation rotation, Time timestamp); Status XRRSetScreenConfigAndRate (Display…

  • |

    XRRConfigCurrentConfiguration (3) Linux Manual Page

     Xrandr – X Resize, Rotate and Reflection extension. Syntax #include <X11/extensions/Xrandr.h> Bool XRRQueryExtension (Display *dpy, int *event_base_return, int *error_base_return); Status XRRQueryVersion (Display *dpy, int *major_version_return, int *minor_version_return); XRRScreenConfiguration *XRRGetScreenInfo (Display *dpy, Drawable draw); void XRRFreeScreenConfigInfo ( XRRScreenConfiguration *config); Status XRRSetScreenConfig (Display *dpy, XRRScreenConfiguration *config, Drawable draw, int size_index, Rotation rotation, Time timestamp); Status XRRSetScreenConfigAndRate (Display…

  • |

    XQueryTree (3) Linux Manual Page

    XQueryTree – query window tree information Syntax Status XQueryTree(Display *display, Window w, Window *root_return, Window *parent_return, Window **children_return, unsigned int *nchildren_return); Arguments children_return Returns the list of children. display Specifies the connection to the X server. nchildren_return Returns the number of children. parent_return Returns the parent window. root_return Returns the root window. w Specifies the…

  • |

    XQueryTextExtents16 (3) Linux Manual Page

    XTextExtents, XTextExtents16, XQueryTextExtents, XQueryTextExtents16 – compute or query text extents Syntax int XTextExtents(XFontStruct *font_struct, char *string, int nchars, int *direction_return, int *font_ascent_return, int *font_descent_return, XCharStruct *overall_return); int XTextExtents16(XFontStruct *font_struct, XChar2b *string, int nchars, int *direction_return, int *font_ascent_return, int *font_descent_return, XCharStruct *overall_return); int XQueryTextExtents(Display *display, XID font_ID, char *string, int nchars, int *direction_return, int *font_ascent_return, int…

  • |

    XQueryTextExtents (3) Linux Manual Page

    XTextExtents, XTextExtents16, XQueryTextExtents, XQueryTextExtents16 – compute or query text extents Syntax int XTextExtents(XFontStruct *font_struct, char *string, int nchars, int *direction_return, int *font_ascent_return, int *font_descent_return, XCharStruct *overall_return); int XTextExtents16(XFontStruct *font_struct, XChar2b *string, int nchars, int *direction_return, int *font_ascent_return, int *font_descent_return, XCharStruct *overall_return); int XQueryTextExtents(Display *display, XID font_ID, char *string, int nchars, int *direction_return, int *font_ascent_return, int…

  • |

    XQueryPointer (3) Linux Manual Page

    XQueryPointer – get pointer coordinates Syntax Bool XQueryPointer(Display *display, Window w, Window *root_return, Window *child_return, int *root_x_return, int *root_y_return, int *win_x_return, int *win_y_return, unsigned int *mask_return); Arguments child_return Returns the child window that the pointer is located in, if any. display Specifies the connection to the X server. mask_return Returns the current state of the…

  • |

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

  • |

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

  • |

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

  • |

    XQueryDeviceState (3) Linux Manual Page

    XQueryDeviceState – query the state of an extension input device. Synopsis #include <X11/extensions/XInput.h> XDeviceState* XQueryDeviceState( Display *display, XDevice *device); display Specifies the connection to the X server. device Specifies the device whose state is to be queried. Description The XQueryDeviceState request queries the state of an input device. The current state of keys and buttons…

  • |

    XQueryColors (3) Linux Manual Page

    XQueryColor, XQueryColors, XLookupColor, XParseColor – obtain color values Syntax int XQueryColor(Display *display, Colormap colormap, XColor *def_in_out); int XQueryColors(Display *display, Colormap colormap, XColor defs_in_out[], int ncolors); Status XLookupColor(Display *display, Colormap colormap, char *color_name, XColor *exact_def_return, XColor *screen_def_return); Status XParseColor(Display *display, Colormap colormap, char *spec, XColor *exact_def_return); Arguments colormap Specifies the colormap. color_name Specifies the color name…

  • |

    XQueryColor (3) Linux Manual Page

    XQueryColor, XQueryColors, XLookupColor, XParseColor – obtain color values Syntax int XQueryColor(Display *display, Colormap colormap, XColor *def_in_out); int XQueryColors(Display *display, Colormap colormap, XColor defs_in_out[], int ncolors); Status XLookupColor(Display *display, Colormap colormap, char *color_name, XColor *exact_def_return, XColor *screen_def_return); Status XParseColor(Display *display, Colormap colormap, char *spec, XColor *exact_def_return); Arguments colormap Specifies the colormap. color_name Specifies the color name…

  • |

    XQueryBestTile (3) Linux Manual Page

    XQueryBestSize, XQueryBestTile, XQueryBestStipple – determine efficient sizes Syntax Status XQueryBestSize(Display *display, int class, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); Status XQueryBestTile(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); Status XQueryBestStipple(Display *display, Drawable which_screen, unsigned int width, unsigned int height,…

  • |

    XQueryBestStipple (3) Linux Manual Page

    XQueryBestSize, XQueryBestTile, XQueryBestStipple – determine efficient sizes Syntax Status XQueryBestSize(Display *display, int class, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); Status XQueryBestTile(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); Status XQueryBestStipple(Display *display, Drawable which_screen, unsigned int width, unsigned int height,…

  • |

    XQueryBestSize (3) Linux Manual Page

    XQueryBestSize, XQueryBestTile, XQueryBestStipple – determine efficient sizes Syntax Status XQueryBestSize(Display *display, int class, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); Status XQueryBestTile(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); Status XQueryBestStipple(Display *display, Drawable which_screen, unsigned int width, unsigned int height,…

  • |

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

  • |

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