2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 using System.Collections.Generic;
20 using System.ComponentModel;
25 /// The conditions for transitions.
28 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
29 [EditorBrowsable(EditorBrowsableState.Never)]
30 public enum TransitionCondition
33 /// Default when a condition has not been set.
35 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
36 [EditorBrowsable(EditorBrowsableState.Never)]
40 /// Animate changing layout to another layout.
42 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
43 [EditorBrowsable(EditorBrowsableState.Never)]
47 /// Animate adding item.
49 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
50 [EditorBrowsable(EditorBrowsableState.Never)]
54 /// Animate removing item.
56 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
57 [EditorBrowsable(EditorBrowsableState.Never)]
61 /// Animation when an item changes due to a sibbling being added.
63 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
64 [EditorBrowsable(EditorBrowsableState.Never)]
68 /// Animation when an item changes due to a sibbling being removed.
70 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
71 [EditorBrowsable(EditorBrowsableState.Never)]
76 /// [Draft] Class to hold layout animation and position data
78 internal struct LayoutData
81 /// [Draft] Initialized constructor
83 /// <param name="item">Layout item.</param>
84 /// <param name="condition">Condition for the position values.</param>
85 /// <param name="left">Left position.</param>
86 /// <param name="top">Top position.</param>
87 /// <param name="right">Right position.</param>
88 /// <param name="bottom">Bottom position.</param>
89 public LayoutData( LayoutItem item, TransitionCondition condition, float left, float top, float right, float bottom )
92 ConditionForAnimation = condition;
99 public LayoutItem Item{ get;}
101 public TransitionCondition ConditionForAnimation{get;}
103 public float Left{get;}
104 public float Top{get;}
105 public float Right{get;}
106 public float Bottom{get;}
110 } // namespace Tizen.NUI