1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
2010-06-28 14:19:56 +00:00
|
|
|
Points and Rectangles
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2002-11-23 23:02:10 +00:00
|
|
|
Simple graphical data types
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2010-06-28 14:19:56 +00:00
|
|
|
GDK provides the #GdkPoint and #GdkRectangle data types for representing pixels
|
|
|
|
and sets of pixels on the screen. Together with Cairo's #cairo_region_t data
|
|
|
|
type, they make up the central types for representing graphical data.
|
1999-08-28 20:47:33 +00:00
|
|
|
</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>
|
2010-06-28 14:19:56 +00:00
|
|
|
#cairo_region_t is usually used for managing clipping of graphical operations.
|
2000-11-22 10:07:34 +00:00
|
|
|
</para>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
<!-- ##### SECTION Image ##### -->
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### STRUCT GdkPoint ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Defines the x and y coordinates of a point.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@x: the x coordinate of the point.
|
|
|
|
@y: the y coordinate of the point.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2010-06-28 12:44:12 +00:00
|
|
|
<!-- ##### TYPEDEF GdkRectangle ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2010-06-28 12:44:12 +00:00
|
|
|
Defines the position and size of a rectangle. It is identical to
|
|
|
|
#cairo_rectangle_int_t.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_rectangle_intersect ##### -->
|
|
|
|
<para>
|
2005-12-24 07:29:00 +00:00
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2005-12-24 07:29:00 +00:00
|
|
|
@src1:
|
|
|
|
@src2:
|
|
|
|
@dest:
|
|
|
|
@Returns:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_rectangle_union ##### -->
|
|
|
|
<para>
|
2005-12-24 07:29:00 +00:00
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2006-05-05 16:21:19 +00:00
|
|
|
@src1:
|
|
|
|
@src2:
|
|
|
|
@dest:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|