reflex-gi-gtk-0.2.0.0: Helper functions to use reflex with gi-gtk
CopyrightSven Bartscher 2020
LicenseMPL-2.0
Maintainersven.bartscher@weltraumschlangen.de
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Reflex.GI.Gtk.Widget.Utils

Description

This module provides miscellaneous helpers for dealing with GTK Widgets in reactive contexts.

Synopsis

Documentation

holdNotReadyWidget :: (MonadRunGtk m, MonadHold t m) => Event t Widget -> m (Dynamic t Widget) Source #

Hold an Event firing Widgets in a Dynamic, automatically using a notReadyWidget as the initial value.

holdNotReadyDynamicWidget :: (MonadRunGtk m, MonadHold t m, Reflex t) => Event t (Dynamic t Widget) -> m (Dynamic t Widget) Source #

A variant of holdNotReadyWidget where Widgets aren't replaced directly, but instead different Dynamic t Widgets are switched in.

notReadyWidget :: IO Widget Source #

A widget appropriate for displaying in place of widgets that aren't available yet, e.g. as replacement for widgets that aren't available until post-build time.

The current implementation returns a Spinner that has been started (spinnerStart).

Note that the widget is not widgetShown in this function. If you want the Widget to be actually shown, you should call widgetShow explicitly on it.