|  |  | 
The intersection of two rectangles can be computed with intersect(). To find the union of two rectangles use union().
| Public Member Functions | |
| Rectangle () | |
| Rectangle (const GdkRectangle* gobject) | |
| GdkRectangle* | gobj () | 
| Provides access to the underlying C instance. | |
| const GdkRectangle* | gobj () const | 
| Provides access to the underlying C instance. | |
| Rectangle (int x, int y, int width, int height) | |
| Rectangle& | join (const Rectangle& src2) | 
| Rectangle& | intersect (const Rectangle& src2) | 
| Rectangle& | intersect (const Rectangle& src2, bool& rectangles_intersect) | 
| bool | has_zero_area () const | 
| int | get_x () const | 
| void | set_x (const int& value) | 
| int | get_y () const | 
| void | set_y (const int& value) | 
| int | get_width () const | 
| void | set_width (const int& value) | 
| int | get_height () const | 
| void | set_height (const int& value) | 
| Protected Attributes | |
| GdkRectangle | gobject_ | 
| Related Functions | |
| (Note that these are not member functions.) | |
| Gdk::Rectangle& | wrap (GdkRectangle* object) | 
| const Gdk::Rectangle& | wrap (const GdkRectangle* object) | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||||||||||
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| Provides access to the underlying C instance. 
 | 
| 
 | 
| Provides access to the underlying C instance. 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 
 
 | 
| 
 | 
| 
 
 
 | 
| 
 | 
| 
 |