<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GObject_introspection__VFunc_info (gobject-introspection.GObject_introspection__VFunc_info)</title><link rel="stylesheet" href="../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc %%VERSION%%"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">gobject-introspection</a> &#x00BB; GObject_introspection__VFunc_info</nav><h1>Module <code>GObject_introspection__VFunc_info</code></h1><p>VFunc_info — Struct representing a virtual function.</p></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code></dt><dd><p>GIVfuncInfo represents a virtual function. A property belongs to either a Object_info or a Interface_info.</p></dd></dl><dl><dt class="spec value" id="val-vfuncinfo"><a href="#val-vfuncinfo" class="anchor"></a><code><span class="keyword">val</span> vfuncinfo : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.typ</span></code></dt><dt class="spec value" id="val-get_offset"><a href="#val-get_offset" class="anchor"></a><code><span class="keyword">val</span> get_offset : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> int</code></dt><dd><p>Obtain the offset of the function pointer in the class struct. The value 0xFFFF indicates that the struct offset is unknown.</p></dd></dl><dl><dt class="spec value" id="val-get_signal"><a href="#val-get_signal" class="anchor"></a><code><span class="keyword">val</span> get_signal : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><span><a href="../GObject_introspection/Callable_info/index.html#type-t">GObject_introspection.Callable_info.t</a> Ctypes.structure</span> Ctypes.ptr</span> option</span></code></dt><dd><p>Obtain the signal for the virtual function if one is set. The signal comes from the object or interface to which this virtual function belongs. In order to avoid circular call graph between VFunc_info and Signal_info, this function will return a Callable_info. It is upto the user to use Signal_info.from_callableinfo in order to have the Signal_info.</p></dd></dl><dl><dt class="spec value" id="val-get_flags"><a href="#val-get_flags" class="anchor"></a><code><span class="keyword">val</span> get_flags : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><a href="../Bindings/VFunc_info/index.html#type-flags">Bindings.VFunc_info.flags</a> list</span></code></dt><dd><p>Obtain the flags for this virtual function info. See VFunc_infoFlags for more information about possible flag values.</p></dd></dl><dl><dt class="spec value" id="val-cast_from_baseinfo"><a href="#val-cast_from_baseinfo" class="anchor"></a><code><span class="keyword">val</span> cast_from_baseinfo : <span><span><a href="../GObject_introspection/Base_info/index.html#type-t">GObject_introspection.Base_info.t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Just cast OCaml Ctypes base info to vfunc info.</p></dd></dl><dl><dt class="spec value" id="val-cast_to_baseinfo"><a href="#val-cast_to_baseinfo" class="anchor"></a><code><span class="keyword">val</span> cast_to_baseinfo : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="../GObject_introspection/Base_info/index.html#type-t">GObject_introspection.Base_info.t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Just cast OCaml Ctypes vfunc info to base info</p></dd></dl><dl><dt class="spec value" id="val-add_unref_finaliser"><a href="#val-add_unref_finaliser" class="anchor"></a><code><span class="keyword">val</span> add_unref_finaliser : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Add unref of the C underlying structure whith Gc.finalise.</p></dd></dl><dl><dt class="spec value" id="val-from_baseinfo"><a href="#val-from_baseinfo" class="anchor"></a><code><span class="keyword">val</span> from_baseinfo : <span><span><a href="../GObject_introspection/Base_info/index.html#type-t">GObject_introspection.Base_info.t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Return a VFunc_info.t from a Base_info.t, the underlying C structure ref count is increased and the value is Gc.finalis&quot;ed&quot; with Base_info.baseinfo_unref.</p></dd></dl><dl><dt class="spec value" id="val-to_baseinfo"><a href="#val-to_baseinfo" class="anchor"></a><code><span class="keyword">val</span> to_baseinfo : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="../GObject_introspection/Base_info/index.html#type-t">GObject_introspection.Base_info.t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Return a Base_info.t from a VFunc_info, the underlying C structure ref count is increased and the value is Gc.finalis&quot;ed&quot; with Base_info.baseinfo_unref.</p></dd></dl><dl><dt class="spec value" id="val-cast_from_callableinfo"><a href="#val-cast_from_callableinfo" class="anchor"></a><code><span class="keyword">val</span> cast_from_callableinfo : <span><span><a href="../GObject_introspection/Callable_info/index.html#type-t">GObject_introspection.Callable_info.t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Just cast OCaml Ctypes callable info to vfunc info.</p></dd></dl><dl><dt class="spec value" id="val-cast_to_callableinfo"><a href="#val-cast_to_callableinfo" class="anchor"></a><code><span class="keyword">val</span> cast_to_callableinfo : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="../GObject_introspection/Callable_info/index.html#type-t">GObject_introspection.Callable_info.t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Just cast OCaml Ctypes vfunc info to callable info</p></dd></dl><dl><dt class="spec value" id="val-from_callableinfo"><a href="#val-from_callableinfo" class="anchor"></a><code><span class="keyword">val</span> from_callableinfo : <span><span><a href="../GObject_introspection/Callable_info/index.html#type-t">GObject_introspection.Callable_info.t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Return a VFunc_info.t from a Callable_info.t, the underlying C structure ref count is increased and the value is Gc.finalis&quot;ed&quot; with Base_info.baseinfo_unref.</p></dd></dl><dl><dt class="spec value" id="val-to_callableinfo"><a href="#val-to_callableinfo" class="anchor"></a><code><span class="keyword">val</span> to_callableinfo : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="../GObject_introspection/Callable_info/index.html#type-t">GObject_introspection.Callable_info.t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Return a Callable_info.t from a VFunc_info, the underlying C structure ref count is increased and the value is Gc.finalis&quot;ed&quot; with Base_info.baseinfo_unref.</p></dd></dl></div></body></html>