aseprite/src/doc/layer_list.h
David Capello fbc8d72f1f Add doc::are_layers_adjacent() function
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.
2016-08-11 15:15:53 -03:00

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