2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _GDKMM_RECTANGLE_H
4
#define _GDKMM_RECTANGLE_H
12
* Copyright (C) 1998-2002 The gtkmm Development Team
14
* This library is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU Library General Public
16
* License as published by the Free Software Foundation; either
17
* version 2 of the License, or (at your option) any later version.
19
* This library is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22
* Library General Public License for more details.
24
* You should have received a copy of the GNU Library General Public
25
* License along with this library; if not, write to the Free
26
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
35
/** Gdk::Rectangle is a structure holding the position and size of a rectangle.
36
* The intersection of two rectangles can be computed with intersect(). To find the union of two rectangles use union().
41
#ifndef DOXYGEN_SHOULD_SKIP_THIS
42
typedef Rectangle CppObjectType;
43
typedef GdkRectangle BaseObjectType;
45
static GType get_type() G_GNUC_CONST;
46
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
50
explicit Rectangle(const GdkRectangle* gobject); // always takes a copy
52
///Provides access to the underlying C instance.
53
GdkRectangle* gobj() { return &gobject_; }
55
///Provides access to the underlying C instance.
56
const GdkRectangle* gobj() const { return &gobject_; }
59
GdkRectangle gobject_;
64
//_CUSTOM_DEFAULT_CTOR
66
Rectangle(int x, int y, int width, int height);
68
Rectangle& join(const Rectangle& src2);
69
Rectangle& intersect(const Rectangle& src2);
70
Rectangle& intersect(const Rectangle& src2, bool& rectangles_intersect);
72
bool has_zero_area() const;
75
void set_x(const int& value);
77
void set_y(const int& value);
78
int get_width() const;
79
void set_width(const int& value);
80
int get_height() const;
81
void set_height(const int& value);
92
/** @relates Gdk::Rectangle
93
* @param object The C instance
94
* @result A C++ instance that wraps this C instance.
96
Gdk::Rectangle& wrap(GdkRectangle* object);
98
/** @relates Gdk::Rectangle
99
* @param object The C instance
100
* @result A C++ instance that wraps this C instance.
102
const Gdk::Rectangle& wrap(const GdkRectangle* object);
104
#ifndef DOXYGEN_SHOULD_SKIP_THIS
106
class Value<Gdk::Rectangle> : public Glib::Value_Boxed<Gdk::Rectangle>
108
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
112
#endif /* _GDKMM_RECTANGLE_H */