C# First Screen demo
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / examples / firstscreen / Constants.cs
1 using System;
2
3 namespace FirstScreen
4 {
5     public class Constants
6     {
7         public const int TotalPostersContainers = 2;                  // Number of Poster ScrollContainers to be added on Top Container
8
9         public const float TopContainerHeightFactor = 0.38f;          // Height Factor of stage height used for Top Container total height
10         public const float TopContainerPositionFactor = 0.50f;        // Position Factor of stage height used for Top Container position
11         public const float TopClipLayerHeightFactor = 0.34f;          // Height Factor of stage height used for Top Clip layer height
12         public const float TopClipLayerExpandHeightFactor = 0.36f;    // Expanded Height Factor of stage height used for Top Clip layer height (used when Bottom container is hidden)
13         public const float PostersContainerHeightFactor = 0.32f;      // Height Factor of stage height used for Poster ScrollContainers
14         public const float PostersContainerPadding = 2.0f;            // Padding size used between items / images in Poster ScrollContainer
15         public const float PostersContainerMargin = 60.0f;            // Extra margin Padding size used between items / images in Poster ScrollContainer when item / image is focused
16         public const float PostersContainerOffsetYFactor = 0.17f;     // Position Factor of Poster item height used for Poster items / images position
17
18         public const float BottomContainerHeightFactor = 0.16f;       // Height Factor of stage height used for Bottom Container total height
19         public const float BottomContainerHidePositionFactor = 0.88f; // Position Factor of stage height used for Bottom Container position when bottom container is hidden (not focused)
20         public const float BottomContainerShowPositionFactor = 0.84f; // Position Factor of stage height used for Bottom Container position when bottom container is not hidden (focused)
21         public const float MenuContainerHeightFactor = 0.16f;         // Height Factor of stage height used for Bottom ScrollContainers
22         public const float BottomClipLayerHeightFactor = 0.84f;       // Height Factor of stage height used for Bottom Clip layer height
23         public const float MenuContainerPadding = 10.0f;              // Padding size used between items / images in Menu ScrollContainer
24         public const float MenuContainerMargin = 25.0f;               // Extra margin Padding size used between items / images in Menu ScrollContainer when item / image is focused
25         public const float MenuContainerOffsetYFactor = 0.35f;        // Position Factor of Poster item height used for Menu items / images position
26
27         public const float MenuItemWidthFactor = 0.125f;              // Width Factor (1/8) of stage Width used for Menu items / images Width
28         public const float MenuItemHeightFactor = 0.10f;              // Height Factor of stage height used for Menu items / images Height
29         public const float MenuItemsCount = 14;                       // Number of Menu items / images used in a Menu ScrollContainer
30
31         public const float Poster0ItemWidthFactor = 0.25f;            // Width Factor (1/4) of stage Width used for Poster items / images Width in a Poster ScrollContainer 0
32         public const float Poster1ItemWidthFactor = 0.24f;            // Width Factor of stage Width used for Poster items / images Width in a Poster ScrollContainer 1
33         public const float PostersItemHeightFactor = 0.24f;           // Height Factor of stage height used for Poster items / images Height
34         public const float PostersItemsCount = 24;                    // Number of Menu items / images used in a Poster ScrollContainer
35
36         public const float LauncherWidth = 280.0f;                    // Width of Launcher. Launcher is used to display three images on left of Menu ScrollContainer
37         public const float LauncherLeftMargin = 40.0f;                // Extra Spaces to the left of first Launcher item / image
38         public const float LauncherSeparatorWidth = 20.0f;            // Extra area / space to the left of Menu ScrollContainer used for a speration shadow image
39         public const float LauncherItemsCount = 3.0f;                 // Total number of Launcher items / images
40         public const float LauncherIconWidth = (LauncherWidth - LauncherLeftMargin - LauncherSeparatorWidth) / LauncherItemsCount; // Width of each Launcher item / image
41     }
42 }
43