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
16
class
SPDesktop
;
17
class
SPItem
;
18
19
inline
constexpr
double
goldenratio
= 1.61803398874989484820;
20
21
namespace
Inkscape
{
22
23
class
MessageContext;
24
class
MessageStack;
25
26
bool
have_viable_layer
(
SPDesktop
*
desktop
, MessageContext *message);
27
bool
have_viable_layer
(
SPDesktop
*
desktop
, MessageStack *message);
28
Geom::Rect
snap_rectangular_box
(
SPDesktop
const
*
desktop
,
SPItem
*
item
,
29
Geom::Point
const
&pt,
Geom::Point
const
¢er,
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 :
Geom::Point
Two-dimensional point that doubles as a vector.
Definition
point.h:66
Geom::Rect
Axis aligned, non-empty rectangle.
Definition
rect.h:92
SPDesktop
To do: update description of desktop.
Definition
desktop.h:149
SPItem
Base class for visual SVG elements.
Definition
sp-item.h:109
goldenratio
constexpr double goldenratio
Definition
context-fns.h:19
forward.h
Contains forward declarations of 2geom types.
item
SPItem * item
Definition
imagemagick.cpp:43
Inkscape
Helper class to stream background task notifications as a series of messages.
Definition
actions-canvas-snapping.h:27
Inkscape::snap_rectangular_box
Geom::Rect snap_rectangular_box(SPDesktop const *desktop, SPItem *item, Geom::Point const &pt, Geom::Point const ¢er, int state)
Definition
context-fns.cpp:91
Inkscape::have_viable_layer
bool have_viable_layer(SPDesktop *desktop, MessageContext *message)
Check to see if the current layer is both unhidden and unlocked.
Definition
context-fns.cpp:42
desktop
SPDesktop * desktop
Definition
tabs-widget.cpp:70
src
context-fns.h
Generated on Sun Jun 15 2025 04:01:06 for Inkscape by
1.9.8