lablgtk3

OCaml interface to GTK+3
IN THIS PACKAGE
Module Glib
type unichar = int
type unistring = unichar array
exception GError of string

Main Event Loop

module Main : sig ... end

The Main Event Loop @gtkdoc glib glib-The-Main-Event-Loop

val int_of_priority : [< `HIGH | `DEFAULT | `HIGH_IDLE | `DEFAULT_IDLE | `LOW ] -> int
module Timeout : sig ... end

@gtkdoc glib glib-The-Main-Event-Loop

module Idle : sig ... end

@gtkdoc glib glib-The-Main-Event-Loop

IO Channels

module Io : sig ... end

IO Channels @gtkdoc glib glib-IO-Channels

Message Logging

module Message : sig ... end

@gtkdoc glib glib-Message-Logging

Character Sets

module Convert : sig ... end

Character Set Conversion @gtkdoc glib glib-Character-Set-Conversion

module Unichar : sig ... end

Unicode Manipulation @gtkdoc glib glib-Unicode-Manipulation

module Utf8 : sig ... end

Unicode Manipulation @gtkdoc glib glib-Unicode-Manipulation

module Markup : sig ... end

@gtkdoc glib glib-Simple-XML-Subset-Parser

Miscellaneous Utility Functions

val get_prgname : unit -> string
val set_prgname : string -> unit
val get_application_name : unit -> string
  • since GTK 2.2
val set_application_name : string -> unit
  • since GTK 2.2
  • since GTK 2.2
val get_user_name : unit -> string
val get_real_name : unit -> string
val get_home_dir : unit -> string option
val get_tmp_dir : unit -> string
val find_program_in_path : string -> string
  • raises Not_found

    if the program is not found in the path or is not executable

val getenv : string -> string
  • raises Not_found

    if the environment variable is not found.

val setenv : string -> string -> bool -> unit
  • raises Not_found

    if the environment variable is not found.

  • raises Failure

    if the environment variable couldn't be set.

  • since GTK 2.4
val unsetenv : string -> unit
  • raises Failure

    if the environment variable couldn't be set.

  • since GTK 2.4
  • since GTK 2.4
val get_user_cache_dir : unit -> string
  • since GTK 2.6
val get_user_data_dir : unit -> string
  • since GTK 2.6
  • since GTK 2.6
val get_user_config_dir : unit -> string
  • since GTK 2.6
  • since GTK 2.6
val get_system_data_dirs : unit -> string list
  • since GTK 2.6
  • since GTK 2.6
val get_system_config_dirs : unit -> string list
  • since GTK 2.6
  • since GTK 2.6
val usleep : int -> unit