zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Glib2基本api调用流程(十五)

流程API 调用 基本 十五
2023-09-14 09:16:09 时间
******************************************************************************
一、Glib2基本api
g_object_new();
g_object_set();
g_object_get();
g_object_connect();
******************************************************************************
1.g_object_new()流程
<2>.gpointer g_object_new (GType object_type, const gchar *first_property_name,...){
  GObject *object;
  object = g_object_new_valist (object_type, first_property_name, var_args);
}

<3>.GObject* g_object_new_valist (GTypeobject_type, const gchar *first_property_name, va_list var_args){
    g_object_new_internal (class, params, n_params);
}

2.g_object_get()流程                                                                        
<1>.void g_object_get (gpointer _object,const gchar *first_property_name, ...){
  g_object_get_valist (object, first_property_name, var_args);
}

<2>.void g_object_get_valist (GObject *object, const gchar *first_property_name, va_list var_args){