ruler.cpp revision 902f97e6765fbd5ca8d4aee301ec3fc32d360f39
911N/A * in desktop-events.cpp
919N/A#ifdef HAVE_CONFIG_H
561N/A#include "display/sp-canvas.h"
561N/A#include "display/guideline.h"
837N/A#include "desktop-handles.h"
561N/A#include "document.h"
911N/A#include "document-undo.h"
911N/A#include "sp-namedview.h"
561N/Anamespace Deprecated {
namespace Inkscape {
namespace UI {
namespace Widget {
_canvas_widget = &w;
_dragging = false;
_guide = 0;
if (!_dt) return;
_dragging = true;
_guide = sp_guideline_new(_dt->guides, NULL, event_dt, _horiz_f ? Geom::Point(0.,1.) : Geom::Point(1.,0.));
if (_dragging) {
_guide = 0;
_dragging = false;
_dt = 0;
_r = static_cast<Gtk::Deprecated::HRuler*>(Glib::wrap(static_cast<GtkWidget*> (sp_ruler_new(GTK_ORIENTATION_HORIZONTAL))));
_horiz_f = true;
_dt = 0;
_r = static_cast<Gtk::Deprecated::VRuler*>(Glib::wrap(static_cast<GtkWidget*> (sp_ruler_new(GTK_ORIENTATION_VERTICAL))));
_horiz_f = false;