mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 03:40:57 +00:00
It'll be useful to know if a range operation (e.g. restack layers) will be applied to adjacent layers (i.e. a range of layers like in previous Aseprite versions), or to a non-adjacent set of layers.
26 lines
560 B
C++
26 lines
560 B
C++
// Aseprite Document Library
|
|
// Copyright (c) 2001-2016 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef DOC_LAYER_LIST_H_INCLUDED
|
|
#define DOC_LAYER_LIST_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
namespace doc {
|
|
|
|
class Layer;
|
|
|
|
typedef std::vector<Layer*> LayerList;
|
|
typedef int layer_t;
|
|
|
|
layer_t find_layer_index(const LayerList& layers, const Layer* layer);
|
|
bool are_layers_adjacent(const LayerList& layers);
|
|
|
|
} // namespace doc
|
|
|
|
#endif // DOC_LAYER_LIST_H_INCLUDED
|