summaryrefslogtreecommitdiff
path: root/src/Gtk/Widgets/Sheet.dcl
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gtk/Widgets/Sheet.dcl')
-rw-r--r--src/Gtk/Widgets/Sheet.dcl13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Gtk/Widgets/Sheet.dcl b/src/Gtk/Widgets/Sheet.dcl
index 2541242..0f365d2 100644
--- a/src/Gtk/Widgets/Sheet.dcl
+++ b/src/Gtk/Widgets/Sheet.dcl
@@ -4,6 +4,8 @@ definition module Gtk.Widgets.Sheet
* This module provides support for GtkSheet; a spreadsheet widget. See
* https://fpaquet.github.io/gtksheet/ for more details and installation
* instructions. Use the 'Gtk with GtkSheet' environment.
+ *
+ * Note that the C library is slightly buggy.
*/
from StdMaybe import :: Maybe
@@ -26,8 +28,19 @@ instance gtkWidget GtkSheet
instance gtkContainer GtkSheet
newSheet :: !Int !Int !String -> GtkM GtkSheet
+
+/**
+ * Freezing a sheet means that the GUI will not be updated; all model updates
+ * are collected and the GUI is updated in a single step when the sheet is
+ * unfrozen. This is a wrapper function which freezes the sheet, executes the
+ * monad, and then unfreezes the sheet again.
+ */
whileFrozen :: !(GtkM a) !GtkSheet -> GtkM a
+/**
+ * Make sure the sheet has the given width and height by adding or deleting
+ * rows and columns.
+ */
ensureDimensions :: !Int !Int !GtkSheet -> GtkM GtkSheet
setColumnTitle :: !Int !String !GtkSheet -> GtkM GtkSheet