Mir
depth_layer.h
Go to the documentation of this file.
1/*
2 * Copyright © Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License version 2 or 3,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef MIR_DEPTH_LAYER_H_
18#define MIR_DEPTH_LAYER_H_
19
20#include "mir_toolkit/common.h"
21
22namespace mir
23{
24
25/**
26* Returns the height of a MirDepthLayer
27*
28* As the name implies, the returned value is usable as an array index (0 is returned for the bottommost layer and there
29* are no gaps between layers). The values returned for each layer are in no way stable across Mir versions, and are only
30* meaningful relative to each other.
31*/
32auto mir_depth_layer_get_index(MirDepthLayer depth_layer) -> unsigned int;
33
34} // namespace mir
35
36#endif // MIR_DEPTH_LAYER_H_
Definition: runner.h:27
auto mir_depth_layer_get_index(MirDepthLayer depth_layer) -> unsigned int
Returns the height of a MirDepthLayer.

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.