LayersPanel class
#include <Jazz2/Editor/Shell/ShellPanels.h>
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,
dropmoves it where it was shown to go. -
auto GetThumbnail(std::
int32_t index) const -> nCine:: Texture* - Returns a small picture of a layer,
nullptrif there's none yet. - void Update(float timeMult) override
- void Draw(Painter& painter) override