SysTutorials Posts

  • |

    XNoExposeEvent (3) Linux Manual Page

    XGraphicsExposeEvent, XNoExposeEvent – GraphicsExpose and NoExpose event structures Structures The structures for GraphicsExpose and NoExpose events contain: typedef struct {         int type;       /* GraphicsExpose */         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 */         Drawable drawable;         int x, y;         int width, height;         int count;      /* if…

  • |

    XNextEvent (3) Linux Manual Page

    XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent, XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckTypedWindowEvent – select events by type Syntax int XNextEvent(Display *display, XEvent *event_return); int XPeekEvent(Display *display, XEvent *event_return); int XWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); Bool XCheckWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); int XMaskEvent(Display *display, long event_mask, XEvent *event_return); Bool XCheckMaskEvent(Display *display, long event_mask, XEvent…

  • |

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

  • |

    XMoveWindow (3) Linux Manual Page

    XConfigureWindow, XMoveWindow, XResizeWindow, XMoveResizeWindow, XSetWindowBorderWidth, XWindowChanges – configure windows and window changes structure Syntax int XConfigureWindow(Display *display, Window w, unsigned value_mask, XWindowChanges *changes); int XMoveWindow(Display *display, Window w, int x, y); int XResizeWindow(Display *display, Window w, unsigned width, unsigned height); int XMoveResizeWindow(Display *display, Window w, int x, int y, unsigned width, unsigned height); int XSetWindowBorderWidth(Display…

  • |

    XMoveResizeWindow (3) Linux Manual Page

    XConfigureWindow, XMoveWindow, XResizeWindow, XMoveResizeWindow, XSetWindowBorderWidth, XWindowChanges – configure windows and window changes structure Syntax int XConfigureWindow(Display *display, Window w, unsigned value_mask, XWindowChanges *changes); int XMoveWindow(Display *display, Window w, int x, y); int XResizeWindow(Display *display, Window w, unsigned width, unsigned height); int XMoveResizeWindow(Display *display, Window w, int x, int y, unsigned width, unsigned height); int XSetWindowBorderWidth(Display…

  • |

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

  • |

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

  • |

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

  • |

    XMatchVisualInfo (3) Linux Manual Page

    XGetVisualInfo, XMatchVisualInfo, XVisualIDFromVisual, XVisualInfo – obtain visual information and visual structure Syntax XVisualInfo *XGetVisualInfo(Display *display, long vinfo_mask, XVisualInfo *vinfo_template, int *nitems_return); Status XMatchVisualInfo(Display *display, int screen, int depth, int class, XVisualInfo *vinfo_return); VisualID XVisualIDFromVisual(Visual *visual); Arguments class Specifies the class of the screen. depth Specifies the depth of the screen. display Specifies the connection to…

  • |

    XMaskEvent (3) Linux Manual Page

    XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent, XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckTypedWindowEvent – select events by type Syntax int XNextEvent(Display *display, XEvent *event_return); int XPeekEvent(Display *display, XEvent *event_return); int XWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); Bool XCheckWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); int XMaskEvent(Display *display, long event_mask, XEvent *event_return); Bool XCheckMaskEvent(Display *display, long event_mask, XEvent…

  • |

    XMappingEvent (3) Linux Manual Page

    XMapEvent, XMappingEvent – MapNotify and MappingNotify event structures Structures The structure for MapNotify events contains: typedef struct {         int type;       /* MapNotify */         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 event;         Window window;         Bool override_redirect; /* boolean, is override set… */ } XMapEvent; When…

  • |

    XMapWindow (3) Linux Manual Page

    XMapWindow, XMapRaised, XMapSubwindows – map windows Syntax int XMapWindow(Display *display, Window w); int XMapRaised(Display *display, Window w); int XMapSubwindows(Display *display, Window w); Arguments display Specifies the connection to the X server. w Specifies the window. Description The XMapWindow function maps the window and all of its subwindows that have had map requests. Mapping a window…

  • |

    XMapSubwindows (3) Linux Manual Page

    XMapWindow, XMapRaised, XMapSubwindows – map windows Syntax int XMapWindow(Display *display, Window w); int XMapRaised(Display *display, Window w); int XMapSubwindows(Display *display, Window w); Arguments display Specifies the connection to the X server. w Specifies the window. Description The XMapWindow function maps the window and all of its subwindows that have had map requests. Mapping a window…

  • |

    XMapRequestEvent (3) Linux Manual Page

    XMapRequestEvent – MapRequest event structure Structures The structure for MapRequest events contains: typedef struct {         int type;       /* MapRequest */         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 parent;         Window window; } XMapRequestEvent; When you receive this event, the structure members are…

  • |

    XMapRaised (3) Linux Manual Page

    XMapWindow, XMapRaised, XMapSubwindows – map windows Syntax int XMapWindow(Display *display, Window w); int XMapRaised(Display *display, Window w); int XMapSubwindows(Display *display, Window w); Arguments display Specifies the connection to the X server. w Specifies the window. Description The XMapWindow function maps the window and all of its subwindows that have had map requests. Mapping a window…

  • |

    XMapEvent (3) Linux Manual Page

    XMapEvent, XMappingEvent – MapNotify and MappingNotify event structures Structures The structure for MapNotify events contains: typedef struct {         int type;       /* MapNotify */         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 event;         Window window;         Bool override_redirect; /* boolean, is override set… */ } XMapEvent; When…

  • |

    XMLTV::Supplement (3) Linux Manual Page

    XMLTV::Supplement – Supplementary file loader for XMLTV grabbers Description Utility library that loads supplementary files for xmltv-grabbers and other programs in the xmltv-distribution. Supplementary files can be loaded either via http or from a local file, depending on the configuration of the module. The default is to load the files from http://supplement.xmltv.org. This can be…

  • |

    XMLTV::Summarize (3) Linux Manual Page

    XMLTV::Summarize – Perl extension to summarize XMLTV data Synopsis # First get some data from the XMLTV module, eg: use XMLTV; my $data = XMLTV::parsefile(‘tv_sorted.xml’); my ($encoding, $credits, $ch, $progs) = @$data; # Now turn the sorted programmes into a printable summary. use XMLTV::Summarize qw(summarize); foreach (summarize($ch, $progs)) { if (not ref) { print "\nDay:…

  • |

    XMLTV::Gunzip (3) Linux Manual Page

    XMLTV::Gunzip – Wrapper to Compress::Zlib or gzip(1) Synopsis use XMLTV::Gunzip; my $decompressed = gunzip($gzdata); my $fh = gunzip_open(‘file.gz’) or die; while (<$fh>) { print } Compress::Zlib will be used if installed, otherwise an external gzip will be spawned. gunzip() returns the decompressed data and throws an exception if things go wrong; gunzip_open() returns a filehandle,…

  • |

    XMLTV::Grab_XML (3) Linux Manual Page

    XMLTV::Grab_XML – Perl extension to fetch raw XMLTV data from a site Synopsis package Grab_XML_rur; use base ‘XMLTV::Grab_XML’; sub urls_by_date( $ ) { my $pkg = shift; … } sub country( $ ) { my $pkg = shift; return ‘Ruritania’ } # Maybe override a couple of other methods as described below… Grab_XML_rur->go(); Description This…