Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
_GtkBuilderScopeInterface Struct Reference

#include <gtkbuilderscope.h>

Data Fields

GTypeInterface g_iface
 
GType(* get_type_from_name )(GtkBuilderScope *self, GtkBuilder *builder, const char *type_name)
 
GType(* get_type_from_function )(GtkBuilderScope *self, GtkBuilder *builder, const char *function_name)
 
GClosure *(* create_closure )(GtkBuilderScope *self, GtkBuilder *builder, const char *function_name, GtkBuilderClosureFlags flags, GObject *object, GError **error)
 

Detailed Description

GtkBuilderScopeInterface: @get_type_from_name: Try to lookup a GType via the its name. See gtk_builder_get_type_from_name() for more details. The C implementation will use g_type_from_name() and if that fails try to guess the correct function name for registering the type and then use dlsym() to load it. The default implementation just tries g_type_from_name() and otherwise fails. @get_type_from_function: Try to lookup a GType via the given function name, specified explicitly in a GtkBuilder file, like via the "type-func" attribute in the <object> tag. This function is very rarely used. The C implementation will use dlsym() and call the resulting function as a GTypeFunc. The default implementation will fail and just return G_TYPE_INVALID. @create_closure: Create a closure with the given arguments. See gtk_builder_create_closure() for more details on those. The C implementation will try to use dlsym() to locate the function name and then g_cclosure_new() to create a closure for the symbol. The default implementation just fails and returns NULL.

The virtual function table to implement for GtkBuilderScope implementations. Default implementations for each function do exist, but they usually just fail, so it is suggested that implementations implement all of them.

Definition at line 73 of file gtkbuilderscope.h.

Field Documentation

◆ create_closure

GClosure *(* _GtkBuilderScopeInterface::create_closure) (GtkBuilderScope *self, GtkBuilder *builder, const char *function_name, GtkBuilderClosureFlags flags, GObject *object, GError **error)

Definition at line 86 of file gtkbuilderscope.h.

◆ g_iface

GTypeInterface _GtkBuilderScopeInterface::g_iface

Definition at line 76 of file gtkbuilderscope.h.

◆ get_type_from_function

GType(* _GtkBuilderScopeInterface::get_type_from_function) (GtkBuilderScope *self, GtkBuilder *builder, const char *function_name)

Definition at line 82 of file gtkbuilderscope.h.

◆ get_type_from_name

GType(* _GtkBuilderScopeInterface::get_type_from_name) (GtkBuilderScope *self, GtkBuilder *builder, const char *type_name)

Definition at line 79 of file gtkbuilderscope.h.


The documentation for this struct was generated from the following file: