1 #ifndef _LIBGNOMECANVASMM_PROPERTIES_H_
2 #define _LIBGNOMECANVASMM_PROPERTIES_H_
29 #include <glibmm/propertyproxy.h>
30 #include <gdkmm/color.h>
31 #include <gdkmm/bitmap.h>
32 #include <pangomm/fontdescription.h>
33 #include <gtkmm/enums.h>
56 template <
class T_Value>
60 Property(
const char* name,
const T_Value& value)
66 Glib::PropertyProxy<T_Value> proxy(&
object,
get_name());
79 template <
class O,
class T>
82 property.set_value_in_object(
object);
93 Property(
const char* name,
const Gdk::Color& value);
94 Property(
const char* name,
const Glib::ustring& color);
95 Property(
const char* name,
const guint& rgba_color);
112 Property(
const char* name,
const Pango::FontDescription& value);
131 font(
const Pango::FontDescription& v);
140 Property(
const char* name,
const Glib::RefPtr<Gdk::Bitmap>& value);
166 #define GNOMEMM_PROPERTY(N,N2,T) \
167 class N : public Property<T > \
Definition: properties.h:45
const char * get_name() const
const char * name_
Definition: properties.h:53
PropertyBase(const char *name)
Property(const char *name, const Gdk::Color &value)
Property(const char *name, const Glib::ustring &color)
bool value_gobj_used_
Definition: properties.h:101
Property(const char *name, const guint &rgba_color)
guint value_rgba_
Definition: properties.h:104
Glib::ustring value_string_
Definition: properties.h:102
Gdk::Color value_
Definition: properties.h:100
void set_value_in_object(Glib::Object &object) const
bool value_string_used_
Definition: properties.h:103
Property(const char *name, const Glib::RefPtr< Gdk::Bitmap > &value)
void set_value_in_object(Glib::Object &object) const
Glib::RefPtr< Gdk::Bitmap > value_
Definition: properties.h:145
void set_value_in_object(Glib::Object &object) const
Pango::FontDescription value_
Definition: properties.h:118
Glib::ustring value_string_
Definition: properties.h:119
Property(const char *name, const Pango::FontDescription &value)
Property(const char *name, const Glib::ustring &font)
Definition: properties.h:58
void set_value_in_object(Glib::Object &object) const
Definition: properties.h:64
T_Value value_
Definition: properties.h:71
Property(const char *name, const T_Value &value)
Definition: properties.h:60
Definition: properties.h:149
fill_color(const Glib::ustring &v)
fill_color(const Gdk::Color &v)
Definition: properties.h:129
font(const Glib::ustring &v)
font(const Pango::FontDescription &v)
Definition: properties.h:157
outline_color(const Gdk::Color &v)
outline_color(const Glib::ustring &v)
O & operator<<(O &object, const Property< T > &property)
Allow use of << operator on objects: For instance: canvasgroup << Gnome::Canvas::CanvasHelpers::x(2);...
Definition: properties.h:80
Definition: affinetrans.h:30
#define GNOMEMM_PROPERTY(N, N2, T)
Definition: properties.h:166