knot.h revision 41cb516a78b9e54daf81ca4a7e7fc55164c03dfa
#ifndef __SP_KNOT_H__
#define __SP_KNOT_H__
/** \file
* Declarations for SPKnot: Desktop-bound visual control object.
*/
/*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 1999-2002 authors
* Copyright (C) 2001-2002 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtk/gtkenums.h>
#include "display/display-forward.h"
#include "forward.h"
#include "knot-enums.h"
#define SP_TYPE_KNOT (sp_knot_get_type())
/**
* Desktop-bound visual control object.
*
* A knot is a draggable object, with callbacks to change something by
* dragging it, visuably represented by a canvas item (mostly square).
*/
double pressure; /**< The tablet pen pressure when the knot is being dragged. */
// C++ signals
/**
sigc::signal<void, Geom::Point const &, Geom::Point const &, guint> _moved_signal;
sigc::signal<void, guint> _click_signal;
sigc::signal<Geom::Point> _ungrabbed_signal;
**/
}
}
}
if (cursor[SP_KNOT_STATE_NORMAL]) {
}
if (normal) {
}
if (cursor[SP_KNOT_STATE_MOUSEOVER]) {
}
if (mouseover) {
}
if (cursor[SP_KNOT_STATE_DRAGGING]) {
}
if (dragging) {
}
}
};
/// The SPKnot vtable.
struct SPKnotClass {
/*
* These are unconditional.
*/
/** Request knot to move to absolute position. */
/** Find complex distance from knot to point. */
};
/** Moves knot and emits "moved" signal. */
/** Moves knot without any signal. */
#endif /* !__SP_KNOT_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :