Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_snap_config.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SNAP_CONFIG_H
8#define __KIS_SNAP_CONFIG_H
9
10
12{
13public:
14 KisSnapConfig(bool loadValues = true);
16
17 bool orthogonal() const {
18 return m_orthogonal;
19 }
20 void setOrthogonal(bool value) {
22 }
23
24 bool node() const {
25 return m_node;
26 }
27 void setNode(bool value) {
28 m_node = value;
29 }
30
31 bool extension() const {
32 return m_extension;
33 }
34 void setExtension(bool value) {
36 }
37
38 bool intersection() const {
39 return m_intersection;
40 }
43 }
44
45 bool boundingBox() const {
46 return m_boundingBox;
47 }
48 void setBoundingBox(bool value) {
50 }
51
52 bool imageBounds() const {
53 return m_imageBounds;
54 }
55 void setImageBounds(bool value) {
57 }
58
59 bool imageCenter() const {
60 return m_imageCenter;
61 }
62 void setImageCenter(bool value) {
64 }
65
66 bool toPixel() const {
67 return m_toPixel;
68 }
69 void setToPixel(bool value) {
71 }
72
73 void saveStaticData() const;
74 void loadStaticData();
75
76private:
78 bool m_node;
85};
86
87#endif /* __KIS_SNAP_CONFIG_H */
float value(const T *src, size_t ch)
bool orthogonal() const
void setImageCenter(bool value)
void setIntersection(bool value)
bool node() const
bool toPixel() const
bool imageBounds() const
void setOrthogonal(bool value)
bool boundingBox() const
void saveStaticData() const
void setExtension(bool value)
KisSnapConfig(bool loadValues=true)
void setToPixel(bool value)
void setBoundingBox(bool value)
bool intersection() const
bool extension() const
void setImageBounds(bool value)
bool imageCenter() const
void setNode(bool value)