Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

pen-context.cpp File Reference

Detailed Description

Pen event context implementation.

Definition in file pen-context.cpp.

#include <gdk/gdkkeysyms.h>
#include <cstring>
#include <string>
#include "pen-context.h"
#include "sp-namedview.h"
#include "sp-metrics.h"
#include "desktop.h"
#include "desktop-handles.h"
#include "selection.h"
#include "selection-chemistry.h"
#include "draw-anchor.h"
#include "message-stack.h"
#include "message-context.h"
#include "preferences.h"
#include "sp-path.h"
#include "display/curve.h"
#include "pixmaps/cursor-pen.xpm"
#include "display/canvas-bpath.h"
#include "display/sp-ctrlline.h"
#include "display/sodipodi-ctrl.h"
#include <glibmm/i18n.h>
#include "libnr/nr-point-ops.h"
#include "helper/units.h"
#include "macros.h"
#include "context-fns.h"
#include "tools-switch.h"

Go to the source code of this file.


static void pen_cancel (SPPenContext *const pc)
static void pen_disable_events (SPPenContext *const pc)
static void pen_enable_events (SPPenContext *const pc)
static gint pen_handle_2button_press (SPPenContext *const pc, GdkEventButton const &bevent)
static gint pen_handle_button_press (SPPenContext *const pc, GdkEventButton const &bevent)
static gint pen_handle_button_release (SPPenContext *const pc, GdkEventButton const &revent)
static gint pen_handle_key_press (SPPenContext *const pc, GdkEvent *event)
static gint pen_handle_motion_notify (SPPenContext *const pc, GdkEventMotion const &mevent)
void pen_lastpoint_move (SPPenContext *const pc, gdouble x, gdouble y)
void pen_lastpoint_move_screen (SPPenContext *const pc, gdouble x, gdouble y)
void pen_lastpoint_tocurve (SPPenContext *const pc)
void pen_lastpoint_toline (SPPenContext *const pc)
static int pen_next_paraxial_direction (const SPPenContext *const pc, Geom::Point const &pt, Geom::Point const &origin, guint state)
void pen_redraw_all (SPPenContext *const pc)
static void pen_set_to_nearest_horiz_vert (const SPPenContext *const pc, Geom::Point &pt, guint const state)
void sp_pen_context_cancel_waiting_for_LPE (SPPenContext *pc)
static void sp_pen_context_class_init (SPPenContextClass *klass)
static void sp_pen_context_dispose (GObject *object)
static void sp_pen_context_finish (SPEventContext *ec)
GType sp_pen_context_get_type (void)
static void sp_pen_context_init (SPPenContext *pc)
static gint sp_pen_context_item_handler (SPEventContext *event_context, SPItem *item, GdkEvent *event)
static gint sp_pen_context_root_handler (SPEventContext *ec, GdkEvent *event)
static void sp_pen_context_set (SPEventContext *ec, Inkscape::Preferences::Entry *val)
void sp_pen_context_set_polyline_mode (SPPenContext *const pc)
static void sp_pen_context_setup (SPEventContext *ec)
void sp_pen_context_wait_for_LPE_mouse_clicks (SPPenContext *pc, Inkscape::LivePathEffect::EffectType effect_type, unsigned int num_clicks, bool use_polylines)
static void spdc_endpoint_snap (SPPenContext const *const pc, Geom::Point &p, guint const state)
static void spdc_endpoint_snap_handle (SPPenContext const *const pc, Geom::Point &p, guint const state)
static void spdc_pen_finish (SPPenContext *pc, gboolean closed)
static void spdc_pen_finish_segment (SPPenContext *pc, Geom::Point p, guint state)
static void spdc_pen_set_angle_distance_status_message (SPPenContext *const pc, Geom::Point const p, int pc_point_to_compare, gchar const *message)
static void spdc_pen_set_ctrl (SPPenContext *pc, Geom::Point const p, guint state)
static void spdc_pen_set_initial_point (SPPenContext *pc, Geom::Point const p)
static void spdc_pen_set_subsequent_point (SPPenContext *const pc, Geom::Point const p, bool statusbar, guint status=0)
static void spdc_reset_colors (SPPenContext *pc)


static Geom::Point pen_drag_origin_w (0, 0)
static int pen_last_paraxial_dir = 0
static SPDrawContextClass * pen_parent_class
static bool pen_within_tolerance = false

Generated by  Doxygen 1.6.0   Back to index