Follow formatting NUI
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / Layouting / LayoutData.cs
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 namespace Tizen.NUI
19 {
20     /// <summary>
21     /// [Draft] Class to hold layout animation and position data
22     /// </summary>
23     internal struct LayoutData
24     {
25         /// <summary>
26         /// [Draft] Initialized constructor
27         /// </summary>
28         /// <param name="item">Layout item.</param>
29         /// <param name="condition">Condition for the position values.</param>
30         /// <param name="left">Left position.</param>
31         /// <param name="top">Top position.</param>
32         /// <param name="right">Right position.</param>
33         /// <param name="bottom">Bottom position.</param>
34         public LayoutData(LayoutItem item, TransitionCondition condition, float left, float top, float right, float bottom)
35         {
36             Item = item;
37             ConditionForAnimation = condition;
38             Left = left;
39             Top = top;
40             Right = right;
41             Bottom = bottom;
42         }
43
44         public LayoutItem Item { get; }
45
46         public TransitionCondition ConditionForAnimation { get; }
47
48         public float Left { get; }
49         public float Top { get; }
50         public float Right { get; }
51         public float Bottom { get; }
52
53     };
54
55 } // namespace Tizen.NUI