Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
context-fns.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_CONTEXT_FNS_H
3#define SEEN_CONTEXT_FNS_H
4
5/*
6 *
7 * Authors:
8 *
9 * Copyright (C)
10 *
11 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
12 */
13
14#include <2geom/forward.h>
15
16class SPDesktop;
17class SPItem;
18
19inline constexpr double goldenratio = 1.61803398874989484820;
20
21namespace Inkscape {
22
23class MessageContext;
24class MessageStack;
25
26bool have_viable_layer(SPDesktop *desktop, MessageContext *message);
27bool have_viable_layer(SPDesktop *desktop, MessageStack *message);
29 Geom::Point const &pt, Geom::Point const &center, int state);
30
31} // namespace Inkscape
32
33#endif // !SEEN_CONTEXT_FNS_H
34
35/*
36 Local Variables:
37 mode:c++
38 c-file-style:"stroustrup"
39 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
40 indent-tabs-mode:nil
41 fill-column:99
42 End:
43*/
44// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Two-dimensional point that doubles as a vector.
Definition point.h:66
Axis aligned, non-empty rectangle.
Definition rect.h:92
To do: update description of desktop.
Definition desktop.h:149
Base class for visual SVG elements.
Definition sp-item.h:109
constexpr double goldenratio
Definition context-fns.h:19
Contains forward declarations of 2geom types.
SPItem * item
Helper class to stream background task notifications as a series of messages.
Geom::Rect snap_rectangular_box(SPDesktop const *desktop, SPItem *item, Geom::Point const &pt, Geom::Point const &center, int state)
bool have_viable_layer(SPDesktop *desktop, MessageContext *message)
Check to see if the current layer is both unhidden and unlocked.
SPDesktop * desktop