當前位置: 首頁>>代碼示例>>C++>>正文


C++ G_PARAM_SPEC函數代碼示例

本文整理匯總了C++中G_PARAM_SPEC函數的典型用法代碼示例。如果您正苦於以下問題:C++ G_PARAM_SPEC函數的具體用法?C++ G_PARAM_SPEC怎麽用?C++ G_PARAM_SPEC使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了G_PARAM_SPEC函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: gnomenu_param_spec_mnemonic_keys

GParamSpec* gnomenu_param_spec_mnemonic_keys (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	GnomenuParamSpecMnemonicKeys* spec;
	g_return_val_if_fail (g_type_is_a (object_type, GNOMENU_TYPE_MNEMONIC_KEYS), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:cheng-jk,項目名稱:mate-globalmenu,代碼行數:7,代碼來源:mnemonickeys.c

示例2: g_param_spec_flags

GParamSpec*
g_param_spec_flags (const gchar *name,
		    const gchar *nick,
		    const gchar *blurb,
		    GType	 flags_type,
		    guint	 default_value,
		    GParamFlags	 flags)
{
  GParamSpecFlags *fspec;
  GFlagsClass *flags_class;
  
  g_return_val_if_fail (G_TYPE_IS_FLAGS (flags_type), NULL);

  flags_class = g_type_class_ref (flags_type);

  g_return_val_if_fail ((default_value & flags_class->mask) == default_value, NULL);
  
  fspec = g_param_spec_internal (G_TYPE_PARAM_FLAGS,
				 name,
				 nick,
				 blurb,
				 flags);
  
  fspec->flags_class = flags_class;
  fspec->default_value = default_value;
  G_PARAM_SPEC (fspec)->value_type = flags_type;
  
  return G_PARAM_SPEC (fspec);
}
開發者ID:crutchwalkfactory,項目名稱:motocakerteam,代碼行數:29,代碼來源:gparamspecs.c

示例3: radare_param_spec_debugger

GParamSpec* radare_param_spec_debugger (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	RadareParamSpecDebugger* spec;
	g_return_val_if_fail (g_type_is_a (object_type, RADARE_TYPE_DEBUGGER), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:111X,項目名稱:radare,代碼行數:7,代碼來源:debugger.c

示例4: g_param_spec_enum

GParamSpec*
g_param_spec_enum (const gchar *name,
		   const gchar *nick,
		   const gchar *blurb,
		   GType	enum_type,
		   gint		default_value,
		   GParamFlags	flags)
{
  GParamSpecEnum *espec;
  GEnumClass *enum_class;
  
  g_return_val_if_fail (G_TYPE_IS_ENUM (enum_type), NULL);

  enum_class = g_type_class_ref (enum_type);

  g_return_val_if_fail (g_enum_get_value (enum_class, default_value) != NULL, NULL);
  
  espec = g_param_spec_internal (G_TYPE_PARAM_ENUM,
				 name,
				 nick,
				 blurb,
				 flags);
  
  espec->enum_class = enum_class;
  espec->default_value = default_value;
  G_PARAM_SPEC (espec)->value_type = enum_type;
  
  return G_PARAM_SPEC (espec);
}
開發者ID:crutchwalkfactory,項目名稱:motocakerteam,代碼行數:29,代碼來源:gparamspecs.c

示例5: param_spec_qtable_entry

GParamSpec* param_spec_qtable_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecQtableEntry* spec;
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_QTABLE_ENTRY), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:emillon,項目名稱:gmpc,代碼行數:7,代碼來源:gmpc-widgets-qtable.c

示例6: grava_param_spec_renderer

GParamSpec* grava_param_spec_renderer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	GravaParamSpecRenderer* spec;
	g_return_val_if_fail (g_type_is_a (object_type, GRAVA_TYPE_RENDERER), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:111X,項目名稱:radare,代碼行數:7,代碼來源:renderer.c

示例7: param_spec_ug_settings

GParamSpec* param_spec_ug_settings (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecUGSettings* spec;
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_UG_SETTINGS), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:fatman2021,項目名稱:unity-greeter,代碼行數:7,代碼來源:settings.c

示例8: param_spec_dvb_plugin_factory

GParamSpec* param_spec_dvb_plugin_factory (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecDVBPluginFactory* spec;
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_DVB_PLUGIN_FACTORY), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:zeenix,項目名稱:Rygel-Debian,代碼行數:7,代碼來源:rygel-dvb-plugin-factory.c

示例9: param_spec_hello_world

GParamSpec* param_spec_hello_world (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecHelloWorld* spec;
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_HELLO_WORLD), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:darkoverlordofdata,項目名稱:sdl2-vala-valama,代碼行數:7,代碼來源:test.c

示例10: bullet_param_spec_vector_3

GParamSpec* bullet_param_spec_vector_3 (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	BulletParamSpecVector_3* spec;
	g_return_val_if_fail (g_type_is_a (object_type, BULLET_TYPE_VECTOR_3), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:cessationoftime,項目名稱:BulletVapi,代碼行數:7,代碼來源:bullet-custom.c

示例11: param_spec_property_item

GParamSpec* param_spec_property_item (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecPropertyItem* spec;
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_PROPERTY_ITEM), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:genba,項目名稱:SmartSim,代碼行數:7,代碼來源:propertyitem.c

示例12: param_spec_image_exporter

GParamSpec* param_spec_image_exporter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecImageExporter* spec;
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_IMAGE_EXPORTER), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:MerelyAPseudonym,項目名稱:SmartSim,代碼行數:7,代碼來源:imageexporter.c

示例13: param_spec_graphic

GParamSpec* param_spec_graphic (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecGraphic* spec;
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_GRAPHIC), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:MerelyAPseudonym,項目名稱:SmartSim,代碼行數:7,代碼來源:graphic.c

示例14: param_spec_gconf_interface

GParamSpec* param_spec_gconf_interface (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecGConfInterface* spec;
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_GCONF_INTERFACE), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:freijon,項目名稱:update-indicator,代碼行數:7,代碼來源:GConfInterface.c

示例15: vala_param_spec_source_reference

GParamSpec* vala_param_spec_source_reference (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ValaParamSpecSourceReference* spec;
	g_return_val_if_fail (g_type_is_a (object_type, VALA_TYPE_SOURCE_REFERENCE), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}
開發者ID:tangentstorm,項目名稱:saiwa,代碼行數:7,代碼來源:valasourcereference.c


注:本文中的G_PARAM_SPEC函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。