Updates.
* gdk/tmpl/input_devices.sgml,
gdk/gdk-sections.txt, gdk/tmpl/windows.sgml: Updates.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
|
* gdk/tmpl/input_devices.sgml,
|
||||||
|
gdk/gdk-sections.txt, gdk/tmpl/windows.sgml: Updates.
|
||||||
|
|
||||||
2001-12-02 Matthias Clasen <matthiasc@poet.de>
|
2001-12-02 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gdk/tmpl/dnd.sgml: Updates.
|
* gdk/tmpl/dnd.sgml: Updates.
|
||||||
|
|||||||
@ -155,6 +155,7 @@ gdk_image_unref
|
|||||||
gdk_image_destroy
|
gdk_image_destroy
|
||||||
gdk_image_get_colormap
|
gdk_image_get_colormap
|
||||||
gdk_image_set_colormap
|
gdk_image_set_colormap
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
gdk_image_put_pixel
|
gdk_image_put_pixel
|
||||||
gdk_image_get_pixel
|
gdk_image_get_pixel
|
||||||
@ -317,7 +318,6 @@ gdk_font_get_type
|
|||||||
<TITLE>Drawing Primitives</TITLE>
|
<TITLE>Drawing Primitives</TITLE>
|
||||||
<FILE>drawing</FILE>
|
<FILE>drawing</FILE>
|
||||||
GdkDrawable
|
GdkDrawable
|
||||||
GdkDrawableClass
|
|
||||||
gdk_drawable_ref
|
gdk_drawable_ref
|
||||||
gdk_drawable_unref
|
gdk_drawable_unref
|
||||||
gdk_drawable_set_data
|
gdk_drawable_set_data
|
||||||
@ -365,6 +365,7 @@ GDK_DRAWABLE_CLASS
|
|||||||
GDK_IS_DRAWABLE_CLASS
|
GDK_IS_DRAWABLE_CLASS
|
||||||
|
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
|
GdkDrawableClass
|
||||||
gdk_draw_bitmap
|
gdk_draw_bitmap
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
@ -372,7 +373,6 @@ gdk_draw_bitmap
|
|||||||
<TITLE>Graphics Contexts</TITLE>
|
<TITLE>Graphics Contexts</TITLE>
|
||||||
<FILE>gcs</FILE>
|
<FILE>gcs</FILE>
|
||||||
GdkGC
|
GdkGC
|
||||||
GdkGCClass
|
|
||||||
GdkGCValues
|
GdkGCValues
|
||||||
GdkGCValuesMask
|
GdkGCValuesMask
|
||||||
|
|
||||||
@ -418,7 +418,6 @@ gdk_gc_offset
|
|||||||
GDK_GC
|
GDK_GC
|
||||||
GDK_TYPE_GC
|
GDK_TYPE_GC
|
||||||
GDK_IS_GC
|
GDK_IS_GC
|
||||||
gdk_gc_get_type
|
|
||||||
GDK_GC_CLASS
|
GDK_GC_CLASS
|
||||||
GDK_GC_GET_CLASS
|
GDK_GC_GET_CLASS
|
||||||
GDK_IS_GC_CLASS
|
GDK_IS_GC_CLASS
|
||||||
@ -430,6 +429,10 @@ GDK_TYPE_GC_VALUES_MASK
|
|||||||
GDK_TYPE_JOIN_STYLE
|
GDK_TYPE_JOIN_STYLE
|
||||||
GDK_TYPE_LINE_STYLE
|
GDK_TYPE_LINE_STYLE
|
||||||
GDK_TYPE_SUBWINDOW_MODE
|
GDK_TYPE_SUBWINDOW_MODE
|
||||||
|
|
||||||
|
<SUBSECTION Private>
|
||||||
|
GdkGCClass
|
||||||
|
gdk_gc_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
<SECTION>
|
<SECTION>
|
||||||
@ -458,12 +461,12 @@ GDK_TYPE_VISUAL_TYPE
|
|||||||
GDK_TYPE_VISUAL
|
GDK_TYPE_VISUAL
|
||||||
GDK_IS_VISUAL
|
GDK_IS_VISUAL
|
||||||
GDK_IS_VISUAL_CLASS
|
GDK_IS_VISUAL_CLASS
|
||||||
GdkVisualClass
|
|
||||||
GDK_VISUAL
|
GDK_VISUAL
|
||||||
GDK_VISUAL_CLASS
|
GDK_VISUAL_CLASS
|
||||||
GDK_VISUAL_GET_CLASS
|
GDK_VISUAL_GET_CLASS
|
||||||
|
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
|
GdkVisualClass
|
||||||
gdk_visual_get_type
|
gdk_visual_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
@ -713,6 +716,8 @@ gdk_region_spans_intersect_foreach
|
|||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
GDK_TYPE_OVERLAP_TYPE
|
GDK_TYPE_OVERLAP_TYPE
|
||||||
GDK_TYPE_RECTANGLE
|
GDK_TYPE_RECTANGLE
|
||||||
|
|
||||||
|
<SUBSECTION Private>
|
||||||
gdk_rectangle_get_type
|
gdk_rectangle_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
@ -730,7 +735,6 @@ gdk_threads_mutex
|
|||||||
<TITLE>Keyboard Handling</TITLE>
|
<TITLE>Keyboard Handling</TITLE>
|
||||||
<FILE>keys</FILE>
|
<FILE>keys</FILE>
|
||||||
GdkKeymap
|
GdkKeymap
|
||||||
GdkKeymapClass
|
|
||||||
GdkKeymapKey
|
GdkKeymapKey
|
||||||
GdkKeyInfo
|
GdkKeyInfo
|
||||||
gdk_keymap_get_default
|
gdk_keymap_get_default
|
||||||
@ -754,21 +758,24 @@ gdk_keyval_is_lower
|
|||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
gdk_keyval_to_unicode
|
gdk_keyval_to_unicode
|
||||||
gdk_unicode_to_keyval
|
gdk_unicode_to_keyval
|
||||||
|
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
GDK_KEYMAP
|
GDK_KEYMAP
|
||||||
GDK_IS_KEYMAP
|
GDK_IS_KEYMAP
|
||||||
GDK_TYPE_KEYMAP
|
GDK_TYPE_KEYMAP
|
||||||
gdk_keymap_get_type
|
|
||||||
GDK_KEYMAP_CLASS
|
GDK_KEYMAP_CLASS
|
||||||
GDK_IS_KEYMAP_CLASS
|
GDK_IS_KEYMAP_CLASS
|
||||||
GDK_KEYMAP_GET_CLASS
|
GDK_KEYMAP_GET_CLASS
|
||||||
|
|
||||||
|
<SUBSECTION Private>
|
||||||
|
GdkKeymapClass
|
||||||
|
gdk_keymap_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
<SECTION>
|
<SECTION>
|
||||||
<TITLE>Input Devices</TITLE>
|
<TITLE>Input Devices</TITLE>
|
||||||
<FILE>input_devices</FILE>
|
<FILE>input_devices</FILE>
|
||||||
GdkDevice
|
GdkDevice
|
||||||
GdkDeviceClass
|
|
||||||
GdkInputSource
|
GdkInputSource
|
||||||
GdkInputMode
|
GdkInputMode
|
||||||
GdkDeviceKey
|
GdkDeviceKey
|
||||||
@ -803,9 +810,10 @@ GDK_DEVICE_GET_CLASS
|
|||||||
GDK_IS_DEVICE
|
GDK_IS_DEVICE
|
||||||
GDK_IS_DEVICE_CLASS
|
GDK_IS_DEVICE_CLASS
|
||||||
GDK_TYPE_DEVICE
|
GDK_TYPE_DEVICE
|
||||||
gdk_device_get_type
|
|
||||||
|
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
|
GdkDeviceClass
|
||||||
|
gdk_device_get_type
|
||||||
GDK_MAX_TIMECOORD_AXES
|
GDK_MAX_TIMECOORD_AXES
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
@ -917,6 +925,8 @@ gdk_cursor_destroy
|
|||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
GDK_TYPE_CURSOR_TYPE
|
GDK_TYPE_CURSOR_TYPE
|
||||||
GDK_TYPE_CURSOR
|
GDK_TYPE_CURSOR
|
||||||
|
|
||||||
|
<SUBSECTION Private>
|
||||||
gdk_cursor_get_type
|
gdk_cursor_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
|
|||||||
@ -47,75 +47,34 @@ gdk_color_change() will probably become aliases.
|
|||||||
<para>
|
<para>
|
||||||
The #GdkColor structure is used to describe an
|
The #GdkColor structure is used to describe an
|
||||||
allocated or unallocated color.
|
allocated or unallocated color.
|
||||||
|
|
||||||
<informaltable pgwide=1 frame="none" role="struct">
|
|
||||||
<tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*">
|
|
||||||
<tbody>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<entry><structfield>pixel</structfield></entry>
|
|
||||||
<entry>For allocated colors, the value used to
|
|
||||||
draw this color on the screen.</entry>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<entry><structfield>red</structfield></entry>
|
|
||||||
<entry>The red component of the color. This is
|
|
||||||
a value between 0 and 65535, with 65535 indicating
|
|
||||||
full intensitiy.</entry>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<entry><structfield>green</structfield></entry>
|
|
||||||
<entry>the blue component of the color.</entry>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<entry><structfield>blue</structfield></entry>
|
|
||||||
<entry>the green component of the color..</entry>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
</tbody></tgroup></informaltable>
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@pixel:
|
@pixel: For allocated colors, the value used to
|
||||||
@red:
|
draw this color on the screen.
|
||||||
@green:
|
@red: The red component of the color. This is
|
||||||
@blue:
|
a value between 0 and 65535, with 65535 indicating
|
||||||
|
full intensitiy.
|
||||||
|
@green: The blue component of the color.
|
||||||
|
@blue: The green component of the color.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### STRUCT GdkColormap ##### -->
|
<!-- ##### STRUCT GdkColormap ##### -->
|
||||||
<para>
|
<para>
|
||||||
The colormap structure contains the following public
|
The colormap structure contains the following public fields.
|
||||||
fields.
|
|
||||||
|
|
||||||
<informaltable pgwide=1 frame="none" role="struct">
|
|
||||||
<tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*">
|
|
||||||
<tbody>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<entry><structfield>size</structfield></entry>
|
|
||||||
<entry>For pseudo-color colormaps, the number of colors
|
|
||||||
in the colormap..</entry>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<entry><structfield>colors</structfield></entry>
|
|
||||||
<entry>An array containing the current values in the
|
|
||||||
colormap. This can be used to map from pixel values
|
|
||||||
back to RGB values. This is only meaningful for
|
|
||||||
pseudo-color colormaps.</entry>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
</tbody></tgroup></informaltable>
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@parent_instance:
|
@parent_instance:
|
||||||
@size:
|
@size: For pseudo-color colormaps, the number of colors
|
||||||
@colors:
|
in the colormap.
|
||||||
|
@colors: An array containing the current values in the
|
||||||
|
colormap. This can be used to map from pixel values
|
||||||
|
back to RGB values. This is only meaningful for
|
||||||
|
pseudo-color colormaps.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gdk_colormap_new ##### -->
|
<!-- ##### FUNCTION gdk_colormap_new ##### -->
|
||||||
<para>
|
<para>
|
||||||
Create a new colormap for the given visual.
|
Creates a new colormap for the given visual.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@visual: a #GdkVisual.
|
@visual: a #GdkVisual.
|
||||||
@ -162,7 +121,7 @@ explanation of the size of a colormap.)
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_colormap_change ##### -->
|
<!-- ##### FUNCTION gdk_colormap_change ##### -->
|
||||||
<para>
|
<para>
|
||||||
Change the value of the first @ncolors in a private colormap
|
Changes the value of the first @ncolors in a private colormap
|
||||||
to match the values in the <structfield>colors</structfield>
|
to match the values in the <structfield>colors</structfield>
|
||||||
array in the color map. This function is obsolete and
|
array in the color map. This function is obsolete and
|
||||||
should not be used. See gdk_color_change().
|
should not be used. See gdk_color_change().
|
||||||
@ -196,7 +155,7 @@ Allocates colors from a colormap.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_colormap_alloc_color ##### -->
|
<!-- ##### FUNCTION gdk_colormap_alloc_color ##### -->
|
||||||
<para>
|
<para>
|
||||||
Allocate a single color from a colormap.
|
Allocates a single color from a colormap.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@colormap: a #GdkColormap.
|
@colormap: a #GdkColormap.
|
||||||
@ -214,7 +173,7 @@ filled in if allocation succeeds.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_colormap_free_colors ##### -->
|
<!-- ##### FUNCTION gdk_colormap_free_colors ##### -->
|
||||||
<para>
|
<para>
|
||||||
Free previously allocated colors.
|
Frees previously allocated colors.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@colormap: a #GdkColormap.
|
@colormap: a #GdkColormap.
|
||||||
@ -234,7 +193,7 @@ Free previously allocated colors.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_colormap_get_visual ##### -->
|
<!-- ##### FUNCTION gdk_colormap_get_visual ##### -->
|
||||||
<para>
|
<para>
|
||||||
Return the visual for which a given colormap was created.
|
Returns the visual for which a given colormap was created.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@colormap: a #GdkColormap.
|
@colormap: a #GdkColormap.
|
||||||
@ -243,7 +202,7 @@ Return the visual for which a given colormap was created.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_colors_store ##### -->
|
<!-- ##### FUNCTION gdk_colors_store ##### -->
|
||||||
<para>
|
<para>
|
||||||
Change the value of the first @ncolors colors in
|
Changes the value of the first @ncolors colors in
|
||||||
a private colormap. This function is obsolete and
|
a private colormap. This function is obsolete and
|
||||||
should not be used. See gdk_color_change().
|
should not be used. See gdk_color_change().
|
||||||
</para>
|
</para>
|
||||||
@ -255,7 +214,7 @@ should not be used. See gdk_color_change().
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_color_copy ##### -->
|
<!-- ##### FUNCTION gdk_color_copy ##### -->
|
||||||
<para>
|
<para>
|
||||||
Make a copy of a color structure. The result
|
Makes a copy of a color structure. The result
|
||||||
must be freed using gdk_color_free().
|
must be freed using gdk_color_free().
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@ -265,7 +224,7 @@ must be freed using gdk_color_free().
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_color_free ##### -->
|
<!-- ##### FUNCTION gdk_color_free ##### -->
|
||||||
<para>
|
<para>
|
||||||
Free a color structure created with
|
Frees a color structure created with
|
||||||
gdk_color_copy().
|
gdk_color_copy().
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@ -274,10 +233,10 @@ gdk_color_copy().
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_colors_alloc ##### -->
|
<!-- ##### FUNCTION gdk_colors_alloc ##### -->
|
||||||
<para>
|
<para>
|
||||||
Allocate colors from a colormap. This function
|
Allocates colors from a colormap. This function
|
||||||
is obsolete. See gdk_colormap_alloc_colors().
|
is obsolete. See gdk_colormap_alloc_colors().
|
||||||
For full documentation of the fields, see
|
For full documentation of the fields, see
|
||||||
the Xlib documentation for XAllocColorCells.
|
the Xlib documentation for <function>XAllocColorCells()</function>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@colormap: a #GdkColormap.
|
@colormap: a #GdkColormap.
|
||||||
@ -295,7 +254,7 @@ the Xlib documentation for XAllocColorCells.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_colors_free ##### -->
|
<!-- ##### FUNCTION gdk_colors_free ##### -->
|
||||||
<para>
|
<para>
|
||||||
Free colors allocated with gdk_colors_alloc(). This
|
Frees colors allocated with gdk_colors_alloc(). This
|
||||||
function is obsolete. See gdk_colormap_free_colors().
|
function is obsolete. See gdk_colormap_free_colors().
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@ -308,7 +267,7 @@ function is obsolete. See gdk_colormap_free_colors().
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_color_white ##### -->
|
<!-- ##### FUNCTION gdk_color_white ##### -->
|
||||||
<para>
|
<para>
|
||||||
Return the white color for a given colormap. The resulting
|
Returns the white color for a given colormap. The resulting
|
||||||
value has already allocated been allocated.
|
value has already allocated been allocated.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@ -319,7 +278,7 @@ value has already allocated been allocated.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_color_black ##### -->
|
<!-- ##### FUNCTION gdk_color_black ##### -->
|
||||||
<para>
|
<para>
|
||||||
Return the black color for a given colormap. The resulting
|
Returns the black color for a given colormap. The resulting
|
||||||
value has already benn allocated.
|
value has already benn allocated.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@ -330,7 +289,7 @@ value has already benn allocated.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_color_parse ##### -->
|
<!-- ##### FUNCTION gdk_color_parse ##### -->
|
||||||
<para>
|
<para>
|
||||||
Parse a textual specification of a color and fill in
|
Parses a textual specification of a color and fill in
|
||||||
the <structfield>red</structfield>,
|
the <structfield>red</structfield>,
|
||||||
<structfield>green</structfield>, and
|
<structfield>green</structfield>, and
|
||||||
<structfield>blue</structfield> fields of a
|
<structfield>blue</structfield> fields of a
|
||||||
@ -350,7 +309,7 @@ such as <literal>305050</literal>.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_color_alloc ##### -->
|
<!-- ##### FUNCTION gdk_color_alloc ##### -->
|
||||||
<para>
|
<para>
|
||||||
Allocate a single color from a colormap.
|
Allocates a single color from a colormap.
|
||||||
This function is obsolete. See gdk_colormap_alloc_color().
|
This function is obsolete. See gdk_colormap_alloc_color().
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@ -363,7 +322,7 @@ filled in.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_color_change ##### -->
|
<!-- ##### FUNCTION gdk_color_change ##### -->
|
||||||
<para>
|
<para>
|
||||||
Change the value of a color that has already
|
Changes the value of a color that has already
|
||||||
been allocated. If @colormap is not a private
|
been allocated. If @colormap is not a private
|
||||||
colormap, then the color must have been allocated
|
colormap, then the color must have been allocated
|
||||||
using gdk_colormap_alloc_colors() with the
|
using gdk_colormap_alloc_colors() with the
|
||||||
@ -379,7 +338,7 @@ and the new value in the remaining fields.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_color_equal ##### -->
|
<!-- ##### FUNCTION gdk_color_equal ##### -->
|
||||||
<para>
|
<para>
|
||||||
Compare two colors.
|
Compares two colors.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@colora: a #GdkColor.
|
@colora: a #GdkColor.
|
||||||
@ -395,7 +354,5 @@ table that stores #GdkColor's.
|
|||||||
|
|
||||||
@colora: a #GdkColor.
|
@colora: a #GdkColor.
|
||||||
@Returns: The hash function appled to @colora
|
@Returns: The hash function appled to @colora
|
||||||
<!-- # Unused Parameters # -->
|
|
||||||
@colorb: NOT USED.
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -91,8 +91,8 @@ set on all X windows created by the application to point to the leader window.
|
|||||||
<para>
|
<para>
|
||||||
See the X Session Management Library documentation for more information on
|
See the X Session Management Library documentation for more information on
|
||||||
session management and the Inter-Client Communication Conventions Manual
|
session management and the Inter-Client Communication Conventions Manual
|
||||||
(ICCCM) for information on the <literal>WM_CLIENT_LEADER property</literal>. (Both documents are
|
(ICCCM) for information on the <literal>WM_CLIENT_LEADER</literal> property.
|
||||||
part of the X Windows distribution.)
|
(Both documents are part of the X Windows distribution.)
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@sm_client_id: the client id assigned by the session manager when the
|
@sm_client_id: the client id assigned by the session manager when the
|
||||||
|
|||||||
@ -50,10 +50,7 @@ tilt to the right or down.)
|
|||||||
One additional field in each event is the
|
One additional field in each event is the
|
||||||
<structfield>source</structfield> field, which contains an
|
<structfield>source</structfield> field, which contains an
|
||||||
enumeration value describing the type of device; this currently
|
enumeration value describing the type of device; this currently
|
||||||
can be one of
|
can be one of %GDK_SOURCE_MOUSE, %GDK_SOURCE_PEN, %GDK_SOURCE_ERASER,
|
||||||
%GDK_SOURCE_MOUSE,
|
|
||||||
%GDK_SOURCE_PEN,
|
|
||||||
%GDK_SOURCE_ERASER,
|
|
||||||
or %GDK_SOURCE_CURSOR. This field is present to allow simple
|
or %GDK_SOURCE_CURSOR. This field is present to allow simple
|
||||||
applications to (for instance) delete when they detect eraser
|
applications to (for instance) delete when they detect eraser
|
||||||
devices without having to keep track of complicated per-device
|
devices without having to keep track of complicated per-device
|
||||||
@ -83,7 +80,8 @@ gdk_device_set_key().
|
|||||||
<para>
|
<para>
|
||||||
The interfaces in this section will most likely be considerably
|
The interfaces in this section will most likely be considerably
|
||||||
modified in the future to accomodate devices that may have different
|
modified in the future to accomodate devices that may have different
|
||||||
sets of additional valuators than the pressure xtilt and ytilt.
|
sets of additional valuators than the pressure <structfield>xtilt</structfield>
|
||||||
|
and <structfield>ytilt</structfield>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### SECTION See_Also ##### -->
|
<!-- ##### SECTION See_Also ##### -->
|
||||||
@ -93,18 +91,23 @@ sets of additional valuators than the pressure xtilt and ytilt.
|
|||||||
|
|
||||||
<!-- ##### STRUCT GdkDevice ##### -->
|
<!-- ##### STRUCT GdkDevice ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
A <structname>GdkDevice</structname> structure contains
|
||||||
|
a detailed description of an extended input device. All
|
||||||
|
fields are read-only; but you can use gdk_device_set_source(),
|
||||||
|
gdk_device_set_mode(), gdk_device_set_key() and gdk_device_set_axis_use()
|
||||||
|
to configure various aspects of the device.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@parent_instance:
|
@parent_instance:
|
||||||
@name:
|
@name: the name of this device.
|
||||||
@source:
|
@source: the type of this device.
|
||||||
@mode:
|
@mode: the mode of this device
|
||||||
@has_cursor:
|
@has_cursor: %TRUE if the pointer follows device motion.
|
||||||
@num_axes:
|
@num_axes: the length of the @axes array.
|
||||||
@axes:
|
@axes: an array of #GdkDeviceAxis, describing the axes of this device.
|
||||||
@num_keys:
|
@num_keys: the length of the @keys array.
|
||||||
@keys:
|
@keys: an array of #GdkDeviceKey, describing the mapped macro buttons
|
||||||
|
of this device.
|
||||||
|
|
||||||
<!-- ##### STRUCT GdkDeviceClass ##### -->
|
<!-- ##### STRUCT GdkDeviceClass ##### -->
|
||||||
<para>
|
<para>
|
||||||
@ -140,9 +143,9 @@ An enumeration that describes the mode of an input device.
|
|||||||
|
|
||||||
<!-- ##### STRUCT GdkDeviceKey ##### -->
|
<!-- ##### STRUCT GdkDeviceKey ##### -->
|
||||||
<para>
|
<para>
|
||||||
The #GdkDeviceKey structure contains information
|
The <structname>GdkDeviceKey</structname> structure contains information
|
||||||
about the mapping of one device macro button onto
|
about the mapping of one device macro button onto a normal X key event.
|
||||||
a normal X key event. It has the following fields:
|
It has the following fields:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@keyval: the keyval to generate when the macro button is pressed.
|
@keyval: the keyval to generate when the macro button is pressed.
|
||||||
@ -151,12 +154,13 @@ a normal X key event. It has the following fields:
|
|||||||
|
|
||||||
<!-- ##### STRUCT GdkDeviceAxis ##### -->
|
<!-- ##### STRUCT GdkDeviceAxis ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
The <structname>GdkDeviceAxis</structname> structure contains information
|
||||||
|
about the range and mapping of a device axis.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@use:
|
@use: specifies how the axis is used.
|
||||||
@min:
|
@min: the minimal value that will be reported by this axis.
|
||||||
@max:
|
@max: the maximal value that will be reported by this axis.
|
||||||
|
|
||||||
<!-- ##### ENUM GdkAxisUse ##### -->
|
<!-- ##### ENUM GdkAxisUse ##### -->
|
||||||
<para>
|
<para>
|
||||||
@ -249,16 +253,16 @@ Gets the current state of a device.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_device_get_history ##### -->
|
<!-- ##### FUNCTION gdk_device_get_history ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Obtains the motion history for a device.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@device:
|
@device: a #GdkDevice.
|
||||||
@window:
|
@window: the window wrt. which the event coordinates will be translated.
|
||||||
@start:
|
@start: only return events newer than this timestamp.
|
||||||
@stop:
|
@stop: only return events older than this timestamp.
|
||||||
@events:
|
@events: location to return a newly-allocated array of #GdkTimeCoord.
|
||||||
@n_events:
|
@n_events: location to return the length of @events.
|
||||||
@Returns:
|
@Returns: %TRUE if the @events were successfully filled.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gdk_device_free_history ##### -->
|
<!-- ##### FUNCTION gdk_device_free_history ##### -->
|
||||||
@ -277,7 +281,7 @@ motion history. It contains the following fields:
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@time: The timestamp for this event.
|
@time: The timestamp for this event.
|
||||||
@axes:
|
@axes: the values of the device's axes.
|
||||||
|
|
||||||
<!-- ##### FUNCTION gdk_device_get_axis ##### -->
|
<!-- ##### FUNCTION gdk_device_get_axis ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|||||||
@ -10,8 +10,8 @@ Key values are the codes which are sent whenever a key is pressed or released.
|
|||||||
They appear in the <structfield>keyval</structfield> field of the
|
They appear in the <structfield>keyval</structfield> field of the
|
||||||
#GdkEventKey structure, which is passed to signal handlers for the
|
#GdkEventKey structure, which is passed to signal handlers for the
|
||||||
"key-press-event" and "key-release-event" signals.
|
"key-press-event" and "key-release-event" signals.
|
||||||
The complete list of key values can be found in the <gdk/gdkkeysyms.h>
|
The complete list of key values can be found in the <filename><gdk/gdkkeysyms.h></filename>
|
||||||
header file. <gdk/gdkkeysyms.h> is not included in <gtk/gtk.h>,
|
header file. <filename><gdk/gdkkeysyms.h></filename> is not included in <filename><gtk/gtk.h></filename>,
|
||||||
it must be included independently, because the file is quite large.
|
it must be included independently, because the file is quite large.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
@ -81,7 +81,12 @@ gdk_keymap_translate_keyboard_state() just to get the keyval.
|
|||||||
|
|
||||||
<!-- ##### STRUCT GdkKeymap ##### -->
|
<!-- ##### STRUCT GdkKeymap ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
A <structname>GdkKeymap</structname> defines the translation from keyboard state
|
||||||
|
(including a hardware key, a modifier mask, and active keyboard group)
|
||||||
|
to a keyval. This translation has two phases. The first phase is
|
||||||
|
to determine the effective keyboard group and level for the keyboard
|
||||||
|
state; the second phase is to look up the keycode/group/level triplet
|
||||||
|
in the keymap and see what keyval it corresponds to.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@parent_instance:
|
@parent_instance:
|
||||||
@ -94,12 +99,21 @@ gdk_keymap_translate_keyboard_state() just to get the keyval.
|
|||||||
|
|
||||||
<!-- ##### STRUCT GdkKeymapKey ##### -->
|
<!-- ##### STRUCT GdkKeymapKey ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
A <structname>GdkKeymapKey</structname> is a hardware key that can
|
||||||
|
be mapped to a keyval.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@keycode:
|
@keycode: the hardware keycode. This is an identifying number for a
|
||||||
@group:
|
physical key.
|
||||||
@level:
|
@group: indicates movement in a horizontal direction. Usually groups are used
|
||||||
|
for two different languages. In group 0, a key might have two English
|
||||||
|
characters, and in group 1 it might have two Hebrew characters. The Hebrew
|
||||||
|
characters will be printed on the key next to the English characters.
|
||||||
|
@level: indicates which symbol on the key will be used, in a vertical direction. So on a standard US keyboard, the key with the number "1" on it also has the
|
||||||
|
exclamation point ("!") character on it. The level indicates whether to use
|
||||||
|
the "1" or the "!" symbol. The letter keys are considered to have a lowercase
|
||||||
|
letter at level 0, and an uppercase letter at level 1, though only the
|
||||||
|
uppercase letter is printed.
|
||||||
|
|
||||||
<!-- ##### STRUCT GdkKeyInfo ##### -->
|
<!-- ##### STRUCT GdkKeyInfo ##### -->
|
||||||
<para>
|
<para>
|
||||||
@ -182,12 +196,12 @@ Returns: %PANGO_DIRECTION_LTR or %PANGO_DIRECTION_RTL.
|
|||||||
<!-- ##### FUNCTION gdk_keyval_name ##### -->
|
<!-- ##### FUNCTION gdk_keyval_name ##### -->
|
||||||
<para>
|
<para>
|
||||||
Converts a key value into a symbolic name.
|
Converts a key value into a symbolic name.
|
||||||
The names are the same as those in the <gdk/gdkkeysyms.h> header file
|
The names are the same as those in the <filename><gdk/gdkkeysyms.h></filename> header file
|
||||||
but without the leading "GDK_".
|
but without the leading "GDK_".
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@keyval: a key value.
|
@keyval: a key value.
|
||||||
@Returns: a string containing the name of the key, or NULL if @keyval is not
|
@Returns: a string containing the name of the key, or %NULL if @keyval is not
|
||||||
a valid key. The string should not be modified.
|
a valid key. The string should not be modified.
|
||||||
|
|
||||||
|
|
||||||
@ -233,21 +247,21 @@ in lower case or it is not subject to case conversion.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION gdk_keyval_is_upper ##### -->
|
<!-- ##### FUNCTION gdk_keyval_is_upper ##### -->
|
||||||
<para>
|
<para>
|
||||||
Returns TRUE if the given key value is in upper case.
|
Returns %TRUE if the given key value is in upper case.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@keyval: a key value.
|
@keyval: a key value.
|
||||||
@Returns: TRUE if @keyval is in upper case, or if @keyval is not subject to
|
@Returns: %TRUE if @keyval is in upper case, or if @keyval is not subject to
|
||||||
case conversion.
|
case conversion.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gdk_keyval_is_lower ##### -->
|
<!-- ##### FUNCTION gdk_keyval_is_lower ##### -->
|
||||||
<para>
|
<para>
|
||||||
Returns TRUE if the given key value is in lower case.
|
Returns %TRUE if the given key value is in lower case.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@keyval: a key value.
|
@keyval: a key value.
|
||||||
@Returns: TRUE if @keyval is in lower case, or if @keyval is not subject to
|
@Returns: %TRUE if @keyval is in lower case, or if @keyval is not subject to
|
||||||
case conversion.
|
case conversion.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -838,11 +838,12 @@ backend, <type>MSG</type>s for Win32).
|
|||||||
|
|
||||||
<!-- ##### MACRO GDK_PARENT_RELATIVE ##### -->
|
<!-- ##### MACRO GDK_PARENT_RELATIVE ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
A special value for <literal>GdkPixmap*</literal> variables, indicating
|
||||||
|
that the background pixmap for a window should be inherited from the parent
|
||||||
|
window.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gdk_window_set_cursor ##### -->
|
<!-- ##### FUNCTION gdk_window_set_cursor ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user