XtOffset(3Xt) MIT X11R4 XtOffset(3Xt)Name
XtOffset, XtNumber - determine the byte offset or number of array elements
Syntax
Cardinal XtOffset(pointer_type, field_name)
Type pointer_type;
Field field_name;
Cardinal XtNumber(array)
ArrayVariable array;
Arguments
array Specifies a fixed-size array.
field_name
Specifies the name of the field for which to calculate the byte offset.
pointer_type
Specifies a type that is declared as a pointer to the structure.
Description
The macro is usually used to determine the offset of various resource fields from the beginning of a widget and can be used at compile time
in static initializations.
The macro returns the number of elements in the specified argument lists, resources lists, and other counted arrays.
See AlsoXtGetResourceList(3Xt), XtSetArg(3Xt)
X Window System Toolkit: The Complete Programmer's Guide and Specification, Paul J. Asente and Ralph Swick
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XtOffset(3Xt)
Check Out this Related Man Page
XtOffset(3Xt)XtOffset(3Xt)NAME
XtOffset, XtOffsetOf, XtNumber - determine the byte offset or number of array elements
SYNOPSIS
Cardinal XtOffset(pointer_type, field_name)
Type pointer_type;
Field field_name;
Cardinal XtOffsetOf(structure_type, field_name)
Type structure_type;
Field field_name;
Cardinal XtNumber(array)
ArrayVariable array;
ARGUMENTS
Specifies a fixed-size array. Specifies the name of the field for which to calculate the byte offset. Specifies a type that is declared
as a pointer to the structure. Specifies a type that is declared as a structure.
DESCRIPTION
The XtOffset macro is usually used to determine the offset of various resource fields from the beginning of a widget and can be used at
compile time in static initializations.
The XtOffsetOf macro expands to a constant expression that gives the offset in bytes to the specified structure member from the beginning
of the structure. It is normally used to statically initialize resource lists and is more portable than XtOffset, which serves the same
function.
The XtNumber macro returns the number of elements in the specified argument lists, resources lists, and other counted arrays.
SEE ALSO XtGetResourceList(3Xt), XtSetArg(3Xt)
X Toolkit Intrinsics -- C Language Interface
Xlib -- C Language X Interface
XtOffset(3Xt)
I am using uil to build the widgets. I compiled the below code using gcc 3.4.6 compiler. Launched x window in light gray color. How to change the default color of the window?
#include <X11/Xlib.h>
#include <Xm/Xm.h>
#include <Mrm/MrmAppl.h>
void
main ( int argc, char **argv )
{... (1 Reply)
this is kinda solved
Hi
I need to program an ordinary text field which scrolls to the right when it gets filled. It must be in Xaw3d. I cannot get the asciiTextWidget to do it.
Which resource do you need to set in asciiTextWidget to allow the widget to scroll to the right when typing text... (1 Reply)
Hi, I'm creating a loop that allows the user to enter any number, then their choice of operator and then another number until their operator choice is equal to =
But I am getting an error saying integer expression expected. Any explanation on why this is happening?
echo "Please enter a number"... (1 Reply)
i have below code to count number of rows in file1.txt, if the row count is more than one then i have sending an email along with file1.txt attached and fail the process(do nothing if count is <=1),
if I test individually count part works good but when i include the email part its not working,... (4 Replies)
Hi,
i have here found a very good texteditor source code programmed in the MOTIF GUI language.
For myself i need NOTHING else to program.
To start from a very easy point of view i want to RUN this editor on my LINUX machine and type simple C code.
The reason for this post is that the text... (7 Replies)