// Generated by gtkmmproc -- DO NOT MODIFY!


#include <cluttermm/text.h>
#include <cluttermm/private/text_p.h>

/*
 * Copyright (c) 2009  The cluttermm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#include <clutter/clutter.h>

namespace Clutter
{

Color Text::get_color() const
{
  Color color;
  clutter_text_get_color(const_cast<ClutterText*>(gobj()), color.gobj());
  return color;
}

Color Text::get_selection_color() const
{
  Color color;
  clutter_text_get_selection_color(const_cast<ClutterText*>(gobj()), color.gobj());
  return color;
}

} // namespace Clutter

namespace
{


static const Glib::SignalProxyInfo Text_signal_activate_info =
{
  "activate",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo Text_signal_text_changed_info =
{
  "text_changed",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static void Text_signal_cursor_event_callback(ClutterText* self, const ClutterGeometry* p0,void* data)
{
  using namespace Clutter;
  typedef sigc::slot< void,const Geometry& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Geometry(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo Text_signal_cursor_event_info =
{
  "cursor_event",
  (GCallback) &Text_signal_cursor_event_callback,
  (GCallback) &Text_signal_cursor_event_callback
};


} // anonymous namespace


namespace Glib
{

Glib::RefPtr<Clutter::Text> wrap(ClutterText* object, bool take_copy)
{
  return Glib::RefPtr<Clutter::Text>( dynamic_cast<Clutter::Text*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
  //We use dynamic_cast<> in case of multiple inheritance.
}

} /* namespace Glib */


namespace Clutter
{


/* The *_Class implementation: */

const Glib::Class& Text_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Class has to know the class init function to clone custom types.
    class_init_func_ = &Text_Class::class_init_function;

    // This is actually just optimized away, apparently with no harm.
    // Make sure that the parent type has been created.
    //CppClassParent::CppObjectType::get_type();

    // Create the wrapper type, with the same class/instance size as the base type.
    register_derived_type(clutter_text_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:

  }

  return *this;
}


void Text_Class::class_init_function(void* g_class, void* class_data)
{
  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
  CppClassParent::class_init_function(klass, class_data);


  klass->activate = &activate_callback;
  klass->text_changed = &text_changed_callback;
  klass->cursor_event = &cursor_event_callback;
}


void Text_Class::activate_callback(ClutterText* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_activate();
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->activate)
    (*base->activate)(self);
}
void Text_Class::text_changed_callback(ClutterText* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_text_changed();
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->text_changed)
    (*base->text_changed)(self);
}
void Text_Class::cursor_event_callback(ClutterText* self, const ClutterGeometry* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_cursor_event(Geometry(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->cursor_event)
    (*base->cursor_event)(self, p0);
}


Glib::ObjectBase* Text_Class::wrap_new(GObject* object)
{
  return new Text((ClutterText*)object);
}


/* The implementation: */

ClutterText* Text::gobj_copy()
{
  reference();
  return gobj();
}

Text::Text(const Glib::ConstructParams& construct_params)
:
  Actor(construct_params)
{

}

Text::Text(ClutterText* castitem)
:
  Actor((ClutterActor*)(castitem))
{}


Text::~Text()
{}


Text::CppClassType Text::text_class_; // initialize static member

GType Text::get_type()
{
  return text_class_.init().get_type();
}


GType Text::get_base_type()
{
  return clutter_text_get_type();
}


Text::Text()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  Actor(Glib::ConstructParams(text_class_.init()))
{
  

}

Text::Text(const Glib::ustring& font_name, const Glib::ustring& text)
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  Actor(Glib::ConstructParams(text_class_.init(), "font_name", font_name.c_str(), "text", text.c_str(), static_cast<char*>(0)))
{
  

}

Text::Text(const Glib::ustring& font_name, const Glib::ustring& text, const Color& color)
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  Actor(Glib::ConstructParams(text_class_.init(), "font_name", font_name.c_str(), "text", text.c_str(), "color", (color).gobj(), static_cast<char*>(0)))
{
  

}

Glib::RefPtr<Text> Text::create()
{
  return Glib::RefPtr<Text>( new Text() );
}
Glib::RefPtr<Text> Text::create(const Glib::ustring& font_name, const Glib::ustring& text)
{
  return Glib::RefPtr<Text>( new Text(font_name, text) );
}
Glib::RefPtr<Text> Text::create(const Glib::ustring& font_name, const Glib::ustring& text, const Color& color)
{
  return Glib::RefPtr<Text>( new Text(font_name, text, color) );
}
void Text::set_text(const Glib::ustring& text)
{
clutter_text_set_text(gobj(), text.c_str()); 
}

void Text::set_markup(const Glib::ustring& markup)
{
clutter_text_set_markup(gobj(), markup.c_str()); 
}

Glib::ustring Text::get_text() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(clutter_text_get_text(const_cast<ClutterText*>(gobj())));
}

