Graphviz 14.1.3~dev.20260124.0732
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 "config.h"
12
13#include <glcomp/glcompmouse.h>
14#include <glcomp/glcompfont.h>
15#include <glcomp/glcompset.h>
16#include <glcomp/glutils.h>
17#include <stdbool.h>
18
20{
21 m->functions.click = NULL;
22 m->functions.draw = NULL;
26
27 m->callbacks.click = NULL;
30 m->dragX = 0;
31 m->dragY = 0;
32 m->down = false;
33}
34
35void glCompMouseDown(glCompObj *obj, float x, float y, glMouseButtonType t) {
36 (void)obj;
37 (void)x;
38 (void)y;
39 (void)t;
40}
41
42void glCompMouseOver(glCompObj *obj, float x, float y) {
43 (void)obj;
44 (void)x;
45 (void)y;
46}
47
48void glCompMouseUp(glCompObj *obj, float x, float y, glMouseButtonType t) {
49 (void)obj;
50 (void)x;
51 (void)y;
52 (void)t;
53}
glMouseButtonType
Definition glcompdefs.h:67
void glCompMouseOver(glCompObj *obj, float x, float y)
Definition glcompmouse.c:42
void glCompMouseDown(glCompObj *obj, float x, float y, glMouseButtonType t)
Definition glcompmouse.c:35
void glCompMouseInit(glCompMouse *m)
Definition glcompmouse.c:19
void glCompMouseUp(glCompObj *obj, float x, float y, glMouseButtonType t)
Definition glcompmouse.c:48
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