Graphviz 12.0.1~dev.20240716.0800
|
#include <cgraph/exit.h>
#include "glutrender.h"
#include "viewport.h"
#include "arcball.h"
#include "appmouse.h"
#include "glexpose.h"
#include "glcompui.h"
Go to the source code of this file.
Functions | |
static glMouseButtonType | getGlCompMouseType (int n) |
static void | cb_reshape (int width, int height) |
static void | cb_display (void) |
static void | cb_mouseclick (int button, int state, int x, int y) |
static void | cb_drag (int X, int Y) |
static void | cb_keyboard (unsigned char key, int x, int y) |
static void | cb_keyboard_up (unsigned char key, int x, int y) |
static void | cb_special_key (int key, int x, int y) |
static void | cb_special_key_up (int key, int x, int y) |
static void | cb_game_mode (char *optArg) |
int | cb_glutinit (int w, int h, int *argcp, char *argv[], char *optArg) |
Variables | |
static float | begin_x = 0.0 |
static float | begin_y = 0.0 |
static float | dx = 0.0 |
static float | dy = 0.0 |
|
static |
Definition at line 76 of file glutrender.c.
References _ViewInfo::activeGraph, add_graph_to_viewport_from_file(), close_graph(), glexpose_main(), _ViewInfo::initFile, _ViewInfo::initFileName, and view.
Referenced by cb_drag(), cb_glutinit(), and cb_mouseclick().
|
static |
Definition at line 125 of file glutrender.c.
References appmouse_left_drag(), appmouse_middle_drag(), appmouse_move(), appmouse_right_drag(), begin_x, begin_y, cb_display(), glCompSet::common, glCompMouse::down, glCompMouse::dragX, glCompMouse::dragY, dx, dy, glCompCommon::functions, glMouseLeftButton, glMouseMiddleButton, glMouseRightButton, _ViewInfo::mouse, glCompCallBacks::mouseover, glCompMouse::t, view, _ViewInfo::widgets, X, and Y.
Referenced by cb_glutinit().
|
static |
Definition at line 210 of file glutrender.c.
References graphviz_exit().
Referenced by cb_glutinit().
int cb_glutinit | ( | int | w, |
int | h, | ||
int * | argcp, | ||
char * | argv[], | ||
char * | optArg | ||
) |
Definition at line 226 of file glutrender.c.
References cb_display(), cb_drag(), cb_game_mode(), cb_keyboard(), cb_keyboard_up(), cb_mouseclick(), cb_reshape(), cb_special_key(), cb_special_key_up(), and NULL.
Referenced by main().
|
static |
Definition at line 152 of file glutrender.c.
References appmouse_key_press(), glMouseLeftButton, graphviz_exit(), key, menu_click_center(), menu_click_pan(), menu_click_zoom_minus(), menu_click_zoom_plus(), NULL, switch2D3D(), and view.
Referenced by cb_glutinit().
|
static |
Definition at line 175 of file glutrender.c.
References appmouse_key_release(), key, and view.
Referenced by cb_glutinit().
|
static |
Definition at line 91 of file glutrender.c.
References appmouse_left_click_down(), appmouse_left_click_up(), appmouse_middle_click_down(), appmouse_middle_click_up(), appmouse_right_click_down(), appmouse_right_click_up(), _ViewInfo::arcball, begin_x, begin_y, cb_display(), glCompSet::common, dx, dy, glCompCommon::functions, _ViewInfo::g, getGlCompMouseType(), _ArcBall_t::isDragging, glCompCallBacks::mousedown, glCompCallBacks::mouseup, state, view, and _ViewInfo::widgets.
Referenced by cb_glutinit().
|
static |
Definition at line 44 of file glutrender.c.
References _ViewInfo::arcball, GL_VIEWPORT_FACTOR, glcompsetUpdateBorder(), _ViewInfo::h, init_arcBall(), view, _ViewInfo::w, and _ViewInfo::widgets.
Referenced by cb_glutinit().
|
static |
Definition at line 184 of file glutrender.c.
References appmouse_key_press(), key, and view.
Referenced by cb_glutinit().
|
static |
Definition at line 197 of file glutrender.c.
References appmouse_key_release(), key, and view.
Referenced by cb_glutinit().
|
static |
Definition at line 28 of file glutrender.c.
References glMouseLeftButton, glMouseMiddleButton, and glMouseRightButton.
Referenced by cb_mouseclick().
|
static |
Definition at line 22 of file glutrender.c.
Referenced by cb_drag(), and cb_mouseclick().
|
static |
Definition at line 23 of file glutrender.c.
Referenced by cb_drag(), and cb_mouseclick().
|
static |
Definition at line 24 of file glutrender.c.
Referenced by cb_drag(), and cb_mouseclick().
|
static |
Definition at line 25 of file glutrender.c.
Referenced by cb_drag(), and cb_mouseclick().