rectangle.h
Go to the documentation of this file.00001
00002
00003 #ifndef _CLUTTERMM_RECTANGLE_H
00004 #define _CLUTTERMM_RECTANGLE_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <cluttermm/actor.h>
00027 #include <cluttermm/color.h>
00028
00029
00030 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00031 typedef struct _ClutterRectangle ClutterRectangle;
00032 typedef struct _ClutterRectangleClass ClutterRectangleClass;
00033 #endif
00034
00035
00036 namespace Clutter
00037 { class Rectangle_Class; }
00038 namespace Clutter
00039 {
00040
00041
00042 class Rectangle :
00043 public Actor
00044 {
00045
00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00047
00048 public:
00049 typedef Rectangle CppObjectType;
00050 typedef Rectangle_Class CppClassType;
00051 typedef ClutterRectangle BaseObjectType;
00052 typedef ClutterRectangleClass BaseClassType;
00053
00054 private: friend class Rectangle_Class;
00055 static CppClassType rectangle_class_;
00056
00057 private:
00058
00059 Rectangle(const Rectangle&);
00060 Rectangle& operator=(const Rectangle&);
00061
00062 protected:
00063 explicit Rectangle(const Glib::ConstructParams& construct_params);
00064 explicit Rectangle(ClutterRectangle* castitem);
00065
00066 #endif
00067
00068 public:
00069 virtual ~Rectangle();
00070
00071 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00072 static GType get_type() G_GNUC_CONST;
00073 static GType get_base_type() G_GNUC_CONST;
00074 #endif
00075
00077 ClutterRectangle* gobj() { return reinterpret_cast<ClutterRectangle*>(gobject_); }
00078
00080 const ClutterRectangle* gobj() const { return reinterpret_cast<ClutterRectangle*>(gobject_); }
00081
00083 ClutterRectangle* gobj_copy();
00084
00085 private:
00086
00087
00088 protected:
00089 Rectangle();
00090 explicit Rectangle(const Color& color);
00091
00092 public:
00093
00094 static Glib::RefPtr<Rectangle> create();
00095
00096
00097 static Glib::RefPtr<Rectangle> create(const Color& color);
00098 ;
00099
00100
00105 Color get_color() const;
00106
00110 void set_color(const Color& color);
00111
00112
00120 Color get_border_color() const;
00121
00125 void set_border_color(const Color& color);
00126
00127
00133 guint get_border_width() const;
00134
00141 void set_border_width(guint width);
00142
00143 #ifdef GLIBMM_PROPERTIES_ENABLED
00144
00150 Glib::PropertyProxy<Color> property_border_color() ;
00151 #endif //#GLIBMM_PROPERTIES_ENABLED
00152
00153 #ifdef GLIBMM_PROPERTIES_ENABLED
00154
00160 Glib::PropertyProxy_ReadOnly<Color> property_border_color() const;
00161 #endif //#GLIBMM_PROPERTIES_ENABLED
00162
00163 #ifdef GLIBMM_PROPERTIES_ENABLED
00164
00170 Glib::PropertyProxy<unsigned int> property_border_width() ;
00171 #endif //#GLIBMM_PROPERTIES_ENABLED
00172
00173 #ifdef GLIBMM_PROPERTIES_ENABLED
00174
00180 Glib::PropertyProxy_ReadOnly<unsigned int> property_border_width() const;
00181 #endif //#GLIBMM_PROPERTIES_ENABLED
00182
00183 #ifdef GLIBMM_PROPERTIES_ENABLED
00184
00190 Glib::PropertyProxy<Color> property_color() ;
00191 #endif //#GLIBMM_PROPERTIES_ENABLED
00192
00193 #ifdef GLIBMM_PROPERTIES_ENABLED
00194
00200 Glib::PropertyProxy_ReadOnly<Color> property_color() const;
00201 #endif //#GLIBMM_PROPERTIES_ENABLED
00202
00203 #ifdef GLIBMM_PROPERTIES_ENABLED
00204
00210 Glib::PropertyProxy<bool> property_has_border() ;
00211 #endif //#GLIBMM_PROPERTIES_ENABLED
00212
00213 #ifdef GLIBMM_PROPERTIES_ENABLED
00214
00220 Glib::PropertyProxy_ReadOnly<bool> property_has_border() const;
00221 #endif //#GLIBMM_PROPERTIES_ENABLED
00222
00223
00224 public:
00225
00226 public:
00227
00228 #ifdef GLIBMM_VFUNCS_ENABLED
00229 #endif //GLIBMM_VFUNCS_ENABLED
00230
00231 protected:
00232
00233 #ifdef GLIBMM_VFUNCS_ENABLED
00234 #endif //GLIBMM_VFUNCS_ENABLED
00235
00236
00237 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00238 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00239
00240
00241 };
00242
00243 }
00244
00245
00246
00247
00248 namespace Glib
00249 {
00258 Glib::RefPtr<Clutter::Rectangle> wrap(ClutterRectangle* object, bool take_copy = false);
00259 }
00260
00261
00262 #endif
00263