summaryrefslogtreecommitdiff
path: root/src/Gtk/Tune.dcl
blob: 63e48a495733c49c10091ff1c6af62b1cf3ff1fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
definition module Gtk.Tune

/**
 * This module provides a class and useful infix operators for 'tuning' things.
 * Tuning involves modifying an existing element, typically a widget. A single
 * `tune` class avoids the need for a variety of `set...` functions.
 */

from Gtk.State import :: GtkM

//* Modify `elem` with `option`.
class tune elem option :: !option !elem -> GtkM elem

/**
 * Infix operator to tune something, typically used when creating the element.
 * For example: `newTextView <<@ Insensitive >>= \text_view -> ...`.
 */
(<<@) infixl 2 :: !(GtkM elem) !option -> GtkM elem | tune elem option