2 #include "common/common.hpp" 3 #include "util/uuid.hpp" 17 enum class Flag { SELECTED = 1, PRELIGHT = 2 };
18 bool get_flag(Flag f)
const;
19 void set_flag(Flag f,
bool v);
23 bool inside(
const Coordf &c,
float expand = 0)
const;
25 std::array<Coordf, 4> get_corners()
const;
26 } __attribute__((packed));
35 : uuid(uu), type(ty), vertex(v), layer(la)
40 if (type < other.type) {
43 if (type > other.type) {
46 if (uuid < other.uuid) {
49 else if (uuid > other.uuid) {
52 return vertex < other.vertex;
56 return (uuid == other.uuid) && (vertex == other.vertex) && (type == other.type);
70 unsigned int vertex = 0,
int layer = 10000,
bool always =
false);
71 void append(
const UUID &uu, ObjectType ot,
const Coordf ¢er,
unsigned int vertex = 0,
int layer = 10000,
73 void append_angled(
const UUID &uu, ObjectType ot,
const Coordf ¢er,
const Coordf &box_center,
74 const Coordf &box_dim,
float angle,
unsigned int vertex = 0,
int layer = 10000,
76 void append_line(
const UUID &uu, ObjectType ot,
const Coordf &p0,
const Coordf &p1,
float width,
77 unsigned int vertex = 0,
int layer = 10000,
bool always =
false);
81 std::vector<Selectable> items;
82 std::vector<SelectableRef> items_ref;
83 std::map<SelectableRef, unsigned int> items_map;
Definition: selectables_renderer.hpp:5
Definition: selectables.hpp:28
Definition: canvas_gl.hpp:15
zip_uint8_t uint8_t
zip_uint8_t typedef.
Definition: zip.hpp:78
Definition: canvas.hpp:20
Definition: drag_selection.hpp:8
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: selectables.hpp:60
Definition: selectables.hpp:7