{% extends "base.html" %} {% block title %}{{ namespace.name }}.{{ class.name }}.{{ method.name }}{% endblock %} {% block meta_other %} {% endblock %} {% block sidebar %}
Type
Methods
{% endblock %} {% block content %}

Method

{{ namespace.name }}{{ class.name }}{{ method.name }}

{%- if CONFIG.is_unstable(method.available_since) -%} unstable  {%- endif %} {%- if method.deprecated_since -%} deprecated: {{ method.deprecated_since.version }}  {%- endif -%} {%- if method.available_since -%} since: {{ method.available_since }} {%- endif -%}

Declaration {% if CONFIG.source_location_url and method.source_location %} [src] {% endif %}

{{ method.c_decl|safe }}

Description {% if CONFIG.source_location_url and method.docs_location %} [src] {% endif %}

{{ method.description|safe }}
{% if method.stability -%}

Stability: {{ method.stability }}

{%- endif %} {% if method.available_since -%}

Available since: {{ method.available_since }}

{%- endif %} {% if method.deprecated_since -%}
{%- if method.deprecated_since.message -%}

Deprecated since: {{ method.deprecated_since.version }}

{{ method.deprecated_since.message }} {%- else -%}

Deprecated since: {{ method.deprecated_since.version }}. Do not use in newly written code

{%- endif -%}
{%- endif %} {% if not method.introspectable -%}

This method is not directly available to language bindings.

{%- endif %} {% if method.shadows -%}

This method is renamed to {{method.shadows_symbol}}() in language bindings

{%- endif %} {% if method.shadowed_by -%}

The implementation of this method is provided by {{method.shadowed_by_symbol}}() in language bindings

{%- endif %}
{% if method.attributes %}
{% for (key, value) in method.attributes.items()|sort %} {% endfor %}
{{ key|escape }}{{ value|escape }}
{% endif %}
{% if method.arguments|length != 0 %}

Parameters

{% for arg in 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 %}{% endif %} {% if arg.direction in ["inout", "out"] and arg.nullable %}{% endif %} {% if arg.optional %}{% endif %} {% if arg.is_array and arg.zero_terminated %}{% endif %} {% if arg.is_array and arg.fixed_size > 0 %}{% endif %} {% if arg.is_array and arg.len_arg %}{% endif %} {% if arg.is_pointer %}{% endif %} {% if arg.string_note %}{% endif %}
{{ arg.direction_note }}
The argument can be NULL.
The argument can be set to NULL by the method.
The argument can be NULL.
The array must be NULL-terminated.
The array must have {{ arg.fixed_size }} elements.
The length of the array is specified in the {{ arg.len_arg }} argument.
{{ arg.transfer_note }}
{{ arg.string_note }}
{% endfor %} {% if method.throws %}
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will be left initialized to NULL by the method if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.
{% endif %}
{% endif %} {% if method.return_value %}

Return value

Type:  {%- if method.return_value.is_array -%}An array of {%- endif -%} {%- if method.return_value.is_list -%}A list of {%- endif -%} {%- if method.return_value.is_list_model -%}A list model of {%- endif -%} {%- if method.return_value.link -%} {{ method.return_value.link|safe }} {%- else -%} {{ method.return_value.type_cname }} {%- endif -%}

{{ method.return_value.description|safe }}

{% if method.return_value.is_array and method.return_value.zero_terminated %}{% endif %} {% if method.return_value.is_array and method.return_value.fixed_size > 0 %}{% endif %} {% if method.return_value.is_array and method.return_value.len_arg %}{% endif %} {% if method.return_value.is_pointer %}{% endif %} {% if method.return_value.is_pointer and method.return_value.nullable %}{% endif %} {% if method.return_value.string_note %}{% endif %}
The array is NULL-terminated.
The array has {{ method.return_value.fixed_size }} elements.
The length of the array is in the {{ method.return_value.len_arg }} argument.
{{ method.return_value.transfer_note }}
The return value can be NULL.
{{ method.return_value.string_note }}
{% endif %}
{% endblock %}