22 GdkEventMotion * gevent,
42 *yoffset += oldy - gevent->y;
44 oldx = gevent->x, oldy = gevent->y;
55 gboolean
dozooming(GtkWidget * widg, GdkEventScroll * gevent, gpointer
data)
57 const bool up = gevent->direction == GDK_SCROLL_UP;
73 (
int)gevent->x, widg->allocation.height/2);
75 const int old_pixy =
pixy, old_pixx =
pixx;
99 *yoffset += newtotop - (
int)gevent->y;
104 *other_yoffset += other_newtotop - widg->allocation.height/2;
T max(const caf::Proxy< T > &a, T b)
gboolean redraw_event(__attribute__((unused)) GtkWidget *widg, __attribute__((unused)) GdkEventExpose *ee, __attribute__((unused)) gpointer data)
int pixx_from_pixy(const int y)
Supply basic geometry functions.
void dopanning(const noe_view_t V, GdkEventMotion *gevent)
const Var kY([](const caf::SRProxy *sr){float tmp=0.f;if(sr->mc.nu.empty()) return tmp;tmp=sr->mc.nu[0].y;return tmp;})
const XML_Char const XML_Char * data
gboolean mousebuttonpress(__attribute__((unused)) GtkWidget *widg, GdkEventMotion *gevent, __attribute__((unused)) gpointer data)
__attribute__((unused)) static std
std::vector< noeevent > theevents
int det_to_screen_y(const int plane, const int cell)
int det_to_screen_x(const int plane)
gboolean dozooming(GtkWidget *widg, GdkEventScroll *gevent, gpointer data)
int screen_to_plane_unbounded(const noe_view_t view, const int x)
int screen_to_cell_unbounded(const noe_view_t view, const int x, const int y)