Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
appmouse.c File Reference
#include "appmouse.h"
#include "topfisheyeview.h"
#include "arcball.h"
#include "glmotion.h"
#include "hotkeymap.h"
#include "selectionfuncs.h"
#include <stdint.h>
#include "topviewfuncs.h"
Include dependency graph for appmouse.c:

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
 

Function Documentation

◆ apply_actions()

static void apply_actions ( ViewInfo v,
int  x,
int  y 
)
static

Definition at line 23 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmouse_down()

static void appmouse_down ( ViewInfo v,
int  x,
int  y 
)
static

Definition at line 74 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmouse_drag()

void appmouse_drag ( ViewInfo v,
int  x,
int  y 
)

Definition at line 97 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmouse_key_press()

void appmouse_key_press ( ViewInfo v,
int  key 
)

Definition at line 141 of file appmouse.c.

References _ViewInfo::keyVal.

Referenced by cb_keyboard(), cb_special_key(), and key_press_event().

Here is the caller graph for this function:

◆ appmouse_key_release()

void appmouse_key_release ( ViewInfo v)

Definition at line 132 of file appmouse.c.

References glexpose(), _ViewInfo::keyVal, lastAction, MM_POLYGON_SELECT, topview::sel, _selection::selPoly, _ViewInfo::Topview, and view.

Referenced by cb_keyboard_up(), cb_special_key_up(), and key_release_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmouse_left_click_down()

void appmouse_left_click_down ( ViewInfo v,
int  x,
int  y 
)

Definition at line 104 of file appmouse.c.

References appmouse_down(), glMouseLeftButton, _ViewInfo::mouse, and glCompMouse::t.

Referenced by button_press_event(), and cb_mouseclick().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmouse_middle_click_down()

void appmouse_middle_click_down ( ViewInfo v,
int  x,
int  y 
)

Definition at line 120 of file appmouse.c.

References appmouse_down(), glMouseMiddleButton, _ViewInfo::mouse, and glCompMouse::t.

Referenced by button_press_event(), and cb_mouseclick().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmouse_move()

void appmouse_move ( ViewInfo v,
int  x,
int  y 
)

Definition at line 128 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmouse_right_click_down()

void appmouse_right_click_down ( ViewInfo v,
int  x,
int  y 
)

Definition at line 112 of file appmouse.c.

References appmouse_down(), glMouseRightButton, _ViewInfo::mouse, and glCompMouse::t.

Referenced by button_press_event(), and cb_mouseclick().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmouse_up()

void appmouse_up ( ViewInfo v,
int  x,
int  y 
)

Definition at line 86 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().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ lastAction

int lastAction
static

Definition at line 21 of file appmouse.c.

Referenced by apply_actions(), and appmouse_key_release().