|
Graphviz 14.0.3~dev.20251029.0425
|
#include "appmouse.h"#include "topfisheyeview.h"#include "arcball.h"#include "glmotion.h"#include "hotkeymap.h"#include "selectionfuncs.h"#include <stdbool.h>#include <stdint.h>#include <util/list.h>#include "topviewfuncs.h"Go to the source code of this file.
Functions | |
| static void | apply_actions (ViewInfo *v, int x, int y) |
| static void | appmouse_down (ViewInfo *v, int x, int y) |
| void | appmouse_up (ViewInfo *v, int x, int y) |
| void | appmouse_drag (ViewInfo *v, int x, int y) |
| void | appmouse_left_click_down (ViewInfo *v, int x, int y) |
| void | appmouse_right_click_down (ViewInfo *v, int x, int y) |
| void | appmouse_middle_click_down (ViewInfo *v, int x, int y) |
| void | appmouse_move (ViewInfo *v, int x, int y) |
| void | appmouse_key_release (ViewInfo *v) |
| void | appmouse_key_press (ViewInfo *v, int key) |
Variables | |
| static int | lastAction |
|
static |
Definition at line 25 of file appmouse.c.
References topview::active, _ViewInfo::active_camera, _ViewInfo::activeGraph, add_selpoly(), _ViewInfo::arcball, arcmouseClick(), arcmouseDrag(), changetopfishfocus(), glCompMouse::down, topview::fisheyeParams, _ViewInfo::g, get_mode(), glCompMouse::GLfinalPos, glmotion_pan(), glCompMouse::GLpos, GUI_FULLSCREEN, _ViewInfo::guiMode, _ArcBall_t::isDragging, lastAction, MM_FISHEYE_PICK, MM_MOVE, MM_PAN, MM_POLYGON_SELECT, MM_RECTANGULAR_SELECT, MM_ROTATE, MM_SINGLE_SELECT, _ViewInfo::mouse, _ArcBall_t::MousePt, NULL, pick_object_xyz(), pick_objects_rect(), topview::sel, _selection::selPoly, SIZE_MAX, _ViewInfo::timer3, _ViewInfo::Topview, view, glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by appmouse_drag(), and appmouse_up().
|
static |
Definition at line 76 of file appmouse.c.
References glCompMouse::down, glCompMouse::dragX, glCompMouse::dragY, glCompMouse::GLinitPos, glCompMouse::GLpos, _ViewInfo::mouse, to3D(), view, glCompPoint::x, glCompMouse::x, glCompPoint::y, glCompMouse::y, and glCompPoint::z.
Referenced by appmouse_left_click_down(), appmouse_middle_click_down(), and appmouse_right_click_down().
| void appmouse_drag | ( | ViewInfo * | v, |
| int | x, | ||
| int | y | ||
| ) |
Definition at line 99 of file appmouse.c.
References apply_actions(), glCompMouse::GLpos, _ViewInfo::mouse, to3D(), glCompPoint::x, glCompMouse::x, glCompPoint::y, glCompMouse::y, and glCompPoint::z.
Referenced by cb_drag(), and motion_notify_event().
| void appmouse_key_press | ( | ViewInfo * | v, |
| int | key | ||
| ) |
Definition at line 143 of file appmouse.c.
References _ViewInfo::keyVal.
Referenced by cb_keyboard(), cb_special_key(), and key_press_event().
| void appmouse_key_release | ( | ViewInfo * | v | ) |
Definition at line 134 of file appmouse.c.
References glexpose(), _ViewInfo::keyVal, lastAction, LIST_FREE, MM_POLYGON_SELECT, topview::sel, _selection::selPoly, _ViewInfo::Topview, and view.
Referenced by cb_keyboard_up(), cb_special_key_up(), and key_release_event().
| void appmouse_left_click_down | ( | ViewInfo * | v, |
| int | x, | ||
| int | y | ||
| ) |
Definition at line 106 of file appmouse.c.
References appmouse_down(), glMouseLeftButton, _ViewInfo::mouse, and glCompMouse::t.
Referenced by button_press_event(), and cb_mouseclick().
| void appmouse_middle_click_down | ( | ViewInfo * | v, |
| int | x, | ||
| int | y | ||
| ) |
Definition at line 122 of file appmouse.c.
References appmouse_down(), glMouseMiddleButton, _ViewInfo::mouse, and glCompMouse::t.
Referenced by button_press_event(), and cb_mouseclick().
| void appmouse_move | ( | ViewInfo * | v, |
| int | x, | ||
| int | y | ||
| ) |
Definition at line 130 of file appmouse.c.
References glCompMouse::GLpos, _ViewInfo::mouse, to3D(), glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by cb_drag(), and motion_notify_event().
| void appmouse_right_click_down | ( | ViewInfo * | v, |
| int | x, | ||
| int | y | ||
| ) |
Definition at line 114 of file appmouse.c.
References appmouse_down(), glMouseRightButton, _ViewInfo::mouse, and glCompMouse::t.
Referenced by button_press_event(), and cb_mouseclick().
| void appmouse_up | ( | ViewInfo * | v, |
| int | x, | ||
| int | y | ||
| ) |
Definition at line 88 of file appmouse.c.
References apply_actions(), _ViewInfo::arcball, glCompMouse::down, glCompMouse::dragX, glCompMouse::dragY, glCompMouse::GLfinalPos, _ArcBall_t::isDragging, _ViewInfo::mouse, to3D(), view, glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by button_release_event(), and cb_mouseclick().
|
static |
Definition at line 23 of file appmouse.c.
Referenced by apply_actions(), and appmouse_key_release().