summaryrefslogtreecommitdiff
path: root/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.field_info_get_field.page
blob: ad2e3e8faf2ed37a2b2cec7a9d7efb64e055b70a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>

<page id="GIRepository.field_info_get_field"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/experimental/ui/">
  <info>
    <link type="guide" xref="index" group="function"/>
    <api:function>
      <api:returns>
        <api:type>gboolean</api:type>
      </api:returns>
      <api:name>g_field_info_get_field</api:name>
      <api:arg>
        <api:type>GIRepository.FieldInfo</api:type>
        <api:name>field_info</api:name>
      </api:arg>
      <api:arg>
        <api:type>gpointer</api:type>
        <api:name>mem</api:name>
      </api:arg>
      <api:arg>
        <api:type>None</api:type>
        <api:name>value</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>field_info_get_field</title>
<synopsis><code mime="text/x-python">
@accepts(GIRepository.FieldInfo, gpointer, None)
@returns(gboolean)
def field_info_get_field(field_info, mem, value)
</code></synopsis>
<p>Reads a field identified by a <link xref="GFieldInfo">GFieldInfo</link> from a C structure or
union.  This only handles fields of simple C types. It will fail
for a field of a composite type like a nested structure or union
even if that is actually readable.</p>
</page>