helic-0.5.1.0: Clipboard Manager
Safe HaskellNone
LanguageHaskell2010

Helic.Interpreter.Gtk

Description

Native interpreter for Gtk. Internal.

Synopsis

Documentation

bracketGtk :: Members [Resource, Log, Embed IO] r => DisplayId -> (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 [Resource, Log, Embed IO] r => X11Config -> InterpreterFor (Scoped Display (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.