SysTutorials Posts

  • |

    XMLTV::GUI (3) Linux Manual Page

    XMLTV::GUI – Handles the choice of UI for XMLTV Synopsis use XMLTV::GUI; my $gui_type = get_gui_type($opt_gui); where $opt_gui is the commandline option given for –gui and $gui_type is one of ‘term+progressbar’, ‘term’ and ‘tk’. Determines the type of output the user has requested for XMLTV to communicate through. Author Andy Balaam, axis3x3 [at] users.sourceforge.net. Distributed…

  • |

    XMLTV::Date (3) Linux Manual Page

    XMLTV::Date – Date parsing routines for the xmltv package See Also Date::Manip parse_date() Wrapper for "Date::Manip::ParseDate()" that does two things: firstly, if the year is not specified it chooses between last year, this year and next year depending on which date would be closest to now. (If only one of those dates is valid, for…

  • |

    XMLTV (3) Linux Manual Page

    XMLTV – Perl extension to read and write TV listings in XMLTV format Synopsis use XMLTV; my $data = XMLTV::parsefile(‘tv.xml’); my ($encoding, $credits, $ch, $progs) = @$data; my $langs = [ ‘en’, ‘fr’ ]; print ‘source of listings is: ‘, $credits->{‘source-info-name’}, " " if defined $credits->{‘source-info-name’}; foreach (values %$ch) { my ($text, $lang) = @{XMLTV::best_name($langs,…

  • |

    XML::Generator::DOM (3) Linux Manual Page

    XML::Generator::DOM – XML::Generator subclass for producing DOM trees instead of strings. Synopsis use XML::Generator::DOM; my $dg = XML::Generator::DOM->new(); my $doc = $dg->xml($dg->xmlcmnt("Test document."), $dg->foo({‘baz’ => ‘bam’}, 42)); print $doc->toString; yields: <?xml version="1.0" standalone="yes"?> <!–Test document–> <foo baz="bam">42</foo> Description XML::Generator::DOM subclasses XML::Generator in order to produce DOM trees instead of strings (see XML::Generator and XML::DOM). This…

  • |

    XML::Generator (3) Linux Manual Page

    XML::Generator – Perl extension for generating XML Synopsis use XML::Generator ‘:pretty’; print foo(bar({ baz => 3 }, bam()), bar([ ‘qux’ => ‘http://qux.com/’ ], "Hey there, world")); # OR require XML::Generator; my $X = XML::Generator->new(‘:pretty’); print $X->foo($X->bar({ baz => 3 }, $X->bam()), $X->bar([ ‘qux’ => ‘http://qux.com/’ ], "Hey there, world")); Either of the above yield: <foo…

  • |

    XLowerWindow (3) Linux Manual Page

    XRaiseWindow, XLowerWindow, XCirculateSubwindows, XCirculateSubwindowsUp, XCirculateSubwindowsDown, XRestackWindows – change window stacking order Syntax int XRaiseWindow(Display *display, Window w); int XLowerWindow(Display *display, Window w); int XCirculateSubwindows(Display *display, Window w, int direction); int XCirculateSubwindowsUp(Display *display, Window w); int XCirculateSubwindowsDown(Display *display, Window w); int XRestackWindows(Display *display, Window windows[], int nwindows); Arguments direction Specifies the direction (up or down) that…

  • |

    XLookupString (3) Linux Manual Page

    XLookupKeysym, XRefreshKeyboardMapping, XLookupString, XRebindKeysym – handle keyboard input events in Latin-1 Syntax KeySym XLookupKeysym(XKeyEvent *key_event, int index); int XRefreshKeyboardMapping(XMappingEvent *event_map); int XLookupString(XKeyEvent *event_struct, char *buffer_return, int bytes_buffer, KeySym *keysym_return, XComposeStatus *status_in_out); int XRebindKeysym(Display *display, KeySym keysym, KeySym list[], int mod_count, unsigned char *string, int num_bytes); Arguments buffer_return Returns the translated characters. bytes_buffer Specifies the length…

  • |

    XLookupKeysym (3) Linux Manual Page

    XLookupKeysym, XRefreshKeyboardMapping, XLookupString, XRebindKeysym – handle keyboard input events in Latin-1 Syntax KeySym XLookupKeysym(XKeyEvent *key_event, int index); int XRefreshKeyboardMapping(XMappingEvent *event_map); int XLookupString(XKeyEvent *event_struct, char *buffer_return, int bytes_buffer, KeySym *keysym_return, XComposeStatus *status_in_out); int XRebindKeysym(Display *display, KeySym keysym, KeySym list[], int mod_count, unsigned char *string, int num_bytes); Arguments buffer_return Returns the translated characters. bytes_buffer Specifies the length…

  • |

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

  • |

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

  • |

    XLocaleOfOM (3) Linux Manual Page

    XOpenOM, XCloseOM, XSetOMValues, XGetOMValues, XDisplayOfOM, XLocaleOfOM – open output methods Syntax XOM XOpenOM(Display *display, XrmDatabase db, char *res_name, char *res_class); Status XCloseOM(XOM om); char *XSetOMValues(XOM om); char *XGetOMValues(XOM om); Display *XDisplayOfOM(XOM om); char *XLocaleOfOM(XOM om); Arguments display Specifies the connection to the X server. db Specifies a pointer to the resource database. res_name Specifies the…

  • |

    XLocaleOfIM (3) Linux Manual Page

    XOpenIM, XCloseIM, XSetIMValues, XGetIMValues, XDisplayOfIM, XLocaleOfIM, XRegisterIMInstantiateCallback, XUnregisterIMInstantiateCallback – open, close, and obtain input method information Syntax XIM XOpenIM(Display *display, XrmDatabase db, char *res_name, char *res_class); Status XCloseIM(XIM im); char *XSetIMValues(XIM im, …); char *XGetIMValues(XIM im, …); Display *XDisplayOfIM(XIM im); char *XLocaleOfIM(XIM im); Bool XRegisterIMInstantiateCallback(Display *display, XrmDatabase db, char *res_name, char *res_class, XIDProc callback, XPointer…

  • |

    XLocaleOfFontSet (3) Linux Manual Page

    XFontsOfFontSet, XBaseFontNameListOfFontSet, XLocaleOfFontSet, XContextDependentDrawing, XContextualDrawing, XDirectionalDependentDrawing – obtain fontset information Syntax int XFontsOfFontSet(XFontSet font_set, XFontStruct ***font_struct_list_return, char ***font_name_list_return); char *XBaseFontNameListOfFontSet(XFontSet font_set); char *XLocaleOfFontSet(XFontSet font_set); Bool XContextDependentDrawing(XFontSet font_set); Bool XContextualDrawing(XFontSet font_set); Bool XDirectionalDependentDrawing(XFontSet font_set); Arguments font_set Specifies the font set. font_name_list_return Returns the list of font names. font_struct_list_return Returns the list of font structs. Description The…

  • |

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

  • |

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

  • |

    XListProperties (3) Linux Manual Page

    XGetWindowProperty, XListProperties, XChangeProperty, XRotateWindowProperties, XDeleteProperty – obtain and change window properties Syntax int XGetWindowProperty(Display *display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return); Atom *XListProperties(Display *display, Window w, int *num_prop_return); int XChangeProperty(Display *display, Window w, Atom property, Atom…

  • |

    XListPixmapFormats (3) Linux Manual Page

    ImageByteOrder, BitmapBitOrder, BitmapPad, BitmapUnit, DisplayHeight, DisplayHeightMM, DisplayWidth, DisplayWidthMM, XListPixmapFormats, XPixmapFormatValues – image format functions and macros Syntax XPixmapFormatValues *XListPixmapFormats(Display *display, int *count_return); int ImageByteOrder(Display *display); int BitmapBitOrder(Display *display); int BitmapPad(Display *display); int BitmapUnit(Display *display); int DisplayHeight(Display *display, int screen_number); int DisplayHeightMM(Display *display, int screen_number); int DisplayWidth(Display *display, int screen_number); int DisplayWidthMM(Display *display, int screen_number); Arguments…

  • |

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

  • |

    XListInputDevices (3) Linux Manual Page

    XListInputDevices, XFreeDeviceList – list available input devices Synopsis #include <X11/extensions/XInput.h> XDeviceInfo *XListInputDevices( Display *display, int *ndevices_return); int XFreeDeviceList( XDeviceInfo *list); display Specifies the connection to the X server. ndevices_return Specifies a pointer to a variable where the number of available devices can be returned. list Specifies the list of devices to free. The XFreeDeviceList function…

  • |

    XListHosts (3) Linux Manual Page

    XAddHost, XAddHosts, XListHosts, XRemoveHost, XRemoveHosts, XSetAccessControl, XEnableAccessControl, XDisableAccessControl, XHostAddress, XServerInterpretedAddress – control host access and host control structure Syntax int 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);…