From 7c929e6e1ce1f43d16d0d279af1e1261b5c566b7 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 15 Apr 2008 10:26:05 +0000 Subject: zoomedit: * Moved grid drawing code to TopView --- src/Gui/RenderArea.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'src/Gui/RenderArea.h') diff --git a/src/Gui/RenderArea.h b/src/Gui/RenderArea.h index 123c50f..c47c56d 100644 --- a/src/Gui/RenderArea.h +++ b/src/Gui/RenderArea.h @@ -43,6 +43,22 @@ class RenderArea : public Gtk::DrawingArea { queue_draw(); } + float getViewWidth() const { + return get_width()/scale; + } + + float getViewHeight() const { + return get_height()/scale; + } + + float getImageWidth() const {return 10;} + float getImageHeight() const {return 10;} + + float getScale() const {return scale;} + + float getXCenter() const {return xCenter;} + float getYCenter() const {return yCenter;} + private: static GdkGLConfig *glconfig; @@ -67,19 +83,6 @@ class RenderArea : public Gtk::DrawingArea { void updateScrollbars(float x = 0.5f, float y = 0.5f); void updateScrolling(); - void drawGrid(); - - float getViewWidth() const { - return get_width()/scale; - } - - float getViewHeight() const { - return get_height()/scale; - } - - float getImageWidth() const {return 10;} - float getImageHeight() const {return 10;} - bool gdkGLBegin() { GtkWidget *widget = GTK_WIDGET(gobj()); -- cgit v1.2.3