diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/knot-holder-entity.h | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/knot-holder-entity.h')
| -rw-r--r-- | src/knot-holder-entity.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/knot-holder-entity.h b/src/knot-holder-entity.h new file mode 100644 index 000000000..1e9001e67 --- /dev/null +++ b/src/knot-holder-entity.h @@ -0,0 +1,62 @@ +#ifndef SEEN_KNOT_HOLDER_ENTITY_H +#define SEEN_KNOT_HOLDER_ENTITY_H + +/** \file + * SPKnotHolderEntity definition. + * + * Authors: + * Mitsuru Oka <oka326@parkcity.ne.jp> + * + * Copyright (C) 1999-2001 Lauris Kaplinski + * Copyright (C) 2000-2001 Ximian, Inc. + * Copyright (C) 2001 Mitsuru Oka + * Copyright (C) 2004 Monash University + * + * Released under GNU GPL + */ + +#include <glib/gtypes.h> + +struct SPItem; +struct SPKnot; +namespace NR { +class Point; +} + +/// SPKnotHolderEntity definition. +struct SPKnotHolderEntity { + SPKnot *knot; + + /** Connection to \a knot's "moved" signal. */ + guint handler_id; + + /** + * Called solely from knot_moved_handler. + * + * \param p Requested position of the knot, in item coordinates + * \param origin Position where the knot started being dragged + * \param state GTK event state (for keyboard modifiers) + */ + void (* knot_set) (SPItem *item, NR::Point const &p, NR::Point const &origin, guint state); + + /** + * Returns the position of the knot representation, in item coordinates. + */ + NR::Point (* knot_get) (SPItem *item); + + void (* knot_click) (SPItem *item, guint state); +}; + + +#endif /* !SEEN_KNOT_HOLDER_ENTITY_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 : |
