Jazz2::Editor::LayersPanel class

List of the layers of the level, with their visibility and lock.

A layer is renamed by a double click on it, and moved in the list by dragging it, by a finger after holding it for a moment. Alt+click on the eye shows only that layer. Each row has a small picture of its layer.

Constructors, destructors, conversion operators

LayersPanel(IEditorContext& session) explicit
~LayersPanel() override

Public functions

void UpdateLayerDrag(std::int32_t from, Vector2f pos)
Shows where a dragged layer would go, the pointer is in pixels of the screen.
void EndLayerDrag(bool drop)
Ends dragging a layer, drop moves it where it was shown to go.
auto GetThumbnail(std::int32_t index) const -> nCine::Texture*
Returns a small picture of a layer, nullptr if there's none yet.
void Update(float timeMult) override
void Draw(Painter& painter) override