The #GdkColorContext type is used for allocating groups of colors.
It is now deprecated in favor of the gdk_colormap_*() functions described in
the Colormaps and Colors
section.
routines for allocating colors (deprecated).
Color Contexts
Keyboard Handling
Points, Rectangles and Regions
Pango Interaction
GDK provides the #GdkPoint, #GdkRectangle and #GdkRegion data types for
representing pixels and sets of pixels on the screen.
#GdkPoint is a simple structure containing an x and y coordinate of a point.
#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().
#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()).
simple graphical data types.
Points, Rectangles and Regions
This macro contains an integer value representing
the device ID for the core pointer device.
@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:
@fast_rgb:
@fast_err:
@fast_erg:
@fast_erb:
@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:
The #GdkDeviceInfo structure contains information about a
device. It has the following fields:
@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.
@GDK_PIXBUF_ALPHA_BILEVEL:
@GDK_PIXBUF_ALPHA_FULL:
@cc:
@palette:
@num_palette:
@Returns:
@cc:
@cc:
@cc:
@red:
@green:
@blue:
@failed:
@Returns:
@cc:
@red:
@green:
@blue:
@failed:
@Returns:
@cc:
@red:
@green:
@blue:
@failed:
@Returns:
@cc:
@reds:
@greens:
@blues:
@ncolors:
@colors:
@nallocated:
@cc:
@reds:
@greens:
@blues:
@ncolors:
@used:
@colors:
@nallocated:
@cc:
@visual:
@colormap:
@Returns:
@visual:
@colormap:
@Returns:
@cc:
@color:
@Returns:
@cc:
@colors:
@num_colors:
@Returns:
Lists all available input devices, along with their
configuration information.
@Returns: A #GList of #GdkDeviceInfo structures. This list
is internal data of GTK+ and should not be modified
or freed.
Retrieves the motion history for a given device/window pair.
@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.
Sets the mapping of the axes (valuators) of a device
onto the predefined valuator types that GTK+ understands.
@deviceid: the device to configure.
@axes: an array of GdkAxisUse. This length of this array
must match the number of axes for the device.
Sets the key event generated when a macro button is pressed.
@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.
Enables or disables a device, and determines how the
device maps onto the screen.
@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.
Sets the source type for a device.
@deviceid: the device to configure
@source: the new source type.
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.
@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.
Disables the keyboard auto-repeat mode.
This should be used with care as it may affect other applications.
Restores the keyboard auto-repeat mode to its state when the application was
started.
Returns the intersection of two regions.
@source1: a #GdkRegion.
@source2: a #GdkRegion.
@Returns: the intersection of @source1 and @source2.
Subtracts one region from another.
The result is a region containing all the pixels which are in @source1, but
which are not in @source2.
@source1: a #GdkRegion.
@source2: a #GdkRegion to subtract from @source1.
@Returns: @source1 - @source2.
Returns the union of two regions.
This is all pixels in either of @source1 or @source2.
@source1: a #GdkRegion.
@source2: a #GdkRegion.
@Returns: the union of @source1 and @source2.
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.
@source1: a #GdkRegion.
@source2: a #GdkRegion.
@Returns: the difference between the union and the intersection of @source1
and @source2.