knot.h revision bbbbbd459609704904e6c228f27b5db2271b7dd4
#ifndef SEEN_SP_KNOT_H
#define SEEN_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 "knot-enums.h"
#include <stddef.h>
#include "enums.h"
#include "sp-item.h"
struct SPCanvasItem;
/**
* 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).
*/
int ref_count;
double pressure; /**< The tablet pen pressure when the knot is being dragged. */
/**
* Show knot on its canvas.
*/
void show();
/**
* Hide knot on its canvas.
*/
void hide();
/**
* Set flag in knot, with side effects.
*/
/**
* Update knot's pixbuf and set its control state.
*/
void updateCtrl();
/**
* Request or set new position for knot.
*/
/**
* 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.
*/
/**
*/
void _setCtrlState();
};
#endif // SEEN_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:fileencoding=utf-8:textwidth=99 :