]> granicus.if.org Git - graphviz/commitdiff
*** empty log message ***
authorarif <devnull@localhost>
Thu, 8 Oct 2009 19:50:01 +0000 (19:50 +0000)
committerarif <devnull@localhost>
Thu, 8 Oct 2009 19:50:01 +0000 (19:50 +0000)
lib/glcomp/glcompmouse.c [new file with mode: 0644]
lib/glcomp/glcompmouse.h [new file with mode: 0644]

diff --git a/lib/glcomp/glcompmouse.c b/lib/glcomp/glcompmouse.c
new file mode 100644 (file)
index 0000000..54867d7
--- /dev/null
@@ -0,0 +1,82 @@
+/* vim:set shiftwidth=4 ts=8: */
+
+/**********************************************************
+*      This software is part of the graphviz package      *
+*                http://www.graphviz.org/                 *
+*                                                         *
+*            Copyright (c) 1994-2007 AT&T Corp.           *
+*                and is licensed under the                *
+*            Common Public License, Version 1.0           *
+*                      by AT&T Corp.                      *
+*                                                         *
+*        Information and Software Systems Research        *
+*              AT&T Research, Florham Park NJ             *
+**********************************************************/
+#include "glcompmouse.h"
+#include "glCompFont.h"
+#include "glcompset.h"
+#include "glutils.h"
+
+
+
+void glCompMouseInit(glCompMouse * m)
+{
+       m->functions.click=glCompClick;
+       m->functions.doubleclick=glCompDoubleClick;
+       m->functions.draw=NULL;
+       m->functions.mousedown=glCompMouseDown;
+       m->functions.mousedrag=glCompMouseDrag;
+       m->functions.mousein=glCompMouseIn;
+       m->functions.mouseout=glCompMouseOut;
+       m->functions.mouseover=glCompMouseOver;
+       m->functions.mouseup=glCompMouseUp;
+
+       m->callbacks.click=NULL;
+       m->callbacks.doubleclick=NULL;
+       m->callbacks.draw=NULL;
+       m->callbacks.mousedown=NULL;
+       m->callbacks.mousedrag=NULL;
+       m->callbacks.mousein=NULL;
+       m->callbacks.mouseout=NULL;
+       m->callbacks.mouseover=NULL;
+       m->callbacks.mouseup=NULL;
+       m->dragX=0;
+       m->dragY=0;
+       m->down=0;
+
+}
+extern void glCompClick(glCompObj * o,GLfloat x,GLfloat y,glMouseButtonType t)
+{
+
+}
+extern void glCompDoubleClick(glCompObj * obj,GLfloat x,GLfloat y,glMouseButtonType t)
+{
+
+}
+
+extern void glCompMouseDown(glCompObj * obj,GLfloat x,GLfloat y,glMouseButtonType t)
+{
+
+}
+
+extern void glCompMouseIn(glCompObj * obj,GLfloat x,GLfloat y)
+{
+
+}
+extern void glCompMouseOut(glCompObj * obj,GLfloat x,GLfloat y)
+{
+
+}
+extern void glCompMouseOver(glCompObj * obj,GLfloat x,GLfloat y)
+{
+
+}
+extern void glCompMouseUp(glCompObj * obj,GLfloat x,GLfloat y,glMouseButtonType t)
+{
+
+}
+extern void glCompMouseDrag(glCompObj * obj,GLfloat dx,GLfloat dy,glMouseButtonType t)
+{
+
+}
+
diff --git a/lib/glcomp/glcompmouse.h b/lib/glcomp/glcompmouse.h
new file mode 100644 (file)
index 0000000..b1b277a
--- /dev/null
@@ -0,0 +1,31 @@
+/**********************************************************
+*      This software is part of the graphviz package      *
+*                http://www.graphviz.org/                 *
+*                                                         *
+*            Copyright (c) 1994-2007 AT&T Corp.           *
+*                and is licensed under the                *
+*            Common Public License, Version 1.0           *
+*                      by AT&T Corp.                      *
+*                                                         *
+*        Information and Software Systems Research        *
+*              AT&T Research, Florham Park NJ             *
+**********************************************************/
+#ifndef GLCOMPMOUSE_H
+#define GLCOMPMOUSE_H
+
+#include "glcompdefs.h"
+
+
+
+/*events*/
+extern void glCompMouseInit(glCompMouse * m);
+extern void glCompClick(glCompObj * o,GLfloat x,GLfloat y,glMouseButtonType t);
+extern void glCompDoubleClick(glCompObj * obj,GLfloat x,GLfloat y,glMouseButtonType t);
+extern void glCompMouseDown(glCompObj * obj,GLfloat x,GLfloat y,glMouseButtonType t);
+extern void glCompMouseIn(glCompObj * obj,GLfloat x,GLfloat y);
+extern void glCompMouseOut(glCompObj * obj,GLfloat x,GLfloat y);
+extern void glCompMouseOver(glCompObj * obj,GLfloat x,GLfloat y);
+extern void glCompMouseUp(glCompObj * obj,GLfloat x,GLfloat y,glMouseButtonType t);
+extern void glCompMouseDrag(glCompObj * obj,GLfloat dx,GLfloat dy,glMouseButtonType t);
+
+#endif