~ubuntu-branches/ubuntu/vivid/ardour/vivid-proposed

« back to all changes in this revision

Viewing changes to libs/gtkmm2/gdk/gdkmm/rectangle.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, Jaromír Mikeš, Felipe Sateler
  • Date: 2014-05-22 14:39:25 UTC
  • mfrom: (29 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20140522143925-vwqfo9287pmkrroe
Tags: 1:2.8.16+git20131003-3
* Team upload

[ Jaromír Mikeš ]
* Add -dbg package

[ Felipe Sateler ]
* Upload to experimental

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GDKMM_RECTANGLE_H
 
4
#define _GDKMM_RECTANGLE_H
 
5
 
 
6
#include <glibmm.h>
 
7
 
 
8
/* $Id$ */
 
9
 
 
10
/* rectangle.h
 
11
 *
 
12
 * Copyright (C) 1998-2002 The gtkmm Development Team
 
13
 *
 
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.
 
18
 *
 
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.
 
23
 *
 
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.
 
27
 */
 
28
 
 
29
#include <gdk/gdk.h>
 
30
 
 
31
 
 
32
namespace Gdk
 
33
{
 
34
 
 
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().
 
37
 */
 
38
class Rectangle
 
39
{
 
40
  public:
 
41
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
42
  typedef Rectangle CppObjectType;
 
43
  typedef GdkRectangle BaseObjectType;
 
44
 
 
45
  static GType get_type() G_GNUC_CONST;
 
46
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
47
 
 
48
  Rectangle();
 
49
 
 
50
  explicit Rectangle(const GdkRectangle* gobject); // always takes a copy
 
51
 
 
52
  ///Provides access to the underlying C instance.
 
53
  GdkRectangle*       gobj()       { return &gobject_; }
 
54
 
 
55
  ///Provides access to the underlying C instance.
 
56
  const GdkRectangle* gobj() const { return &gobject_; }
 
57
 
 
58
protected:
 
59
  GdkRectangle gobject_;
 
60
 
 
61
private:
 
62
  
 
63
public:
 
64
//_CUSTOM_DEFAULT_CTOR
 
65
//Rectangle();
 
66
  Rectangle(int x, int y, int width, int height);
 
67
 
 
68
  Rectangle& join(const Rectangle& src2);
 
69
  Rectangle& intersect(const Rectangle& src2);
 
70
  Rectangle& intersect(const Rectangle& src2, bool& rectangles_intersect);
 
71
 
 
72
  bool has_zero_area() const;
 
73
 
 
74
  int get_x() const;
 
75
  void set_x(const int& value);
 
76
  int get_y() const;
 
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);
 
82
 
 
83
 
 
84
};
 
85
 
 
86
} // namespace Gdk
 
87
 
 
88
 
 
89
namespace Glib
 
90
{
 
91
 
 
92
/** @relates Gdk::Rectangle
 
93
 * @param object The C instance
 
94
 * @result A C++ instance that wraps this C instance.
 
95
 */
 
96
Gdk::Rectangle& wrap(GdkRectangle* object);
 
97
 
 
98
/** @relates Gdk::Rectangle
 
99
 * @param object The C instance
 
100
 * @result A C++ instance that wraps this C instance.
 
101
 */
 
102
const Gdk::Rectangle& wrap(const GdkRectangle* object);
 
103
 
 
104
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
105
template <>
 
106
class Value<Gdk::Rectangle> : public Glib::Value_Boxed<Gdk::Rectangle>
 
107
{};
 
108
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
109
 
 
110
} // namespace Glib
 
111
 
 
112
#endif /* _GDKMM_RECTANGLE_H */
 
113