Ardour  9.0-pre0-582-g084a23a80d
tk/ydkmm/ydkmm/gdkmm/rectangle.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GDKMM_RECTANGLE_H
4 #define _GDKMM_RECTANGLE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: rectangle.hg,v 1.2 2004/01/05 17:32:12 murrayc Exp $ */
11 
12 /* rectangle.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <glibmm/value.h>
32 #include <gdk/gdk.h>
33 
34 
35 namespace Gdk
36 {
37 
41 class Rectangle
42 {
43  public:
44 #ifndef DOXYGEN_SHOULD_SKIP_THIS
45  typedef Rectangle CppObjectType;
46  typedef GdkRectangle BaseObjectType;
47 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
48 
51  static GType get_type() G_GNUC_CONST;
52 
54 
55  explicit Rectangle(const GdkRectangle* gobject); // always takes a copy
56 
58  GdkRectangle* gobj() { return &gobject_; }
59 
61  const GdkRectangle* gobj() const { return &gobject_; }
62 
63 protected:
65 
66 private:
67 
68 public:
69 //_CUSTOM_DEFAULT_CTOR
70 //Rectangle();
71 
74  Rectangle(int x, int y, int width, int height);
75 
85  Rectangle& join(const Rectangle& src2);
86 
96  Rectangle& intersect(const Rectangle& src2);
97 
108  Rectangle& intersect(const Rectangle& src2, bool& rectangles_intersect);
109 
113  bool has_zero_area() const;
114 
115  int get_x() const;
116  void set_x(const int& value);
117  int get_y() const;
118  void set_y(const int& value);
119  int get_width() const;
120  void set_width(const int& value);
121  int get_height() const;
122  void set_height(const int& value);
123 
124 
125 };
126 
127 } // namespace Gdk
128 
129 
130 namespace Glib
131 {
132 
138 
143 const Gdk::Rectangle& wrap(const GdkRectangle* object);
144 
145 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146 template <>
147 class Value<Gdk::Rectangle> : public Glib::Value_Boxed<Gdk::Rectangle>
148 {};
149 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
150 
151 } // namespace Glib
152 
153 
154 #endif /* _GDKMM_RECTANGLE_H */
155 
Rectangle & intersect(const Rectangle &src2, bool &rectangles_intersect)
void set_height(const int &value)
bool has_zero_area() const
void set_width(const int &value)
Rectangle(int x, int y, int width, int height)
GdkRectangle * gobj()
Provides access to the underlying C instance.
const GdkRectangle * gobj() const
Provides access to the underlying C instance.
int get_width() const
int get_y() const
int get_x() const
static GType get_type() G_GNUC_CONST
int get_height() const
Rectangle & join(const Rectangle &src2)
void set_x(const int &value)
const Gdk::Rectangle & wrap(const GdkRectangle *object)
void set_y(const int &value)
Gdk::Rectangle & wrap(GdkRectangle *object)
Rectangle & intersect(const Rectangle &src2)
Definition: lobject.h:100
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1