XtCheckSubclass(3)



XtClass

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO

NAME

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

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 w);

Boolean XtIsConstraint(Widget w,

Boolean XtIsShell(Widget w);

Boolean XtIsOverrideShell(Widget w);

Boolean XtIsWMShell(Widget w);

Boolean XtIsVendorShell(Widget w);

Boolean XtIsTransientShell(Widget w);

Boolean XtIsTopLevelShell(Widget w);

Boolean XtIsApplicationShell(Widget w);

Boolean XtIsSessionShell(Widget w);

ARGUMENTS

w

Specifies the widget.

widget_class

Specifies the widget class.

message

Specifies the message that is to be used.

DESCRIPTION

The XtClass function returns a pointer to the widget’s class structure.

The XtSuperclass function returns a pointer to the widget’s superclass class structure.

The XtIsSubclass function returns True if the class of the specified widget is equal to or is a subclass of the specified class. The widget’s class can be any number of subclasses down the chain and need not be an immediate subclass of the specified class. Composite widgets that need to restrict the class of the items they contain can use XtIsSubclass to find out if a widget belongs to the desired class of objects.

The XtCheckSubclass macro determines if the class of the specified widget is equal to or is a subclass of the specified widget class. The widget can be any number of subclasses down the chain and need not be an immediate subclass of the specified widget class. If the specified widget is not a subclass, XtCheckSubclass constructs an error message from the supplied message, the widget’s actual class, and the expected class and calls XtErrorMsg. XtCheckSubclass should be used at the entry point of exported routines to ensure that the client has passed in a valid widget class for the exported operation.

XtCheckSubclass is only executed when the widget has been compiled with the compiler symbol DEBUG defined; otherwise, it is defined as the empty string and generates no code.

To test if a given widget belongs to a subclass of an Intrinsics-defined class, the Intrinsics defines macros or functions equivalent to XtIsSubclass for each of the built-in classes. These procedures are XtIsObject, XtIsRectObj, XtIsWidget, XtIsComposite, XtIsConstraint, XtIsShell, XtIsOverrideShell, XtIsWMShell, XtIsVendorShell, XtIsTransientShell, XtIsTopLevelShell, XtIsApplicationShell, and XtIsSessionShell.

The

SEE ALSO

XtAppErrorMsg(3Xt), XtDisplay(3Xt)
X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface



More Linux Commands

manpages/glLightModeli.3gl.html
glLightModeli(3gl) - set the lighting model parameters......
glLightModel sets the lighting model parameter. pname names a parameter and params gives the new value. There are three lighting model parameters: GL_LIGHT_MODE

manpages/XtAppCreateShell.3.html
XtAppCreateShell(3) - create top-level widget instance......
The XtAppCreateShell function saves the specified application name and application class for qualifying all widget resource specifiers. The application name and

manpages/nona.1.html
nona(1) - Stitch a panorama image - Linux manual page.......
nona uses the transform function from PanoTools, the stitching itself is quite simple, no seam feathering is done. Only the non-antialiasing interpolators of Pa

manpages/CPU_XOR_S.3.html
CPU_XOR_S(3) - macros for manipulating CPU sets (Man Page)
The cpu_set_t data structure represents a set of CPUs. CPU sets are used by sched_setaffinity(2) and similar interfaces. The cpu_set_t data type is implemented

manpages/pdftocairo.1.html
pdftocairo(1) - Portable Document Format (PDF) to PNG/JPEG/P
pdftocairo converts Portable Document Format (PDF) files, using the cairo output device of the poppler PDF library, to any of the following output formats: * Po

manpages/cpupower-set.1.html
cpupower-set(1) Set processor power related kernel or hardwa
cpupower set sets kernel configurations or directly accesses hardware registers affecting processor power saving policies. Some options are platform wide, some

manpages/lslocks.8.html
lslocks(8) list local system locks - Linux manual page......
lslocks lists information about all the currently held file locks in a Linux system. OPTIONS -h, --help Display help text and exit. -n, --noheadings Do not prin

manpages/SDL_VideoModeOK.3.html
SDL_VideoModeOK(3) - Check to see if a particular video mode
SDL_VideoModeOK returns 0 if the requested mode is not supported under any bit depth, or returns the bits-per-pixel of the closest available mode with the given

manpages/Tk_GetColorByValue.3.html
Tk_GetColorByValue(3) - maintain database of colors.........
These procedures manage the colors being used by a Tk application. They allow colors to be shared whenever possible, so that colormap space is preserved, and th

manpages/slk_noutrefresh_sp.3ncurses.html
slk_noutrefresh_sp(3ncurses) - curses screen-pointer extensi
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/iceauth.1.html
iceauth(1) - ICE authority file utility - Linux manual page
The iceauth program is used to edit and display the authorization information used in connecting with ICE. This program is usually used to extract authorization

manpages/XpCancelPage.3x.html
XpCancelPage(3x) - Cancels a print page. - Linux man page...
XpCancelPage cancels an in-progress print page. If the job was started with output_mode XPGetData then the data stream to XpGetDocumentData is interrupted; no f





We can't live, work or learn in freedom unless the software we use is free.