Minsky: 3.17.0
bookmark.h
Go to the documentation of this file.
1
/*
2
@copyright Steve Keen 2018
3
@author Russell Standish
4
This file is part of Minsky.
5
6
Minsky is free software: you can redistribute it and/or modify it
7
under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
Minsky is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with Minsky. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef BOOKMARK_H
21
#define BOOKMARK_H
22
#include <string>
23
24
namespace
minsky
25
{
26
struct
Bookmark
27
{
28
float
x
=0,
y
=0,
zoom
=1;
29
std::string
name
;
30
Bookmark
() {}
31
Bookmark
(
const
std::string& n):
name
(n) {}
32
Bookmark
(
float
x
,
float
y
,
float
z,
const
std::string& n):
33
x
(
x
),
y
(
y
),
zoom
(z),
name
(n) {}
34
bool
operator<
(
const
Bookmark
&
x
)
const
35
{
return
name
<
x
.name;}
36
};
37
}
38
39
#include "bookmark.cd"
40
#include "bookmark.xcd"
41
#endif
minsky::Bookmark::Bookmark
Bookmark(float x, float y, float z, const std::string &n)
Definition:
bookmark.h:32
minsky::Bookmark::name
std::string name
Definition:
bookmark.h:29
minsky::Bookmark::Bookmark
Bookmark()
Definition:
bookmark.h:30
minsky::Bookmark::y
float y
Definition:
bookmark.h:28
minsky
Definition:
constMap.h:22
minsky::Bookmark::zoom
float zoom
Definition:
bookmark.h:28
minsky::Bookmark::x
float x
Definition:
bookmark.h:28
minsky::Bookmark
Definition:
bookmark.h:26
minsky::Bookmark::operator<
bool operator<(const Bookmark &x) const
Definition:
bookmark.h:34
minsky::Bookmark::Bookmark
Bookmark(const std::string &n)
Definition:
bookmark.h:31
schema
bookmark.h
Generated on Wed Jun 18 2025 16:22:22 for Minsky: 3.17.0 by
1.8.14