Minsky: 3.17.0
minsky::Bookmark Struct Reference

#include <bookmark.h>

Collaboration diagram for minsky::Bookmark:
Collaboration graph

Public Member Functions

 Bookmark ()
 
 Bookmark (const std::string &n)
 
 Bookmark (float x, float y, float z, const std::string &n)
 
bool operator< (const Bookmark &x) const
 

Public Attributes

float x =0
 
float y =0
 
float zoom =1
 
std::string name
 

Detailed Description

Definition at line 26 of file bookmark.h.

Constructor & Destructor Documentation

◆ Bookmark() [1/3]

minsky::Bookmark::Bookmark ( )
inline

Definition at line 30 of file bookmark.h.

30 {}

◆ Bookmark() [2/3]

minsky::Bookmark::Bookmark ( const std::string &  n)
inline

Definition at line 31 of file bookmark.h.

31 : name(n) {}
std::string name
Definition: bookmark.h:29

◆ Bookmark() [3/3]

minsky::Bookmark::Bookmark ( float  x,
float  y,
float  z,
const std::string &  n 
)
inline

Definition at line 32 of file bookmark.h.

32  :
33  x(x), y(y), zoom(z), name(n) {}
std::string name
Definition: bookmark.h:29

Member Function Documentation

◆ operator<()

bool minsky::Bookmark::operator< ( const Bookmark x) const
inline

Definition at line 34 of file bookmark.h.

References name, and x.

35  {return name<x.name;}
std::string name
Definition: bookmark.h:29

Member Data Documentation

◆ name

std::string minsky::Bookmark::name

Definition at line 29 of file bookmark.h.

Referenced by operator<().

◆ x

float minsky::Bookmark::x =0

Definition at line 28 of file bookmark.h.

Referenced by minsky::Group::gotoBookmark_b(), and operator<().

◆ y

float minsky::Bookmark::y =0

Definition at line 28 of file bookmark.h.

Referenced by minsky::Group::gotoBookmark_b().

◆ zoom

float minsky::Bookmark::zoom =1

Definition at line 28 of file bookmark.h.

Referenced by minsky::Group::gotoBookmark_b().


The documentation for this struct was generated from the following file: