SysTutorials Posts

  • |

    XtDestroyApplicationContext (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); Arguments app_context Specifies the application context. w Specifies the widget that you want the application context for. Description The XtCreateApplicationContext function returns an application context, which is an opaque type….

  • |

    XtDatabase (3) Linux Manual Page

    XtDisplayInitialize, XtOpenDisplay, XtDatabase, XtScreenDatabase, XtCloseDisplay – initialize, open, or close a display Syntax #include <X11/Intrinsic.h> void XtDisplayInitialize(XtAppContext app_context, Display *display, const char *application_name, const char *application_class, XrmOptionDescRec *options, Cardinal num_options, int *argc, char **argv); Display *XtOpenDisplay(XtAppContext app_context, const char *display_string, const char *application_name, const char *application_class, XrmOptionDescRec *options, Cardinal num_options, int *argc, char **argv); void…

  • |

    XtCreateWindow (3) Linux Manual Page

    XtCreateWindow – window creation convenience function Syntax #include <X11/Intrinsic.h> void XtCreateWindow(Widget w, unsigned int window_class, Visual *visual, XtValueMask value_mask, XSetWindowAttributes *attributes); Arguments attributes Specifies the window attributes to use in the XCreateWindow call. value_mask Specifies which attribute fields to use. visual Specifies the visual type (usually CopyFromParent). w Specifies the widget that is used to…

  • |

    XtCreateWidget (3) Linux Manual Page

    XtCreateWidget, XtVaCreateWidget, XtCreateManagedWidget, XtVaCreateManagedWidget, XtDestroyWidget – create and destroy widgets Syntax #include <X11/Intrinsic.h> Widget XtCreateWidget(const char *name, WidgetClass widget_class, Widget parent, ArgList args, Cardinal num_args); Widget XtVaCreateWidget(const char *name, WidgetClass widget_class, Widget parent, …); Widget XtCreateManagedWidget(const char *name, WidgetClass widget_class, Widget parent, ArgList args, Cardinal num_args); Widget XtVaCreateManagedWidget(const char *name, WidgetClass widget_class, Widget parent, …);…

  • |

    XtCreateSelectionRequest (3) Linux Manual Page

    XtCreateSelectionRequest, XtSendSelectionRequest, XtCancelSelectionRequest – bundle multiple selection conversion requests into a single request using MULTIPLE target Syntax #include <X11/Intrinsic.h> void XtCreateSelectionRequest(Widget requestor, Atom selection); void XtSendSelectionRequest(Widget requestor, Atom selection, Time time); void XtCancelSelectionRequest(Widget requestor, Atom selection); Arguments requestor Specifies the widget making the request. Must be of class Core or a subclass thereof. selection Specifies…

  • |

    XtCreatePopupShell (3) Linux Manual Page

    XtCreatePopupShell, XtVaCreatePopupShell – create a popup shell Syntax #include <X11/Intrinsic.h> Widget XtCreatePopupShell(const char *name, WidgetClass widget_class, Widget parent, ArgList args, Cardinal num_args); Widget XtVaCreatePopupShell(const char *name, WidgetClass widget_class, Widget parent, …); Arguments args Specifies the argument list to override the resource defaults. name Specifies the text name for the created shell widget. num_args Specifies the…

  • |

    XtCreateManagedWidget (3) Linux Manual Page

    XtCreateWidget, XtVaCreateWidget, XtCreateManagedWidget, XtVaCreateManagedWidget, XtDestroyWidget – create and destroy widgets Syntax #include <X11/Intrinsic.h> Widget XtCreateWidget(const char *name, WidgetClass widget_class, Widget parent, ArgList args, Cardinal num_args); Widget XtVaCreateWidget(const char *name, WidgetClass widget_class, Widget parent, …); Widget XtCreateManagedWidget(const char *name, WidgetClass widget_class, Widget parent, ArgList args, Cardinal num_args); Widget XtVaCreateManagedWidget(const char *name, WidgetClass widget_class, Widget parent, …);…

  • |

    XtCreateApplicationShell (3) Linux Manual Page

    XtCreateApplicationShell – create top-level widget instance Syntax #include <X11/Intrinsic.h> Widget XtCreateApplicationShell(const char *name, WidgetClass widget_class, ArgList args, Cardinal num_args); Arguments name Specifies the name of the shell. args Specifies the argument list to override any other resource specifications. num_args Specifies the number of arguments in the argument list. Description The procedure XtCreateApplicationShell calls XtAppCreateShell with…

  • |

    XtCreateApplicationContext (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); Arguments app_context Specifies the application context. w Specifies the widget that you want the application context for. Description The XtCreateApplicationContext function returns an application context, which is an opaque type….

  • |

    XtConvertCase (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); Arguments display Specifies the display. keycode Specifies the KeyCode…

  • |

    XtConvertAndStore (3) Linux Manual Page

    XtConvertAndStore, XtCallConverter – invoke resource converters Syntax #include <X11/Intrinsic.h> Boolean XtConvertAndStore(Widget widget, const char *from_type, XrmValuePtr from, const char *to_type, XrmValuePtr to_in_out); Boolean XtCallConverter(Display* dpy, XtTypeConverter converter, XrmValuePtr args, Cardinal num_args, XrmValuePtr from, XrmValuePtr to_in_out, XtCacheRef* cache_ref_return); Arguments args Specifies the argument list that contains the additional arguments needed to perform the conversion, or NULL….

  • |

    XtConvert (3) Linux Manual Page

    XtConvert, XtDirectConvert – invoke resource converters Syntax #include <X11/Intrinsic.h> void XtConvert(Widget w, const char *from_type, XrmValuePtr from, const char *to_type, XrmValuePtr to_return); void XtDirectConvert(XtConverter converter, XrmValuePtr args, Cardinal num_args, XrmValuePtr from, XrmValuePtr to_return); Arguments args Specifies the argument list that contains the additional arguments needed to perform the conversion (often NULL). converter Specifies the conversion…

  • |

    XtConfigureWidget (3) Linux Manual Page

    XtConfigureWidget, XtMoveWidget, XtResizeWidget – move and resize widgets Syntax #include <X11/Intrinsic.h> void XtConfigureWidget(Widget w, Position x, Position y, Dimension width, Dimension height, Dimension border_width); void XtMoveWidget(Widget w, Position x, Position y); void XtResizeWidget(Widget w, Dimension width, Dimension height, Dimension border_width); void XtResizeWindow(Widget w); Arguments width height border_width Specify the new widget size. w Specifies the…

  • |

    XtCloseDisplay (3) Linux Manual Page

    XtDisplayInitialize, XtOpenDisplay, XtDatabase, XtScreenDatabase, XtCloseDisplay – initialize, open, or close a display Syntax #include <X11/Intrinsic.h> void XtDisplayInitialize(XtAppContext app_context, Display *display, const char *application_name, const char *application_class, XrmOptionDescRec *options, Cardinal num_options, int *argc, char **argv); Display *XtOpenDisplay(XtAppContext app_context, const char *display_string, const char *application_name, const char *application_class, XrmOptionDescRec *options, Cardinal num_options, int *argc, char **argv); void…

  • |

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

  • |

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

  • |

    XtChangeManagedSet (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); Arguments child Specifies the child. children…

  • |

    XtCancelSelectionRequest (3) Linux Manual Page

    XtCreateSelectionRequest, XtSendSelectionRequest, XtCancelSelectionRequest – bundle multiple selection conversion requests into a single request using MULTIPLE target Syntax #include <X11/Intrinsic.h> void XtCreateSelectionRequest(Widget requestor, Atom selection); void XtSendSelectionRequest(Widget requestor, Atom selection, Time time); void XtCancelSelectionRequest(Widget requestor, Atom selection); Arguments requestor Specifies the widget making the request. Must be of class Core or a subclass thereof. selection Specifies…

  • |

    XtCalloc (3) Linux Manual Page

    XtMalloc, XtCalloc, XtRealloc, XtFree, XtNew, XtNewString – memory management functions Syntax #include <X11/Intrinsic.h> char *XtMalloc(Cardinal size); char *XtCalloc(Cardinal num, Cardinal size); char *XtRealloc(char *ptr, Cardinal num); void XtFree(char *ptr); type *XtNew(type); String XtNewString(String string); Cardinal XtAsprintf(char **new_string, const char *format, …); Arguments num Specifies the number of bytes or array elements. ptr Specifies a pointer…

  • |

    XtCallbackPopdown (3) Linux Manual Page

    XtPopdown, XtCallbackPopdown – unmap a pop-up Syntax #include <X11/Intrinsic.h> void XtPopdown(Widget popup_shell); void XtCallbackPopdown(Widget w, XtPointer client_data, XtPointer call_data); Actions void XtMenuPopdown(String shell_name); Arguments call_data Specifies the callback data, which is not used by this procedure. client_data Specifies a pointer to the XtPopdownID structure. popup_shell Specifies the widget shell to pop down. shell_name Specifies the…