connector-context.h revision ce476a1fb346f635574c285a4815b8de8a6cdb68
#ifndef SEEN_CONNECTOR_CONTEXT_H
#define SEEN_CONNECTOR_CONTEXT_H
/*
* Connector creation tool
*
* Authors:
* Michael Wybrow <mjwybrow@users.sourceforge.net>
*
* Copyright (C) 2005 Michael Wybrow
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <stddef.h>
#include <sigc++/connection.h>
#include "event-context.h"
#include "libavoid/connector.h"
#include "connection-points.h"
#define SP_CONNECTOR_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_CONNECTOR_CONTEXT, SPConnectorContext))
#define SP_CONNECTOR_CONTEXT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), SP_TYPE_CONNECTOR_CONTEXT, SPConnectorContextClass))
struct SPKnot;
struct SPCurve;
{
}
enum {
};
enum {
};
/** \invar npoints in {0, 2}. */
/* The tool mode can be connector drawing or
connection points editing.
*/
unsigned int mode : 1;
unsigned int state : 4;
// Red curve
// Green curve
// The new connector
bool isOrthogonal;
// The active shape
// Same as above, but for the active connector
// The activehandle
// The selected handle, used in editing mode
};
void cc_selection_set_avoid(bool const set_ignore);
#endif /* !SEEN_CONNECTOR_CONTEXT_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 :