From efc3ad6f5ccfb0f63eaa197a154cbf724e3a2662 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Sun, 19 Sep 2010 09:10:16 +0200
Subject: Implemented a skeleton of LdCanvas.
It now paints itself white and draws a simple grid.
Also an LdDocument can be assigned to it.
---
src/ld-canvas.h | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'src/ld-canvas.h')
diff --git a/src/ld-canvas.h b/src/ld-canvas.h
index 7b6f746..725e243 100644
--- a/src/ld-canvas.h
+++ b/src/ld-canvas.h
@@ -45,7 +45,12 @@ struct _LdCanvas
struct _LdCanvasClass
{
+/*< private >*/
GtkDrawingAreaClass parent_class;
+
+/*
+ void (*set_scroll_adjustments) (GtkAdjustment *x, GtkAdjustment *y);
+*/
};
@@ -53,6 +58,11 @@ GType ld_canvas_get_type (void) G_GNUC_CONST;
LdCanvas *ld_canvas_new (void);
+void ld_canvas_set_document (LdCanvas *self, LdDocument *document);
+LdDocument *ld_canvas_get_document (LdCanvas *self);
+
+/* TODO: The rest of the interface. */
+
G_END_DECLS
--
cgit v1.2.3