Graphviz 13.0.0~dev.20241220.2304
|
#include "glutrender.h"
#include "viewport.h"
#include "arcball.h"
#include "appmouse.h"
#include "glexpose.h"
#include "glcompui.h"
#include <util/exit.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 75 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_drag(), appmouse_move(), glCompSet_::base, begin_x, begin_y, cb_display(), glCompObj_::common, glCompMouse::down, glCompMouse::dragX, glCompMouse::dragY, dx, dy, glCompCommon::functions, _ViewInfo::mouse, glCompCallBacks::mouseover, view, _ViewInfo::widgets, X, and Y.
Referenced by cb_glutinit().
|
static |
Definition at line 206 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 222 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 148 of file glutrender.c.
References appmouse_key_press(), glMouseLeftButton, graphviz_exit(), 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 171 of file glutrender.c.
References appmouse_key_release(), and view.
Referenced by cb_glutinit().
|
static |
Definition at line 90 of file glutrender.c.
References appmouse_left_click_down(), appmouse_middle_click_down(), appmouse_right_click_down(), appmouse_up(), _ViewInfo::arcball, glCompSet_::base, begin_x, begin_y, cb_display(), glCompObj_::common, dx, dy, glCompCommon::functions, _ViewInfo::g, getGlCompMouseType(), _ArcBall_t::isDragging, glCompCallBacks::mousedown, glCompCallBacks::mouseup, view, and _ViewInfo::widgets.
Referenced by cb_glutinit().
|
static |
Definition at line 43 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 180 of file glutrender.c.
References appmouse_key_press(), and view.
Referenced by cb_glutinit().
|
static |
Definition at line 193 of file glutrender.c.
References appmouse_key_release(), and view.
Referenced by cb_glutinit().
|
static |
Definition at line 27 of file glutrender.c.
References glMouseLeftButton, glMouseMiddleButton, and glMouseRightButton.
Referenced by cb_mouseclick().
|
static |
Definition at line 21 of file glutrender.c.
Referenced by cb_drag(), and 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().