Linux Manuals session 3

Section 3: library functions

  • |

    XtUnmanageChild (3) Linux Manual Page

    XtManageChildren, XtManageChild, XtUnmanageChildren, XtUnmanageChild, XtChangeManagedSet, XtIsManaged – manage and unmanage children Syntax#include <X11/Intrinsic.h> typedef Widget *WidgetList; void XtManageChildren(WidgetList children, Cardinal num_children); void XtManageChild(Widget child); void XtUnmanageChildren(WidgetList children, Cardinal num_children); void XtUnmanageChild(Widget child); void XtChangeManagedSet(WidgetList unmanage_children, Cardinal num_unmanage_children, XtDoChangeProc do_change_proc, XtPointer client_data, WidgetList manage_children, Cardinal num_manage_children); Boolean XtIsManaged(Widget widget);Argumentschild Specifies the child. children Specifies a list…

  • |

    XtUninstallTranslations (3) Linux Manual Page

    XtParseTranslationTable, XtAugmentTranslations, XtOverrideTranslations, XtUninstallTranslations – manage translation tables Syntax#include <X11/Intrinsic.h> XtTranslations XtParseTranslationTable(const char *table); void XtAugmentTranslations(Widget w, XtTranslations translations); void XtOverrideTranslations(Widget w, XtTranslations translations); void XtUninstallTranslations(Widget w);Argumentstable Specifies the translation table to compile. translations Specifies the compiled translation table to merge in (must not be NULL). w Specifies the widget into which the new translations…

  • |

    XtUngrabPointer (3) Linux Manual Page

    XtGrabKey, XtUngrabKey, XtGrabKeyboard, XtUngrabKeyboard, XtGrabButton, XtUngrabButton, XtGrabPointer, XtUngrabPointer – manage grabs Syntax#include <X11/Intrinsic.h> void XtGrabKey(Widget widget, KeyCode keycode, Modifiers modifiers, Boolean owner_events, int pointer_mode, int keyboard_mode); void XtUngrabKey(Widget widget, KeyCode keycode, Modifiers modifiers); int XtGrabKeyboard(Widget widget, Boolean owner_events, int pointer_mode, int keyboard_mode, Time time); void XtUngrabKeyboard(Widget widget, Time time); void XtGrabButton(Widget widget, int button, Modifiers…

  • |

    XtUngrabKeyboard (3) Linux Manual Page

    XtGrabKey, XtUngrabKey, XtGrabKeyboard, XtUngrabKeyboard, XtGrabButton, XtUngrabButton, XtGrabPointer, XtUngrabPointer – manage grabs Syntax#include <X11/Intrinsic.h> void XtGrabKey(Widget widget, KeyCode keycode, Modifiers modifiers, Boolean owner_events, int pointer_mode, int keyboard_mode); void XtUngrabKey(Widget widget, KeyCode keycode, Modifiers modifiers); int XtGrabKeyboard(Widget widget, Boolean owner_events, int pointer_mode, int keyboard_mode, Time time); void XtUngrabKeyboard(Widget widget, Time time); void XtGrabButton(Widget widget, int button, Modifiers…

  • |

    XtUngrabKey (3) Linux Manual Page

    XtGrabKey, XtUngrabKey, XtGrabKeyboard, XtUngrabKeyboard, XtGrabButton, XtUngrabButton, XtGrabPointer, XtUngrabPointer – manage grabs Syntax#include <X11/Intrinsic.h> void XtGrabKey(Widget widget, KeyCode keycode, Modifiers modifiers, Boolean owner_events, int pointer_mode, int keyboard_mode); void XtUngrabKey(Widget widget, KeyCode keycode, Modifiers modifiers); int XtGrabKeyboard(Widget widget, Boolean owner_events, int pointer_mode, int keyboard_mode, Time time); void XtUngrabKeyboard(Widget widget, Time time); void XtGrabButton(Widget widget, int button, Modifiers…

  • |

    XtUngrabButton (3) Linux Manual Page

    XtGrabKey, XtUngrabKey, XtGrabKeyboard, XtUngrabKeyboard, XtGrabButton, XtUngrabButton, XtGrabPointer, XtUngrabPointer – manage grabs Syntax#include <X11/Intrinsic.h> void XtGrabKey(Widget widget, KeyCode keycode, Modifiers modifiers, Boolean owner_events, int pointer_mode, int keyboard_mode); void XtUngrabKey(Widget widget, KeyCode keycode, Modifiers modifiers); int XtGrabKeyboard(Widget widget, Boolean owner_events, int pointer_mode, int keyboard_mode, Time time); void XtUngrabKeyboard(Widget widget, Time time); void XtGrabButton(Widget widget, int button, Modifiers…

  • |

    XtTranslateKeycode (3) Linux Manual Page

    XtSetKeyTranslator, XtTranslateKeycode, XtRegisterCaseConverter, XtConvertCase – convert KeySym to KeyCodes Syntax#include <X11/Intrinsic.h> void XtSetKeyTranslator(Display *display, XtKeyProc proc); void XtTranslateKeycode(Display *display, KeyCode keycode, Modifiers modifiers, Modifiers *modifiers_return, KeySym *keysym_return); void XtRegisterCaseConverter(Display *display, XtCaseProc proc, KeySym start, KeySym stop); void XtConvertCase(Display *display, KeySym keysym, KeySym *lower_return, KeySym *upper_return);Argumentsdisplay Specifies the display. keycode Specifies the KeyCode to translate. keysym…

  • |

    XtTranslateCoords (3) Linux Manual Page

    XtTranslateCoords – translate widget coordinates Syntax#include <X11/Intrinsic.h> void XtTranslateCoords(Widget w, Position x, Position y, Position *rootx_return, Position *rooty_return);Argumentsrootx_return rooty_return Returns the root-relative x and y coordinates. x y Specify the widget-relative x and y coordinates. w Specifies the widget.DescriptionWhile XtTranslateCoords is similar to the Xlib XTranslateCoordinates function, it does not generate a server request because…

  • |

    XtToolkitThreadInitialize (3) Linux Manual Page

    XtToolkitThreadInitialize – initialize the toolkit for multiple threads Syntax#include <X11/Intrinsic.h> Boolean XtToolkitThreadInitialize(void);DescriptionIf XtToolkitThreadInitialize was previously called, it returns. The application programmer must ensure that two or more threads do not simultaneously attempt to call XtToolkitThreadInitialize; the effect of this is undefined. XtToolkitThreadInitialize returns True if the host operating system has threads and the Intrinsics are…

  • |

    XtToolkitInitialize (3) Linux Manual Page

    XtCreateApplicationContext, XtDestroyApplicationContext, XtWidgetToApplicationContext, XtToolkitInitialize – create, destroy, and obtain an application context Syntax#include <X11/Intrinsic.h> XtAppContext XtCreateApplicationContext(void); void XtDestroyApplicationContext(XtAppContext app_context); XtAppContext XtWidgetToApplicationContext(Widget w); void XtToolkitInitialize(void);Argumentsapp_context Specifies the application context. w Specifies the widget that you want the application context for.DescriptionThe XtCreateApplicationContext function returns an application context, which is an opaque type. Every application must have at…

  • |

    XtSuperclass (3) Linux Manual Page

    XtClass, XtSuperclass, XtIsSubclass, XtCheckSubclass, XtIsObject, XtIsRectObj, XtIsWidget, XtIsComposite, XtIsConstraint, XtIsShell, XtIsOverrideShell, XtIsWMShell, XtIsVendorShell, XtIsTransientShell, XtIsTopLevelShell, XtIsApplicationShell, XtIsSessionShell – obtain and verify a widget’s class Syntax#include <X11/Intrinsic.h> WidgetClass XtClass(Widget w); WidgetClass XtSuperclass(Widget w); Boolean XtIsSubclass(Widget w, WidgetClass widget_class); void XtCheckSubclass(Widget widget, WidgetClass widget_class, String message); Boolean XtIsObject(Widget w); Boolean XtIsRectObj(Widget w); Boolean XtIsWidget(Widget w); Boolean XtIsComposite(Widget…

  • |

    XtStringConversionWarning (3) Linux Manual Page

    XtStringConversionWarning – issue a conversion warning message Syntax#include <X11/Intrinsic.h> void XtStringConversionWarning(const char *src, const char *dst_type);Argumentssrc Specifies the string that could not be converted. dst_type Specifies the name of the type to which the string could not be converted.DescriptionThe XtStringConversionWarning function issues a warning message with name “conversionError”, type “string”, class “XtToolkitError”, and the default…

  • |

    XtSetWarningMsgHandler (3) Linux Manual Page

    XtErrorMsg, XtSetErrorMsgHandler, XtWarningMsg, XtSetWarningMsgHandler – high-level error handlers Syntax#include <X11/Intrinsic.h> void XtErrorMsg(const char *name, const char *type, const char *class, const char *defaultMsg, String *params, Cardinal *num_params); void XtSetErrorMsgHandler(XtErrorMsgHandler msg_handler); void XtSetWarningMsgHandler(XtErrorMsgHandler msg_handler); void XtWarningMsg(const char *name, const char *type, const char *class, const char *defaultMsg, String *params, Cardinal *num_params);Argumentsclass Specifies the resource class of…

  • |

    XtSetWarningHandler (3) Linux Manual Page

    XtError, XtSetErrorHandler, XtSetWarningHandler, XtWarning – low-level error handlers Syntax#include <X11/Intrinsic.h> void XtError(const char *message); void XtSetErrorHandler(XtErrorHandler handler); void XtSetWarningHandler(XtErrorHandler handler); void XtWarning(const char *message);Argumentsmessage Specifies the nonfatal error message that is to be reported. handler Specifies the new fatal error procedure, which should not return, or the nonfatal error procedure, which usually returns. message Specifies…

  • |

    XtSetWMColormapWindows (3) Linux Manual Page

    XtSetWMColormapWindows – Set the value of the WM_COLORMAP_WINDOWS property Syntax#include <X11/Intrinsic.h> void XtSetWMColormapWindows(Widget widget, Widget* list, Cardinal count);Argumentswidget Specifies the widget on whose window the WM_COLORMAP_WINDOWS property will be stored. Must be of class Core or any subclass thereof. list Specifies a list of widgets whose windows are are potentially to be listed in the…

  • |

    XtSetValues (3) Linux Manual Page

    XtSetValues, XtVaSetValues, XtSetSubvalues, XtVaSetSubvalues, XtGetValues, XtVaGetValues, XtGetSubvalues, XtVaGetSubvalues – obtain and set widget resources Syntax#include <X11/Intrinsic.h> void XtSetValues(Widget w, ArgList args, Cardinal num_args); void XtVaSetValues(Widget w, …); void XtSetSubvalues(XtPointer base, XtResourceList resources, Cardinal num_resources, ArgList args, Cardinal num_args); void XtVaSetSubvalues(XtPointer base, XtResourceList resources, Cardinal num_resources, …); void XtGetValues(Widget w, ArgList args, Cardinal num_args); void XtVaGetValues(Widget…

  • |

    XtSetTypeConverter (3) Linux Manual Page

    XtAppSetTypeConverter, XtSetTypeConverter – register resource converter Syntax#include <X11/Intrinsic.h> void XtAppSetTypeConverter(XtAppContext app_context, const char *from_type, const char * to_type, XtTypeConverter converter, XtConvertArgList convert_args, Cardinal num_args, XtCacheType cache_type, XtDestructor destructor); void XtSetTypeConverter(const char *from_type, const char *to_type, XtTypeConverter converter, XtConvertArgList convert_args, Cardinal num_args, XtCacheType cache_type, XtDestructor destructor);Argumentsapp_context Specifies the application context. converter Specifies the type converter procedure….

  • |

    XtSetSubvalues (3) Linux Manual Page

    XtSetValues, XtVaSetValues, XtSetSubvalues, XtVaSetSubvalues, XtGetValues, XtVaGetValues, XtGetSubvalues, XtVaGetSubvalues – obtain and set widget resources Syntax#include <X11/Intrinsic.h> void XtSetValues(Widget w, ArgList args, Cardinal num_args); void XtVaSetValues(Widget w, …); void XtSetSubvalues(XtPointer base, XtResourceList resources, Cardinal num_resources, ArgList args, Cardinal num_args); void XtVaSetSubvalues(XtPointer base, XtResourceList resources, Cardinal num_resources, …); void XtGetValues(Widget w, ArgList args, Cardinal num_args); void XtVaGetValues(Widget…

  • |

    XtSetSensitive (3) Linux Manual Page

    XtSetSensitive, XtIsSensitive – set and check a widget’s sensitivity state Syntax#include <X11/Intrinsic.h> void XtSetSensitive(Widget w, Boolean sensitive); Boolean XtIsSensitive(Widget w);Argumentssensitive Specifies a Boolean value that indicates whether the widget should receive keyboard and pointer events. w Specifies the widget.DescriptionThe XtSetSensitive function first calls XtSetValues on the current widget with an argument list specifying that the…

  • |

    XtSetSelectionTimeout (3) Linux Manual Page

    XtGetSelectionTimeout, XtSetSelectionTimeout – set and obtain selection timeout values Syntax#include <X11/Intrinsic.h> unsigned long XtGetSelectionTimeout(void); void XtSetSelectionTimeout(unsigned long timeout);Argumentstimeout Specifies the selection timeout in milliseconds.DescriptionThe XtGetSelectionTimeout function has been superceded by XtAppGetSelectionTimeout. The XtSetSelectionTimeout function has been superceded by XtAppSetSelectionTimeout. See AlsoXtAppGetSelectionTimeout(3) X Toolkit Intrinsics – C Language Interface Xlib – C Language X Interface