6 #include <gxwmm/controlparameter.h>
7 #include <gxwmm/private/controlparameter_p.h>
28 #include <gxw/GxControlParameter.h>
40 return Glib::RefPtr<Gxw::ControlParameter>( dynamic_cast<Gxw::ControlParameter*> (Glib::wrap_auto_interface<Gxw::ControlParameter> ((GObject*)(
object), take_copy)) );
59 class_init_func_ = &ControlParameter_Class::iface_init_function;
62 gtype_ = gx_control_parameter_get_type();
68 void ControlParameter_Class::iface_init_function(
void* g_iface,
void*)
70 BaseClassType *
const klass = static_cast<BaseClassType*>(g_iface);
80 Glib::ObjectBase* ControlParameter_Class::wrap_new(GObject*
object)
90 Glib::Interface(controlparameter_class_.
init())
95 Glib::Interface((GObject*)(castitem))
99 :
Glib::Interface(interface_class)
109 controlparameter_class_.init().add_interface(gtype_implementer);
116 return controlparameter_class_.init().get_type();
122 return gx_control_parameter_get_type();
128 gx_control_parameter_cp_configure(
gobj(), g_strdup((group).c_str()), g_strdup((name).c_str()), lower, upper, step);
133 gx_control_parameter_cp_set_value(
gobj(), value);
138 return gx_control_parameter_cp_get_value(
gobj());
143 return gx_control_parameter_cp_get_int_value(
gobj());
148 return Glib::convert_return_gchar_ptr_to_ustring(gx_control_parameter_cp_get_var(
gobj()));
153 gx_control_parameter_cp_set_var(
gobj(), g_strdup((p1).c_str()));
157 #ifdef GLIBMM_PROPERTIES_ENABLED
158 Glib::PropertyProxy< Glib::ustring > ControlParameter::property_var_id()
160 return Glib::PropertyProxy< Glib::ustring >(
this,
"var-id");
162 #endif //GLIBMM_PROPERTIES_ENABLED
164 #ifdef GLIBMM_PROPERTIES_ENABLED
165 Glib::PropertyProxy_ReadOnly< Glib::ustring > ControlParameter::property_var_id()
const
167 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(
this,
"var-id");
169 #endif //GLIBMM_PROPERTIES_ENABLED