2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### SECTION ./tmpl/color_contexts.sgml:Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
The #GdkColorContext type is used for allocating groups of colors.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
It is now deprecated in favor of the gdk_colormap_*() functions described in
|
|
|
|
the <link linkend="gdk-Colormaps-and-Colors">Colormaps and Colors</link>
|
|
|
|
section.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/color_contexts.sgml:See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/color_contexts.sgml:Short_Description ##### -->
|
|
|
|
routines for allocating colors (deprecated).
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/color_contexts.sgml:Title ##### -->
|
|
|
|
Color Contexts
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/gdkkeys.sgml:Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/gdkkeys.sgml:See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/gdkkeys.sgml:Short_Description ##### -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/gdkkeys.sgml:Title ##### -->
|
|
|
|
Keyboard Handling
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/gdkregion.sgml:Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2001-01-09 16:41:17 +00:00
|
|
|
<!-- ##### SECTION ./tmpl/gdkregion.sgml:See_Also ##### -->
|
doh, this was broken beyond believe.
Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
* gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
* gtk/gtkbox.c: change property types from (u)long to (u)int for
::position and ::padding.
* gtk/gtkcontainer.c: make ::border_width an INT property.
* gtk/gtkpacker.c: make ::position an INT property.
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
guard against NULL h/v scrollbars, since this is used at construction
time.
* gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
internal gtk_clist_constructor().
* gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
gtk_ctree_constructor().
* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
* docs/reference/Makefile.am: fun stuff, disabled docs generation
again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
* gtk/gtkwidget.[hc]:
removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
and gtk_widget_get().
(gtk_widget_new): use g_object_new_valist().
(gtk_widget_set): use g_object_set_valist().
* gtk/gtkobject.[hc]:
removed gtk_object_arg_get_info(), gtk_object_getv(),
gtk_object_query_args(), gtk_object_newv(),
gtk_object_class_add_signals(),
gtk_object_class_user_signal_new(),
gtk_object_class_user_signal_newv(),
gtk_object_arg_set(), gtk_object_arg_get(),
gtk_object_args_collect(),
gtk_object_default_construct(),
gtk_object_constructed(),
GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
removed nsignals, signals and n_args members from GtkObjectClass.
(gtk_object_new): use g_object_new_valist().
(gtk_object_set): use g_object_set_valist().
(gtk_object_get): use g_object_get_valist().
* gtk/gtkcompat.h: define gtk_object_default_construct().
* gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
g_object_new().
* gtk/*.c: removed gtk_object_class_add_signals() from class_init()
fucntions, cleaned up method assignments (make sure your structures
are setup properly before calling out). removed all GTK_CONSTRUCTED
hacks ;)
2000-12-13 01:34:41 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### SECTION ./tmpl/gdkregion.sgml:Short_Description ##### -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/gdkregion.sgml:Title ##### -->
|
|
|
|
Points, Rectangles and Regions
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/input_methods.sgml.sgml:Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/input_methods.sgml.sgml:See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/input_methods.sgml.sgml:Short_Description ##### -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/input_methods.sgml.sgml:Title ##### -->
|
|
|
|
Pango Interaction
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/regions2.sgml:Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
GDK provides the #GdkPoint, #GdkRectangle and #GdkRegion data types for
|
|
|
|
representing pixels and sets of pixels on the screen.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
#GdkPoint is a simple structure containing an x and y coordinate of a point.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
#GdkRectangle is a structure holding the position and size of a rectangle.
|
|
|
|
The intersection of two rectangles can be computed with
|
|
|
|
gdk_rectangle_intersect(). To find the union of two rectangles use
|
|
|
|
gdk_rectangle_union().
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
#GdkRegion is an opaque data type holding a set of arbitrary pixels, and is
|
|
|
|
usually used for clipping graphical operations (see gdk_gc_set_clip_region()).
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/regions2.sgml:See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/regions2.sgml:Short_Description ##### -->
|
|
|
|
simple graphical data types.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SECTION ./tmpl/regions2.sgml:Title ##### -->
|
|
|
|
Points, Rectangles and Regions
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GDK_CORE_POINTER ##### -->
|
|
|
|
<para>
|
|
|
|
This macro contains an integer value representing
|
|
|
|
the device ID for the core pointer device.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkColorContext ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@visual:
|
|
|
|
@colormap:
|
|
|
|
@num_colors:
|
|
|
|
@max_colors:
|
|
|
|
@num_allocated:
|
|
|
|
@mode:
|
|
|
|
@need_to_free_colormap:
|
|
|
|
@std_cmap_atom:
|
|
|
|
@clut:
|
|
|
|
@cmap:
|
|
|
|
@color_hash:
|
|
|
|
@palette:
|
|
|
|
@num_palette:
|
|
|
|
@fast_dither:
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkColorContextDither ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@fast_rgb:
|
|
|
|
@fast_err:
|
|
|
|
@fast_erg:
|
|
|
|
@fast_erb:
|
|
|
|
|
|
|
|
<!-- ##### ENUM GdkColorContextMode ##### -->
|
|
|
|
<para>
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
</para>
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@GDK_CC_MODE_UNDEFINED:
|
|
|
|
@GDK_CC_MODE_BW:
|
|
|
|
@GDK_CC_MODE_STD_CMAP:
|
|
|
|
@GDK_CC_MODE_TRUE:
|
|
|
|
@GDK_CC_MODE_MY_GRAY:
|
|
|
|
@GDK_CC_MODE_PALETTE:
|
2000-09-07 18:17:06 +00:00
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkDeviceInfo ##### -->
|
|
|
|
<para>
|
|
|
|
The #GdkDeviceInfo structure contains information about a
|
|
|
|
device. It has the following fields:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@deviceid: a unique integer ID for this device.
|
|
|
|
@name: the human-readable name for the device.
|
|
|
|
@source: the type of device.
|
|
|
|
@mode: a value indicating whether the device is enabled and
|
|
|
|
how the device coordinates map to the screen.
|
|
|
|
@has_cursor: if %TRUE, a cursor will be displayed indicating
|
|
|
|
the current on-screen location to the user. Otherwise,
|
|
|
|
the application is responsible for drawing a cursor
|
|
|
|
itself.
|
|
|
|
@num_axes: the number of axes for this device.
|
|
|
|
@axes: a pointer to an array of GdkAxisUse values which
|
|
|
|
give the mapping of axes onto the possible valuators
|
|
|
|
for a GDK device.
|
|
|
|
@num_keys: the number of macro buttons.
|
|
|
|
@keys: a pointer to an array of #GdkDeviceKey structures
|
|
|
|
which describe what key press events are generated
|
|
|
|
for each macro button.
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### ENUM GdkPixbufAlphaMode ##### -->
|
2000-09-07 18:17:06 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
|
doh, this was broken beyond believe.
Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
* gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
* gtk/gtkbox.c: change property types from (u)long to (u)int for
::position and ::padding.
* gtk/gtkcontainer.c: make ::border_width an INT property.
* gtk/gtkpacker.c: make ::position an INT property.
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
guard against NULL h/v scrollbars, since this is used at construction
time.
* gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
internal gtk_clist_constructor().
* gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
gtk_ctree_constructor().
* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
* docs/reference/Makefile.am: fun stuff, disabled docs generation
again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
* gtk/gtkwidget.[hc]:
removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
and gtk_widget_get().
(gtk_widget_new): use g_object_new_valist().
(gtk_widget_set): use g_object_set_valist().
* gtk/gtkobject.[hc]:
removed gtk_object_arg_get_info(), gtk_object_getv(),
gtk_object_query_args(), gtk_object_newv(),
gtk_object_class_add_signals(),
gtk_object_class_user_signal_new(),
gtk_object_class_user_signal_newv(),
gtk_object_arg_set(), gtk_object_arg_get(),
gtk_object_args_collect(),
gtk_object_default_construct(),
gtk_object_constructed(),
GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
removed nsignals, signals and n_args members from GtkObjectClass.
(gtk_object_new): use g_object_new_valist().
(gtk_object_set): use g_object_set_valist().
(gtk_object_get): use g_object_get_valist().
* gtk/gtkcompat.h: define gtk_object_default_construct().
* gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
g_object_new().
* gtk/*.c: removed gtk_object_class_add_signals() from class_init()
fucntions, cleaned up method assignments (make sure your structures
are setup properly before calling out). removed all GTK_CONSTRUCTED
hacks ;)
2000-12-13 01:34:41 +00:00
|
|
|
</para>
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@GDK_PIXBUF_ALPHA_BILEVEL:
|
|
|
|
@GDK_PIXBUF_ALPHA_FULL:
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_add_palette ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
|
|
|
@palette:
|
|
|
|
@num_palette:
|
2001-01-31 03:51:14 +00:00
|
|
|
@Returns:
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_free ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
2001-01-31 03:51:14 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_free_dither ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_get_index_from_palette ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
|
|
|
@red:
|
|
|
|
@green:
|
|
|
|
@blue:
|
|
|
|
@failed:
|
2001-01-31 03:51:14 +00:00
|
|
|
@Returns:
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_get_pixel ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
|
|
|
@red:
|
|
|
|
@green:
|
|
|
|
@blue:
|
|
|
|
@failed:
|
2001-01-31 03:51:14 +00:00
|
|
|
@Returns:
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_get_pixel_from_palette ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
|
|
|
@red:
|
|
|
|
@green:
|
|
|
|
@blue:
|
|
|
|
@failed:
|
2001-01-31 03:51:14 +00:00
|
|
|
@Returns:
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_get_pixels ##### -->
|
2000-09-07 18:17:06 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
|
|
|
@reds:
|
|
|
|
@greens:
|
|
|
|
@blues:
|
|
|
|
@ncolors:
|
|
|
|
@colors:
|
|
|
|
@nallocated:
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_get_pixels_incremental ##### -->
|
2000-09-07 18:17:06 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
|
|
|
@reds:
|
|
|
|
@greens:
|
|
|
|
@blues:
|
|
|
|
@ncolors:
|
|
|
|
@used:
|
|
|
|
@colors:
|
|
|
|
@nallocated:
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_init_dither ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
2001-01-31 03:51:14 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_new ##### -->
|
2001-01-09 16:41:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
doh, this was broken beyond believe.
Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
* gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
* gtk/gtkbox.c: change property types from (u)long to (u)int for
::position and ::padding.
* gtk/gtkcontainer.c: make ::border_width an INT property.
* gtk/gtkpacker.c: make ::position an INT property.
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
guard against NULL h/v scrollbars, since this is used at construction
time.
* gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
internal gtk_clist_constructor().
* gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
gtk_ctree_constructor().
* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
* docs/reference/Makefile.am: fun stuff, disabled docs generation
again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
* gtk/gtkwidget.[hc]:
removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
and gtk_widget_get().
(gtk_widget_new): use g_object_new_valist().
(gtk_widget_set): use g_object_set_valist().
* gtk/gtkobject.[hc]:
removed gtk_object_arg_get_info(), gtk_object_getv(),
gtk_object_query_args(), gtk_object_newv(),
gtk_object_class_add_signals(),
gtk_object_class_user_signal_new(),
gtk_object_class_user_signal_newv(),
gtk_object_arg_set(), gtk_object_arg_get(),
gtk_object_args_collect(),
gtk_object_default_construct(),
gtk_object_constructed(),
GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
removed nsignals, signals and n_args members from GtkObjectClass.
(gtk_object_new): use g_object_new_valist().
(gtk_object_set): use g_object_set_valist().
(gtk_object_get): use g_object_get_valist().
* gtk/gtkcompat.h: define gtk_object_default_construct().
* gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
g_object_new().
* gtk/*.c: removed gtk_object_class_add_signals() from class_init()
fucntions, cleaned up method assignments (make sure your structures
are setup properly before calling out). removed all GTK_CONSTRUCTED
hacks ;)
2000-12-13 01:34:41 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@visual:
|
|
|
|
@colormap:
|
|
|
|
@Returns:
|
doh, this was broken beyond believe.
Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
* gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
* gtk/gtkbox.c: change property types from (u)long to (u)int for
::position and ::padding.
* gtk/gtkcontainer.c: make ::border_width an INT property.
* gtk/gtkpacker.c: make ::position an INT property.
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
guard against NULL h/v scrollbars, since this is used at construction
time.
* gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
internal gtk_clist_constructor().
* gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
gtk_ctree_constructor().
* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
* docs/reference/Makefile.am: fun stuff, disabled docs generation
again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
* gtk/gtkwidget.[hc]:
removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
and gtk_widget_get().
(gtk_widget_new): use g_object_new_valist().
(gtk_widget_set): use g_object_set_valist().
* gtk/gtkobject.[hc]:
removed gtk_object_arg_get_info(), gtk_object_getv(),
gtk_object_query_args(), gtk_object_newv(),
gtk_object_class_add_signals(),
gtk_object_class_user_signal_new(),
gtk_object_class_user_signal_newv(),
gtk_object_arg_set(), gtk_object_arg_get(),
gtk_object_args_collect(),
gtk_object_default_construct(),
gtk_object_constructed(),
GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
removed nsignals, signals and n_args members from GtkObjectClass.
(gtk_object_new): use g_object_new_valist().
(gtk_object_set): use g_object_set_valist().
(gtk_object_get): use g_object_get_valist().
* gtk/gtkcompat.h: define gtk_object_default_construct().
* gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
g_object_new().
* gtk/*.c: removed gtk_object_class_add_signals() from class_init()
fucntions, cleaned up method assignments (make sure your structures
are setup properly before calling out). removed all GTK_CONSTRUCTED
hacks ;)
2000-12-13 01:34:41 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_new_mono ##### -->
|
2000-10-09 17:22:20 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@visual:
|
|
|
|
@colormap:
|
|
|
|
@Returns:
|
2000-10-09 17:22:20 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_query_color ##### -->
|
2000-09-07 18:17:06 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
|
|
|
@color:
|
|
|
|
@Returns:
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_color_context_query_colors ##### -->
|
2000-09-07 18:17:06 +00:00
|
|
|
<para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
</para>
|
2000-09-07 18:17:06 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cc:
|
|
|
|
@colors:
|
|
|
|
@num_colors:
|
|
|
|
@Returns:
|
2001-01-09 16:41:17 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_input_list_devices ##### -->
|
|
|
|
<para>
|
|
|
|
Lists all available input devices, along with their
|
|
|
|
configuration information.
|
|
|
|
</para>
|
2001-01-09 16:41:17 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@Returns: A #GList of #GdkDeviceInfo structures. This list
|
|
|
|
is internal data of GTK+ and should not be modified
|
|
|
|
or freed.
|
2001-01-09 16:41:17 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_input_motion_events ##### -->
|
2001-01-09 16:41:17 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Retrieves the motion history for a given device/window pair.
|
2001-01-09 16:41:17 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@window: a #GdkWindow.
|
|
|
|
@deviceid: the device for which to retrieve motion history.
|
|
|
|
@start: the start time.
|
|
|
|
@stop: the stop time.
|
|
|
|
@nevents_return: location to store the number of events returned.
|
|
|
|
@Returns: a newly allocated array containing all the events
|
|
|
|
from @start to @stop. This array should be freed
|
|
|
|
with g_free() when you are finished using it.
|
2001-01-09 16:41:17 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_input_set_axes ##### -->
|
|
|
|
<para>
|
|
|
|
Sets the mapping of the axes (valuators) of a device
|
|
|
|
onto the predefined valuator types that GTK+ understands.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@deviceid: the device to configure.
|
|
|
|
@axes: an array of GdkAxisUse. This length of this array
|
|
|
|
must match the number of axes for the device.
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_input_set_key ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the key event generated when a macro button is pressed.
|
2001-01-31 03:51:14 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@deviceid: the device to configure.
|
|
|
|
@index: the index of the macro button.
|
|
|
|
@keyval: the key value for the #GdkKeypressEvent to generate.
|
|
|
|
(a value of 0 means no event will be generated.)
|
|
|
|
@modifiers: the modifier field for the generated
|
|
|
|
#GdkKeyPressEvent.
|
2001-01-31 03:51:14 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_input_set_mode ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Enables or disables a device, and determines how the
|
|
|
|
device maps onto the screen.
|
2001-01-31 03:51:14 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@deviceid: the device to configure.
|
|
|
|
@mode: the new mode.
|
|
|
|
@Returns: %TRUE if the device supports the given mode, otherwise
|
|
|
|
%FALSE and the device's mode is unchanged.
|
2001-01-31 03:51:14 +00:00
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_input_set_source ##### -->
|
|
|
|
<para>
|
|
|
|
Sets the source type for a device.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@deviceid: the device to configure
|
|
|
|
@source: the new source type.
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_input_window_get_pointer ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Returns information about the current position of the pointer
|
|
|
|
within a window, including extended device information.
|
|
|
|
Any of the return parameters may be %NULL, in which case,
|
|
|
|
they will be ignored.
|
2001-01-31 03:51:14 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@window: a #GdkWindow.
|
|
|
|
@deviceid: a device ID.
|
|
|
|
@x: location to store current x postion.
|
|
|
|
@y: location to store current y postion.
|
|
|
|
@pressure: location to store current pressure.
|
|
|
|
@xtilt: location to store current tilt in the x direction.
|
|
|
|
@ytilt: location to store current tilt in the y direction.
|
|
|
|
@mask: location to store the current modifier state.
|
2001-01-09 16:41:17 +00:00
|
|
|
|
2001-02-20 05:21:44 +00:00
|
|
|
<!-- ##### FUNCTION gdk_key_repeat_disable ##### -->
|
|
|
|
<para>
|
|
|
|
Disables the keyboard auto-repeat mode.
|
|
|
|
This should be used with care as it may affect other applications.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_key_repeat_restore ##### -->
|
|
|
|
<para>
|
|
|
|
Restores the keyboard auto-repeat mode to its state when the application was
|
|
|
|
started.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2001-01-09 16:41:17 +00:00
|
|
|
<!-- ##### FUNCTION gdk_regions_intersect ##### -->
|
|
|
|
<para>
|
|
|
|
Returns the intersection of two regions.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@source1: a #GdkRegion.
|
|
|
|
@source2: a #GdkRegion.
|
|
|
|
@Returns: the intersection of @source1 and @source2.
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_regions_subtract ##### -->
|
2001-01-31 03:51:14 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Subtracts one region from another.
|
|
|
|
The result is a region containing all the pixels which are in @source1, but
|
|
|
|
which are not in @source2.
|
2001-01-31 03:51:14 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@source1: a #GdkRegion.
|
|
|
|
@source2: a #GdkRegion to subtract from @source1.
|
|
|
|
@Returns: @source1 - @source2.
|
2001-01-31 03:51:14 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_regions_union ##### -->
|
2001-01-09 16:41:17 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Returns the union of two regions.
|
|
|
|
This is all pixels in either of @source1 or @source2.
|
2001-01-09 16:41:17 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@source1: a #GdkRegion.
|
|
|
|
@source2: a #GdkRegion.
|
|
|
|
@Returns: the union of @source1 and @source2.
|
2001-01-09 16:41:17 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_regions_xor ##### -->
|
2001-01-09 16:41:17 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Returns the difference between the union and the intersection of two regions.
|
|
|
|
This is a region containing the pixels that are in one of the source regions,
|
|
|
|
but which are not in both.
|
2001-01-09 16:41:17 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@source1: a #GdkRegion.
|
|
|
|
@source2: a #GdkRegion.
|
|
|
|
@Returns: the difference between the union and the intersection of @source1
|
|
|
|
and @source2.
|
2001-01-09 16:41:17 +00:00
|
|
|
|