Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/object.gir
blob: e0abed3909e9e4f7285550d91833547f593d7f19 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0"?>
<repository version="1.0"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="GObject" version="2.0"/>
  <namespace name="object" version="1.0">
    <interface name="IFace1" glib:type-name="IFace1" glib:get-type="iface1_get_type"/>
    <class name="Object1" parent="Object2" glib:type-name="Object1" glib:get-type="object1_get_type">
      <implements name="IFace1"/>
      <property name="prop1" readable="0">
        <type name="int"/>
      </property>
      <glib:signal name="signal1" when="LAST">
        <return-value transfer-ownership="none">
          <type name="boolean"/>
        </return-value>
        <parameters>
          <parameter name="obj" transfer-ownership="none">
            <type name="Object1"/>
          </parameter>
        </parameters>
      </glib:signal>
      <glib:signal name="signal2" when="FIRST" no-recurse="1" detailed="1" action="1" no-hooks="1">
        <return-value transfer-ownership="none">
          <type name="none"/>
        </return-value>
        <parameters>
          <parameter name="obj" transfer-ownership="none">
            <type name="Object1"/>
          </parameter>
        </parameters>
      </glib:signal>
      <vfunc name="vfunc1" offset="20">
        <return-value transfer-ownership="none">
          <type name="Object2"/>
        </return-value>
        <parameters>
          <parameter name="param1" transfer-ownership="none">
            <type name="Object1"/>
          </parameter>
        </parameters>
      </vfunc>
      <vfunc name="vfunc2" offset="24">
        <return-value transfer-ownership="none">
          <type name="Object2"/>
        </return-value>
        <parameters>
          <parameter name="param1" transfer-ownership="none">
            <type name="Object1"/>
          </parameter>
        </parameters>
      </vfunc>
    </class>
    <constant name="constant1" value="42">
      <type name="int"/>
    </constant>
    <interface name="Iface1" glib:type-name="Iface1" glib:get-type="iface1_get_type"/>
    <class name="Object2" glib:type-name="Object2" glib:get-type="object2_get_type"/>
  </namespace>
</repository>