Vala.TypeRegisterFunction – codegen Reference Manual
Packages
codegen
Vala
TypeRegisterFunction
type_symbol
TypeRegisterFunction
get_base_finalize_func_name
get_base_init_func_name
get_class_finalize_func_name
get_class_init_func_name
get_declaration
get_definition
get_gtype_value_table_collect_value_function_name
get_gtype_value_table_copy_function_name
get_gtype_value_table_free_function_name
get_gtype_value_table_init_function_name
get_gtype_value_table_lcopy_value_function_name
get_gtype_value_table_peek_pointer_function_name
get_instance_init_func_name
get_instance_struct_size
get_parent_type_name
get_source_declaration
get_type_flags
get_type_interface_init_declaration
get_type_interface_init_statements
get_type_struct_name
init_from_type
_type_symbol
declaration_fragment
definition_fragment
source_declaration_fragment
TypeRegisterFunction
Object Hierarchy:
Vala.TypeRegisterFunction
Vala.TypeRegisterFunction
Vala.TypeRegisterFunction
Description:
public
abstract
class
TypeRegisterFunction
C function to register a type at runtime.
All known sub-classes:
ClassRegisterFunction
EnumRegisterFunction
ErrorDomainRegisterFunction
InterfaceRegisterFunction
StructRegisterFunction
Namespace:
Vala
Package:
codegen
Content:
Properties:
public
unowned
TypeSymbol
type_symbol
{
get
;
private
set
; }
Specifies the enum to be registered.
Creation methods:
protected
TypeRegisterFunction
(
TypeSymbol
sym)
Methods:
public
virtual
string
get_base_finalize_func_name
()
Returns the name of the base_finalize function in C code.
public
virtual
string
get_base_init_func_name
()
Returns the name of the base_init function in C code.
public
virtual
string
get_class_finalize_func_name
()
Returns the name of the class_finalize function in C code.
public
virtual
string
get_class_init_func_name
()
Returns the name of the class_init function in C code.
public
CCodeFragment
get_declaration
()
Returns the declaration for this type register function in C code.
public
CCodeFragment
get_definition
()
Returns the definition for this type register function in C code.
public
virtual
string
?
get_gtype_value_table_collect_value_function_name
()
Returns the C-name of the new generated GTypeValueTable collect value function or null when not available.
public
virtual
string
?
get_gtype_value_table_copy_function_name
()
Returns the C-name of the new generated GTypeValueTable copy function or null when not available.
public
virtual
string
?
get_gtype_value_table_free_function_name
()
Returns the C-name of the new generated GTypeValueTable free function or null when not available.
public
virtual
string
?
get_gtype_value_table_init_function_name
()
Returns the C-name of the new generated GTypeValueTable init function or null when not available.
public
virtual
string
?
get_gtype_value_table_lcopy_value_function_name
()
Returns the C-name of the new generated GTypeValueTable lcopy function or null when not available.
public
virtual
string
?
get_gtype_value_table_peek_pointer_function_name
()
Returns the C-name of the new generated GTypeValueTable peek pointer function or null when not available.
public
virtual
string
get_instance_init_func_name
()
Returns the name of the instance_init function in C code.
public
virtual
string
get_instance_struct_size
()
Returns the size of the instance struct in C code.
public
virtual
string
get_parent_type_name
()
Returns the name of the parent type in C code.
public
CCodeFragment
get_source_declaration
()
public
virtual
string
get_type_flags
()
Returns the set of type flags to be applied when registering.
public
virtual
CCodeFragment
get_type_interface_init_declaration
()
Returns additional C declarations to setup interfaces.
public
virtual
void
get_type_interface_init_statements
(
CodeContext
context,
CCodeBlock
block,
bool
plugin)
Returns additional C initialization statements to setup interfaces.
public
virtual
string
get_type_struct_name
()
Returns the name of the type struct in C code.
public
void
init_from_type
(
CodeContext
context,
bool
plugin,
bool
declaration_only)
Constructs the C function from the specified type.
Fields:
private
unowned
TypeSymbol
_type_symbol
private
CCodeFragment
declaration_fragment
private
CCodeFragment
definition_fragment
private
CCodeFragment
source_declaration_fragment