helic-0.6.1.0: Clipboard Manager
Safe HaskellSafe-Inferred
LanguageGHC2021

Helic.Interpreter.Gtk

Description

Native interpreter for Gtk. Internal.

Synopsis

Documentation

tryOpenDisplay :: Members [Stop Text, Log, Embed IO] r => DisplayId -> DisplayManager -> Sem r () Source #

In the case where no default display is available from the manager, attempt to connect to a named display.

noDisplayAvailable :: Members [Stop Text, Embed IO] r => DisplayManager -> Sem r Bool Source #

Test whether the display manager has a default display available.

bracketGtk :: Members [Reader X11Config, Resource, Log, Embed IO] r => (Display -> Sem (Stop Text ': r) a) -> Sem (Stop Text ': r) a Source #

Initialize GTK, run the scoped action, then tear down the GTK environment.

interpretGtk :: Members [Reader X11Config, Resource, Log, Embed IO] r => InterpreterFor (Scoped_ (Gtk Display) !! Text) r Source #

Interpret Gtk natively, using the GI.Gtk and Gi.Gdk libraries. This uses Scoped to bracket the initialization and termination of the GTK environment.