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/Zlib_compressor/index.html

Module Wrappers.Zlib_compressor

type t = [ `zlib_compressor | `object_ ] Gobject.obj
val new_ : Gio_enums.zlibcompressorformat -> int -> t

Create a new ZlibCompressor

val set_file_info : t -> [ `file_info | `object_ ] Gobject.obj option -> unit

Sets @file_info in @compressor. If non-%NULL, and @compressor's #GZlibCompressor:format property is %G_ZLIB_COMPRESSOR_FORMAT_GZIP, it will be used to set the file name and modification time in the GZIP header of the compressed data.

Note: it is an error to call this function while a compression is in progress; it may only be called immediately after creation of @compressor, or after resetting it with g_converter_reset().

val get_file_info : t -> [ `file_info | `object_ ] Gobject.obj option

Returns the #GZlibCompressor:file-info property.

val get_format : t -> Gio_enums.zlibcompressorformat

Get property: format

val get_level : t -> int

Get property: level