package gobject-introspection

  1. Overview
  2. Docs

VFunc_info — Struct representing a virtual function.

type t

GIVfuncInfo represents a virtual function. A property belongs to either a Object_info or a Interface_info.

val vfuncinfo : t Ctypes.structure Ctypes.typ
val get_offset : t Ctypes.structure Ctypes.ptr -> int

Obtain the offset of the function pointer in the class struct. The value 0xFFFF indicates that the struct offset is unknown.

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.

Obtain the flags for this virtual function info. See VFunc_infoFlags for more information about possible flag values.

Just cast OCaml Ctypes base info to vfunc info.

Just cast OCaml Ctypes vfunc info to base info

Add unref of the C underlying structure whith Gc.finalise.

Return a VFunc_info.t from a Base_info.t, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.

Return a Base_info.t from a VFunc_info, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.

Just cast OCaml Ctypes callable info to vfunc info.

Just cast OCaml Ctypes vfunc info to callable info

Return a VFunc_info.t from a Callable_info.t, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.

Return a Callable_info.t from a VFunc_info, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.

OCaml

Innovation. Community. Security.