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>
80 O& operator << (O& object, const Property<T>& property)
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);
133 font(
const Glib::ustring& 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 > \
#define GNOMEMM_PROPERTY(N, N2, T)
Definition: properties.h:166
const char * get_name() const
Definition: affinetrans.h:29
outline_color(const Gdk::Color &v)
void set_value_in_object(Glib::Object &object) const
Definition: properties.h:64
Property(const char *name, const T_Value &value)
Definition: properties.h:60
Definition: properties.h:128
guint value_rgba_
Definition: properties.h:104
const char * name_
Definition: properties.h:53
Definition: properties.h:57
Definition: properties.h:44
Definition: properties.h:156
T_Value value_
Definition: properties.h:71
Pango::FontDescription value_
Definition: properties.h:118
font(const Pango::FontDescription &v)
PropertyBase(const char *name)
Gdk::Color value_
Definition: properties.h:100
fill_color(const Gdk::Color &v)
bool value_string_used_
Definition: properties.h:103
Definition: properties.h:148
Glib::ustring value_string_
Definition: properties.h:102
Glib::RefPtr< Gdk::Bitmap > value_
Definition: properties.h:145
Glib::ustring value_string_
Definition: properties.h:119
bool value_gobj_used_
Definition: properties.h:101