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.gtk/Ocgtk_gtk/Gtk/Wrappers/File_launcher/index.html

Module Wrappers.File_launcher

type t = [ `file_launcher | `object_ ] Gobject.obj
val new_ : Ocgtk_gio.Gio.Wrappers.File.t option -> t

Create a new FileLauncher

val set_writable : t -> bool -> unit

Sets whether to make the file writable for the handler.

val set_file : t -> Ocgtk_gio.Gio.Wrappers.File.t option -> unit

Sets the file that will be opened.

val set_always_ask : t -> bool -> unit

Sets whether to awlays ask the user to choose an app for opening the file. If `FALSE`, the file might be opened with a default app or the previous choice.

val open_containing_folder_finish : t -> Ocgtk_gio.Gio.Wrappers.Async_result.t -> (bool, GError.t) result

Finishes the method@Gtk.FileLauncher.open_containing_folder call and returns the result.

val launch_finish : t -> Ocgtk_gio.Gio.Wrappers.Async_result.t -> (bool, GError.t) result

Finishes the method@Gtk.FileLauncher.launch call and returns the result.

val get_writable : t -> bool

Returns whether to make the file writable for the handler.

val get_file : t -> Ocgtk_gio.Gio.Wrappers.File.t option

Gets the file that will be opened.

val get_always_ask : t -> bool

Returns whether to ask the user to choose an app for opening the file.