Graphviz 13.1.0~dev.20250626.0830
Loading...
Searching...
No Matches
glcompmouse.c
Go to the documentation of this file.
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
11#include <glcomp/glcompmouse.h>
12#include <glcomp/glcompfont.h>
13#include <glcomp/glcompset.h>
14#include <glcomp/glutils.h>
15#include <stdbool.h>
16
18{
19 m->functions.click = NULL;
20 m->functions.draw = NULL;
24
25 m->callbacks.click = NULL;
28 m->dragX = 0;
29 m->dragY = 0;
30 m->down = false;
31}
32
33void glCompMouseDown(glCompObj *obj, float x, float y, glMouseButtonType t) {
34 (void)obj;
35 (void)x;
36 (void)y;
37 (void)t;
38}
39
40void glCompMouseOver(glCompObj *obj, float x, float y) {
41 (void)obj;
42 (void)x;
43 (void)y;
44}
45
46void glCompMouseUp(glCompObj *obj, float x, float y, glMouseButtonType t) {
47 (void)obj;
48 (void)x;
49 (void)y;
50 (void)t;
51}
glMouseButtonType
Definition glcompdefs.h:67
void glCompMouseOver(glCompObj *obj, float x, float y)
Definition glcompmouse.c:40
void glCompMouseDown(glCompObj *obj, float x, float y, glMouseButtonType t)
Definition glcompmouse.c:33
void glCompMouseInit(glCompMouse *m)
Definition glcompmouse.c:17
void glCompMouseUp(glCompObj *obj, float x, float y, glMouseButtonType t)
Definition glcompmouse.c:46
node NULL
Definition grammar.y:181
glcompmouseupfunc_t mouseup
Definition glcompdefs.h:154
glcompclickfunc_t click
Definition glcompdefs.h:151
glcompmousedownfunc_t mousedown
Definition glcompdefs.h:153
glcompdrawfunc_t draw
Definition glcompdefs.h:150
glcompmouseoverfunc_t mouseover
Definition glcompdefs.h:152
glCompCallBacks callbacks
Definition glcompdefs.h:231
glCompCallBacks functions
Definition glcompdefs.h:232
object prototype
Definition glcompdefs.h:184