Code

Use golden ratio as additional constrained ratio during Ctrl+dragging rectangles...
[inkscape.git] / src / context-fns.h
1 #include <gdk/gdkevents.h>
2 struct SPDesktop;
4 const double goldenratio = 1.61803398874989484820; // golden ratio
6 namespace Inkscape
7 {
9 class MessageContext;
10 class MessageStack;
12 extern bool have_viable_layer(SPDesktop *desktop, MessageContext *message);
13 extern bool have_viable_layer(SPDesktop *desktop, MessageStack *message);
14 ::NR::Rect snap_rectangular_box(SPDesktop const *desktop, SPItem *item,
15                               NR::Point const &pt, NR::Point const &center, int state);
16 NR::Point setup_for_drag_start(SPDesktop *desktop, SPEventContext* ec, GdkEvent *ev);
18 }
20 /*
21   Local Variables:
22   mode:c++
23   c-file-style:"stroustrup"
24   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
25   indent-tabs-mode:nil
26   fill-column:99
27   End:
28 */
29 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :