Welcome to mirror list, hosted at ThFree Co, Russian Federation.

depth_constants.hpp « graphics - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b7cb3c0423d08683fa9a9b1245897670658784c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include "graphics/defines.hpp"

namespace graphics
{
  static const int debugDepth = maxDepth;
  static const int benchmarkDepth = maxDepth;

  static const int compassDepth = maxDepth;
  static const int rulerDepth = maxDepth;
  static const int countryStatusDepth = maxDepth - 10;

  /// @todo 100 is a temporary solution fo iOS.
  /// Need to review logic of gui elements, glyphs and symbols caching
  /// (display_list_cache.dpp). Depth is hardcoded there.
  static const int balloonContentInc = 100;
  static const int balloonBaseDepth = countryStatusDepth - (balloonContentInc + 10);

  static const int locationDepth = balloonBaseDepth - 10;
  static const int locationFaultDepth = locationDepth - 10;

  static const int routingFinishDepth = locationFaultDepth - balloonContentInc;
  static const int activePinDepth = routingFinishDepth - balloonContentInc;
  static const int routingSymbolsDepth = activePinDepth - balloonContentInc;
  static const int tracksDepth = routingSymbolsDepth - balloonContentInc;
  static const int arrowDepth = tracksDepth + 10;
  static const int tracksOutlineDepth = tracksDepth - 10;
  static const int bookmarkDepth = tracksOutlineDepth - balloonContentInc;
}