void Text::set_activatable(bool activatable)
{
clutter_text_set_activatable(gobj(), static_cast<int>(activatable)); 
}

bool Text::get_activatable() const
{
  return clutter_text_get_activatable(const_cast<ClutterText*>(gobj()));
}

void Text::set_attributes(Pango::AttrList& attrs)
{
clutter_text_set_attributes(gobj(), (attrs).gobj()); 
}

Pango::AttrList Text::get_attributes()
{
  return Pango::AttrList((clutter_text_get_attributes(gobj())));
}

void Text::set_color(const Color& color)
{
clutter_text_set_color(gobj(), (color).gobj()); 
}

void Text::set_ellipsize(Pango::EllipsizeMode mode)
{
clutter_text_set_ellipsize(gobj(), ((PangoEllipsizeMode)(mode))); 
}

Pango::EllipsizeMode Text::get_ellipsize()
{
  return ((Pango::EllipsizeMode)(clutter_text_get_ellipsize(gobj())));
}

void Text::set_font_name(const Glib::ustring& font_name)
{
clutter_text_set_font_name(gobj(), font_name.c_str()); 
}

Glib::ustring Text::get_font_name() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(clutter_text_get_font_name(const_cast<ClutterText*>(gobj())));
}

void Text::set_font_description(const Pango::FontDescription& font_desc)
{
clutter_text_set_font_description(gobj(), const_cast<PangoFontDescription*>((font_desc).gobj())); 
}

Pango::FontDescription Text::get_font_description() const
{
  return Pango::FontDescription((clutter_text_get_font_description(const_cast<ClutterText*>(gobj()))));
}

void Text::set_password_char(gunichar wc)
{
clutter_text_set_password_char(gobj(), wc); 
}

gunichar Text::get_password_char() const
{
  return clutter_text_get_password_char(const_cast<ClutterText*>(gobj()));
}

void Text::set_justify(bool justify)
{
clutter_text_set_justify(gobj(), static_cast<int>(justify)); 
}

bool Text::get_justify() const
{
  return clutter_text_get_justify(const_cast<ClutterText*>(gobj()));
}

Glib::RefPtr<Pango::Layout> Text::get_layout()
{
  return Glib::wrap(clutter_text_get_layout(gobj()));
}

Glib::RefPtr<const Pango::Layout> Text::get_layout() const
{
  return const_cast<Text*>(this)->get_layout();
}

void Text::set_line_alignment(Pango::Alignment alignment)
{
clutter_text_set_line_alignment(gobj(), ((PangoAlignment)(alignment))); 
}

Pango::Alignment Text::get_line_alignment() const
{
  return ((Pango::Alignment)(clutter_text_get_line_alignment(const_cast<ClutterText*>(gobj()))));
}

void Text::set_line_wrap(bool line_wrap)
{
clutter_text_set_line_wrap(gobj(), static_cast<int>(line_wrap)); 
}

bool Text::get_line_wrap() const
{
  return clutter_text_get_line_wrap(const_cast<ClutterText*>(gobj()));
}

Pango::WrapMode Text::get_line_wrap_mode() const
{
  return ((Pango::WrapMode)(clutter_text_get_line_wrap_mode(const_cast<ClutterText*>(gobj()))));
}

void Text::set_line_wrap_mode(Pango::WrapMode wrap_mode)
{
clutter_text_set_line_wrap_mode(gobj(), ((PangoWrapMode)(wrap_mode))); 
}

int Text::get_max_length() const
{
  return clutter_text_get_max_length(const_cast<ClutterText*>(gobj()));
}

void Text::set_max_length(int max_length)
{
clutter_text_set_max_length(gobj(), max_length); 
}

void Text::set_selectable(bool selectable)
{
clutter_text_set_selectable(gobj(), static_cast<int>(selectable)); 
}

bool Text::get_selectable() const
{
  return clutter_text_get_selectable(const_cast<ClutterText*>(gobj()));
}

void Text::set_selection(gssize start_pos, gssize end_pos)
{
clutter_text_set_selection(gobj(), start_pos, end_pos); 
}

Glib::ustring Text::get_selection() const
{
  return Glib::convert_return_gchar_ptr_to_ustring(clutter_text_get_selection(const_cast<ClutterText*>(gobj())));
}

