2014-10-20 22:21:31 -03:00
|
|
|
// Aseprite Document Library
|
2016-06-08 16:46:15 -03:00
|
|
|
// Copyright (c) 2001-2016 David Capello
|
2014-10-20 22:21:31 -03:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2015-09-14 17:37:21 -03:00
|
|
|
#include <vector>
|
2014-10-20 22:21:31 -03:00
|
|
|
|
|
|
|
namespace doc {
|
|
|
|
|
|
|
|
class Layer;
|
|
|
|
|
2015-09-14 17:37:21 -03:00
|
|
|
typedef std::vector<Layer*> LayerList;
|
2016-08-11 14:22:45 -03:00
|
|
|
typedef int layer_t;
|
2014-10-20 22:21:31 -03:00
|
|
|
|
2016-08-11 14:30:44 -03:00
|
|
|
layer_t find_layer_index(const LayerList& layers, const Layer* layer);
|
2016-08-11 15:15:53 -03:00
|
|
|
bool are_layers_adjacent(const LayerList& layers);
|
2016-08-11 14:30:44 -03:00
|
|
|
|
2014-10-20 22:21:31 -03:00
|
|
|
} // namespace doc
|
|
|
|
|
|
|
|
#endif // DOC_LAYER_LIST_H_INCLUDED
|