1Gtk2::Gdk::Region(3)  User Contributed Perl Documentation Gtk2::Gdk::Region(3)
2
3
4

NAME

6       Gtk2::Gdk::Region
7

HIERARCHY

9         Glib::Boxed
10         +----Gtk2::Gdk::Region
11

METHODS

13       region = Gtk2::Gdk::Region->new
14
15       rectangle = $region->get_clipbox
16
17       boolean = $region->empty
18
19       boolean = $region1->equal ($region2)
20
21           * $region2 (Gtk2::Gdk::Region)
22
23       $source1->intersect ($source2)
24
25           * $source2 (Gtk2::Gdk::Region)
26
27       $region->offset ($dx, $dy)
28
29           * $dx (integer)
30           * $dy (integer)
31
32       boolean = $region->point_in ($x, $y)
33
34           * $x (integer)
35           * $y (integer)
36
37       region = Gtk2::Gdk::Region->polygon ($points_ref, $fill_rule)
38
39           * $points_ref (scalar)
40           * $fill_rule (Gtk2::Gdk::FillRule)
41
42       overlaptype = $region->rect_in ($rect)
43
44           * $rect (Gtk2::Gdk::Rectangle)
45
46       region = Gtk2::Gdk::Region->rectangle ($rectangle)
47
48           * $rectangle (Gtk2::Gdk::Rectangle)
49
50       list = $region->get_rectangles
51
52           Returns a list of rectangles (Gtk2::Gdk::Rectangle's), the area
53           covered by the region.
54
55       $region->shrink ($dx, $dy)
56
57           * $dx (integer)
58           * $dy (integer)
59
60       $region->spans_intersect_foreach ($spans_ref, $sorted, $func,
61       $data=undef)
62
63           * $spans_ref (scalar)
64           * $sorted (boolean)
65           * $func (scalar)
66           * $data (scalar)
67
68       $source1->subtract ($source2)
69
70           * $source2 (Gtk2::Gdk::Region)
71
72       $source1->union ($source2)
73
74           * $source2 (Gtk2::Gdk::Region)
75
76       $region->union_with_rect ($rect)
77
78           * $rect (Gtk2::Gdk::Rectangle)
79
80       $source1->xor ($source2)
81
82           * $source2 (Gtk2::Gdk::Region)
83

ENUMS AND FLAGS

85       enum Gtk2::Gdk::FillRule
86
87       * 'even-odd-rule' / 'GDK_EVEN_ODD_RULE'
88       * 'winding-rule' / 'GDK_WINDING_RULE'
89
90       enum Gtk2::Gdk::OverlapType
91
92       * 'in' / 'GDK_OVERLAP_RECTANGLE_IN'
93       * 'out' / 'GDK_OVERLAP_RECTANGLE_OUT'
94       * 'part' / 'GDK_OVERLAP_RECTANGLE_PART'
95

SEE ALSO

97       Gtk2, Glib::Boxed
98
100       Copyright (C) 2003-2007 by the gtk2-perl team.
101
102       This software is licensed under the LGPL.  See Gtk2 for a full notice.
103
104
105
106perl v5.8.8                       2007-03-18              Gtk2::Gdk::Region(3)
Impressum