Class method
{{ namespace.name }}{{ class.class_name }}{{ class_method.name }}
Declaration {% if CONFIG.source_location_url and class_method.source_location %} [src] {% endif %}
{{ class_method.c_decl }}
Description {% if CONFIG.source_location_url and class_method.docs_location %} [src] {% endif %}
Stability: | {{ class_method.stability }} |
Available since: | {{ class_method.available_since }} |
Deprecated since: | {{ class_method.deprecated_since.version }} |
{{ class_method.deprecated_since.message }} | |
This class method is not directly available to language bindings |
{{ key|escape }} | {{ value|escape }} |
Parameters
-
{% for arg in class_method.arguments %}
{{ arg.name }}
-
Type: {%- if arg.is_array -%}An array of {%- endif -%} {%- if arg.is_list -%}A list of {%- endif -%} {%- if arg.link -%} {{ arg.link|safe }} {%- else -%}
{{ arg.type_cname }}
{%- endif -%}{{ arg.description|safe }}
{% if arg.direction != "in" %}
{% endif %} {% if arg.direction == "in" and arg.nullable %}{{ arg.direction_note }} {% endif %} {% if arg.direction in ["inout", "out"] and arg.nullable %}The argument can be NULL
. {% endif %} {% if arg.optional %}The argument can be set to NULL
by the class method {% endif %} {% if arg.is_array and arg.zero_terminated %}The argument can be NULL
. {% endif %} {% if arg.is_array and arg.fixed_size > 0 %}The array must be NULL
-terminated. {% endif %} {% if arg.is_array and arg.len_arg %}The array must have {{ arg.fixed_size }} elements. {% endif %} {% if arg.is_pointer %}The length of the array is specified in the {{ arg.len_arg }}
argument. {% endif %} {% if arg.string_note %}{{ arg.transfer_note }} {% endif %}{{ arg.string_note }}
{% endfor %}
{% if class_method.throws %}
error
-
Type:
GError **
The return location for an error.
The argument can be NULL
.The argument will be set to NULL
by the function if there are no errors.In case of error, the argument will be set and the caller will take ownership of the data, and be responsible for freeing it.
{% endif %}
Return value
Type:&nsbp;
{%- if class_method.return_value.is_array -%}An array of {%- endif -%}
{%- if class_method.return_value.is_list -%}A list of {%- endif -%}
{%- if class_method.return_value.is_list_model -%}A list model of {%- endif -%}
{%- if class_method.return_value.link -%}
{{ class_method.return_value.link|safe }}
{%- else -%}
{{ class_method.return_value.type_cname }}
{%- endif -%}
{{ class_method.return_value.description|safe }}
The array is NULL -terminated. |
The array has {{ class_method.return_value.fixed_size }} elements. |
The length of the array is in the {{ class_method.return_value.len_arg }} argument. |
{{ class_method.return_value.transfer_note }} |
The return value can be NULL . |
{{ class_method.return_value.string_note }} |