XtClass
NAMESYNTAX
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/fastrm.1.html
fastrm(1) - Quickly remove a list of files - Linux man page
fastrm reads a list of either file names or storage API tokens, one per line, from its standard input and removes them. Storage API tokens are removed via the S
manpages/ESCDELAY.3ncurses.html
ESCDELAY(3ncurses) - curses global variables (Man Page).....
This page summarizes variables provided by the curses library. A more complete description is given in the curses(3X) manual page. Depending on the configuratio
manpages/y0l.3.html
y0l(3) - Bessel functions of the second kind (Man Page).....
The y0() and y1() functions return Bessel functions of x of the second kind of orders 0 and 1, respectively. The yn() function returns the Bessel function of x
manpages/glColor3d.3gl.html
glColor3d(3gl) - set the current color - Linux manual page
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major va
manpages/use_screen.3ncurses.html
use_screen(3ncurses) - curses thread support (Man Page).....
This implementation can be configured to provide rudimentary support for multi-threaded applications. This makes a different set of libraries, e.g., libncursest
manpages/iso_8859_16.7.html
iso_8859_16(7) - ISO 8859-16 character set encoded in octal,
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). ISO 8859-16, the Latin Alphabet No. 10 is used t
manpages/git-remote-fd.1.html
git-remote-fd(1) - Reflect smart transport stream back to ca
This helper uses specified file descriptors to connect to a remote Git server. This is not meant for end users but for programs and scripts calling git fetch, p
manpages/glTexCoord2s.3gl.html
glTexCoord2s(3gl) - set the current texture coordinates.....
glTexCoord specifies texture coordinates in one, two, three, or four dimensions. glTexCoord1 sets the current texture coordinates to (s, 0, 0, 1); a call to glT
manpages/glMatrixMode.3gl.html
glMatrixMode(3gl) - specify which matrix is the current matr
glMatrixMode sets the current matrix mode. mode can assume one of four values: GL_MODELVIEW Applies subsequent matrix operations to the modelview matrix stack.
manpages/set_form_sub.3form.html
set_form_sub(3form) - make and break form window and subwind
Every form has an associated pair of curses windows. The form window displays any title and border associated with the window; the form subwindow displays the i
manpages/glReadBuffer.3gl.html
glReadBuffer(3gl) - select a color buffer source for pixels
glReadBuffer specifies a color buffer as the source for subsequent glReadPixels, glCopyTexImage1D, glCopyTexImage2D, glCopyTexSubImage1D, glCopyTexSubImage2D, g
manpages/resetty.3ncurses.html
resetty(3ncurses) - low-level curses routines (Man Page)....
The following routines give low-level access to various curses capabilities. These routines typically are used inside library routines. The def_prog_mode and de
