Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
glmotion.c File Reference
#include "glmotion.h"
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtkgl.h>
#include <gdk/gdkcursor.h>
#include "draw.h"
#include <glcomp/glutils.h>
#include "hotkeymap.h"
#include <stdint.h>
Include dependency graph for glmotion.c:

Go to the source code of this file.

Functions

static void graph_zoom (float real_zoom)
 
void glmotion_zoom_inc (int zoomin)
 
void glmotion_zoom (void)
 
void glmotion_pan (ViewInfo *v)
 

Function Documentation

◆ glmotion_pan()

void glmotion_pan ( ViewInfo v)

Definition at line 70 of file glmotion.c.

References _ViewInfo::active_camera, _ViewInfo::cameras, glCompMouse::dragX, glCompMouse::dragY, GetOGLDistance(), _ViewInfo::mouse, _ViewInfo::panx, _ViewInfo::pany, _viewport_camera::r, SIZE_MAX, _viewport_camera::targetx, _viewport_camera::targety, _viewport_camera::x, _viewport_camera::y, and _ViewInfo::zoom.

Referenced by apply_actions().

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

◆ glmotion_zoom()

void glmotion_zoom ( void  )

Definition at line 54 of file glmotion.c.

References _ViewInfo::active_camera, _ViewInfo::cameras, glCompMouse::dragX, graph_zoom(), _ViewInfo::mouse, _viewport_camera::r, SIZE_MAX, view, and _ViewInfo::zoom.

Referenced by scroll_event().

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

◆ glmotion_zoom_inc()

void glmotion_zoom_inc ( int  zoomin)

Definition at line 44 of file glmotion.c.

References glexpose(), graph_zoom(), view, and _ViewInfo::zoom.

Referenced by btnToolZoomOut_clicked(), menu_click_zoom_minus(), and menu_click_zoom_plus().

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

◆ graph_zoom()

static void graph_zoom ( float  real_zoom)
static

Definition at line 22 of file glmotion.c.

References _ViewInfo::active_camera, _ViewInfo::cameras, topview::fitin_zoom, MAX_ZOOM, MIN_ZOOM, _ViewInfo::panx, _ViewInfo::pany, _viewport_camera::r, SIZE_MAX, _ViewInfo::Topview, view, and _ViewInfo::zoom.

Referenced by glmotion_zoom(), and glmotion_zoom_inc().

Here is the caller graph for this function: