14#include <lagrange/ui/api.h>
15#include <lagrange/ui/Entity.h>
16#include <lagrange/ui/components/Layer.h>
25 constexpr static const LayerIndex Default = 0;
26 constexpr static const LayerIndex Selection = 255 - 1;
27 constexpr static const LayerIndex Hover = 255 - 2;
28 constexpr static const LayerIndex NoShadow = 255 - 3;
32LA_UI_API
void add_to_layer(Registry& registry, Entity e, LayerIndex index);
34LA_UI_API
void remove_from_layer(Registry& registry, Entity e, LayerIndex index);
36LA_UI_API
bool is_in_layer(Registry& registry, Entity e, LayerIndex index);
38LA_UI_API
bool is_in_any_layers(Registry& registry, Entity e,
Layer layers_bitset);
40LA_UI_API
bool is_visible_in(
41 const Registry& registry,
43 const Layer& visible_layers,
44 const Layer& hidden_layers);
46LA_UI_API LayerIndex get_next_available_layer_index(Registry& r);
48LA_UI_API LayerIndex register_layer_name(Registry& registry,
const std::string& name, LayerIndex index);
49LA_UI_API LayerIndex register_layer_name(Registry& registry,
const std::string& name);
52LA_UI_API
const std::string& get_layer_name(Registry& registry, LayerIndex index);
54LA_UI_API
void register_default_layer_names(Registry& registry);
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
Main namespace for Lagrange.
Definition: AABBIGL.h:30