1/* Copyright (C) 2007 The cluttermm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free
15 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 */
17
18#include <cluttermm/actor.h>
19#include <cluttermm/color.h>
20
21_DEFS(cluttermm,clutter)
22_PINCLUDE(cluttermm/private/actor_p.h)
23
24#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
25#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
26#m4 _POP()
27
28namespace Clutter
29{
30
31/**
32 * @deprecated Use Actor instead.
33 */
34class Rectangle :
35  public Actor
36{
37  _CLASS_GOBJECT(Rectangle, ClutterRectangle, CLUTTER_RECTANGLE, Actor, ClutterActor)
38  _IS_DEPRECATED
39
40protected:
41  _CTOR_DEFAULT()
42  _WRAP_CTOR(Rectangle(const Color& color), clutter_rectangle_new_with_color)
43
44public:
45  _WRAP_CREATE()
46  _WRAP_CREATE(const Color& color)
47
48#m4 _CONVERSION(`ClutterActor*',`Glib::RefPtr<Rectangle>',`Glib::wrap((ClutterRectangle*)$3)')
49
50  _WRAP_METHOD_DOCS_ONLY(clutter_rectangle_get_color)
51  Color get_color() const;
52  _WRAP_METHOD(void set_color(const Color& color), clutter_rectangle_set_color)
53
54  _WRAP_METHOD_DOCS_ONLY(clutter_rectangle_get_border_color)
55  Color get_border_color() const;
56  _WRAP_METHOD(void set_border_color(const Color& color), clutter_rectangle_set_border_color)
57
58  _WRAP_METHOD(guint get_border_width() const, clutter_rectangle_get_border_width)
59  _WRAP_METHOD(void set_border_width(guint width), clutter_rectangle_set_border_width)
60
61  _WRAP_PROPERTY("border-color", Color)
62  _WRAP_PROPERTY("border-width", guint)
63  _WRAP_PROPERTY("color", Color)
64  _WRAP_PROPERTY("has-border", bool)
65};
66
67} // namespace Clutter
68
69//vim: ts=2,sw=2
70