void Text::set_selection_bound(int selection_bound)
{
clutter_text_set_selection_bound(gobj(), selection_bound); 
}

int Text::get_selection_bound() const
{
  return clutter_text_get_selection_bound(const_cast<ClutterText*>(gobj()));
}

void Text::set_selection_color(const Color& color)
{
clutter_text_set_selection_color(gobj(), (color).gobj()); 
}

void Text::set_single_line_mode(bool single_line)
{
clutter_text_set_single_line_mode(gobj(), static_cast<int>(single_line)); 
}

bool Text::get_single_line_mode() const
{
  return clutter_text_get_single_line_mode(const_cast<ClutterText*>(gobj()));
}

void Text::set_use_markup(bool setting)
{
clutter_text_set_use_markup(gobj(), static_cast<int>(setting)); 
}

bool Text::get_use_markup() const
{
  return clutter_text_get_use_markup(const_cast<ClutterText*>(gobj()));
}

void Text::set_editable(bool editable)
{
clutter_text_set_editable(gobj(), static_cast<int>(editable)); 
}

bool Text::get_editable() const
{
  return clutter_text_get_editable(const_cast<ClutterText*>(gobj()));
}

void Text::insert(gunichar wc)
{
clutter_text_insert_unichar(gobj(), wc); 
}

void Text::insert(const Glib::ustring& text, gssize position)
{
clutter_text_insert_text(gobj(), text.c_str(), position); 
}

void Text::delete_chars(guint len)
{
clutter_text_delete_chars(gobj(), len); 
}

void Text::delete_text(gssize start_pos, gssize end_pos)
{
clutter_text_delete_text(gobj(), start_pos, end_pos); 
}

bool Text::delete_selection()
{
  return clutter_text_delete_selection(gobj());
}

Glib::ustring Text::get_chars(gssize start_pos, gssize end_pos) const
{
  return Glib::convert_return_gchar_ptr_to_ustring(clutter_text_get_chars(const_cast<ClutterText*>(gobj()), start_pos, end_pos));
}

void Text::set_cursor_color(const Color& color)
{
clutter_text_set_cursor_color(gobj(), (color).gobj()); 
}

void Text::get_cursor_color(Color& color) const
{
clutter_text_get_cursor_color(const_cast<ClutterText*>(gobj()), (color).gobj()); 
}

void Text::set_cursor_position(int position)
{
clutter_text_set_cursor_position(gobj(), position); 
}

int Text::get_cursor_position() const
{
  return clutter_text_get_cursor_position(const_cast<ClutterText*>(gobj()));
}

void Text::set_cursor_visible(bool visible)
{
clutter_text_set_cursor_visible(gobj(), static_cast<int>(visible)); 
}

bool Text::get_cursor_visible() const
{
  return clutter_text_get_cursor_visible(const_cast<ClutterText*>(gobj()));
}

void Text::set_cursor_size(int size)
{
clutter_text_set_cursor_size(gobj(), size); 
}

guint Text::get_cursor_size() const
{
  return clutter_text_get_cursor_size(const_cast<ClutterText*>(gobj()));
}

bool Text::activate()
{
  return clutter_text_activate(gobj());
}

bool Text::position_to_coords(int position, float & x, float & y, float & line_height)
{
  return clutter_text_position_to_coords(gobj(), position, &(x), &(y), &(line_height));
}

void Text::set_preedit_string(const Glib::ustring& preedit_str, const Pango::AttrList& preedit_attrs, guint ursor_pos)
{
clutter_text_set_preedit_string(gobj(), preedit_str.c_str(), const_cast<PangoAttrList*>((preedit_attrs).gobj()), ursor_pos); 
}


Glib::SignalProxy0< void > Text::signal_activate()
{
  return Glib::SignalProxy0< void >(this, &Text_signal_activate_info);
}


Glib::SignalProxy0< void > Text::signal_text_changed()
{
  return Glib::SignalProxy0< void >(this, &Text_signal_text_changed_info);
}


Glib::SignalProxy1< void,const Geometry& > Text::signal_cursor_event()
{
  return Glib::SignalProxy1< void,const Geometry& >(this, &Text_signal_cursor_event_info);
}


