2012-03-10 09:45:48 -07:00
|
|
|
<chapter id='Evolution_of_the_Intrinsics'>
|
|
|
|
<title>Evolution of the Intrinsics</title>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The interfaces described by this specification have undergone several
|
|
|
|
sets of revisions in the course of adoption as an X Consortium
|
|
|
|
standard specification. Having now been adopted by the Consortium as
|
|
|
|
a standard part of the X Window System, it is expected that this and
|
|
|
|
future revisions will retain
|
|
|
|
backward compatibility in the sense that fully conforming
|
|
|
|
implementations of these specifications may be produced that provide
|
|
|
|
source compatibility with widgets and applications written to
|
|
|
|
previous Consortium standard revisions.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The Intrinsics do not place any special requirement on widget
|
2010-10-31 10:05:19 -06:00
|
|
|
programmers to retain source or binary compatibility for their widgets
|
|
|
|
as they evolve, but several conventions have been established to
|
|
|
|
assist those developers who want to provide such compatibility.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
In particular, widget programmers may wish to conform to the convention
|
2012-03-10 09:45:48 -07:00
|
|
|
described in <xref linkend='Class_Extension_Records' /> when defining class extension records.
|
|
|
|
</para>
|
|
|
|
<sect1 id="Determining_Specification_Revision_Level">
|
|
|
|
<title>Determining Specification Revision Level</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Widget and application developers who wish to maintain a common source
|
2012-03-10 09:45:48 -07:00
|
|
|
pool that will build properly with implementations of the Intrinsics
|
2010-10-31 10:05:19 -06:00
|
|
|
at different revision levels of these specifications but that take
|
|
|
|
advantage of newer features added in later revisions may use the
|
|
|
|
symbolic macro
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XtSpecificationRelease</function>.
|
|
|
|
</para>
|
|
|
|
<literallayout >
|
2010-10-31 10:05:19 -06:00
|
|
|
#define XtSpecificationRelease 6
|
2012-03-10 09:45:48 -07:00
|
|
|
</literallayout>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
As the symbol
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XtSpecificationRelease</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
was new to Release 4, widgets and
|
|
|
|
applications desiring to build against earlier implementations should
|
|
|
|
test for the presence of this symbol and assume only Release 3
|
|
|
|
interfaces if the definition is not present.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect1>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect1 id="Release_to_Release_Compatibility">
|
|
|
|
<title>Release 3 to Release 4 Compatibility</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
At the data structure level, Release 4 retains binary compatibility
|
|
|
|
with Release 3 (the first X Consortium standard release) for all data
|
|
|
|
structures except
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>WMShellPart,</function>
|
|
|
|
<function>TopLevelShellPart</function>,
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>TransientShellPart</function>.
|
2010-10-31 10:05:19 -06:00
|
|
|
Release 4 changed the argument type to most procedures that now take
|
|
|
|
arguments of type
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XtPointer</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
and structure members that are now of type
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XtPointer</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
in order to avoid potential ANSI C conformance problems. It is
|
|
|
|
expected that most implementations will be binary compatible with the
|
|
|
|
previous definition.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Two fields in
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>CoreClassPart</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
were changed from
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>Boolean</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
to
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XtEnum</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
to allow implementations additional freedom in specifying the
|
|
|
|
representations of each. This change should require no source
|
|
|
|
modification.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
<sect2 id="Additional_Arguments">
|
|
|
|
<title>Additional Arguments</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Arguments were added to the procedure definitions for
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtInitProc' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtSetValuesFunc' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtEventHandler' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
to provide more information and to
|
|
|
|
allow event handlers to abort further dispatching of the current event
|
|
|
|
(caution is advised!). The added arguments to
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtInitProc' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtSetValuesFunc' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
make the initialize_hook and set_values_hook methods
|
|
|
|
obsolete, but the hooks have been retained for those widgets that used
|
|
|
|
them in Release 3.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="set_values_almost_Procedures">
|
|
|
|
<title>set_values_almost Procedures</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The use of the arguments by a set_values_almost procedure was poorly
|
|
|
|
described in Release 3 and was inconsistent with other conventions.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The current specification for the manner in which a set_values_almost
|
2012-03-10 09:45:48 -07:00
|
|
|
procedure returns information to the Intrinsics is not compatible with
|
2010-10-31 10:05:19 -06:00
|
|
|
the Release 3 specification, and all widget implementations should
|
|
|
|
verify that any set_values_almost procedures conform to the current
|
|
|
|
interface.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
No known implementation of the Intrinsics correctly implemented the
|
2010-10-31 10:05:19 -06:00
|
|
|
Release 3 interface, so it is expected that the impact of this
|
|
|
|
specification change is small.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Query_Geometry">
|
|
|
|
<title>Query Geometry</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
A composite widget layout routine that calls
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtQueryGeometry' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
is now expected to store the complete new geometry in the intended structure;
|
|
|
|
previously the specification said ``store the changes it intends to
|
|
|
|
make''. Only by storing the complete geometry does the child have
|
|
|
|
any way to know what other parts of the geometry may still be
|
|
|
|
flexible. Existing widgets should not be affected by this, except
|
|
|
|
to take advantage of the new information.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="unrealizeCallback_Callback_List">
|
|
|
|
<title>unrealizeCallback Callback List</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
In order to provide a mechanism for widgets to be notified when they
|
|
|
|
become unrealized through a call to
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtUnrealizeWidget' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
the callback
|
2012-03-10 09:45:48 -07:00
|
|
|
list name ``unrealizeCallback'' has been defined by the Intrinsics. A
|
2010-10-31 10:05:19 -06:00
|
|
|
widget class that requires notification on unrealize may declare a
|
|
|
|
callback list resource by this name. No class is required to declare
|
|
|
|
this resource, but any class that did so in a prior revision may find
|
|
|
|
it necessary to modify the resource name if it does not wish to use the new
|
|
|
|
semantics.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Subclasses_of_WMShell">
|
|
|
|
<title>Subclasses of WMShell</title>
|
|
|
|
<para>
|
|
|
|
The formal adoption of the <emphasis remap='I'>Inter-Client Communication Conventions Manual.</emphasis> as
|
2010-10-31 10:05:19 -06:00
|
|
|
an X Consortium standard has meant the addition of four fields to
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>WMShellPart</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
and one field to
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>TopLevelShellPart</function>.
|
2010-10-31 10:05:19 -06:00
|
|
|
In deference to some
|
|
|
|
widget libraries that had developed their own additional conventions
|
|
|
|
to provide binary compatibility, these five new fields were added at
|
2012-03-10 09:45:48 -07:00
|
|
|
the end of the respective data structures.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
To provide more convenience for TransientShells, a field was added
|
|
|
|
to the previously empty
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>TransientShellPart</function>.
|
2010-10-31 10:05:19 -06:00
|
|
|
On some architectures the size of the part structure will not
|
|
|
|
have changed as a result of this.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Any widget implementation whose class is a subclass of
|
|
|
|
TopLevelShell
|
|
|
|
or
|
|
|
|
TransientShell
|
|
|
|
must at minimum be
|
|
|
|
recompiled with the new data structure declarations. Because
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>WMShellPart</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
no longer contains a contiguous
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XSizeHints</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
data structure,
|
|
|
|
a subclass that expected to do a single structure assignment of an
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XSizeHints</function>
|
|
|
|
structure to the <emphasis remap='I'>size_hints</emphasis> field of
|
|
|
|
<function>WMShellPart</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
must be revised, though the old fields remain at the same positions within
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>WMShellPart</function>.
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="Resource_Type_Converters">
|
|
|
|
<title>Resource Type Converters</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
A new interface declaration for resource type converters was defined
|
|
|
|
to provide more information to converters, to support conversion
|
|
|
|
cache cleanup with resource reference counting, and to allow
|
|
|
|
additional procedures to be declared to free resources. The old
|
|
|
|
interfaces remain (in the compatibility section), and a new set of
|
|
|
|
procedures was defined that work only with the new type converter
|
|
|
|
interface.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
In the now obsolete old type converter interface, converters are
|
|
|
|
reminded that they must return the size of the converted value as well
|
|
|
|
as its address. The example indicated this, but the description of
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtConverter' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
was incomplete.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="KeySym_Case_Conversion_Procedure">
|
|
|
|
<title>KeySym Case Conversion Procedure</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The specification for the
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtCaseProc' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
function type has been changed
|
|
|
|
to match the Release 3 implementation, which included necessary
|
|
|
|
additional information required by the function (a pointer to the
|
|
|
|
display connection), and corrects the argument type of the source
|
2012-03-10 09:45:48 -07:00
|
|
|
KeySym parameter. No known implementation of the Intrinsics
|
2010-10-31 10:05:19 -06:00
|
|
|
implemented the previously documented interface.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Nonwidget_Objects_2">
|
|
|
|
<title>Nonwidget Objects</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Formal support for nonwidget objects is new to Release 4. A
|
|
|
|
prototype implementation was latent in at least one Release 3
|
2012-03-10 09:45:48 -07:00
|
|
|
implementation of the Intrinsics, but the specification has changed
|
2010-10-31 10:05:19 -06:00
|
|
|
somewhat. The most significant change is the requirement for a
|
|
|
|
composite widget to declare the
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>CompositeClassExtension</function>
|
|
|
|
record with the <emphasis remap='I'>accepts_objects</emphasis> field set to
|
|
|
|
<function>True</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
in order to permit a client to create a nonwidget child.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The addition of this extension field ensures that composite widgets
|
|
|
|
written under Release 3 will not encounter unexpected errors if an
|
|
|
|
application attempts to create a nonwidget child. In Release 4 there
|
|
|
|
is no requirement that all composite widgets implement the extra
|
|
|
|
functionality required to manage windowless children, so the
|
2012-03-10 09:45:48 -07:00
|
|
|
<emphasis remap='I'>accepts_objects</emphasis> field allows a composite widget to declare that it
|
2010-10-31 10:05:19 -06:00
|
|
|
is not prepared to do so.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect1 id="Release_to_Release_Compatibility_2">
|
|
|
|
<title>Release 4 to Release 5 Compatibility</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
At the data structure level, Release 5 retains complete binary
|
|
|
|
compatibility with Release 4. The specification of the
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>ObjectPart</function>,
|
|
|
|
<function>RectObjPart</function>,
|
|
|
|
<function>CorePart</function>,
|
|
|
|
<function>CompositePart</function>,
|
|
|
|
<function>ShellPart</function>,
|
|
|
|
<function>WMShellPart</function>,
|
|
|
|
<function>TopLevelShellPart</function>,
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>ApplicationShellPart</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
instance records was made less strict to permit implementations to
|
|
|
|
add internal fields to these structures. Any implementation that
|
|
|
|
chooses to do so would, of course, force a recompilation.
|
|
|
|
The Xlib specification for
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XrmValue</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XrmOptionDescRec</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
was updated to use a new type,
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XPointer</function>,
|
|
|
|
for the <emphasis remap='I'>addr</emphasis> and <emphasis remap='I'>value</emphasis> fields, respectively, to avoid
|
2010-10-31 10:05:19 -06:00
|
|
|
ANSI C conformance problems. The definition of
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XPointer</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
is binary compatible with the previous implementation.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
<sect2 id="baseTranslations_Resource">
|
|
|
|
<title>baseTranslations Resource</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
A new pseudo-resource, XtNbaseTranslations, was defined to permit
|
|
|
|
application developers to specify translation tables in application
|
|
|
|
defaults files while still giving end users the ability to augment
|
|
|
|
or override individual event sequences. This change will affect
|
|
|
|
only those applications that wish to take advantage of the new
|
|
|
|
functionality or those widgets that may have previously defined
|
|
|
|
a resource named ``baseTranslations''.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Applications wishing to take advantage of the new functionality
|
|
|
|
would change their application defaults file, e.g., from
|
2012-03-10 09:45:48 -07:00
|
|
|
<literallayout >
|
|
|
|
app.widget.translations: <emphasis remap='I'>value</emphasis>
|
2010-10-31 10:05:19 -06:00
|
|
|
to
|
2012-03-10 09:45:48 -07:00
|
|
|
app.widget.baseTranslations: <emphasis remap='I'>value</emphasis>
|
|
|
|
</literallayout>
|
2010-10-31 10:05:19 -06:00
|
|
|
If it is important to the application to preserve complete
|
|
|
|
compatibility of the defaults file between different versions
|
|
|
|
of the application running under Release 4 and Release 5,
|
|
|
|
the full translations can be replicated in both the ``translations''
|
|
|
|
and the ``baseTranslations'' resource.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Resource_File_Search_Path">
|
|
|
|
<title>Resource File Search Path</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The current specification allows implementations greater flexibility
|
|
|
|
in defining the directory structure used to hold the application class
|
|
|
|
and per-user application defaults files. Previous specifications
|
|
|
|
required the substitution strings to appear in the default path in a
|
|
|
|
certain order, preventing sites from collecting all the files for
|
|
|
|
a specific application together in one directory. The Release 5
|
|
|
|
specification allows the default path to specify the substitution
|
|
|
|
strings in any order within a single path entry. Users will need to
|
|
|
|
pay close attention to the documentation for the specific
|
|
|
|
implementation to know where to find these files and how to specify
|
|
|
|
their own
|
2012-03-10 09:45:48 -07:00
|
|
|
<emphasis role='strong'>XFILESEARCHPATH</emphasis>
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<emphasis role='strong'>XUSERFILESEARCHPATH</emphasis>
|
2010-10-31 10:05:19 -06:00
|
|
|
values when overriding the system defaults.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Customization_Resource">
|
|
|
|
<title>Customization Resource</title>
|
|
|
|
<para>
|
|
|
|
<xref linkend='XtResolvePathname' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
supports a new substitution string, %C, for specifying separate
|
|
|
|
application class resource files according to arbitrary user-specified
|
|
|
|
categories. The primary motivation for this addition was separate
|
|
|
|
monochrome and color application class defaults files. The
|
|
|
|
substitution value is obtained by querying the current resource
|
|
|
|
database for the application resource name ``customization'', class
|
|
|
|
``Customization''. Any application that previously used this
|
|
|
|
resource name and class will need to be aware of the possibly
|
|
|
|
conflicting semantics.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Per_Screen_Resource_Database">
|
|
|
|
<title>Per-Screen Resource Database</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
To allow a user to specify separate preferences for each screen of a
|
|
|
|
display, a per-screen resource specification string has been added and
|
|
|
|
multiple resource databases are created; one for each screen. This
|
|
|
|
will affect any application that modified the (formerly unique)
|
2012-03-10 09:45:48 -07:00
|
|
|
resource database associated with the display subsequent to the Intrinsics
|
2010-10-31 10:05:19 -06:00
|
|
|
database initialization. Such applications will need to be aware
|
|
|
|
of the particular screen on which each shell widget is to be created.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Although the wording of the specification changed substantially in the
|
|
|
|
description of the process by which the resource database(s) is
|
|
|
|
initialized, the net effect is the same as in prior releases with the
|
|
|
|
exception of the added per-screen resource specification and the new
|
|
|
|
customization substitution string in
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtResolvePathname' xrefstyle='select: title'/>.
|
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Internationalization_of_Applications">
|
|
|
|
<title>Internationalization of Applications</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Internationalization as defined by ANSI is a technology that
|
|
|
|
allows support of an application in a single locale. In
|
2012-03-10 09:45:48 -07:00
|
|
|
adding support for internationalization to the Intrinsics
|
2010-10-31 10:05:19 -06:00
|
|
|
the restrictions of this model have been followed.
|
2012-03-10 09:45:48 -07:00
|
|
|
In particular, the new Intrinsics interfaces are designed not to
|
2010-10-31 10:05:19 -06:00
|
|
|
preclude an application from using other alternatives.
|
2012-03-10 09:45:48 -07:00
|
|
|
For this reason, no Intrinsics routine makes a call to establish the
|
2010-10-31 10:05:19 -06:00
|
|
|
locale. However, a convenience routine to establish the
|
|
|
|
locale at initialize time has been provided, in the form
|
|
|
|
of a default procedure that must be explicitly installed
|
|
|
|
if the application desires ANSI C locale behavior.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
As many objects in X, particularly resource databases, now inherit
|
|
|
|
the global locale when they are created, applications wishing to use
|
|
|
|
the ANSI C locale model should use the new function
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XtSetLanguageProc</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
to do so.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The internationalization additions also define event filters
|
|
|
|
as a part of the Xlib Input Method specifications. The
|
2012-03-10 09:45:48 -07:00
|
|
|
Intrinsics enable the use of event filters through additions to
|
|
|
|
<xref linkend='XtDispatchEvent' xrefstyle='select: title'/>.
|
2010-10-31 10:05:19 -06:00
|
|
|
Applications that may not be dispatching all events through
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtDispatchEvent' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
should be reviewed in the context of this new input method mechanism.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
In order to permit internationalization of error messages, the name
|
|
|
|
and path of the error database file are now allowed to be
|
|
|
|
implementation-dependent.
|
|
|
|
No adequate standard mechanism has yet been suggested to
|
2012-03-10 09:45:48 -07:00
|
|
|
allow the Intrinsics to locate the database from localization information
|
2010-10-31 10:05:19 -06:00
|
|
|
supplied by the client.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The previous specification for the syntax of the language string
|
|
|
|
specified by
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>xnlLanguage</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
has been dropped to avoid potential conflicts with other standards.
|
|
|
|
The language string syntax is now implementation-defined.
|
|
|
|
The example syntax cited is consistent with the previous
|
|
|
|
specification.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Permanently_Allocated_Strings">
|
|
|
|
<title>Permanently Allocated Strings</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
In order to permit additional memory savings, an Xlib interface was
|
|
|
|
added to allow the resource manager to avoid copying certain string
|
2012-03-10 09:45:48 -07:00
|
|
|
constants. The Intrinsics specification was updated to explicitly require
|
|
|
|
the Object <emphasis remap='I'>class_name</emphasis>, <emphasis remap='I'>resource_name</emphasis>, <emphasis remap='I'>resource_class</emphasis>,
|
|
|
|
<emphasis remap='I'>resource_type</emphasis>, <emphasis remap='I'>default_type</emphasis> in resource tables, Core <emphasis remap='I'>actions</emphasis>
|
|
|
|
<emphasis remap='I'>string</emphasis> field, and Constraint <emphasis remap='I'>resource_name</emphasis>, <emphasis remap='I'>resource_class</emphasis>,
|
|
|
|
<emphasis remap='I'>resource_type</emphasis>, and <emphasis remap='I'>default_type</emphasis> resource fields to be
|
2010-10-31 10:05:19 -06:00
|
|
|
permanently allocated. This explicit requirement is expected to
|
|
|
|
affect only applications that may create and destroy classes
|
|
|
|
on the fly.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="Arguments_to_Existing_Functions">
|
|
|
|
<title>Arguments to Existing Functions</title>
|
|
|
|
<para>
|
|
|
|
The <emphasis remap='I'>args</emphasis> argument to
|
|
|
|
<xref linkend='XtAppInitialize' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtVaAppInitialize' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtOpenDisplay' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtDisplayInitialize' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtInitialize' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
were changed from
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>Cardinal</function>*
|
2010-10-31 10:05:19 -06:00
|
|
|
to int* to conform to pre-existing convention and avoid otherwise
|
|
|
|
annoying typecasting in ANSI C environments.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect1 id="Release_to_Release_Compatibility_3">
|
|
|
|
<title>Release 5 to Release 6 Compatibility</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
At the data structure level, Release 6 retains binary compatibility
|
2012-03-10 09:45:48 -07:00
|
|
|
with Release 5 for all data structures except
|
|
|
|
<function>WMShellPart</function>.
|
|
|
|
Three resources were added to the specification.
|
2010-10-31 10:05:19 -06:00
|
|
|
The known implementations had unused space in the data structure,
|
|
|
|
therefore on some architectures and implementations,
|
|
|
|
the size of the part structure will not have changed as a result of this.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
<sect2 id="Widget_Internals">
|
|
|
|
<title>Widget Internals</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Two new widget methods for instance allocation and deallocation were added
|
2012-03-10 09:45:48 -07:00
|
|
|
to the Object class. These new methods
|
2010-10-31 10:05:19 -06:00
|
|
|
allow widgets to be treated as C++ objects in the C++ environment
|
2012-03-10 09:45:48 -07:00
|
|
|
when an appropriate allocation method is specified or inherited
|
2010-10-31 10:05:19 -06:00
|
|
|
by the widget class.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The textual descriptions of the processes of widget creation and
|
|
|
|
widget destruction have been edited to provide clarification to widget
|
2012-03-10 09:45:48 -07:00
|
|
|
writers. Widgets writers may have reason to rely on the specific order of
|
2010-10-31 10:05:19 -06:00
|
|
|
the stages of widget creation and destruction; with that motivation,
|
|
|
|
the specification now more exactly describes the process.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
As a convenience, an interface to locate a widget class extension
|
2012-03-10 09:45:48 -07:00
|
|
|
record on a linked list,
|
|
|
|
<xref linkend='XtGetClassExtension' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
has been added.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
A new option to allow bundled changes to the managed set of a Composite
|
|
|
|
widget is introduced in the Composite class extension record.
|
|
|
|
Widgets that define a change_managed procedure that can accommodate
|
|
|
|
additions and deletions to the managed set of children in a single
|
2012-03-10 09:45:48 -07:00
|
|
|
invocation should set allows_change_managed_set to <function>True</function> in the
|
2010-10-31 10:05:19 -06:00
|
|
|
extension record.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The wording of the process followed by
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtUnmanageChildren' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
has changed slightly to better handle changes to the managed set
|
|
|
|
during phase 2 destroy processing.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
A new exposure event compression flag,
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XtExposeNoRegion</function>,
|
2010-10-31 10:05:19 -06:00
|
|
|
was added. Many widgets specify exposure compression, but either
|
|
|
|
ignore the actual damage region passed to the core expose procedure or
|
|
|
|
use only the cumulative bounding box data available in the event.
|
|
|
|
Widgets with expose procedures that do not make use of exact
|
2012-03-10 09:45:48 -07:00
|
|
|
exposure region information can indicate that the Intrinsics need not
|
2010-10-31 10:05:19 -06:00
|
|
|
compute the region.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="General_Application_Development">
|
|
|
|
<title>General Application Development</title>
|
|
|
|
<para>
|
|
|
|
<xref linkend='XtOpenApplication' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
is a new convenience procedure to initialize the toolkit, create an
|
|
|
|
application context, open an X display connection, and create the
|
|
|
|
root of the widget instance tree. It is identical to the interface
|
2012-03-10 09:45:48 -07:00
|
|
|
it replaces,
|
|
|
|
<xref linkend='XtAppInitialize' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
in all respects except that it takes an additional argument specifying
|
|
|
|
the widget class of the root shell to create.
|
|
|
|
This interface is now the recommended one so that clients may easily
|
|
|
|
become session participants.
|
|
|
|
The old convenience procedures appear in the compatibility section.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The toolkit initialization function
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtToolkitInitialize' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
may be called multiple times without penalty.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
In order to optimize changes in geometry to a set of geometry-managed
|
|
|
|
children, a new interface,
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtChangeManagedSet' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
has been added.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Communication_with_Window_and_Session_Managers">
|
|
|
|
<title>Communication with Window and Session Managers</title>
|
|
|
|
<para>
|
|
|
|
The revision of the <emphasis remap='I'>Inter-Client Communication Conventions Manual.</emphasis> as an X Consortium standard has resulted
|
2010-10-31 10:05:19 -06:00
|
|
|
in the addition of three fields to the specification of
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>WMShellPart</function>.
|
|
|
|
These are <emphasis remap='I'>urgency</emphasis>, <emphasis remap='I'>client_leader</emphasis>, and <emphasis remap='I'>window_role</emphasis>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The adoption of the <emphasis remap='I'>X Session Management Protocol</emphasis> as an X Consortium
|
|
|
|
standard has resulted in the addition of a new shell widget,
|
|
|
|
<function>SessionShell</function>,
|
2010-10-31 10:05:19 -06:00
|
|
|
and an accompanying subclass verification interface,
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>XtIsSessionShell</function>.
|
2010-10-31 10:05:19 -06:00
|
|
|
This widget provides support for communication between an application
|
|
|
|
and a session manager, as well as a window manager.
|
2012-03-10 09:45:48 -07:00
|
|
|
In order to preserve compatibility with existing subclasses of
|
|
|
|
<function>ApplicationShell</function>,
|
|
|
|
the
|
|
|
|
<function>ApplicationShell</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
was subclassed to create the new widget class.
|
|
|
|
The session protocol requires a modal response to certain checkpointing
|
|
|
|
operations by participating applications. The
|
2012-03-10 09:45:48 -07:00
|
|
|
<function>SessionShell</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
structures
|
|
|
|
the application's notification of and responses to messages from the session
|
|
|
|
manager by use of various callback lists and by use of the new interfaces
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtSessionGetToken' xrefstyle='select: title'/>
|
|
|
|
and
|
|
|
|
<xref linkend='XtSessionReturnToken' xrefstyle='select: title'/>.
|
2010-10-31 10:05:19 -06:00
|
|
|
There is also a new command line argument, -xtsessionID, which facilitates
|
2012-03-10 09:45:48 -07:00
|
|
|
the session manager in restarting applications based on the Intrinsics.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The resource name and class strings defined by the Intrinsics shell
|
|
|
|
widgets in
|
|
|
|
<function><X11/Shell.h></function>
|
2010-10-31 10:05:19 -06:00
|
|
|
are now listed in Appendix E. The addition of a new symbol
|
2012-03-10 09:45:48 -07:00
|
|
|
for the
|
|
|
|
<function>WMShell</function>
|
|
|
|
<emphasis remap='I'>wait_for_wm</emphasis> resource was made to bring the external symbol
|
2010-10-31 10:05:19 -06:00
|
|
|
and the string it represents into agreement. The actual resource name
|
2012-03-10 09:45:48 -07:00
|
|
|
string in
|
|
|
|
<function>WMShell</function>
|
2010-10-31 10:05:19 -06:00
|
|
|
has not changed.
|
2012-03-10 09:45:48 -07:00
|
|
|
The resource representation type of the XtNwinGravity resource of the
|
|
|
|
<function>WMShell</function>
|
|
|
|
was changed to XtRGravity in order to register a type
|
2010-10-31 10:05:19 -06:00
|
|
|
converter so that window gravity resource values could be specified by name.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Geometry_Management_2">
|
|
|
|
<title>Geometry Management</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
A clarification to the specification was made to indicate that geometry
|
|
|
|
requests may include current values along with the requested changes.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Event_Management_2">
|
|
|
|
<title>Event Management</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
In Release 6, support is provided for registering selectors
|
|
|
|
and event handlers for events generated by X protocol extensions
|
|
|
|
and for dispatching those events to the appropriate widget.
|
|
|
|
The new event handler registration interfaces are
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtInsertEventTypeHandler' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtRemoveEventTypeHandler' xrefstyle='select: title'/>.
|
2010-10-31 10:05:19 -06:00
|
|
|
Since the mechanism to indicate selection of extension events is specific
|
2012-03-10 09:45:48 -07:00
|
|
|
to the extension being used, the Intrinsics introduces
|
|
|
|
<xref linkend='XtRegisterExtensionSelector' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
which allows the application to select for the events of interest.
|
|
|
|
In order to change the dispatching algorithm to accommodate extension events
|
|
|
|
as well as core X protocol events,
|
2012-03-10 09:45:48 -07:00
|
|
|
the Intrinsics event dispatcher may now be replaced or enveloped
|
2010-10-31 10:05:19 -06:00
|
|
|
by the application with
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtSetEventDispatcher' xrefstyle='select: title'/>.
|
|
|
|
The dispatcher may wish to call
|
|
|
|
<xref linkend='XtGetKeyboardFocusWidget' xrefstyle='select: title'/>
|
|
|
|
to determine the widget with the current Intrinsics keyboard focus.
|
2010-10-31 10:05:19 -06:00
|
|
|
A dispatcher, after determining the destination widget, may use
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtDispatchEventToWidget' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
to cause the event to be dispatched to the event handlers registered
|
|
|
|
by a specific widget.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
To permit the dispatching of events
|
|
|
|
for nonwidget drawables, such as pixmaps that are not associated
|
2012-03-10 09:45:48 -07:00
|
|
|
with a widget's window,
|
|
|
|
<xref linkend='XtRegisterDrawable' xrefstyle='select: title'/>
|
|
|
|
and
|
|
|
|
<xref linkend='XtUnregisterDrawable' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
have been added to the library. A related update was made to
|
|
|
|
the description of
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtWindowToWidget' xrefstyle='select: title'/>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The library is now thread-safe, allowing one thread at a time to
|
|
|
|
enter the library and protecting global data as necessary from concurrent use.
|
2012-03-10 09:45:48 -07:00
|
|
|
Threaded toolkit applications are supported by the
|
2010-10-31 10:05:19 -06:00
|
|
|
new interfaces
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtToolkitThreadInitialize' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtAppLock' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtAppUnlock' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtAppSetExitFlag' xrefstyle='select: title'/>,
|
|
|
|
and
|
|
|
|
<xref linkend='XtAppGetExitFlag' xrefstyle='select: title'/>.
|
|
|
|
Widget writers may also use
|
|
|
|
<xref linkend='XtProcessLock' xrefstyle='select: title'/>
|
|
|
|
and
|
|
|
|
<xref linkend='XtProcessUnlock' xrefstyle='select: title'/>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
Safe handling of POSIX signals and other asynchronous notifications
|
2012-03-10 09:45:48 -07:00
|
|
|
is now provided by use of
|
|
|
|
<xref linkend='XtAppAddSignal' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtNoticeSignal' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
and
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtRemoveSignal' xrefstyle='select: title'/>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The application can receive notification of an impending block
|
2012-03-10 09:45:48 -07:00
|
|
|
in the Intrinsics event manager by registering interest through
|
|
|
|
<xref linkend='XtAppAddBlockHook' xrefstyle='select: title'/>
|
|
|
|
and
|
|
|
|
<xref linkend='XtRemoveBlockHook' xrefstyle='select: title'/>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<xref linkend='XtLastEventProcessed' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
returns the most recent event passed to
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtDispatchEvent' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
for a specified display.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Resource_Management_2">
|
|
|
|
<title>Resource Management</title>
|
|
|
|
<para>
|
|
|
|
Resource converters are registered by the Intrinsics for window gravity
|
2010-10-31 10:05:19 -06:00
|
|
|
and for three new resource types associated with session participation:
|
|
|
|
RestartStyle, CommandArgArray and DirectoryString.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The file search path syntax has been extended to make it easier to
|
|
|
|
include the default search path, which controls resource
|
|
|
|
database construction, by using the new substitution string, %D.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Translation_Management_2">
|
|
|
|
<title>Translation Management</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The default key translator now recognizes the NumLock modifier.
|
|
|
|
If NumLock is on and the second keysym is a keypad keysym
|
|
|
|
(a standard keysym named with a ``KP'' prefix or a
|
|
|
|
vendor-specific keysym in the hexadecimal range 0x11000000 to 0x1100FFFF),
|
|
|
|
then the default key translator will
|
2012-03-10 09:45:48 -07:00
|
|
|
use the first keysym if Shift and/or ShiftLock is on and will
|
2010-10-31 10:05:19 -06:00
|
|
|
use the second keysym if neither is on. Otherwise, it will
|
|
|
|
ignore NumLock and apply the normal protocol semantics.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2010-10-31 10:05:19 -06:00
|
|
|
|
2012-03-10 09:45:48 -07:00
|
|
|
<sect2 id="Selections">
|
|
|
|
<title>Selections</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
The targets of selection requests may be parameterized, as described
|
2012-03-10 09:45:48 -07:00
|
|
|
by the revised <emphasis remap='I'>Inter-Client Communication Conventions Manual.</emphasis>.
|
2010-10-31 10:05:19 -06:00
|
|
|
When such requests are made,
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtSetSelectionParameters' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
is used by the requestor to specify the target parameters and
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtGetSelectionParameters' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
is used by the selection owner to retrieve the parameters.
|
|
|
|
When a parameterized target is specified in the context of a bundled
|
2012-03-10 09:45:48 -07:00
|
|
|
request for multiple targets,
|
|
|
|
<xref linkend='XtCreateSelectionRequest' xrefstyle='select: title'/>,
|
|
|
|
<xref linkend='XtCancelSelectionRequest' xrefstyle='select: title'/>,
|
|
|
|
and
|
|
|
|
<xref linkend='XtSendSelectionRequest' xrefstyle='select: title'/>
|
2010-10-31 10:05:19 -06:00
|
|
|
are used to envelop the assembly of the request.
|
2012-03-10 09:45:48 -07:00
|
|
|
When the parameters themselves are the names of properties,
|
|
|
|
the Intrinsics provides support for the economical use of property atom names;
|
|
|
|
see
|
|
|
|
<xref linkend='XtReservePropertyAtom' xrefstyle='select: title'/>
|
|
|
|
and
|
|
|
|
<xref linkend='XtReleasePropertyAtom' xrefstyle='select: title'/>.
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="External_Agent_Hooks">
|
|
|
|
<title>External Agent Hooks</title>
|
|
|
|
<para>
|
2010-10-31 10:05:19 -06:00
|
|
|
External agent hooks were added for the benefit of applications
|
|
|
|
that instrument other applications for purposes of accessibility,
|
|
|
|
testing, and customization. The external agent and the application
|
|
|
|
communicate by a shared protocol which is transparent to the application.
|
|
|
|
The hook callbacks permit the external agent to register interest
|
|
|
|
in groups or classes of toolkit activity and to be notified of the
|
|
|
|
type and details of the activity as it occurs. The new interfaces
|
|
|
|
related to this effort are
|
2012-03-10 09:45:48 -07:00
|
|
|
<xref linkend='XtHooksOfDisplay' xrefstyle='select: title'/>,
|
|
|
|
which returns the hook registration widget, and
|
|
|
|
<xref linkend='XtGetDisplays' xrefstyle='select: title'/>,
|
2010-10-31 10:05:19 -06:00
|
|
|
which returns a list of the X displays associated with an application context.
|
2012-03-10 09:45:48 -07:00
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|
|
</chapter>
|