package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gio/Ocgtk_gio/Gio/Wrappers/Inet_address_mask/index.html

Module Wrappers.Inet_address_mask

type t = [ `inet_address_mask | `object_ ] Gobject.obj
val new_ : [ `inet_address | `object_ ] Gobject.obj -> int -> (t, GError.t) result

Create a new InetAddressMask

val new_from_string : string -> (t, GError.t) result

Create a new InetAddressMask

val to_string : t -> string

Converts @mask back to its corresponding string form.

val matches : t -> [ `inet_address | `object_ ] Gobject.obj -> bool

Tests if @address falls within the range described by @mask.

val get_length : t -> int

Gets @mask's length

val get_family : t -> Gio_enums.socketfamily

Gets the #GSocketFamily of @mask's address

val get_address : t -> [ `inet_address | `object_ ] Gobject.obj

Gets @mask's base address

val equal : t -> t -> bool

Tests if @mask and @mask2 are the same mask.