|
Graphviz 14.0.3~dev.20251029.0425
|
#include <stdbool.h>#include <stdlib.h>#include <math.h>#include "gui/gui.h"#include "viewport.h"#include "gltemplate.h"#include <glcomp/glutils.h>#include <util/exit.h>#include <util/list.h>#include "glexpose.h"#include "glmotion.h"#include <glcomp/glcompset.h>#include "viewportcamera.h"#include "gui/menucallbacks.h"#include "arcball.h"#include "gui/appmouse.h"Go to the source code of this file.
Functions | |
| static glMouseButtonType | getGlCompMouseType (int n) |
| static void | realize (GtkWidget *widget, void *data) |
| static gboolean | configure_event (GtkWidget *widget, GdkEventConfigure *event, void *data) |
| gboolean | expose_event (GtkWidget *widget, GdkEventExpose *event, void *data) |
| static gboolean | button_press_event (GtkWidget *widget, GdkEventButton *event, void *data) |
| static gboolean | button_release_event (GtkWidget *widget, GdkEventButton *event, void *data) |
| static gboolean | key_press_event (GtkWidget *widget, GdkEventKey *event, void *data) |
| static gboolean | key_release_event (GtkWidget *widget, GdkEventKey *event, void *data) |
| static gboolean | scroll_event (GtkWidget *widget, GdkEventScroll *event, void *data) |
| static gboolean | motion_notify_event (GtkWidget *widget, GdkEventMotion *event, void *data) |
| GdkGLConfig * | configure_gl (void) |
| void | create_window (GdkGLConfig *glconfig, GtkWidget *vbox) |
Variables | |
| static float | begin_x = 0.0 |
| static float | begin_y = 0.0 |
|
static |
Definition at line 179 of file gltemplate.c.
References appmouse_left_click_down(), appmouse_middle_click_down(), appmouse_right_click_down(), glCompSet_::base, begin_x, begin_y, glCompObj_::common, _ViewInfo::drawing_area, expose_event(), glCompCommon::functions, _ViewInfo::g, getGlCompMouseType(), glCompCallBacks::mousedown, NULL, view, and _ViewInfo::widgets.
Referenced by create_window().
|
static |
Definition at line 209 of file gltemplate.c.
References appmouse_up(), _ViewInfo::arcball, glCompSet_::base, glCompObj_::common, _ViewInfo::drawing_area, expose_event(), glCompCommon::functions, getGlCompMouseType(), _ArcBall_t::isDragging, glCompCallBacks::mouseup, NULL, view, and _ViewInfo::widgets.
Referenced by create_window().
|
static |
Definition at line 94 of file gltemplate.c.
References _ViewInfo::arcball, GL_VIEWPORT_FACTOR, glcompsetUpdateBorder(), _ViewInfo::h, init_arcBall(), view, _ViewInfo::w, and _ViewInfo::widgets.
Referenced by create_window().
| GdkGLConfig * configure_gl | ( | void | ) |
Definition at line 312 of file gltemplate.c.
References graphviz_exit(), and NULL.
Referenced by mShowToolBoxSlot(), and windowedMode().
| void create_window | ( | GdkGLConfig * | glconfig, |
| GtkWidget * | vbox | ||
| ) |
Definition at line 341 of file gltemplate.c.
References button_press_event(), button_release_event(), configure_event(), _ViewInfo::drawing_area, expose_event(), key_press_event(), key_release_event(), motion_notify_event(), NULL, realize(), scroll_event(), view, and xml.
Referenced by windowedMode().
| gboolean expose_event | ( | GtkWidget * | widget, |
| GdkEventExpose * | event, | ||
| void * | data | ||
| ) |
Definition at line 145 of file gltemplate.c.
References _ViewInfo::activeGraph, add_graph_to_viewport_from_file(), close_graph(), glexpose_main(), _ViewInfo::initFile, _ViewInfo::initFileName, and view.
Referenced by button_press_event(), button_release_event(), create_window(), gl_main_expose(), glexpose(), and refreshViewport().
|
static |
Definition at line 32 of file gltemplate.c.
References glMouseLeftButton, glMouseMiddleButton, and glMouseRightButton.
Referenced by button_press_event(), and button_release_event().
|
static |
Definition at line 230 of file gltemplate.c.
References appmouse_key_press(), and view.
Referenced by create_window().
|
static |
Definition at line 239 of file gltemplate.c.
References appmouse_key_release(), and view.
Referenced by create_window().
|
static |
Definition at line 276 of file gltemplate.c.
References appmouse_drag(), appmouse_move(), glCompSet_::base, begin_x, begin_y, glCompObj_::common, glCompMouse::down, glCompMouse::dragX, glCompMouse::dragY, glCompCommon::functions, LIST_IS_EMPTY, _ViewInfo::mouse, glCompCallBacks::mouseover, topview::sel, _selection::selPoly, _ViewInfo::Topview, view, and _ViewInfo::widgets.
Referenced by create_window().
|
static |
Definition at line 52 of file gltemplate.c.
References glCompColor::A, glCompColor::B, _ViewInfo::bgColor, glCompColor::G, glCompColor::R, and view.
Referenced by create_window().
|
static |
Definition at line 249 of file gltemplate.c.
References glCompMouse::dragX, glexpose(), glmotion_zoom(), _ViewInfo::mouse, NULL, _ViewInfo::timer2, and view.
Referenced by create_window().
|
static |
Definition at line 28 of file gltemplate.c.
Referenced by button_press_event(), and motion_notify_event().
|
static |
Definition at line 29 of file gltemplate.c.
Referenced by button_press_event(), and motion_notify_event().