Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-2.0.gir |
C documentation: | GdkRegion |
Struct : | Region |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Region.c_new
()
:
Gdk.Region
Create a new Gdk.Region
Create a new Gdk.Region
|
||
copy
()
:
Gdk.Region
Copies region, creating an identical new region.
Copies region, creating an identical new region.
|
Gdk.Region | |
destroy
()
:
none
Destroys a GdkRegion.
Destroys a GdkRegion.
|
Gdk.Region | |
empty
()
:
Boolean
Finds out if the GdkRegion is empty.
Finds out if the GdkRegion is empty.
|
Gdk.Region | |
Finds out if the two regions are the same.
Finds out if the two regions are the same.
|
Gdk.Region | |
get_clipbox
(Rectangle rectangle)
:
none
Obtains the smallest rectangle which includes the entire GdkRegion.
Obtains the smallest rectangle which includes the entire GdkRegion.
|
Gdk.Region | |
Gdk.Region | ||
intersect
(Region source2)
:
none
Sets the area of source1 to the intersection of the areas of source1 and source2.
Sets the area of source1 to the intersection of the areas of source1 and source2. The resulting area is the set of pixels contained in both source1 and source2.
|
Gdk.Region | |
Gdk.Region | ||
Gdk.Region | ||
Finds out if a regions is the same as a rectangle.
Finds out if a regions is the same as a rectangle.
|
Gdk.Region | |
rect_in
(Rectangle rectangle)
:
Gdk.OverlapType
Tests whether a rectangle is within a region.
Tests whether a rectangle is within a region. GDK_OVERLAP_RECTANGLE_PART, depending on whether the rectangle is inside, outside, or partly inside the GdkRegion, respectively.
|
Gdk.Region | |
Gdk.Region | ||
spans_intersect_foreach
(Span spans, Number n_spans, Boolean sorted, Function function, void* data)
:
none
Calls a function on each span in the intersection of region and spans.
|
Gdk.Region | |
subtract
(Region source2)
:
none
Subtracts the area of source2 from the area source1.
Subtracts the area of source2 from the area source1. The resulting area is the set of pixels contained in source1 but not in source2.
|
Gdk.Region | |
union
(Region source2)
:
none
Sets the area of source1 to the union of the areas of source1 and either source1 or source2.
Sets the area of source1 to the union of the areas of source1 and either source1 or source2.
|
Gdk.Region | |
union_with_rect
(Rectangle rect)
:
none
Sets the area of region to the union of the areas of region and either region or rect.
Sets the area of region to the union of the areas of region and either region or rect.
|
Gdk.Region | |
xor
(Region source2)
:
none
Sets the area of source1 to the exclusive-OR of the areas of source1 and source2.
Sets the area of source1 to the exclusive-OR of the areas of source1 and source2. The resulting area is the set of pixels contained in one or the other of the two sources but not in both.
|
Gdk.Region |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Adds the given region to the current path of cr.
|
Gdk
Method |
Gdk.pango_layout_get_clip_region
(Layout layout, Number x_origin, Number y_origin, Object out_values, Number n_ranges)
:
Gdk.Region
Obtains a clip region which contains the areas where the given ranges of text would be drawn.
|
Gdk
Method |
Gdk.pango_layout_line_get_clip_region
(LayoutLine line, Number x_origin, Number y_origin, Object out_values, Number n_ranges)
:
Gdk.Region
Obtains a clip region which contains the areas where the given ranges of text would be drawn.
|
Gdk
Method |
Creates a new GdkRegion using the polygon defined by a number of points.
|
Gdk
Method |
Creates a new region containing the area rectangle.
|
Gdk.Drawable
Method |
get_clip_region
()
:
Gdk.Region
Computes the region of a drawable that potentially can be written to by drawing primitives.
|
Gdk.Drawable
Method |
get_visible_region
()
:
Gdk.Region
Computes the region of a drawable that is potentially visible.
|
Gdk.GC
Method |
set_clip_region
(Region region)
:
none
Sets the clip mask for a graphics context from a region structure.
|
Gdk.Window
Method |
Move the part of window indicated by region by dy pixels in the Y direction and dx pixels in the X direction.
|
Gdk.Window
Method |
Makes pixels in window outside shape_region be transparent, so that the window may be nonrectangular.
|
Gdk.Window
Method |
Like gdk_window_shape_combine_region(), but the shape applies only to event handling.
|
Gdk.Window
Method |
begin_paint_region
(Region region)
:
none
Indicates that you are beginning the process of redrawing region.
|
Gdk.Window
Method |
Adds region to the update area for window.
|
Gdk.Window
Method |
Adds region to the update area for window.
|
Gdk.Window
Method |
get_update_area
()
:
Gdk.Region
Transfers ownership of the update area from window to the caller of the function.
|
Gtk.Widget
Method |
region_intersect
(Region region)
:
Gdk.Region
Computes the intersection of a widget's area and region, returning the intersection.
|