Runtime.Objcval get_class :
string ->
Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptrReturns the class definition of a specified class.
val get_meta_class :
string ->
Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptrReturns the metaclass definition of a specified class.
val register_class :
Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptr ->
unitRegisters a class that was allocated using allocate_class.
val get_class_list :
Runtime__.Type_description.Types.objc_class Ctypes.structure
Ctypes_static.ptr
Ctypes_static.ptr ->
int ->
intObtains the list of registered class definitions. get_class_list buffer buffer_count buffer An array of Class values. On output, each Class value points to one class definition, up to either bufferCount or the total number of registered classes, whichever is less. You can pass NULL to obtain the total number of registered class definitions without actually retrieving any class definitions.
val get_protocol_list :
Unsigned.uint Ctypes_static.ptr ->
Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptr
Ctypes_static.ptrReturns an array of all the protocols known to the runtime.
val allocate_class :
?extra_bytes:Unsigned.size_t ->
superclass:
Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptr ->
string ->
Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptrCreates a new class and metaclass. extra_bytes: the number of bytes to allocate for indexed ivars at the end of the class and metaclass objects.
val objc_class : objc_class Ctypes.structure Ctypes.typval objc_object : objc_object Ctypes.structure Ctypes.typval objc_method : objc_method Ctypes.structure Ctypes.typval objc_selector : objc_selector Ctypes.structure Ctypes.typval objc_ivar : objc_ivar Ctypes.structure Ctypes.typval objc_protocol : objc_protocol Ctypes.structure Ctypes.typtype class_t = objc_object Ctypes.structure Ctypes.ptrtype object_t = objc_object Ctypes.structure Ctypes.ptrtype selector_t = objc_selector Ctypes.structure Ctypes.ptrtype protocol_t = objc_object Ctypes.structure Ctypes.ptrtype ivar_t = objc_ivar Ctypes.structure Ctypes.ptrmodule Method_description : sig ... endmodule Property_attribute : sig ... endval id : objc_object Ctypes.structure Ctypes_static.ptr Ctypes.typval _Class : objc_object Ctypes.structure Ctypes_static.ptr Ctypes.typval _SEL : objc_selector Ctypes.structure Ctypes_static.ptr Ctypes.typval _Protocol : objc_object Ctypes.structure Ctypes_static.ptr Ctypes.typval _Ivar : objc_ivar Ctypes.structure Ctypes_static.ptr Ctypes.typval _Method : objc_method Ctypes.structure Ctypes_static.ptr Ctypes.typinclude module type of struct include Ctypes endtype !'a ptr = ('a, [ `C ]) pointerval genarray :
< ba_repr : 'b
; bigarray : ('a, 'b, 'l) Bigarray_compat.Genarray.t
; carray : 'a carray
; dims : int array
; element : 'a
; layout : 'l >
bigarray_classval array1 :
< ba_repr : 'b
; bigarray : ('a, 'b, 'l) Bigarray_compat.Array1.t
; carray : 'a carray
; dims : int
; element : 'a
; layout : 'l >
bigarray_classval array2 :
< ba_repr : 'b
; bigarray : ('a, 'b, 'l) Bigarray_compat.Array2.t
; carray : 'a carray carray
; dims : int * int
; element : 'a
; layout : 'l >
bigarray_classval array3 :
< ba_repr : 'b
; bigarray : ('a, 'b, 'l) Bigarray_compat.Array3.t
; carray : 'a carray carray carray
; dims : int * int * int
; element : 'a
; layout : 'l >
bigarray_classtype !'a structure = ('a, [ `Struct ]) structuredtype !'a union = ('a, [ `Union ]) structuredval void : unit typval char : char typval schar : int typval short : int typval int : int typval long : Signed.long typval llong : Signed.llong typval nativeint : nativeint typval int8_t : int typval int16_t : int typval int32_t : int32 typval int64_t : int64 typval intptr_t : Intptr.t typval ptrdiff_t : Ptrdiff.t typval camlint : int typval uchar : Unsigned.uchar typval bool : bool typval uint8_t : Unsigned.uint8 typval uint16_t : Unsigned.uint16 typval uint32_t : Unsigned.uint32 typval uint64_t : Unsigned.uint64 typval size_t : Unsigned.size_t typval ushort : Unsigned.ushort typval sint : Signed.sint typval uint : Unsigned.uint typval ulong : Unsigned.ulong typval ullong : Unsigned.ullong typval uintptr_t : Uintptr.t typval float : float typval double : float typval ldouble : LDouble.t typval complex32 : Stdlib.Complex.t typval complex64 : Stdlib.Complex.t typval complexld : ComplexL.t typval string : string typval string_opt : string option typval ocaml_string : string Ctypes_static.ocaml typval ocaml_bytes : bytes Ctypes_static.ocaml typval bigarray :
< ba_repr : 'b
; bigarray : 'bigarray
; carray : 'c
; dims : 'dims
; element : 'a
; layout : Bigarray_compat.c_layout >
Ctypes_static.bigarray_class ->
'dims ->
('a, 'b) Bigarray_compat.kind ->
'bigarray typval fortran_bigarray :
< ba_repr : 'b
; bigarray : 'bigarray
; carray : 'c
; dims : 'dims
; element : 'a
; layout : Bigarray_compat.fortran_layout >
Ctypes_static.bigarray_class ->
'dims ->
('a, 'b) Bigarray_compat.kind ->
'bigarray typval typ_of_bigarray_kind : ('a, 'b) Bigarray_compat.kind -> 'a typval structure : string -> 's Ctypes_static.structure typval union : string -> 's Ctypes_static.union typval seal : ('a, [< `Struct | `Union ]) Ctypes_static.structured typ -> unitval abstract :
name:string ->
size:int ->
alignment:int ->
'a Ctypes_static.abstract typval lift_typ : 'a Ctypes_static.typ -> 'a typval sizeof : 'a typ -> intval alignment : 'a typ -> intval format_typ : ?name:string -> Stdlib.Format.formatter -> 'a typ -> unitval format_fn : ?name:string -> Stdlib.Format.formatter -> 'a fn -> unitval string_of_typ : ?name:string -> 'a typ -> stringval string_of_fn : ?name:string -> 'a fn -> stringval format : 'a typ -> Stdlib.Format.formatter -> 'a -> unitval string_of : 'a typ -> 'a -> stringval null : unit ptrval (!@) : 'a ptr -> 'aval (<-@) : 'a ptr -> 'a -> unitval is_null : 'a ptr -> boolval ptr_of_raw_address : nativeint -> unit ptrval raw_address_of_ptr : unit ptr -> nativeintval string_from_ptr : char ptr -> length:int -> stringval ocaml_string_start : string -> string ocamlval ocaml_bytes_start : bytes -> bytes ocamlval bigarray_start :
< ba_repr : 'c
; bigarray : 'b
; carray : 'd
; dims : 'e
; element : 'a
; layout : 'l >
bigarray_class ->
'b ->
'a ptrval bigarray_of_ptr :
< ba_repr : 'f
; bigarray : 'b
; carray : 'c
; dims : 'i
; element : 'a
; layout : Bigarray_compat.c_layout >
bigarray_class ->
'i ->
('a, 'f) Bigarray_compat.kind ->
'a ptr ->
'bval fortran_bigarray_of_ptr :
< ba_repr : 'f
; bigarray : 'b
; carray : 'c
; dims : 'i
; element : 'a
; layout : Bigarray_compat.fortran_layout >
bigarray_class ->
'i ->
('a, 'f) Bigarray_compat.kind ->
'a ptr ->
'bval array_of_bigarray :
< ba_repr : 'a
; bigarray : 'b
; carray : 'c
; dims : 'd
; element : 'e
; layout : Bigarray_compat.c_layout >
bigarray_class ->
'b ->
'cval bigarray_of_array :
< ba_repr : 'f
; bigarray : 'b
; carray : 'c carray
; dims : 'i
; element : 'a
; layout : Bigarray_compat.c_layout >
bigarray_class ->
('a, 'f) Bigarray_compat.kind ->
'c carray ->
'bval make :
?finalise:(('a, 'b) structured -> unit) ->
('a, 'b) structured typ ->
('a, 'b) structuredval setf : ('b, 'c) structured -> ('a, ('b, 'c) structured) field -> 'a -> unitval getf : ('b, 'c) structured -> ('a, ('b, 'c) structured) field -> 'aval (@.) : ('b, 'c) structured -> ('a, ('b, 'c) structured) field -> 'a ptrval (|->) :
('b, 'c) structured ptr ->
('a, ('b, 'c) structured) field ->
'a ptrval field_name : ('a, 'b) field -> stringval addr : ('a, 'b) structured -> ('a, 'b) structured ptrexception Uncoercible of uncoercible_infoinclude module type of struct include Unsigned endinclude module type of struct include Signed endval of_byte_size : int -> (module S)This module extends Ctypes with types and functions specific to Objective-C.
module Objc_super : sig ... endval msg_send :
self:objc_object Ctypes.structure Ctypes_static.ptr ->
cmd:objc_selector Ctypes.structure Ctypes_static.ptr ->
typ:'a fn ->
'aSends a message with a simple return value to an instance of a class.
val msg_send_suspended :
self:objc_object Ctypes.structure Ctypes_static.ptr ->
cmd:objc_selector Ctypes.structure Ctypes_static.ptr ->
typ:'a fn ->
'aSends a message with a simple return value to an instance of a class, releasing the runtime lock to avoid blocking other threads.
val msg_send_super :
self:
Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptr ->
cmd:objc_selector Ctypes.structure Ctypes_static.ptr ->
typ:'a fn ->
'aSends a message with a simple return value to the superclass of an instance of a class.
val msg_send_vo :
self:objc_object Ctypes.structure Ctypes_static.ptr ->
cmd:objc_selector Ctypes.structure Ctypes_static.ptr ->
objc_object Ctypes.structure Ctypes_static.ptrShortcut for type void @-> id
val msg_send_ov :
self:objc_object Ctypes.structure Ctypes_static.ptr ->
cmd:objc_selector Ctypes.structure Ctypes_static.ptr ->
objc_object Ctypes.structure Ctypes_static.ptr ->
unitShortcut for type id @-> void
val msg_send_stret :
self:objc_object Ctypes.structure Ctypes_static.ptr ->
cmd:objc_selector Ctypes.structure Ctypes_static.ptr ->
typ:'a fn ->
return_type:'b typ ->
'aSends a message with a data-structure return value to an instance of a class.