2 * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
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;
23 /// Enumeration for the axis along which flip effect should be applied.
25 /// <since_tizen> preview </since_tizen>
26 [Obsolete("This has been deprecated in API12")]
41 /// Enumeration for the direction in which the wipe effect should occur.
43 /// <since_tizen> preview </since_tizen>
44 [Obsolete("This has been deprecated in API12")]
45 public enum WipeDirection
53 /// Wipe to the right.
69 /// Enumeration for whether the wipe effect should show or hide the object.
71 /// <since_tizen> preview </since_tizen>
72 [Obsolete("This has been deprecated in API12")]
76 /// Hide the object during the animation.
81 /// Show the object during the animation.
87 /// Enumration for the type of acceleration used in transition.
89 /// <since_tizen> preview </since_tizen>
90 [Obsolete("This has been deprecated in API12")]
99 /// Starts slow, increases speed over time, then decrease again and stop slowly, v1 being a power factor.
104 /// Starts fast and decreases speed over time, v1 being a power factor.
109 /// Starts slow and increases speed over time, v1 being a power factor.
114 /// Starts at gradient v1, interpolated via power of v2 curve.
119 /// Starts at 0.0 then "drop" like a ball bouncing to the ground at 1.0, and bounce v2 times, with decay factor of v1.
124 /// Starts at 0.0 then "wobble" like a spring rest position 1.0, and wobble v2 times, with decay factor of v1.
129 /// Follows the cubic-bezier curve calculated with the control points (x1, y1), (x2, y2).
135 /// Blend effect class.
137 /// <since_tizen> preview </since_tizen>
138 [Obsolete("This has been deprecated in API12")]
139 public class BlendEffect : EffectBase
142 /// Creates and initializes a new instance of the BlendEffect class.
144 /// <since_tizen> preview </since_tizen>
145 [Obsolete("This has been deprecated in API12")]
150 internal override IntPtr CreateEffect(IntPtr transit)
152 return Interop.Elementary.elm_transit_effect_blend_add(transit);
157 /// Color effect class.
159 /// <since_tizen> preview </since_tizen>
160 [Obsolete("This has been deprecated in API12")]
161 public class ColorEffect : EffectBase
167 /// Creates and initializes a new instance of the ColorEffect class.
169 /// <param name="beginColor">The begin color of the effect.</param>
170 /// <param name="endColor">The end color of the effect.</param>
171 /// <since_tizen> preview </since_tizen>
172 [Obsolete("This has been deprecated in API12")]
173 public ColorEffect(Color beginColor, Color endColor)
180 /// The begin color of the effect.
182 /// <since_tizen> preview </since_tizen>
183 [Obsolete("This has been deprecated in API12")]
184 public Color BeginColor
186 get { return _begin; }
190 /// The end color of the effect.
192 /// <since_tizen> preview </since_tizen>
193 [Obsolete("This has been deprecated in API12")]
194 public Color EndColor
199 internal override IntPtr CreateEffect(IntPtr transit)
201 return Interop.Elementary.elm_transit_effect_color_add(transit, _begin.R, _begin.G, _begin.B, _begin.A, _end.R, _end.G, _end.B, _end.A);
206 /// Fade effect class.
208 /// <since_tizen> preview </since_tizen>
209 [Obsolete("This has been deprecated in API12")]
210 public class FadeEffect : EffectBase
213 /// Creates and initializes a new instance of the FadeEffect class.
215 /// <since_tizen> preview </since_tizen>
216 [Obsolete("This has been deprecated in API12")]
221 internal override IntPtr CreateEffect(IntPtr transit)
223 return Interop.Elementary.elm_transit_effect_fade_add(transit);
228 /// Flip effect class.
230 /// <since_tizen> preview </since_tizen>
231 [Obsolete("This has been deprecated in API12")]
232 public class FlipEffect : EffectBase
239 /// Creates and initializes a new instance of the FlipEffect class.
241 /// <param name="axis">Flipping axis (X or Y).</param>
242 /// <param name="clockWise">Flipping Direction. True is clockwise.</param>
243 /// <param name="resizable">Resizable effect with FlipEffect.</param>
244 /// <since_tizen> preview </since_tizen>
245 [Obsolete("This has been deprecated in API12")]
246 public FlipEffect(FlipAxis axis, bool clockWise, bool resizable = false)
249 _clockWise = clockWise;
250 _resizable = resizable;
254 /// Flipping axis (X or Y).
256 /// <since_tizen> preview </since_tizen>
257 [Obsolete("This has been deprecated in API12")]
260 get { return _axis; }
264 /// Flipping direction. True is clockwise.
266 /// <since_tizen> preview </since_tizen>
267 [Obsolete("This has been deprecated in API12")]
268 public bool ClockWise
270 get { return _clockWise; }
274 /// Resizable FlipEffect.
276 /// <since_tizen> preview </since_tizen>
277 [Obsolete("This has been deprecated in API12")]
278 public bool Resizable
280 get { return _resizable; }
283 internal override IntPtr CreateEffect(IntPtr transit)
286 return Interop.Elementary.elm_transit_effect_resizable_flip_add(transit, (int)_axis, _clockWise);
287 return Interop.Elementary.elm_transit_effect_flip_add(transit, (int)_axis, _clockWise);
292 /// Resizing effect class.
294 /// <since_tizen> preview </since_tizen>
295 [Obsolete("This has been deprecated in API12")]
296 public class ResizingEffect : EffectBase
302 /// Creates and initializes a new instance of the ResizingEffect class.
304 /// <param name="beginSize">The begin size of the effect.</param>
305 /// <param name="endSize">The end size of the effect.</param>
306 /// <since_tizen> preview </since_tizen>
307 [Obsolete("This has been deprecated in API12")]
308 public ResizingEffect(Size beginSize, Size endSize)
315 /// The begin size of the effect.
317 /// <since_tizen> preview </since_tizen>
318 [Obsolete("This has been deprecated in API12")]
319 public Size BeginSize
321 get { return _begin; }
325 /// The end size of the effect.
327 /// <since_tizen> preview </since_tizen>
328 [Obsolete("This has been deprecated in API12")]
334 internal override IntPtr CreateEffect(IntPtr transit)
336 return Interop.Elementary.elm_transit_effect_resizing_add(transit, _begin.Width, _begin.Height, _end.Width, _end.Height);
341 /// Rotation effect class.
343 /// <since_tizen> preview </since_tizen>
344 [Obsolete("This has been deprecated in API12")]
345 public class RotationEffect : EffectBase
351 /// Creates and initializes a new instance of the RotationEffect class.
353 /// <param name="beginDegree">The begin degree of the effect.</param>
354 /// <param name="endDegree">The end degree of the effect.</param>
355 /// <since_tizen> preview </since_tizen>
356 [Obsolete("This has been deprecated in API12")]
357 public RotationEffect(float beginDegree, float endDegree)
359 _begin = beginDegree;
364 /// The begin degree of the effect.
366 /// <since_tizen> preview </since_tizen>
367 [Obsolete("This has been deprecated in API12")]
368 public float BeginDegree
370 get { return _begin; }
374 /// The end degree of the effect.
376 /// <since_tizen> preview </since_tizen>
377 [Obsolete("This has been deprecated in API12")]
378 public float EndDegree
383 internal override IntPtr CreateEffect(IntPtr transit)
385 return Interop.Elementary.elm_transit_effect_rotation_add(transit, _begin, _end);
390 /// Translation effect class.
392 /// <since_tizen> preview </since_tizen>
393 [Obsolete("This has been deprecated in API12")]
394 public class TranslationEffect : EffectBase
400 /// Creates and initializes a new instance of the TranslationEffect class.
402 /// <param name="beginPoint">The begin point of the effect.</param>
403 /// <param name="endPoint">The end point of the effect.</param>
404 /// <since_tizen> preview </since_tizen>
405 [Obsolete("This has been deprecated in API12")]
406 public TranslationEffect(Point beginPoint, Point endPoint)
413 /// The begin point of the effect.
415 /// <since_tizen> preview </since_tizen>
416 [Obsolete("This has been deprecated in API12")]
417 public Point BeginPoint
419 get { return _begin; }
423 /// The end point of the effect.
425 /// <since_tizen> preview </since_tizen>
426 [Obsolete("This has been deprecated in API12")]
427 public Point EndPoint
432 internal override IntPtr CreateEffect(IntPtr transit)
434 return Interop.Elementary.elm_transit_effect_translation_add(transit, _begin.X, _begin.Y, _end.X, _end.Y);
439 /// Wipe effect class.
441 /// <since_tizen> preview </since_tizen>
442 [Obsolete("This has been deprecated in API12")]
443 public class WipeEffect : EffectBase
446 WipeDirection _direction;
449 /// Creates and initializes a new instance of the WipeEffect class.
451 /// <param name="type">Wipe type. Hide or show.</param>
452 /// <param name="direction">Wipe direction.</param>
453 /// <since_tizen> preview </since_tizen>
454 [Obsolete("This has been deprecated in API12")]
455 public WipeEffect(WipeType type, WipeDirection direction)
458 _direction = direction;
462 /// Wipe type. Hide or show.
464 /// <since_tizen> preview </since_tizen>
465 [Obsolete("This has been deprecated in API12")]
468 get { return _type; }
474 /// <since_tizen> preview </since_tizen>
475 [Obsolete("This has been deprecated in API12")]
476 public WipeDirection Direction
478 get { return _direction; }
481 internal override IntPtr CreateEffect(IntPtr transit)
483 return Interop.Elementary.elm_transit_effect_wipe_add(transit, (int)_type, (int)_direction);
488 /// Zoom effect class.
490 /// <since_tizen> preview </since_tizen>
491 [Obsolete("This has been deprecated in API12")]
492 public class ZoomEffect : EffectBase
498 /// Creates and initializes a new instance of the ZoomEffect class.
500 /// <param name="beginRate">The begin rate of the effect.</param>
501 /// <param name="endRate">The end rate of the effect.</param>
502 /// <since_tizen> preview </since_tizen>
503 [Obsolete("This has been deprecated in API12")]
504 public ZoomEffect(float beginRate, float endRate)
511 /// The begin rate of the effect.
513 /// <since_tizen> preview </since_tizen>
514 [Obsolete("This has been deprecated in API12")]
515 public float BeginRate
517 get { return _begin; }
521 /// The end rate of the effect.
523 /// <since_tizen> preview </since_tizen>
524 [Obsolete("This has been deprecated in API12")]
530 internal override IntPtr CreateEffect(IntPtr transit)
532 return Interop.Elementary.elm_transit_effect_zoom_add(transit, _begin, _end);