#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Text::property_activatable() 
{
  return Glib::PropertyProxy<bool>(this, "activatable");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_activatable() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "activatable");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Pango::AttrList> Text::property_attributes() 
{
  return Glib::PropertyProxy<Pango::AttrList>(this, "attributes");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Pango::AttrList> Text::property_attributes() const
{
  return Glib::PropertyProxy_ReadOnly<Pango::AttrList>(this, "attributes");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Color> Text::property_color() 
{
  return Glib::PropertyProxy<Color>(this, "color");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Color> Text::property_color() const
{
  return Glib::PropertyProxy_ReadOnly<Color>(this, "color");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Color> Text::property_cursor_color() 
{
  return Glib::PropertyProxy<Color>(this, "cursor-color");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Color> Text::property_cursor_color() const
{
  return Glib::PropertyProxy_ReadOnly<Color>(this, "cursor-color");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_cursor_color_set() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "cursor-color-set");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> Text::property_cursor_size() 
{
  return Glib::PropertyProxy<int>(this, "cursor-size");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> Text::property_cursor_size() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "cursor-size");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Text::property_cursor_visible() 
{
  return Glib::PropertyProxy<bool>(this, "cursor-visible");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_cursor_visible() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "cursor-visible");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Text::property_editable() 
{
  return Glib::PropertyProxy<bool>(this, "editable");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_editable() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "editable");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Pango::EllipsizeMode> Text::property_ellipsize() 
{
  return Glib::PropertyProxy<Pango::EllipsizeMode>(this, "ellipsize");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Pango::EllipsizeMode> Text::property_ellipsize() const
{
  return Glib::PropertyProxy_ReadOnly<Pango::EllipsizeMode>(this, "ellipsize");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Glib::ustring> Text::property_font_name() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "font-name");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Glib::ustring> Text::property_font_name() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "font-name");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Pango::FontDescription> Text::property_font_description() 
{
  return Glib::PropertyProxy<Pango::FontDescription>(this, "font-description");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Pango::FontDescription> Text::property_font_description() const
{
  return Glib::PropertyProxy_ReadOnly<Pango::FontDescription>(this, "font-description");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Text::property_justify() 
{
  return Glib::PropertyProxy<bool>(this, "justify");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_justify() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "justify");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Pango::Alignment> Text::property_line_alignment() 
{
  return Glib::PropertyProxy<Pango::Alignment>(this, "line-alignment");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Pango::Alignment> Text::property_line_alignment() const
{
  return Glib::PropertyProxy_ReadOnly<Pango::Alignment>(this, "line-alignment");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Pango::WrapMode> Text::property_line_wrap_mode() 
{
  return Glib::PropertyProxy<Pango::WrapMode>(this, "line-wrap-mode");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Pango::WrapMode> Text::property_line_wrap_mode() const
{
  return Glib::PropertyProxy_ReadOnly<Pango::WrapMode>(this, "line-wrap-mode");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Text::property_line_wrap() 
{
  return Glib::PropertyProxy<bool>(this, "line-wrap");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_line_wrap() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "line-wrap");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> Text::property_max_length() 
{
  return Glib::PropertyProxy<int>(this, "max-length");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> Text::property_max_length() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "max-length");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<gunichar> Text::property_password_char() 
{
  return Glib::PropertyProxy<gunichar>(this, "password-char");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<gunichar> Text::property_password_char() const
{
  return Glib::PropertyProxy_ReadOnly<gunichar>(this, "password-char");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> Text::property_position() 
{
  return Glib::PropertyProxy<int>(this, "position");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> Text::property_position() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "position");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Text::property_selectable() 
{
  return Glib::PropertyProxy<bool>(this, "selectable");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_selectable() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "selectable");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> Text::property_selection_bound() 
{
  return Glib::PropertyProxy<int>(this, "selection-bound");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> Text::property_selection_bound() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "selection-bound");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Color> Text::property_selection_color() 
{
  return Glib::PropertyProxy<Color>(this, "selection-color");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Color> Text::property_selection_color() const
{
  return Glib::PropertyProxy_ReadOnly<Color>(this, "selection-color");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_selection_color_set() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "selection-color-set");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Text::property_single_line_mode() 
{
  return Glib::PropertyProxy<bool>(this, "single-line-mode");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_single_line_mode() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "single-line-mode");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Glib::ustring> Text::property_text() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "text");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Glib::ustring> Text::property_text() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "text");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Text::property_use_markup() 
{
  return Glib::PropertyProxy<bool>(this, "use-markup");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Text::property_use_markup() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "use-markup");
}
#endif //GLIBMM_PROPERTIES_ENABLED


void Clutter::Text::on_activate()
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->activate)
    (*base->activate)(gobj());
}
void Clutter::Text::on_text_changed()
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->text_changed)
    (*base->text_changed)(gobj());
}
void Clutter::Text::on_cursor_event(const Geometry& geometry)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->cursor_event)
    (*base->cursor_event)(gobj(),(geometry).gobj());
}


} // namespace Clutter


