summaryrefslogtreecommitdiffstats
path: root/src/Gui/RenderArea.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gui/RenderArea.h')
-rw-r--r--src/Gui/RenderArea.h29
1 files changed, 16 insertions, 13 deletions
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());