• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ G_TYPE_CHECK_VALUE_TYPE函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中G_TYPE_CHECK_VALUE_TYPE函数的典型用法代码示例。如果您正苦于以下问题:C++ G_TYPE_CHECK_VALUE_TYPE函数的具体用法?C++ G_TYPE_CHECK_VALUE_TYPE怎么用?C++ G_TYPE_CHECK_VALUE_TYPE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了G_TYPE_CHECK_VALUE_TYPE函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: ease_main_value_take_editor_window_info

static void ease_main_value_take_editor_window_info (GValue* value, gpointer v_object) {
	EaseMainEditorWindowInfo* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EASE_MAIN_TYPE_EDITOR_WINDOW_INFO));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EASE_MAIN_TYPE_EDITOR_WINDOW_INFO));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		ease_main_editor_window_info_unref (old);
	}
}
开发者ID:rmujica,项目名称:Nitido,代码行数:15,代码来源:ease-main.c


示例2: value_take_hello_world

void value_take_hello_world (GValue* value, gpointer v_object) {
	HelloWorld* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HELLO_WORLD));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HELLO_WORLD));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		hello_world_unref (old);
	}
}
开发者ID:darkoverlordofdata,项目名称:sdl2-vala-valama,代码行数:15,代码来源:test.c


示例3: vala_value_take_target_value

void vala_value_take_target_value (GValue* value, gpointer v_object) {
	ValaTargetValue* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VALA_TYPE_TARGET_VALUE));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VALA_TYPE_TARGET_VALUE));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		vala_target_value_unref (old);
	}
}
开发者ID:tangentstorm,项目名称:saiwa,代码行数:15,代码来源:valatargetvalue.c


示例4: value_take_request_handler

void value_take_request_handler (GValue* value, gpointer v_object) {
	RequestHandler* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_REQUEST_HANDLER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_REQUEST_HANDLER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		request_handler_unref (old);
	}
}
开发者ID:BackupTheBerlios,项目名称:wiki4freetz-svn,代码行数:15,代码来源:wikihandler.c


示例5: graph_media_modelos_value_take_sentimiento

void graph_media_modelos_value_take_sentimiento (GValue* value, gpointer v_object) {
	GraphMediaModelosSentimiento* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAPH_MEDIA_MODELOS_TYPE_SENTIMIENTO));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAPH_MEDIA_MODELOS_TYPE_SENTIMIENTO));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		graph_media_modelos_sentimiento_unref (old);
	}
}
开发者ID:ndrd,项目名称:graphmedia,代码行数:15,代码来源:sentimientos.c


示例6: value_take_graphic

void value_take_graphic (GValue* value, gpointer v_object) {
	Graphic* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GRAPHIC));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GRAPHIC));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		graphic_unref (old);
	}
}
开发者ID:MerelyAPseudonym,项目名称:SmartSim,代码行数:15,代码来源:graphic.c


示例7: value_take_ug_settings

void value_take_ug_settings (GValue* value, gpointer v_object) {
	UGSettings* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UG_SETTINGS));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UG_SETTINGS));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		ug_settings_unref (old);
	}
}
开发者ID:fatman2021,项目名称:unity-greeter,代码行数:15,代码来源:settings.c


示例8: gnomenu_value_take_mnemonic_keys

void gnomenu_value_take_mnemonic_keys (GValue* value, gpointer v_object) {
	GnomenuMnemonicKeys* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GNOMENU_TYPE_MNEMONIC_KEYS));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GNOMENU_TYPE_MNEMONIC_KEYS));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		gnomenu_mnemonic_keys_unref (old);
	}
}
开发者ID:cheng-jk,项目名称:mate-globalmenu,代码行数:15,代码来源:mnemonickeys.c


示例9: vala_value_take_iterator

void vala_value_take_iterator (GValue* value, gpointer v_object) {
	ValaIterator* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VALA_TYPE_ITERATOR));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VALA_TYPE_ITERATOR));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		vala_iterator_unref (old);
	}
}
开发者ID:tangentstorm,项目名称:saiwa,代码行数:15,代码来源:iterator.c


示例10: value_take_qtable_entry

void value_take_qtable_entry (GValue* value, gpointer v_object) {
	QtableEntry* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QTABLE_ENTRY));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QTABLE_ENTRY));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		qtable_entry_unref (old);
	}
}
开发者ID:emillon,项目名称:gmpc,代码行数:15,代码来源:gmpc-widgets-qtable.c


