Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
hotkeymap.c File Reference
#include <cgraph/alloc.h>
#include "hotkeymap.h"
#include <stdint.h>
Include dependency graph for hotkeymap.c:

Go to the source code of this file.

Functions

static int get_mouse_mode (const char *s)
 
static int get_button (const char *s)
 
static int get_view_mode (const char *s)
 
static int get_mouse_button (const char *s)
 
static int get_drag (const char *s)
 
void load_mouse_actions (ViewInfo *v)
 
int get_mode (ViewInfo *v)
 

Function Documentation

◆ get_button()

static int get_button ( const char *  s)
static

Definition at line 47 of file hotkeymap.c.

References B_LCTRL, B_LSHIFT, B_RCTRL, B_RSHIFT, GUI_FULLSCREEN, _ViewInfo::guiMode, and view.

Referenced by load_mouse_actions().

Here is the caller graph for this function:

◆ get_drag()

static int get_drag ( const char *  s)
static

Definition at line 108 of file hotkeymap.c.

Referenced by load_mouse_actions().

Here is the caller graph for this function:

◆ get_mode()

◆ get_mouse_button()

static int get_mouse_button ( const char *  s)
static

Definition at line 96 of file hotkeymap.c.

References glMouseLeftButton, glMouseMiddleButton, and glMouseRightButton.

Referenced by load_mouse_actions().

Here is the caller graph for this function:

◆ get_mouse_mode()

static int get_mouse_mode ( const char *  s)
static

Definition at line 15 of file hotkeymap.c.

References MM_FISHEYE_MAGNIFIER, MM_FISHEYE_PICK, MM_MAGNIFIER, MM_MOVE, MM_PAN, MM_POLYGON_SELECT, MM_RECTANGULAR_SELECT, MM_RECTANGULAR_X_SELECT, MM_ROTATE, MM_SINGLE_SELECT, and MM_ZOOM.

Referenced by load_mouse_actions().

Here is the caller graph for this function:

◆ get_view_mode()

static int get_view_mode ( const char *  s)
static

Definition at line 81 of file hotkeymap.c.

References smyrna_2D, smyrna_3D, smyrna_all, smyrna_all_but_fisheye, and smyrna_fisheye.

Referenced by load_mouse_actions().

Here is the caller graph for this function:

◆ load_mouse_actions()

void load_mouse_actions ( ViewInfo v)

Definition at line 115 of file hotkeymap.c.

References mouse_action_t::action, mouse_action_t::drag, free(), get_button(), get_drag(), get_mouse_button(), get_mouse_mode(), get_view_mode(), gv_recalloc(), mouse_action_t::hotkey, mouse_action_t::index, mouse_action_t::mode, _ViewInfo::mouse_action_count, _ViewInfo::mouse_actions, NULL, smyrnaPath(), and mouse_action_t::type.

Referenced by init_viewport().

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