knot.h revision 582afd9bccb164930731f8e2454c2da25349ab51
#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 <libnr/nr-point.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).
*/
struct SPKnot {
}
}
}
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 :