pcb 4.1.1
An interactive printed circuit board layout editor.

gui-output-events.c File Reference

#include "gui.h"
#include "gtkhid.h"
#include "hid/common/hid_resource.h"
#include <gdk/gdkkeysyms.h>
#include "action.h"
#include "crosshair.h"
#include "draw.h"
#include "error.h"
#include "misc.h"
#include "set.h"
#include "find.h"
#include "search.h"
#include "rats.h"
Include dependency graph for gui-output-events.c:

Go to the source code of this file.

Defines

#define TOOLTIP_UPDATE_DELAY   200

Functions

void ghid_port_ranges_changed (void)
void ghid_port_ranges_scale (void)
void ghid_get_coords (const char *msg, Coord *x, Coord *y)
gboolean ghid_note_event_location (GdkEventButton *ev)
static gboolean ghid_idle_cb (gpointer data)
gboolean ghid_port_key_release_cb (GtkWidget *drawing_area, GdkEventKey *kev, gpointer data)
gboolean ghid_port_key_press_cb (GtkWidget *drawing_area, GdkEventKey *kev, gpointer data)
gboolean ghid_port_button_press_cb (GtkWidget *drawing_area, GdkEventButton *ev, gpointer data)
gboolean ghid_port_button_release_cb (GtkWidget *drawing_area, GdkEventButton *ev, gpointer data)
gboolean ghid_port_drawing_area_configure_event_cb (GtkWidget *widget, GdkEventConfigure *ev, GHidPort *out)
static char * describe_location (Coord X, Coord Y)
static gboolean check_object_tooltips (GHidPort *out)
static void cancel_tooltip_update (GHidPort *out)
static void queue_tooltip_update (GHidPort *out)
gint ghid_port_window_motion_cb (GtkWidget *widget, GdkEventMotion *ev, GHidPort *out)
gint ghid_port_window_enter_cb (GtkWidget *widget, GdkEventCrossing *ev, GHidPort *out)
gint ghid_port_window_leave_cb (GtkWidget *widget, GdkEventCrossing *ev, GHidPort *out)
gint ghid_port_window_mouse_scroll_cb (GtkWidget *widget, GdkEventScroll *ev, GHidPort *out)

Define Documentation

#define TOOLTIP_UPDATE_DELAY   200

Definition at line 53 of file gui-output-events.c.

Referenced by queue_tooltip_update().


Function Documentation

static void cancel_tooltip_update ( GHidPort out) [static]

Definition at line 481 of file gui-output-events.c.

References GHidPort::tooltip_update_timeout_id.

Referenced by queue_tooltip_update().

static gboolean check_object_tooltips ( GHidPort out) [static]

Definition at line 462 of file gui-output-events.c.

References GHidPort::crosshair_x, GHidPort::crosshair_y, describe_location(), GHidPort::drawing_area, FALSE, and GHidPort::tooltip_update_timeout_id.

Referenced by queue_tooltip_update().

Here is the call graph for this function:

static char* describe_location ( Coord  X,
Coord  Y 
) [static]
void ghid_get_coords ( const char *  msg,
Coord x,
Coord y 
)

Definition at line 111 of file gui-output-events.c.

References ghid_get_user_xy(), ghid_port, gport, GHidPort::has_entered, GHidPort::pcb_x, and GHidPort::pcb_y.

Referenced by REGISTER_FLAGS().

Here is the call graph for this function:

static gboolean ghid_idle_cb ( gpointer  data) [static]
gboolean ghid_port_button_press_cb ( GtkWidget *  drawing_area,
GdkEventButton *  ev,
gpointer  data 
)
gboolean ghid_port_button_release_cb ( GtkWidget *  drawing_area,
GdkEventButton *  ev,
gpointer  data 
)
gboolean ghid_port_drawing_area_configure_event_cb ( GtkWidget *  widget,
GdkEventConfigure *  ev,
GHidPort out 
)
gboolean ghid_port_key_press_cb ( GtkWidget *  drawing_area,
GdkEventKey *  kev,
gpointer  data 
)
gboolean ghid_port_key_release_cb ( GtkWidget *  drawing_area,
GdkEventKey *  kev,
gpointer  data 
)
void ghid_port_ranges_changed ( void  )

Definition at line 56 of file gui-output-events.c.

References ghid_invalidate_all(), ghidgui, gport, GhidGui::h_range, GhidGui::v_range, GHidPort::view, view_data::x0, and view_data::y0.

Referenced by h_adjustment_changed_cb(), pan_common(), and v_adjustment_changed_cb().

Here is the call graph for this function:

gint ghid_port_window_enter_cb ( GtkWidget *  widget,
GdkEventCrossing *  ev,
GHidPort out 
)
gint ghid_port_window_leave_cb ( GtkWidget *  widget,
GdkEventCrossing *  ev,
GHidPort out 
)

Definition at line 570 of file gui-output-events.c.

References FALSE, ghid_screen_update(), and GHidPort::has_entered.

Referenced by ghid_build_pcb_top_window().

Here is the call graph for this function:

gint ghid_port_window_motion_cb ( GtkWidget *  widget,
GdkEventMotion *  ev,
GHidPort out 
)

Definition at line 510 of file gui-output-events.c.

References view_data::coord_per_px, FALSE, ghid_note_event_location(), ghid_pan_view_rel(), gport, GHidPort::panning, queue_tooltip_update(), and GHidPort::view.

Referenced by ghid_build_pcb_top_window().

Here is the call graph for this function:

gint ghid_port_window_mouse_scroll_cb ( GtkWidget *  widget,
GdkEventScroll *  ev,
GHidPort out 
)

Definition at line 598 of file gui-output-events.c.

References do_mouse_action(), ghid_modifier_keys_state(), and TRUE.

Referenced by ghid_interface_input_signals_connect().

Here is the call graph for this function:

static void queue_tooltip_update ( GHidPort out) [static]