plugin manager: filter-by-type really is filter-by-category, so fix the naming and...
[ardour2.git] / gtk2_ardour / imageframe.h
blob76787f8b88669ba6ba876022b806828a5f740f00
1 // -*- c++ -*-
2 #ifndef _LIBGNOMECANVASMM_IMAGEFRAME_H
3 #define _LIBGNOMECANVASMM_IMAGEFRAME_H
5 #include <glibmm.h>
8 /* rect.h
9 *
10 * Copyright (C) 1998 EMC Capital Management Inc.
11 * Developed by Havoc Pennington <hp@pobox.com>
13 * Copyright (C) 1999 The Gtk-- Development Team
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Library General Public
17 * License as published by the Free Software Foundation; either
18 * version 2 of the License, or (at your option) any later version.
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Library General Public License for more details.
25 * You should have received a copy of the GNU Library General Public
26 * License along with this library; if not, write to the Free
27 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 #include <libgnomecanvasmm/item.h>
31 #include <libgnomecanvasmm/group.h>
32 #include <libgnomecanvasmm/shape.h>
33 #include "canvas-imageframe.h"
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 typedef struct _GnomeCanvasImageFrame GnomeCanvasImageFrame;
38 typedef struct _GnomeCanvasImageFrameClass GnomeCanvasImageFrameClass;
39 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
42 namespace Gnome
45 namespace Canvas
46 { class ImageFrame_Class; } // namespace Canvas
48 } // namespace Gnome
49 namespace Gnome
52 namespace Canvas
55 //class Group;
58 class ImageFrame : public Item
60 public:
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 typedef ImageFrame CppObjectType;
63 typedef ImageFrame_Class CppClassType;
64 typedef GnomeCanvasImageFrame BaseObjectType;
65 typedef GnomeCanvasImageFrameClass BaseClassType;
66 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
68 virtual ~ImageFrame();
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 private:
73 friend class ImageFrame_Class;
74 static CppClassType rect_class_;
76 // noncopyable
77 ImageFrame(const ImageFrame&);
78 ImageFrame& operator=(const ImageFrame&);
80 protected:
81 explicit ImageFrame(const Glib::ConstructParams& construct_params);
82 explicit ImageFrame(GnomeCanvasImageFrame* castitem);
84 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
86 public:
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS
88 static GType get_type() G_GNUC_CONST;
89 static GType get_base_type() G_GNUC_CONST;
90 #endif
92 ///Provides access to the underlying C GtkObject.
93 GnomeCanvasImageFrame* gobj() { return reinterpret_cast<GnomeCanvasImageFrame*>(gobject_); }
95 ///Provides access to the underlying C GtkObject.
96 const GnomeCanvasImageFrame* gobj() const { return reinterpret_cast<GnomeCanvasImageFrame*>(gobject_); }
99 public:
100 //C++ methods used to invoke GTK+ virtual functions:
102 protected:
103 //GTK+ Virtual Functions (override these to change behaviour):
105 //Default Signal Handlers::
108 private:
111 public:
112 ImageFrame(Group& parentx, ArtPixBuf* pbuf, double x, double y, Gtk::AnchorType anchor, double w, double h);
113 explicit ImageFrame(Group& parent);
115 Glib::PropertyProxy<double> property_x();
116 Glib::PropertyProxy_ReadOnly<double> property_x() const;
117 Glib::PropertyProxy<double> property_y();
118 Glib::PropertyProxy_ReadOnly<double> property_y() const;
119 Glib::PropertyProxy<double> property_width();
120 Glib::PropertyProxy_ReadOnly<double> property_width() const;
121 Glib::PropertyProxy<double> property_drawwidth();
122 Glib::PropertyProxy_ReadOnly<double> property_drawwidth() const;
123 Glib::PropertyProxy<double> property_height();
124 Glib::PropertyProxy_ReadOnly<double> property_height() const;
125 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
126 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
130 } /* namespace Canvas */
131 } /* namespace Gnome */
133 namespace Glib
135 /** @relates Gnome::Canvas::ImageFrame
136 * @param object The C instance
137 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
138 * @result A C++ instance that wraps this C instance.
140 Gnome::Canvas::ImageFrame* wrap(GnomeCanvasImageFrame* object, bool take_copy = false);
142 #endif /* _LIBGNOMECANVASMM_IMAGEFRAME_H */