Horizon
src
canvas
selection_filter.hpp
1
#pragma once
2
#include <map>
3
#include "common/common.hpp"
4
5
namespace
horizon {
6
class
SelectionFilter {
7
public
:
8
SelectionFilter(
const
class
CanvasGL &c) : ca(c)
9
{
10
}
11
bool
can_select(
const
class
SelectableRef &sel)
const
;
12
13
class
ObjectFilter {
14
public
:
15
std::map<int, bool> layers;
16
bool
other_layers =
false
;
17
};
18
19
std::map<ObjectType, ObjectFilter> object_filter;
20
21
private
:
22
const
CanvasGL &ca;
23
};
24
}
// namespace horizon
Generated by
1.8.20