draw-anchor.cpp revision 6129af7cc5b723223e9617614c931936e5190421
/** \file
* Anchors implementation.
*/
/*
* Authors:
* Copyright (C) 2000 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
* Copyright (C) 2002 Lauris Kaplinski
* Copyright (C) 2004 Monash University
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "draw-anchor.h"
#include "desktop.h"
#include "desktop-handles.h"
#include "event-context.h"
#include "display/sodipodi-ctrl.h"
/**
* Creates an anchor object and initializes it.
*/
{
"size", 6.0,
"filled", 0,
"fill_color", 0xff00007f,
"stroked", 1,
"stroke_color", 0x000000ff,
NULL);
return a;
}
/**
* Destroys the anchor's canvas item and frees the anchor object.
*/
{
}
return NULL;
}
#define A_SNAP 4.0
/**
* Test if point is near anchor, if so fill anchor on canvas and return
* pointer to it or NULL.
*/
{
}
return anchor;
}
}
return NULL;
}
/*
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 :