glcompmouse.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /*************************************************************************
  2. * Copyright (c) 2011 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at https://graphviz.org
  9. *************************************************************************/
  10. #pragma once
  11. #include <glcomp/glcompdefs.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /*events*/
  16. extern void glCompMouseInit(glCompMouse * m);
  17. void glCompClick(glCompObj *o, float x, float y, glMouseButtonType t);
  18. void glCompDoubleClick(glCompObj *obj, float x, float y, glMouseButtonType t);
  19. void glCompMouseDown(glCompObj *obj, float x, float y, glMouseButtonType t);
  20. void glCompMouseIn(glCompObj *obj, float x, float y);
  21. void glCompMouseOut(glCompObj *obj, float x, float y);
  22. void glCompMouseOver(glCompObj *obj, float x, float y);
  23. void glCompMouseUp(glCompObj *obj, float x, float y, glMouseButtonType t);
  24. void glCompMouseDrag(glCompObj *obj, float dx, float dy, glMouseButtonType t);
  25. #ifdef __cplusplus
  26. }
  27. #endif