knot.h revision 6d8430ca47c35cff45dee59e1f9c025567d0af49
246N/A * Declarations for SPKnot: Desktop-bound visual control object. 281N/A * Lauris Kaplinski <lauris@kaplinski.com> 131N/A * Copyright (C) 1999-2002 authors 131N/A * Copyright (C) 2001-2002 Ximian, Inc. 131N/A * Released under GNU GPL, read the file 'COPYING' for more information 1456N/A * Desktop-bound visual control object. 1318N/A * A knot is a draggable object, with callbacks to change something by 1318N/A * dragging it, visuably represented by a canvas item (mostly square). 131N/A double pressure;
/**< The tablet pen pressure when the knot is being dragged. */ 131N/A sigc::signal<void, Geom::Point const &, Geom::Point const &, guint> _moved_signal; 131N/A sigc::signal<void, guint> _click_signal; 131N/A sigc::signal<Geom::Point> _ungrabbed_signal; 131N/A //TODO: all the members above should eventualle become private, accessible via setters/getters * These are unconditional. /** Request knot to move to absolute position. */ /** Find complex distance from knot to point. */ * Registers SPKnot class and returns its type number. * Return new knot object. * Show knot on its canvas. * Hide knot on its canvas. * Set flag in knot, with side effects. * Update knot's pixbuf and set its control state. * Request or set new position for knot. * Return distance of point to knot's position; unused. * Update knot for dragging and tell canvas an item was grabbed. * Move knot to new position and emits "moved" signal. * Move knot to new position, without emitting a MOVED signal. * Returns position of knot. c-file-style:"stroustrup" c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :