Debian Codegraph @

doc/classes/RID.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="RID" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A handle for a [Resource]'s unique identifier.
5 </brief_description>
6 <description>
7 The RID [Variant] type is used to access a low-level resource by its unique ID. RIDs are opaque, which means they do not grant access to the resource by themselves. They are used by the low-level server classes, such as [DisplayServer], [RenderingServer], [TextServer], etc.
8 A low-level resource may correspond to a high-level [Resource], such as [Texture] or [Mesh].
9 [b]Note:[/b] RIDs are only useful during the current session. It won't correspond to a similar resource if sent over a network, or loaded from a file at a later time.
10 </description>
11 <tutorials>
12 </tutorials>
13 <constructors>
14 <constructor name="RID">
15 <return type="RID" />
16 <description>
17 Constructs an empty [RID] with the invalid ID [code]0[/code].
18 </description>
19 </constructor>
20 <constructor name="RID">
21 <return type="RID" />
22 <param index="0" name="from" type="RID" />
23 <description>
24 Constructs an [RID] as a copy of the given [RID].
25 </description>
26 </constructor>
27 </constructors>
28 <methods>
29 <method name="get_id" qualifiers="const">
30 <return type="int" />
31 <description>
32 Returns the ID of the referenced low-level resource.
33 </description>
34 </method>
35 <method name="is_valid" qualifiers="const">
36 <return type="bool" />
37 <description>
38 Returns [code]true[/code] if the [RID] is not [code]0[/code].
39 </description>
40 </method>
41 </methods>
42 <operators>
43 <operator name="operator !=">
44 <return type="bool" />
45 <param index="0" name="right" type="RID" />
46 <description>
47 Returns [code]true[/code] if the [RID]s are not equal.
48 </description>
49 </operator>
50 <operator name="operator &lt;">
51 <return type="bool" />
52 <param index="0" name="right" type="RID" />
53 <description>
54 Returns [code]true[/code] if the [RID]'s ID is less than [param right]'s ID.
55 </description>
56 </operator>
57 <operator name="operator &lt;=">
58 <return type="bool" />
59 <param index="0" name="right" type="RID" />
60 <description>
61 Returns [code]true[/code] if the [RID]'s ID is less than or equal to [param right]'s ID.
62 </description>
63 </operator>
64 <operator name="operator ==">
65 <return type="bool" />
66 <param index="0" name="right" type="RID" />
67 <description>
68 Returns [code]true[/code] if both [RID]s are equal, which means they both refer to the same low-level resource.
69 </description>
70 </operator>
71 <operator name="operator &gt;">
72 <return type="bool" />
73 <param index="0" name="right" type="RID" />
74 <description>
75 Returns [code]true[/code] if the [RID]'s ID is greater than [param right]'s ID.
76 </description>
77 </operator>
78 <operator name="operator &gt;=">
79 <return type="bool" />
80 <param index="0" name="right" type="RID" />
81 <description>
82 Returns [code]true[/code] if the [RID]'s ID is greater than or equal to [param right]'s ID.
83 </description>
84 </operator>
85 </operators>
86 </class>