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