PropertyItemDouble* property_item_double_construct_copy (GType object_type, PropertyItemDouble* source) {
	PropertyItemDouble* self = NULL;
	PropertyItemDouble* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	PropertyItemDouble* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	PropertyItemDouble* _tmp4_ = NULL;
	gdouble _tmp5_ = 0.0;
	PropertyItemDouble* _tmp6_ = NULL;
	gdouble _tmp7_ = 0.0;
	PropertyItemDouble* _tmp8_ = NULL;
	gdouble _tmp9_ = 0.0;
	g_return_val_if_fail (source != NULL, NULL);
	_tmp0_ = source;
	_tmp1_ = ((PropertyItem*) _tmp0_)->name;
	_tmp2_ = source;
	_tmp3_ = ((PropertyItem*) _tmp2_)->description;
	self = (PropertyItemDouble*) property_item_construct (object_type, _tmp1_, _tmp3_);
	_tmp4_ = source;
	_tmp5_ = _tmp4_->data;
	self->data = _tmp5_;
	_tmp6_ = source;
	_tmp7_ = _tmp6_->priv->min;
	self->priv->min = _tmp7_;
	_tmp8_ = source;
	_tmp9_ = _tmp8_->priv->max;
	self->priv->max = _tmp9_;
	return self;
}
示例#2
0
PropertyItemDouble* property_item_double_construct (GType object_type, const gchar* name, const gchar* description, gdouble data) {
	PropertyItemDouble* self = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gdouble _tmp2_;
	g_return_val_if_fail (name != NULL, NULL);
	g_return_val_if_fail (description != NULL, NULL);
	_tmp0_ = name;
	_tmp1_ = description;
	self = (PropertyItemDouble*) property_item_construct (object_type, _tmp0_, _tmp1_);
	_tmp2_ = data;
	self->data = _tmp2_;
	return self;
}
示例#3
0
PropertyItemString* property_item_string_construct (GType object_type, const gchar* name, const gchar* description, const gchar* data) {
	PropertyItemString* self = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	g_return_val_if_fail (name != NULL, NULL);
	g_return_val_if_fail (description != NULL, NULL);
	g_return_val_if_fail (data != NULL, NULL);
	_tmp0_ = name;
	_tmp1_ = description;
	self = (PropertyItemString*) property_item_construct (object_type, _tmp0_, _tmp1_);
	_tmp2_ = data;
	_tmp3_ = g_strdup (_tmp2_);
	_g_free0 (self->data);
	self->data = _tmp3_;
	return self;
}
PropertyItemDouble* property_item_double_construct (GType object_type, const gchar* name, const gchar* description, gdouble data, gdouble min, gdouble max) {
	PropertyItemDouble* self = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gdouble _tmp2_ = 0.0;
	gdouble _tmp3_ = 0.0;
	gdouble _tmp4_ = 0.0;
	g_return_val_if_fail (name != NULL, NULL);
	g_return_val_if_fail (description != NULL, NULL);
	_tmp0_ = name;
	_tmp1_ = description;
	self = (PropertyItemDouble*) property_item_construct (object_type, _tmp0_, _tmp1_);
	_tmp2_ = data;
	self->data = _tmp2_;
	_tmp3_ = min;
	self->priv->min = _tmp3_;
	_tmp4_ = max;
	self->priv->max = _tmp4_;
	return self;
}
示例#5
0
PropertyItemString* property_item_string_construct_copy (GType object_type, PropertyItemString* source) {
	PropertyItemString* self = NULL;
	PropertyItemString* _tmp0_;
	const gchar* _tmp1_;
	PropertyItemString* _tmp2_;
	const gchar* _tmp3_;
	PropertyItemString* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	g_return_val_if_fail (source != NULL, NULL);
	_tmp0_ = source;
	_tmp1_ = ((PropertyItem*) _tmp0_)->name;
	_tmp2_ = source;
	_tmp3_ = ((PropertyItem*) _tmp2_)->description;
	self = (PropertyItemString*) property_item_construct (object_type, _tmp1_, _tmp3_);
	_tmp4_ = source;
	_tmp5_ = _tmp4_->data;
	_tmp6_ = g_strdup (_tmp5_);
	_g_free0 (self->data);
	self->data = _tmp6_;
	return self;
}