示例11: value_take_property_item

void value_take_property_item (GValue* value, gpointer v_object) {
	PropertyItem* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PROPERTY_ITEM));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PROPERTY_ITEM));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		property_item_unref (old);
	}
}
开发者ID:genba,项目名称:SmartSim,代码行数:15,代码来源:propertyitem.c


示例12: value_take_zenmoney

void value_take_zenmoney (GValue* value, gpointer v_object) {
	Zenmoney* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ZENMONEY));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ZENMONEY));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		zenmoney_unref (old);
	}
}
开发者ID:bigbn,项目名称:gzen-money,代码行数:15,代码来源:zenmoney.c


示例13: daemon_helpers_value_take_date_time_converter

void daemon_helpers_value_take_date_time_converter (GValue* value, gpointer v_object) {
	DaemonHelpersDateTimeConverter* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DAEMON_HELPERS_TYPE_DATE_TIME_CONVERTER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DAEMON_HELPERS_TYPE_DATE_TIME_CONVERTER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		daemon_helpers_date_time_converter_unref (old);
	}
}
开发者ID:SBFh,项目名称:SemesterLeistung,代码行数:15,代码来源:DateTimeConverter.c


示例14: vala_value_take_source_reference

void vala_value_take_source_reference (GValue* value, gpointer v_object) {
	ValaSourceReference* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VALA_TYPE_SOURCE_REFERENCE));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VALA_TYPE_SOURCE_REFERENCE));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		vala_source_reference_unref (old);
	}
}
开发者ID:tangentstorm,项目名称:saiwa,代码行数:15,代码来源:valasourcereference.c


示例15: value_take_image_exporter

void value_take_image_exporter (GValue* value, gpointer v_object) {
	ImageExporter* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMAGE_EXPORTER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMAGE_EXPORTER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		image_exporter_unref (old);
	}
}
开发者ID:MerelyAPseudonym,项目名称:SmartSim,代码行数:15,代码来源:imageexporter.c


示例16: value_take_gconf_interface

void value_take_gconf_interface (GValue* value, gpointer v_object) {
	GConfInterface* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GCONF_INTERFACE));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GCONF_INTERFACE));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		gconf_interface_unref (old);
	}
}
开发者ID:freijon,项目名称:update-indicator,代码行数:15,代码来源:GConfInterface.c


示例17: value_take_serializer

void value_take_serializer (GValue* value, gpointer v_object) {
    Serializer* old;
    g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SERIALIZER));
    old = value->data[0].v_pointer;
    if (v_object) {
        g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SERIALIZER));
        g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
        value->data[0].v_pointer = v_object;
    } else {
        value->data[0].v_pointer = NULL;
    }
    if (old) {
        serializer_unref (old);
    }
}
开发者ID:thassan,项目名称:mate-globalmenu,代码行数:15,代码来源:serializer.c


示例18: value_take_dpap_copy

void value_take_dpap_copy (GValue* value, gpointer v_object) {
	DPAPCopy* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DPAP_COPY));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DPAP_COPY));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		dpap_copy_unref (old);
	}
}
开发者ID:GNOME,项目名称:libdmapsharing,代码行数:15,代码来源:dmapcopy.c


示例19: matenu_value_take_background

void matenu_value_take_background (GValue* value, gpointer v_object) {
	MatenuBackground* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, MATENU_TYPE_BACKGROUND));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, MATENU_TYPE_BACKGROUND));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		matenu_background_unref (old);
	}
}
开发者ID:Extraterrestrial,项目名称:mate-globalmenu,代码行数:15,代码来源:menubar.c


示例20: bullet_value_set_vector_3

void bullet_value_set_vector_3 (GValue* value, gpointer v_object) {
	BulletVector_3* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BULLET_TYPE_VECTOR_3));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BULLET_TYPE_VECTOR_3));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
		bullet_vector_3_ref (value->data[0].v_pointer);
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		bullet_vector_3_unref (old);
	}
}
开发者ID:cessationoftime,项目名称:BulletVapi,代码行数:16,代码来源:bullet-custom.c



注:本文中的G_TYPE_CHECK_VALUE_TYPE函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ G_TYPE_FROM_INSTANCE函数代码示例发布时间:2022-05-30
下一篇:
C++ G_TYPE_CHECK_INSTANCE_TYPE函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap