/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*
*/
+using System;
+using Tizen.NUI.BaseComponents;
namespace Tizen.NUI
{
-
- using System;
- using System.Runtime.InteropServices;
- using Tizen.NUI.BaseComponents;
-
- internal class AccessibilityManager : BaseHandle
+ internal partial class AccessibilityManager : BaseHandle
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
base.Dispose(type);
}
- /**
- * @brief Event arguments that passed via StatusChanged signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class StatusChangedEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionNext signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionNextEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPrevious signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionPreviousEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionActivate signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionActivateEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionRead signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionReadEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionOver signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionOverEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadNext signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionReadNextEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadPrevious signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionReadPreviousEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionUp signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionUpEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionDown signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionDownEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionClearFocus signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionClearFocusEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionBack signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionBackEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionScrollUp signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionScrollUpEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionScrollDown signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionScrollDownEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPageLeft signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionPageLeftEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPageRight signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionPageRightEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPageUp signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionPageUpEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPageDown signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionPageDownEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionMoveToFirst signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionMoveToFirstEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionMoveToLast signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionMoveToLastEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadFromTop signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionReadFromTopEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadFromNext signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionReadFromNextEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionZoom signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionZoomEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadIndicatorInformation signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionReadIndicatorInformationEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadPauseResume signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionReadPauseResumeEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionStartStop signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class ActionStartStopEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /*
- // To be replaced by a new event that takes Touch
- public class ActionScrollEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
- private TouchEvent _touchEvent;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
-
- public TouchEvent TouchEvent
- {
- get
- {
- return _touchEvent;
- }
- set
- {
- _touchEvent = value;
- }
- }
- }
- */
-
- /**
- * @brief Event arguments that passed via ActionPageUp signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class FocusChangedEventArgs : EventArgs
- {
- private View _viewCurrent;
- private View _viewNext;
-
- /// <since_tizen> 3 </since_tizen>
- public View ViewCurrent
- {
- get
- {
- return _viewCurrent;
- }
- set
- {
- _viewCurrent = value;
- }
- }
-
- /// <since_tizen> 3 </since_tizen>
- public View ViewNext
- {
- get
- {
- return _viewNext;
- }
- set
- {
- _viewNext = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via FocusedViewActivated signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class FocusedViewActivatedEventArgs : EventArgs
- {
- private View _view;
-
-
- /// <since_tizen> 3 </since_tizen>
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via FocusOvershot signal
- *
- */
- /// <since_tizen> 3 </since_tizen>
- public class FocusOvershotEventArgs : EventArgs
- {
- private View _currentFocusedView;
- private AccessibilityManager.FocusOvershotDirection _focusOvershotDirection;
-
- /// <since_tizen> 3 </since_tizen>
- public View CurrentFocusedView
- {
- get
- {
- return _currentFocusedView;
- }
- set
- {
- _currentFocusedView = value;
- }
- }
-
- /// <since_tizen> 3 </since_tizen>
- public AccessibilityManager.FocusOvershotDirection FocusOvershotDirection
- {
- get
- {
- return _focusOvershotDirection;
- }
- set
- {
- _focusOvershotDirection = value;
- }
- }
- }
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool StatusChangedEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, StatusChangedEventArgs, bool> _accessibilityManagerStatusChangedEventHandler;
- private StatusChangedEventCallbackDelegate _accessibilityManagerStatusChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionNextEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionNextEventArgs, bool> _accessibilityManagerActionNextEventHandler;
- private ActionNextEventCallbackDelegate _accessibilityManagerActionNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPreviousEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionPreviousEventArgs, bool> _accessibilityManagerActionPreviousEventHandler;
- private ActionPreviousEventCallbackDelegate _accessibilityManagerActionPreviousEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionActivateEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionActivateEventArgs, bool> _accessibilityManagerActionActivateEventHandler;
- private ActionActivateEventCallbackDelegate _accessibilityManagerActionActivateEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionReadEventArgs, bool> _accessibilityManagerActionReadEventHandler;
- private ActionReadEventCallbackDelegate _accessibilityManagerActionReadEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionOverEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionOverEventArgs, bool> _accessibilityManagerActionOverEventHandler;
- private ActionOverEventCallbackDelegate _accessibilityManagerActionOverEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadNextEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionReadNextEventArgs, bool> _accessibilityManagerActionReadNextEventHandler;
- private ActionReadNextEventCallbackDelegate _accessibilityManagerActionReadNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadPreviousEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionReadPreviousEventArgs, bool> _accessibilityManagerActionReadPreviousEventHandler;
- private ActionReadPreviousEventCallbackDelegate _accessibilityManagerActionReadPreviousEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionUpEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionUpEventArgs, bool> _accessibilityManagerActionUpEventHandler;
- private ActionUpEventCallbackDelegate _accessibilityManagerActionUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionDownEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionDownEventArgs, bool> _accessibilityManagerActionDownEventHandler;
- private ActionDownEventCallbackDelegate _accessibilityManagerActionDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionClearFocusEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionClearFocusEventArgs, bool> _accessibilityManagerActionClearFocusEventHandler;
- private ActionClearFocusEventCallbackDelegate _accessibilityManagerActionClearFocusEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionBackEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionBackEventArgs, bool> _accessibilityManagerActionBackEventHandler;
- private ActionBackEventCallbackDelegate _accessibilityManagerActionBackEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionScrollUpEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionScrollUpEventArgs, bool> _accessibilityManagerActionScrollUpEventHandler;
- private ActionScrollUpEventCallbackDelegate _accessibilityManagerActionScrollUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionScrollDownEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionScrollDownEventArgs, bool> _accessibilityManagerActionScrollDownEventHandler;
- private ActionScrollDownEventCallbackDelegate _accessibilityManagerActionScrollDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPageLeftEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionPageLeftEventArgs, bool> _accessibilityManagerActionPageLeftEventHandler;
- private ActionPageLeftEventCallbackDelegate _accessibilityManagerActionPageLeftEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPageRightEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionPageRightEventArgs, bool> _accessibilityManagerActionPageRightEventHandler;
- private ActionPageRightEventCallbackDelegate _accessibilityManagerActionPageRightEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPageUpEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionPageUpEventArgs, bool> _accessibilityManagerActionPageUpEventHandler;
- private ActionPageUpEventCallbackDelegate _accessibilityManagerActionPageUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPageDownEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionPageDownEventArgs, bool> _accessibilityManagerActionPageDownEventHandler;
- private ActionPageDownEventCallbackDelegate _accessibilityManagerActionPageDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionMoveToFirstEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionMoveToFirstEventArgs, bool> _accessibilityManagerActionMoveToFirstEventHandler;
- private ActionMoveToFirstEventCallbackDelegate _accessibilityManagerActionMoveToFirstEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionMoveToLastEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionMoveToLastEventArgs, bool> _accessibilityManagerActionMoveToLastEventHandler;
- private ActionMoveToLastEventCallbackDelegate _accessibilityManagerActionMoveToLastEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadFromTopEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionReadFromTopEventArgs, bool> _accessibilityManagerActionReadFromTopEventHandler;
- private ActionReadFromTopEventCallbackDelegate _accessibilityManagerActionReadFromTopEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadFromNextEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionReadFromNextEventArgs, bool> _accessibilityManagerActionReadFromNextEventHandler;
- private ActionReadFromNextEventCallbackDelegate _accessibilityManagerActionReadFromNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionZoomEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionZoomEventArgs, bool> _accessibilityManagerActionZoomEventHandler;
- private ActionZoomEventCallbackDelegate _accessibilityManagerActionZoomEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadIndicatorInformationEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionReadIndicatorInformationEventArgs, bool> _accessibilityManagerActionReadIndicatorInformationEventHandler;
- private ActionReadIndicatorInformationEventCallbackDelegate _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadPauseResumeEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionReadPauseResumeEventArgs, bool> _accessibilityManagerActionReadPauseResumeEventHandler;
- private ActionReadPauseResumeEventCallbackDelegate _accessibilityManagerActionReadPauseResumeEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionStartStopEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object, ActionStartStopEventArgs, bool> _accessibilityManagerActionStartStopEventHandler;
- private ActionStartStopEventCallbackDelegate _accessibilityManagerActionStartStopEventCallbackDelegate;
-
- /*
- // To be replaced by a new event that takes Touch
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionScrollEventCallbackDelegate(IntPtr accessibilityManager, IntPtr touchEvent);
- private DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> _accessibilityManagerActionScrollEventHandler;
- private ActionScrollEventCallbackDelegate _accessibilityManagerActionScrollEventCallbackDelegate;
- */
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusChangedEventCallbackDelegate(IntPtr view1, IntPtr view2);
- private DaliEventHandler<object, FocusChangedEventArgs> _accessibilityManagerFocusChangedEventHandler;
- private FocusChangedEventCallbackDelegate _accessibilityManagerFocusChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusedViewActivatedEventCallbackDelegate(IntPtr view);
- private DaliEventHandler<object, FocusedViewActivatedEventArgs> _accessibilityManagerFocusedViewActivatedEventHandler;
- private FocusedViewActivatedEventCallbackDelegate _accessibilityManagerFocusedViewActivatedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusOvershotEventCallbackDelegate(IntPtr currentFocusedView, AccessibilityManager.FocusOvershotDirection direction);
- private DaliEventHandler<object, FocusOvershotEventArgs> _accessibilityManagerFocusOvershotEventHandler;
- private FocusOvershotEventCallbackDelegate _accessibilityManagerFocusOvershotEventCallbackDelegate;
-
- public event DaliEventHandlerWithReturnType<object, StatusChangedEventArgs, bool> StatusChanged
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerStatusChangedEventHandler == null)
- {
- _accessibilityManagerStatusChangedEventHandler += value;
-
- _accessibilityManagerStatusChangedEventCallbackDelegate = new StatusChangedEventCallbackDelegate(OnStatusChanged);
- this.StatusChangedSignal().Connect(_accessibilityManagerStatusChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerStatusChangedEventHandler != null)
- {
- this.StatusChangedSignal().Disconnect(_accessibilityManagerStatusChangedEventCallbackDelegate);
- }
-
- _accessibilityManagerStatusChangedEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager StatusChangedSignal
private bool OnStatusChanged(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionNextEventArgs, bool> ActionNext
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionNextEventHandler == null)
- {
- _accessibilityManagerActionNextEventHandler += value;
-
- _accessibilityManagerActionNextEventCallbackDelegate = new ActionNextEventCallbackDelegate(OnActionNext);
- this.ActionNextSignal().Connect(_accessibilityManagerActionNextEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionNextEventHandler != null)
- {
- this.ActionNextSignal().Disconnect(_accessibilityManagerActionNextEventCallbackDelegate);
- }
-
- _accessibilityManagerActionNextEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionNextSignal
private bool OnActionNext(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionPreviousEventArgs, bool> ActionPrevious
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPreviousEventHandler == null)
- {
- _accessibilityManagerActionPreviousEventHandler += value;
-
- _accessibilityManagerActionPreviousEventCallbackDelegate = new ActionPreviousEventCallbackDelegate(OnActionPrevious);
- this.ActionPreviousSignal().Connect(_accessibilityManagerActionPreviousEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionPreviousEventHandler != null)
- {
- this.ActionPreviousSignal().Disconnect(_accessibilityManagerActionPreviousEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPreviousEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionPreviousSignal
private bool OnActionPrevious(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionActivateEventArgs, bool> ActionActivate
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionActivateEventHandler == null)
- {
- _accessibilityManagerActionActivateEventHandler += value;
-
- _accessibilityManagerActionActivateEventCallbackDelegate = new ActionActivateEventCallbackDelegate(OnActionActivate);
- this.ActionActivateSignal().Connect(_accessibilityManagerActionActivateEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionActivateEventHandler != null)
- {
- this.ActionActivateSignal().Disconnect(_accessibilityManagerActionActivateEventCallbackDelegate);
- }
-
- _accessibilityManagerActionActivateEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionActivateSignal
private bool OnActionActivate(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionReadEventArgs, bool> ActionRead
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadEventHandler == null)
- {
- _accessibilityManagerActionReadEventHandler += value;
-
- _accessibilityManagerActionReadEventCallbackDelegate = new ActionReadEventCallbackDelegate(OnActionRead);
- this.ActionReadSignal().Connect(_accessibilityManagerActionReadEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionReadEventHandler != null)
- {
- this.ActionReadSignal().Disconnect(_accessibilityManagerActionReadEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionReadSignal
private bool OnActionRead(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionOverEventArgs, bool> ActionOver
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionOverEventHandler == null)
- {
- _accessibilityManagerActionOverEventHandler += value;
-
- _accessibilityManagerActionOverEventCallbackDelegate = new ActionOverEventCallbackDelegate(OnActionOver);
- this.ActionOverSignal().Connect(_accessibilityManagerActionOverEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionOverEventHandler != null)
- {
- this.ActionOverSignal().Disconnect(_accessibilityManagerActionOverEventCallbackDelegate);
- }
-
- _accessibilityManagerActionOverEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionOverSignal
private bool OnActionOver(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionReadNextEventArgs, bool> ActionReadNext
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadNextEventHandler == null)
- {
- _accessibilityManagerActionReadNextEventHandler += value;
-
- _accessibilityManagerActionReadNextEventCallbackDelegate = new ActionReadNextEventCallbackDelegate(OnActionReadNext);
- this.ActionReadNextSignal().Connect(_accessibilityManagerActionReadNextEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionReadNextEventHandler != null)
- {
- this.ActionReadNextSignal().Disconnect(_accessibilityManagerActionReadNextEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadNextEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionReadNextSignal
private bool OnActionReadNext(IntPtr data)
{
}
- public event DaliEventHandlerWithReturnType<object, ActionReadPreviousEventArgs, bool> ActionReadPrevious
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadPreviousEventHandler == null)
- {
- _accessibilityManagerActionReadPreviousEventHandler += value;
-
- _accessibilityManagerActionReadPreviousEventCallbackDelegate = new ActionReadPreviousEventCallbackDelegate(OnActionReadPrevious);
- this.ActionReadPreviousSignal().Connect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionReadPreviousEventHandler != null)
- {
- this.ActionReadPreviousSignal().Disconnect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadPreviousEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionReadPreviousSignal
private bool OnActionReadPrevious(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionUpEventArgs, bool> ActionUp
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionUpEventHandler == null)
- {
- _accessibilityManagerActionUpEventHandler += value;
-
- _accessibilityManagerActionUpEventCallbackDelegate = new ActionUpEventCallbackDelegate(OnActionUp);
- this.ActionUpSignal().Connect(_accessibilityManagerActionUpEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionUpEventHandler != null)
- {
- this.ActionUpSignal().Disconnect(_accessibilityManagerActionUpEventCallbackDelegate);
- }
-
- _accessibilityManagerActionUpEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionUpSignal
private bool OnActionUp(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionDownEventArgs, bool> ActionDown
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionDownEventHandler == null)
- {
- _accessibilityManagerActionDownEventHandler += value;
-
- _accessibilityManagerActionDownEventCallbackDelegate = new ActionDownEventCallbackDelegate(OnActionDown);
- this.ActionDownSignal().Connect(_accessibilityManagerActionDownEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionDownEventHandler != null)
- {
- this.ActionDownSignal().Disconnect(_accessibilityManagerActionDownEventCallbackDelegate);
- }
-
- _accessibilityManagerActionDownEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionDownSignal
private bool OnActionDown(IntPtr data)
{
// Populate all members of "e" (ActionDownEventArgs) with real data
e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
- if (_accessibilityManagerActionDownEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionDownEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object, ActionClearFocusEventArgs, bool> ActionClearFocus
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionClearFocusEventHandler == null)
- {
- _accessibilityManagerActionClearFocusEventHandler += value;
-
- _accessibilityManagerActionClearFocusEventCallbackDelegate = new ActionClearFocusEventCallbackDelegate(OnActionClearFocus);
- this.ActionClearFocusSignal().Connect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionClearFocusEventHandler != null)
- {
- this.ActionClearFocusSignal().Disconnect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
- }
-
- _accessibilityManagerActionClearFocusEventHandler -= value;
- }
+ if (_accessibilityManagerActionDownEventHandler != null)
+ {
+ //here we send all data to user event handlers
+ return _accessibilityManagerActionDownEventHandler(this, e);
}
+ return false;
}
// Callback for AccessibilityManager ActionClearFocusSignal
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionBackEventArgs, bool> ActionBack
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionBackEventHandler == null)
- {
- _accessibilityManagerActionBackEventHandler += value;
-
- _accessibilityManagerActionBackEventCallbackDelegate = new ActionBackEventCallbackDelegate(OnActionBack);
- this.ActionBackSignal().Connect(_accessibilityManagerActionBackEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionBackEventHandler != null)
- {
- this.ActionBackSignal().Disconnect(_accessibilityManagerActionBackEventCallbackDelegate);
- }
-
- _accessibilityManagerActionBackEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionBackSignal
private bool OnActionBack(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionScrollUpEventArgs, bool> ActionScrollUp
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionScrollUpEventHandler == null)
- {
- _accessibilityManagerActionScrollUpEventHandler += value;
-
- _accessibilityManagerActionScrollUpEventCallbackDelegate = new ActionScrollUpEventCallbackDelegate(OnActionScrollUp);
- this.ActionScrollUpSignal().Connect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionScrollUpEventHandler != null)
- {
- this.ActionScrollUpSignal().Disconnect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
- }
-
- _accessibilityManagerActionScrollUpEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionScrollUpSignal
private bool OnActionScrollUp(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionScrollDownEventArgs, bool> ActionScrollDown
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionScrollDownEventHandler == null)
- {
- _accessibilityManagerActionScrollDownEventHandler += value;
-
- _accessibilityManagerActionScrollDownEventCallbackDelegate = new ActionScrollDownEventCallbackDelegate(OnActionScrollDown);
- this.ActionScrollDownSignal().Connect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionScrollDownEventHandler != null)
- {
- this.ActionScrollDownSignal().Disconnect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
- }
-
- _accessibilityManagerActionScrollDownEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionScrollDownSignal
private bool OnActionScrollDown(IntPtr data)
{
}
- public event DaliEventHandlerWithReturnType<object, ActionPageLeftEventArgs, bool> ActionPageLeft
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPageLeftEventHandler == null)
- {
- _accessibilityManagerActionPageLeftEventHandler += value;
-
- _accessibilityManagerActionPageLeftEventCallbackDelegate = new ActionPageLeftEventCallbackDelegate(OnActionPageLeft);
- this.ActionPageLeftSignal().Connect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionPageLeftEventHandler != null)
- {
- this.ActionPageLeftSignal().Disconnect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPageLeftEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionPageLeftSignal
private bool OnActionPageLeft(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionPageRightEventArgs, bool> ActionPageRight
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPageRightEventHandler == null)
- {
- _accessibilityManagerActionPageRightEventHandler += value;
-
- _accessibilityManagerActionPageRightEventCallbackDelegate = new ActionPageRightEventCallbackDelegate(OnActionPageRight);
- this.ActionPageRightSignal().Connect(_accessibilityManagerActionPageRightEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionPageRightEventHandler != null)
- {
- this.ActionPageRightSignal().Disconnect(_accessibilityManagerActionPageRightEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPageRightEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionPageRightSignal
private bool OnActionPageRight(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionPageUpEventArgs, bool> ActionPageUp
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPageUpEventHandler == null)
- {
- _accessibilityManagerActionPageUpEventHandler += value;
-
- _accessibilityManagerActionPageUpEventCallbackDelegate = new ActionPageUpEventCallbackDelegate(OnActionPageUp);
- this.ActionPageUpSignal().Connect(_accessibilityManagerActionPageUpEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionPageUpEventHandler != null)
- {
- this.ActionPageUpSignal().Disconnect(_accessibilityManagerActionPageUpEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPageUpEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionPageUpSignal
private bool OnActionPageUp(IntPtr data)
{
}
- public event DaliEventHandlerWithReturnType<object, ActionPageDownEventArgs, bool> ActionPageDown
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPageDownEventHandler == null)
- {
- _accessibilityManagerActionPageDownEventHandler += value;
-
- _accessibilityManagerActionPageDownEventCallbackDelegate = new ActionPageDownEventCallbackDelegate(OnActionPageDown);
- this.ActionPageDownSignal().Connect(_accessibilityManagerActionPageDownEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionPageDownEventHandler != null)
- {
- this.ActionPageDownSignal().Disconnect(_accessibilityManagerActionPageDownEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPageDownEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionPageDownSignal
private bool OnActionPageDown(IntPtr data)
{
}
- public event DaliEventHandlerWithReturnType<object, ActionMoveToFirstEventArgs, bool> ActionMoveToFirst
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionMoveToFirstEventHandler == null)
- {
- _accessibilityManagerActionMoveToFirstEventHandler += value;
-
- _accessibilityManagerActionMoveToFirstEventCallbackDelegate = new ActionMoveToFirstEventCallbackDelegate(OnActionMoveToFirst);
- this.ActionMoveToFirstSignal().Connect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionMoveToFirstEventHandler != null)
- {
- this.ActionMoveToFirstSignal().Disconnect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
- }
-
- _accessibilityManagerActionMoveToFirstEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionMoveToFirstSignal
private bool OnActionMoveToFirst(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionMoveToLastEventArgs, bool> ActionMoveToLast
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionMoveToLastEventHandler == null)
- {
- _accessibilityManagerActionMoveToLastEventHandler += value;
-
- _accessibilityManagerActionMoveToLastEventCallbackDelegate = new ActionMoveToLastEventCallbackDelegate(OnActionMoveToLast);
- this.ActionMoveToLastSignal().Connect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionMoveToLastEventHandler != null)
- {
- this.ActionMoveToLastSignal().Disconnect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
- }
-
- _accessibilityManagerActionMoveToLastEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionMoveToLastSignal
private bool OnActionMoveToLast(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionReadFromTopEventArgs, bool> ActionReadFromTop
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadFromTopEventHandler == null)
- {
- _accessibilityManagerActionReadFromTopEventHandler += value;
-
- _accessibilityManagerActionReadFromTopEventCallbackDelegate = new ActionReadFromTopEventCallbackDelegate(OnActionReadFromTop);
- this.ActionReadFromTopSignal().Connect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionReadFromTopEventHandler != null)
- {
- this.ActionReadFromTopSignal().Disconnect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadFromTopEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionReadFromTopSignal
private bool OnActionReadFromTop(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionReadFromNextEventArgs, bool> ActionReadFromNext
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadFromNextEventHandler == null)
- {
- _accessibilityManagerActionReadFromNextEventHandler += value;
-
- _accessibilityManagerActionReadFromNextEventCallbackDelegate = new ActionReadFromNextEventCallbackDelegate(OnActionReadFromNext);
- this.ActionReadFromNextSignal().Connect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionReadFromNextEventHandler != null)
- {
- this.ActionReadFromNextSignal().Disconnect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadFromNextEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionReadFromNextSignal
private bool OnActionReadFromNext(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionZoomEventArgs, bool> ActionZoom
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionZoomEventHandler == null)
- {
- _accessibilityManagerActionZoomEventHandler += value;
-
- _accessibilityManagerActionZoomEventCallbackDelegate = new ActionZoomEventCallbackDelegate(OnActionZoom);
- this.ActionZoomSignal().Connect(_accessibilityManagerActionZoomEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionZoomEventHandler != null)
- {
- this.ActionZoomSignal().Disconnect(_accessibilityManagerActionZoomEventCallbackDelegate);
- }
-
- _accessibilityManagerActionZoomEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionZoomSignal
private bool OnActionZoom(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionReadIndicatorInformationEventArgs, bool> ActionReadIndicatorInformation
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadIndicatorInformationEventHandler == null)
- {
- _accessibilityManagerActionReadIndicatorInformationEventHandler += value;
-
- _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate = new ActionReadIndicatorInformationEventCallbackDelegate(OnActionReadIndicatorInformation);
- this.ActionReadIndicatorInformationSignal().Connect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionReadIndicatorInformationEventHandler != null)
- {
- this.ActionReadIndicatorInformationSignal().Disconnect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadIndicatorInformationEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionReadIndicatorInformationSignal
private bool OnActionReadIndicatorInformation(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionReadPauseResumeEventArgs, bool> ActionReadPauseResume
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadPauseResumeEventHandler == null)
- {
- _accessibilityManagerActionReadPauseResumeEventHandler += value;
-
- _accessibilityManagerActionReadPauseResumeEventCallbackDelegate = new ActionReadPauseResumeEventCallbackDelegate(OnActionReadPauseResume);
- this.ActionReadPauseResumeSignal().Connect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionReadPauseResumeEventHandler != null)
- {
- this.ActionReadPauseResumeSignal().Disconnect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadPauseResumeEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionReadPauseResumeSignal
private bool OnActionReadPauseResume(IntPtr data)
{
return false;
}
- public event DaliEventHandlerWithReturnType<object, ActionStartStopEventArgs, bool> ActionStartStop
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionStartStopEventHandler == null)
- {
- _accessibilityManagerActionStartStopEventHandler += value;
-
- _accessibilityManagerActionStartStopEventCallbackDelegate = new ActionStartStopEventCallbackDelegate(OnActionStartStop);
- this.ActionStartStopSignal().Connect(_accessibilityManagerActionStartStopEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerActionStartStopEventHandler != null)
- {
- this.ActionStartStopSignal().Disconnect(_accessibilityManagerActionStartStopEventCallbackDelegate);
- }
-
- _accessibilityManagerActionStartStopEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager ActionStartStopSignal
private bool OnActionStartStop(IntPtr data)
{
return false;
}
- /*
- // To be replaced by a new event that takes Touch
- public event DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> ActionScroll
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionScrollEventHandler == null)
- {
- _accessibilityManagerActionScrollEventHandler += value;
-
- _accessibilityManagerActionScrollEventCallbackDelegate = new ActionScrollEventCallbackDelegate(OnActionScroll);
- this.ActionScrollSignal().Connect(_accessibilityManagerActionScrollEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionScrollEventHandler != null)
- {
- this.ActionScrollSignal().Disconnect(_accessibilityManagerActionScrollEventCallbackDelegate);
- }
-
- _accessibilityManagerActionScrollEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionScrollSignal
- private bool OnActionScroll(IntPtr accessibilityManager, IntPtr touchEvent)
- {
- ActionScrollEventArgs e = new ActionScrollEventArgs();
-
- // Populate all members of "e" (ActionScrollEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(accessibilityManager);
- e.TouchEvent = TouchEvent.GetTouchEventFromPtr(touchEvent);
-
- if (_accessibilityManagerActionScrollEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionScrollEventHandler(this, e);
- }
- return false;
- }
- */
-
- public event DaliEventHandler<object, FocusChangedEventArgs> FocusChanged
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerFocusChangedEventHandler == null)
- {
- _accessibilityManagerFocusChangedEventHandler += value;
-
- _accessibilityManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged);
- this.FocusChangedSignal().Connect(_accessibilityManagerFocusChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerFocusChangedEventHandler != null)
- {
- this.FocusChangedSignal().Disconnect(_accessibilityManagerFocusChangedEventCallbackDelegate);
- }
-
- _accessibilityManagerFocusChangedEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager FocusChangedSignal
private void OnFocusChanged(IntPtr view1, IntPtr view2)
{
}
}
- public event DaliEventHandler<object, FocusedViewActivatedEventArgs> FocusedViewActivated
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerFocusedViewActivatedEventHandler == null)
- {
- _accessibilityManagerFocusedViewActivatedEventHandler += value;
-
- _accessibilityManagerFocusedViewActivatedEventCallbackDelegate = new FocusedViewActivatedEventCallbackDelegate(OnFocusedViewActivated);
- this.FocusedViewActivatedSignal().Connect(_accessibilityManagerFocusedViewActivatedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerFocusedViewActivatedEventHandler != null)
- {
- this.FocusedViewActivatedSignal().Disconnect(_accessibilityManagerFocusedViewActivatedEventCallbackDelegate);
- }
-
- _accessibilityManagerFocusedViewActivatedEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager FocusedViewActivatedSignal
private void OnFocusedViewActivated(IntPtr view)
{
}
}
-
- public event DaliEventHandler<object, FocusOvershotEventArgs> FocusOvershot
- {
- add
- {
- lock (this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerFocusOvershotEventHandler == null)
- {
- _accessibilityManagerFocusOvershotEventHandler += value;
-
- _accessibilityManagerFocusOvershotEventCallbackDelegate = new FocusOvershotEventCallbackDelegate(OnFocusOvershot);
- this.FocusOvershotSignal().Connect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock (this)
- {
- if (_accessibilityManagerFocusOvershotEventHandler != null)
- {
- this.FocusOvershotSignal().Disconnect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
- }
-
- _accessibilityManagerFocusOvershotEventHandler -= value;
- }
- }
- }
-
// Callback for AccessibilityManager FocusOvershotSignal
private void OnFocusOvershot(IntPtr currentFocusedView, AccessibilityManager.FocusOvershotDirection direction)
{
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Tizen.NUI
+{
+ internal partial class AccessibilityManager
+ {
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool StatusChangedEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, StatusChangedEventArgs, bool> _accessibilityManagerStatusChangedEventHandler;
+ private StatusChangedEventCallbackDelegate _accessibilityManagerStatusChangedEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionNextEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionNextEventArgs, bool> _accessibilityManagerActionNextEventHandler;
+ private ActionNextEventCallbackDelegate _accessibilityManagerActionNextEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionPreviousEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionPreviousEventArgs, bool> _accessibilityManagerActionPreviousEventHandler;
+ private ActionPreviousEventCallbackDelegate _accessibilityManagerActionPreviousEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionActivateEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionActivateEventArgs, bool> _accessibilityManagerActionActivateEventHandler;
+ private ActionActivateEventCallbackDelegate _accessibilityManagerActionActivateEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionReadEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionReadEventArgs, bool> _accessibilityManagerActionReadEventHandler;
+ private ActionReadEventCallbackDelegate _accessibilityManagerActionReadEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionOverEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionOverEventArgs, bool> _accessibilityManagerActionOverEventHandler;
+ private ActionOverEventCallbackDelegate _accessibilityManagerActionOverEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionReadNextEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionReadNextEventArgs, bool> _accessibilityManagerActionReadNextEventHandler;
+ private ActionReadNextEventCallbackDelegate _accessibilityManagerActionReadNextEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionReadPreviousEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionReadPreviousEventArgs, bool> _accessibilityManagerActionReadPreviousEventHandler;
+ private ActionReadPreviousEventCallbackDelegate _accessibilityManagerActionReadPreviousEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionUpEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionUpEventArgs, bool> _accessibilityManagerActionUpEventHandler;
+ private ActionUpEventCallbackDelegate _accessibilityManagerActionUpEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionDownEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionDownEventArgs, bool> _accessibilityManagerActionDownEventHandler;
+ private ActionDownEventCallbackDelegate _accessibilityManagerActionDownEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionClearFocusEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionClearFocusEventArgs, bool> _accessibilityManagerActionClearFocusEventHandler;
+ private ActionClearFocusEventCallbackDelegate _accessibilityManagerActionClearFocusEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionBackEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionBackEventArgs, bool> _accessibilityManagerActionBackEventHandler;
+ private ActionBackEventCallbackDelegate _accessibilityManagerActionBackEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionScrollUpEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionScrollUpEventArgs, bool> _accessibilityManagerActionScrollUpEventHandler;
+ private ActionScrollUpEventCallbackDelegate _accessibilityManagerActionScrollUpEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionScrollDownEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionScrollDownEventArgs, bool> _accessibilityManagerActionScrollDownEventHandler;
+ private ActionScrollDownEventCallbackDelegate _accessibilityManagerActionScrollDownEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionPageLeftEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionPageLeftEventArgs, bool> _accessibilityManagerActionPageLeftEventHandler;
+ private ActionPageLeftEventCallbackDelegate _accessibilityManagerActionPageLeftEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionPageRightEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionPageRightEventArgs, bool> _accessibilityManagerActionPageRightEventHandler;
+ private ActionPageRightEventCallbackDelegate _accessibilityManagerActionPageRightEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionPageUpEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionPageUpEventArgs, bool> _accessibilityManagerActionPageUpEventHandler;
+ private ActionPageUpEventCallbackDelegate _accessibilityManagerActionPageUpEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionPageDownEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionPageDownEventArgs, bool> _accessibilityManagerActionPageDownEventHandler;
+ private ActionPageDownEventCallbackDelegate _accessibilityManagerActionPageDownEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionMoveToFirstEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionMoveToFirstEventArgs, bool> _accessibilityManagerActionMoveToFirstEventHandler;
+ private ActionMoveToFirstEventCallbackDelegate _accessibilityManagerActionMoveToFirstEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionMoveToLastEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionMoveToLastEventArgs, bool> _accessibilityManagerActionMoveToLastEventHandler;
+ private ActionMoveToLastEventCallbackDelegate _accessibilityManagerActionMoveToLastEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionReadFromTopEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionReadFromTopEventArgs, bool> _accessibilityManagerActionReadFromTopEventHandler;
+ private ActionReadFromTopEventCallbackDelegate _accessibilityManagerActionReadFromTopEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionReadFromNextEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionReadFromNextEventArgs, bool> _accessibilityManagerActionReadFromNextEventHandler;
+ private ActionReadFromNextEventCallbackDelegate _accessibilityManagerActionReadFromNextEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionZoomEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionZoomEventArgs, bool> _accessibilityManagerActionZoomEventHandler;
+ private ActionZoomEventCallbackDelegate _accessibilityManagerActionZoomEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionReadIndicatorInformationEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionReadIndicatorInformationEventArgs, bool> _accessibilityManagerActionReadIndicatorInformationEventHandler;
+ private ActionReadIndicatorInformationEventCallbackDelegate _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionReadPauseResumeEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionReadPauseResumeEventArgs, bool> _accessibilityManagerActionReadPauseResumeEventHandler;
+ private ActionReadPauseResumeEventCallbackDelegate _accessibilityManagerActionReadPauseResumeEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionStartStopEventCallbackDelegate(IntPtr accessibilityManager);
+ private DaliEventHandlerWithReturnType<object, ActionStartStopEventArgs, bool> _accessibilityManagerActionStartStopEventHandler;
+ private ActionStartStopEventCallbackDelegate _accessibilityManagerActionStartStopEventCallbackDelegate;
+
+ /*
+ // To be replaced by a new event that takes Touch
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool ActionScrollEventCallbackDelegate(IntPtr accessibilityManager, IntPtr touchEvent);
+ private DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> _accessibilityManagerActionScrollEventHandler;
+ private ActionScrollEventCallbackDelegate _accessibilityManagerActionScrollEventCallbackDelegate;
+ */
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void FocusChangedEventCallbackDelegate(IntPtr view1, IntPtr view2);
+ private DaliEventHandler<object, FocusChangedEventArgs> _accessibilityManagerFocusChangedEventHandler;
+ private FocusChangedEventCallbackDelegate _accessibilityManagerFocusChangedEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void FocusedViewActivatedEventCallbackDelegate(IntPtr view);
+ private DaliEventHandler<object, FocusedViewActivatedEventArgs> _accessibilityManagerFocusedViewActivatedEventHandler;
+ private FocusedViewActivatedEventCallbackDelegate _accessibilityManagerFocusedViewActivatedEventCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void FocusOvershotEventCallbackDelegate(IntPtr currentFocusedView, AccessibilityManager.FocusOvershotDirection direction);
+ private DaliEventHandler<object, FocusOvershotEventArgs> _accessibilityManagerFocusOvershotEventHandler;
+ private FocusOvershotEventCallbackDelegate _accessibilityManagerFocusOvershotEventCallbackDelegate;
+
+ public event DaliEventHandlerWithReturnType<object, StatusChangedEventArgs, bool> StatusChanged
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerStatusChangedEventHandler == null)
+ {
+ _accessibilityManagerStatusChangedEventHandler += value;
+
+ _accessibilityManagerStatusChangedEventCallbackDelegate = new StatusChangedEventCallbackDelegate(OnStatusChanged);
+ this.StatusChangedSignal().Connect(_accessibilityManagerStatusChangedEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerStatusChangedEventHandler != null)
+ {
+ this.StatusChangedSignal().Disconnect(_accessibilityManagerStatusChangedEventCallbackDelegate);
+ }
+
+ _accessibilityManagerStatusChangedEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionNextEventArgs, bool> ActionNext
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionNextEventHandler == null)
+ {
+ _accessibilityManagerActionNextEventHandler += value;
+
+ _accessibilityManagerActionNextEventCallbackDelegate = new ActionNextEventCallbackDelegate(OnActionNext);
+ this.ActionNextSignal().Connect(_accessibilityManagerActionNextEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionNextEventHandler != null)
+ {
+ this.ActionNextSignal().Disconnect(_accessibilityManagerActionNextEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionNextEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionPreviousEventArgs, bool> ActionPrevious
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionPreviousEventHandler == null)
+ {
+ _accessibilityManagerActionPreviousEventHandler += value;
+
+ _accessibilityManagerActionPreviousEventCallbackDelegate = new ActionPreviousEventCallbackDelegate(OnActionPrevious);
+ this.ActionPreviousSignal().Connect(_accessibilityManagerActionPreviousEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionPreviousEventHandler != null)
+ {
+ this.ActionPreviousSignal().Disconnect(_accessibilityManagerActionPreviousEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionPreviousEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionActivateEventArgs, bool> ActionActivate
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionActivateEventHandler == null)
+ {
+ _accessibilityManagerActionActivateEventHandler += value;
+
+ _accessibilityManagerActionActivateEventCallbackDelegate = new ActionActivateEventCallbackDelegate(OnActionActivate);
+ this.ActionActivateSignal().Connect(_accessibilityManagerActionActivateEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionActivateEventHandler != null)
+ {
+ this.ActionActivateSignal().Disconnect(_accessibilityManagerActionActivateEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionActivateEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionReadEventArgs, bool> ActionRead
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionReadEventHandler == null)
+ {
+ _accessibilityManagerActionReadEventHandler += value;
+
+ _accessibilityManagerActionReadEventCallbackDelegate = new ActionReadEventCallbackDelegate(OnActionRead);
+ this.ActionReadSignal().Connect(_accessibilityManagerActionReadEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionReadEventHandler != null)
+ {
+ this.ActionReadSignal().Disconnect(_accessibilityManagerActionReadEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionReadEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionOverEventArgs, bool> ActionOver
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionOverEventHandler == null)
+ {
+ _accessibilityManagerActionOverEventHandler += value;
+
+ _accessibilityManagerActionOverEventCallbackDelegate = new ActionOverEventCallbackDelegate(OnActionOver);
+ this.ActionOverSignal().Connect(_accessibilityManagerActionOverEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionOverEventHandler != null)
+ {
+ this.ActionOverSignal().Disconnect(_accessibilityManagerActionOverEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionOverEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionReadNextEventArgs, bool> ActionReadNext
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionReadNextEventHandler == null)
+ {
+ _accessibilityManagerActionReadNextEventHandler += value;
+
+ _accessibilityManagerActionReadNextEventCallbackDelegate = new ActionReadNextEventCallbackDelegate(OnActionReadNext);
+ this.ActionReadNextSignal().Connect(_accessibilityManagerActionReadNextEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionReadNextEventHandler != null)
+ {
+ this.ActionReadNextSignal().Disconnect(_accessibilityManagerActionReadNextEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionReadNextEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionReadPreviousEventArgs, bool> ActionReadPrevious
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionReadPreviousEventHandler == null)
+ {
+ _accessibilityManagerActionReadPreviousEventHandler += value;
+
+ _accessibilityManagerActionReadPreviousEventCallbackDelegate = new ActionReadPreviousEventCallbackDelegate(OnActionReadPrevious);
+ this.ActionReadPreviousSignal().Connect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionReadPreviousEventHandler != null)
+ {
+ this.ActionReadPreviousSignal().Disconnect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionReadPreviousEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionUpEventArgs, bool> ActionUp
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionUpEventHandler == null)
+ {
+ _accessibilityManagerActionUpEventHandler += value;
+
+ _accessibilityManagerActionUpEventCallbackDelegate = new ActionUpEventCallbackDelegate(OnActionUp);
+ this.ActionUpSignal().Connect(_accessibilityManagerActionUpEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionUpEventHandler != null)
+ {
+ this.ActionUpSignal().Disconnect(_accessibilityManagerActionUpEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionUpEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionDownEventArgs, bool> ActionDown
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionDownEventHandler == null)
+ {
+ _accessibilityManagerActionDownEventHandler += value;
+
+ _accessibilityManagerActionDownEventCallbackDelegate = new ActionDownEventCallbackDelegate(OnActionDown);
+ this.ActionDownSignal().Connect(_accessibilityManagerActionDownEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionDownEventHandler != null)
+ {
+ this.ActionDownSignal().Disconnect(_accessibilityManagerActionDownEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionDownEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionClearFocusEventArgs, bool> ActionClearFocus
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionClearFocusEventHandler == null)
+ {
+ _accessibilityManagerActionClearFocusEventHandler += value;
+
+ _accessibilityManagerActionClearFocusEventCallbackDelegate = new ActionClearFocusEventCallbackDelegate(OnActionClearFocus);
+ this.ActionClearFocusSignal().Connect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionClearFocusEventHandler != null)
+ {
+ this.ActionClearFocusSignal().Disconnect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionClearFocusEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionBackEventArgs, bool> ActionBack
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionBackEventHandler == null)
+ {
+ _accessibilityManagerActionBackEventHandler += value;
+
+ _accessibilityManagerActionBackEventCallbackDelegate = new ActionBackEventCallbackDelegate(OnActionBack);
+ this.ActionBackSignal().Connect(_accessibilityManagerActionBackEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionBackEventHandler != null)
+ {
+ this.ActionBackSignal().Disconnect(_accessibilityManagerActionBackEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionBackEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionScrollUpEventArgs, bool> ActionScrollUp
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionScrollUpEventHandler == null)
+ {
+ _accessibilityManagerActionScrollUpEventHandler += value;
+
+ _accessibilityManagerActionScrollUpEventCallbackDelegate = new ActionScrollUpEventCallbackDelegate(OnActionScrollUp);
+ this.ActionScrollUpSignal().Connect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionScrollUpEventHandler != null)
+ {
+ this.ActionScrollUpSignal().Disconnect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionScrollUpEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionScrollDownEventArgs, bool> ActionScrollDown
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionScrollDownEventHandler == null)
+ {
+ _accessibilityManagerActionScrollDownEventHandler += value;
+
+ _accessibilityManagerActionScrollDownEventCallbackDelegate = new ActionScrollDownEventCallbackDelegate(OnActionScrollDown);
+ this.ActionScrollDownSignal().Connect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionScrollDownEventHandler != null)
+ {
+ this.ActionScrollDownSignal().Disconnect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionScrollDownEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionPageLeftEventArgs, bool> ActionPageLeft
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionPageLeftEventHandler == null)
+ {
+ _accessibilityManagerActionPageLeftEventHandler += value;
+
+ _accessibilityManagerActionPageLeftEventCallbackDelegate = new ActionPageLeftEventCallbackDelegate(OnActionPageLeft);
+ this.ActionPageLeftSignal().Connect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionPageLeftEventHandler != null)
+ {
+ this.ActionPageLeftSignal().Disconnect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionPageLeftEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionPageRightEventArgs, bool> ActionPageRight
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionPageRightEventHandler == null)
+ {
+ _accessibilityManagerActionPageRightEventHandler += value;
+
+ _accessibilityManagerActionPageRightEventCallbackDelegate = new ActionPageRightEventCallbackDelegate(OnActionPageRight);
+ this.ActionPageRightSignal().Connect(_accessibilityManagerActionPageRightEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionPageRightEventHandler != null)
+ {
+ this.ActionPageRightSignal().Disconnect(_accessibilityManagerActionPageRightEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionPageRightEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionPageUpEventArgs, bool> ActionPageUp
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionPageUpEventHandler == null)
+ {
+ _accessibilityManagerActionPageUpEventHandler += value;
+
+ _accessibilityManagerActionPageUpEventCallbackDelegate = new ActionPageUpEventCallbackDelegate(OnActionPageUp);
+ this.ActionPageUpSignal().Connect(_accessibilityManagerActionPageUpEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionPageUpEventHandler != null)
+ {
+ this.ActionPageUpSignal().Disconnect(_accessibilityManagerActionPageUpEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionPageUpEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionPageDownEventArgs, bool> ActionPageDown
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionPageDownEventHandler == null)
+ {
+ _accessibilityManagerActionPageDownEventHandler += value;
+
+ _accessibilityManagerActionPageDownEventCallbackDelegate = new ActionPageDownEventCallbackDelegate(OnActionPageDown);
+ this.ActionPageDownSignal().Connect(_accessibilityManagerActionPageDownEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionPageDownEventHandler != null)
+ {
+ this.ActionPageDownSignal().Disconnect(_accessibilityManagerActionPageDownEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionPageDownEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionMoveToFirstEventArgs, bool> ActionMoveToFirst
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionMoveToFirstEventHandler == null)
+ {
+ _accessibilityManagerActionMoveToFirstEventHandler += value;
+
+ _accessibilityManagerActionMoveToFirstEventCallbackDelegate = new ActionMoveToFirstEventCallbackDelegate(OnActionMoveToFirst);
+ this.ActionMoveToFirstSignal().Connect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionMoveToFirstEventHandler != null)
+ {
+ this.ActionMoveToFirstSignal().Disconnect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionMoveToFirstEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionMoveToLastEventArgs, bool> ActionMoveToLast
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionMoveToLastEventHandler == null)
+ {
+ _accessibilityManagerActionMoveToLastEventHandler += value;
+
+ _accessibilityManagerActionMoveToLastEventCallbackDelegate = new ActionMoveToLastEventCallbackDelegate(OnActionMoveToLast);
+ this.ActionMoveToLastSignal().Connect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionMoveToLastEventHandler != null)
+ {
+ this.ActionMoveToLastSignal().Disconnect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionMoveToLastEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionReadFromTopEventArgs, bool> ActionReadFromTop
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionReadFromTopEventHandler == null)
+ {
+ _accessibilityManagerActionReadFromTopEventHandler += value;
+
+ _accessibilityManagerActionReadFromTopEventCallbackDelegate = new ActionReadFromTopEventCallbackDelegate(OnActionReadFromTop);
+ this.ActionReadFromTopSignal().Connect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionReadFromTopEventHandler != null)
+ {
+ this.ActionReadFromTopSignal().Disconnect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionReadFromTopEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionReadFromNextEventArgs, bool> ActionReadFromNext
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionReadFromNextEventHandler == null)
+ {
+ _accessibilityManagerActionReadFromNextEventHandler += value;
+
+ _accessibilityManagerActionReadFromNextEventCallbackDelegate = new ActionReadFromNextEventCallbackDelegate(OnActionReadFromNext);
+ this.ActionReadFromNextSignal().Connect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionReadFromNextEventHandler != null)
+ {
+ this.ActionReadFromNextSignal().Disconnect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionReadFromNextEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionZoomEventArgs, bool> ActionZoom
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionZoomEventHandler == null)
+ {
+ _accessibilityManagerActionZoomEventHandler += value;
+
+ _accessibilityManagerActionZoomEventCallbackDelegate = new ActionZoomEventCallbackDelegate(OnActionZoom);
+ this.ActionZoomSignal().Connect(_accessibilityManagerActionZoomEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionZoomEventHandler != null)
+ {
+ this.ActionZoomSignal().Disconnect(_accessibilityManagerActionZoomEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionZoomEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionReadIndicatorInformationEventArgs, bool> ActionReadIndicatorInformation
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionReadIndicatorInformationEventHandler == null)
+ {
+ _accessibilityManagerActionReadIndicatorInformationEventHandler += value;
+
+ _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate = new ActionReadIndicatorInformationEventCallbackDelegate(OnActionReadIndicatorInformation);
+ this.ActionReadIndicatorInformationSignal().Connect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionReadIndicatorInformationEventHandler != null)
+ {
+ this.ActionReadIndicatorInformationSignal().Disconnect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionReadIndicatorInformationEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionReadPauseResumeEventArgs, bool> ActionReadPauseResume
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionReadPauseResumeEventHandler == null)
+ {
+ _accessibilityManagerActionReadPauseResumeEventHandler += value;
+
+ _accessibilityManagerActionReadPauseResumeEventCallbackDelegate = new ActionReadPauseResumeEventCallbackDelegate(OnActionReadPauseResume);
+ this.ActionReadPauseResumeSignal().Connect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionReadPauseResumeEventHandler != null)
+ {
+ this.ActionReadPauseResumeSignal().Disconnect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionReadPauseResumeEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandlerWithReturnType<object, ActionStartStopEventArgs, bool> ActionStartStop
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionStartStopEventHandler == null)
+ {
+ _accessibilityManagerActionStartStopEventHandler += value;
+
+ _accessibilityManagerActionStartStopEventCallbackDelegate = new ActionStartStopEventCallbackDelegate(OnActionStartStop);
+ this.ActionStartStopSignal().Connect(_accessibilityManagerActionStartStopEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerActionStartStopEventHandler != null)
+ {
+ this.ActionStartStopSignal().Disconnect(_accessibilityManagerActionStartStopEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionStartStopEventHandler -= value;
+ }
+ }
+ }
+
+ /*
+ // To be replaced by a new event that takes Touch
+ public event DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> ActionScroll
+ {
+ add
+ {
+ lock(this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerActionScrollEventHandler == null)
+ {
+ _accessibilityManagerActionScrollEventHandler += value;
+
+ _accessibilityManagerActionScrollEventCallbackDelegate = new ActionScrollEventCallbackDelegate(OnActionScroll);
+ this.ActionScrollSignal().Connect(_accessibilityManagerActionScrollEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock(this)
+ {
+ if (_accessibilityManagerActionScrollEventHandler != null)
+ {
+ this.ActionScrollSignal().Disconnect(_accessibilityManagerActionScrollEventCallbackDelegate);
+ }
+
+ _accessibilityManagerActionScrollEventHandler -= value;
+ }
+ }
+ }
+
+ // Callback for AccessibilityManager ActionScrollSignal
+ private bool OnActionScroll(IntPtr accessibilityManager, IntPtr touchEvent)
+ {
+ ActionScrollEventArgs e = new ActionScrollEventArgs();
+
+ // Populate all members of "e" (ActionScrollEventArgs) with real data
+ e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(accessibilityManager);
+ e.TouchEvent = TouchEvent.GetTouchEventFromPtr(touchEvent);
+
+ if (_accessibilityManagerActionScrollEventHandler != null)
+ {
+ //here we send all data to user event handlers
+ return _accessibilityManagerActionScrollEventHandler(this, e);
+ }
+ return false;
+ }
+ */
+
+ public event DaliEventHandler<object, FocusChangedEventArgs> FocusChanged
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerFocusChangedEventHandler == null)
+ {
+ _accessibilityManagerFocusChangedEventHandler += value;
+
+ _accessibilityManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged);
+ this.FocusChangedSignal().Connect(_accessibilityManagerFocusChangedEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerFocusChangedEventHandler != null)
+ {
+ this.FocusChangedSignal().Disconnect(_accessibilityManagerFocusChangedEventCallbackDelegate);
+ }
+
+ _accessibilityManagerFocusChangedEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandler<object, FocusedViewActivatedEventArgs> FocusedViewActivated
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerFocusedViewActivatedEventHandler == null)
+ {
+ _accessibilityManagerFocusedViewActivatedEventHandler += value;
+
+ _accessibilityManagerFocusedViewActivatedEventCallbackDelegate = new FocusedViewActivatedEventCallbackDelegate(OnFocusedViewActivated);
+ this.FocusedViewActivatedSignal().Connect(_accessibilityManagerFocusedViewActivatedEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerFocusedViewActivatedEventHandler != null)
+ {
+ this.FocusedViewActivatedSignal().Disconnect(_accessibilityManagerFocusedViewActivatedEventCallbackDelegate);
+ }
+
+ _accessibilityManagerFocusedViewActivatedEventHandler -= value;
+ }
+ }
+ }
+
+ public event DaliEventHandler<object, FocusOvershotEventArgs> FocusOvershot
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_accessibilityManagerFocusOvershotEventHandler == null)
+ {
+ _accessibilityManagerFocusOvershotEventHandler += value;
+
+ _accessibilityManagerFocusOvershotEventCallbackDelegate = new FocusOvershotEventCallbackDelegate(OnFocusOvershot);
+ this.FocusOvershotSignal().Connect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_accessibilityManagerFocusOvershotEventHandler != null)
+ {
+ this.FocusOvershotSignal().Disconnect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
+ }
+
+ _accessibilityManagerFocusOvershotEventHandler -= value;
+ }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI
+{
+ internal partial class AccessibilityManager
+ {
+ /**
+ * @brief Event arguments that passed via StatusChanged signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class StatusChangedEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionNext signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionNextEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionPrevious signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionPreviousEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionActivate signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionActivateEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionRead signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionReadEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionOver signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionOverEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionReadNext signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionReadNextEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionReadPrevious signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionReadPreviousEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionUp signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionUpEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionDown signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionDownEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionClearFocus signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionClearFocusEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionBack signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionBackEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionScrollUp signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionScrollUpEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionScrollDown signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionScrollDownEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionPageLeft signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionPageLeftEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionPageRight signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionPageRightEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionPageUp signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionPageUpEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionPageDown signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionPageDownEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionMoveToFirst signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionMoveToFirstEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionMoveToLast signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionMoveToLastEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionReadFromTop signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionReadFromTopEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionReadFromNext signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionReadFromNextEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionZoom signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionZoomEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionReadIndicatorInformation signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionReadIndicatorInformationEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionReadPauseResume signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionReadPauseResumeEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via ActionStartStop signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class ActionStartStopEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+ }
+
+ /*
+ // To be replaced by a new event that takes Touch
+ public class ActionScrollEventArgs : EventArgs
+ {
+ private AccessibilityManager _accessibilityManager;
+ private TouchEvent _touchEvent;
+
+ public AccessibilityManager AccessibilityManager
+ {
+ get
+ {
+ return _accessibilityManager;
+ }
+ set
+ {
+ _accessibilityManager = value;
+ }
+ }
+
+ public TouchEvent TouchEvent
+ {
+ get
+ {
+ return _touchEvent;
+ }
+ set
+ {
+ _touchEvent = value;
+ }
+ }
+ }
+ */
+
+ /**
+ * @brief Event arguments that passed via ActionPageUp signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class FocusChangedEventArgs : EventArgs
+ {
+ private View _viewCurrent;
+ private View _viewNext;
+
+ /// <since_tizen> 3 </since_tizen>
+ public View ViewCurrent
+ {
+ get
+ {
+ return _viewCurrent;
+ }
+ set
+ {
+ _viewCurrent = value;
+ }
+ }
+
+ /// <since_tizen> 3 </since_tizen>
+ public View ViewNext
+ {
+ get
+ {
+ return _viewNext;
+ }
+ set
+ {
+ _viewNext = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via FocusedViewActivated signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class FocusedViewActivatedEventArgs : EventArgs
+ {
+ private View _view;
+
+
+ /// <since_tizen> 3 </since_tizen>
+ public View View
+ {
+ get
+ {
+ return _view;
+ }
+ set
+ {
+ _view = value;
+ }
+ }
+ }
+
+ /**
+ * @brief Event arguments that passed via FocusOvershot signal
+ *
+ */
+ /// <since_tizen> 3 </since_tizen>
+ public class FocusOvershotEventArgs : EventArgs
+ {
+ private View _currentFocusedView;
+ private AccessibilityManager.FocusOvershotDirection _focusOvershotDirection;
+
+ /// <since_tizen> 3 </since_tizen>
+ public View CurrentFocusedView
+ {
+ get
+ {
+ return _currentFocusedView;
+ }
+ set
+ {
+ _currentFocusedView = value;
+ }
+ }
+
+ /// <since_tizen> 3 </since_tizen>
+ public AccessibilityManager.FocusOvershotDirection FocusOvershotDirection
+ {
+ get
+ {
+ return _focusOvershotDirection;
+ }
+ set
+ {
+ _focusOvershotDirection = value;
+ }
+ }
+ }
+ }
+}
/*
- * Copyright(c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
-using System;
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
using System.Collections.Generic;
using System.Text;
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
--- /dev/null
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Tizen.NUI
+{
+ internal static partial class Interop
+ {
+ internal static partial class RotationGesture
+ {
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_RotationGestureDetector__SWIG_0")]
+ public static extern global::System.IntPtr new_RotationGestureDetector__SWIG_0();
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetector_New")]
+ public static extern global::System.IntPtr RotationGestureDetector_New();
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetector_DownCast")]
+ public static extern global::System.IntPtr RotationGestureDetector_DownCast(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_RotationGestureDetector")]
+ public static extern void delete_RotationGestureDetector(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_RotationGestureDetector__SWIG_1")]
+ public static extern global::System.IntPtr new_RotationGestureDetector__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetector_Assign")]
+ public static extern global::System.IntPtr RotationGestureDetector_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetector_DetectedSignal")]
+ public static extern global::System.IntPtr RotationGestureDetector_DetectedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_RotationGesture__SWIG_0")]
+ public static extern global::System.IntPtr new_RotationGesture__SWIG_0(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_RotationGesture__SWIG_1")]
+ public static extern global::System.IntPtr new_RotationGesture__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_Assign")]
+ public static extern global::System.IntPtr RotationGesture_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_RotationGesture")]
+ public static extern void delete_RotationGesture(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_rotation_set")]
+ public static extern void RotationGesture_rotation_set(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_rotation_get")]
+ public static extern float RotationGesture_rotation_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_screenCenterPoint_set")]
+ public static extern void RotationGesture_screenCenterPoint_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_screenCenterPoint_get")]
+ public static extern global::System.IntPtr RotationGesture_screenCenterPoint_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_localCenterPoint_set")]
+ public static extern void RotationGesture_localCenterPoint_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_localCenterPoint_get")]
+ public static extern global::System.IntPtr RotationGesture_localCenterPoint_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetectedSignal_Empty")]
+ public static extern bool RotationGestureDetectedSignal_Empty(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetectedSignal_GetConnectionCount")]
+ public static extern uint RotationGestureDetectedSignal_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetectedSignal_Connect")]
+ public static extern void RotationGestureDetectedSignal_Connect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetectedSignal_Disconnect")]
+ public static extern void RotationGestureDetectedSignal_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetectedSignal_Emit")]
+ public static extern void RotationGestureDetectedSignal_Emit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_RotationGestureDetectedSignal")]
+ public static extern global::System.IntPtr new_RotationGestureDetectedSignal();
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_RotationGestureDetectedSignal")]
+ public static extern void delete_RotationGestureDetectedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGestureDetector_SWIGUpcast")]
+ public static extern global::System.IntPtr RotationGestureDetector_SWIGUpcast(global::System.IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_SWIGUpcast")]
+ public static extern global::System.IntPtr RotationGesture_SWIGUpcast(global::System.IntPtr jarg1);
+ }
+ }
+}
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public bool OverrideCoreAnimation {get;set;} = false;
/// <summary>
- /// Destructor which adds LayoutController to the Dispose queue.
- /// </summary>
- ~LayoutController()
- {
- }
-
- /// <summary>
- /// Explict Dispose.
- /// </summary>
- public void Dispose()
- {
- Dispose(DisposeTypes.Explicit);
- }
-
- /// <summary>
/// Add transition data for a LayoutItem to the transition stack.
/// </summary>
/// <param name="transitionDataEntry">Transition data for a LayoutItem.</param>
/*
- * Copyright(c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ using Tizen.NUI.BaseComponents;
+ internal class RotationGestureDetectedSignal : global::System.IDisposable
+ {
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+
+ internal RotationGestureDetectedSignal(global::System.IntPtr cPtr, bool cMemoryOwn)
+ {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RotationGestureDetectedSignal obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ //A Flag to check who called Dispose(). (By User or DisposeQueue)
+ private bool isDisposeQueued = false;
+ //A Flat to check if it is already disposed.
+ protected bool disposed = false;
+
+
+ ~RotationGestureDetectedSignal()
+ {
+ if (!isDisposeQueued)
+ {
+ isDisposeQueued = true;
+ DisposeQueue.Instance.Add(this);
+ }
+ }
+
+ public void Dispose()
+ {
+ //Throw excpetion if Dispose() is called in separate thread.
+ if (!Window.IsInstalled())
+ {
+ throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+ }
+
+ if (isDisposeQueued)
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+ else
+ {
+ Dispose(DisposeTypes.Explicit);
+ System.GC.SuppressFinalize(this);
+ }
+ }
+
+ protected virtual void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ Interop.RotationGesture.delete_RotationGestureDetectedSignal(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ disposed = true;
+ }
+
+ public bool Empty()
+ {
+ bool ret = Interop.RotationGesture.RotationGestureDetectedSignal_Empty(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public uint GetConnectionCount()
+ {
+ uint ret = Interop.RotationGesture.RotationGestureDetectedSignal_GetConnectionCount(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void Connect(System.Delegate func)
+ {
+ System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
+ {
+ Interop.RotationGesture.RotationGestureDetectedSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+
+ public void Disconnect(System.Delegate func)
+ {
+ System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
+ {
+ Interop.RotationGesture.RotationGestureDetectedSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+
+ public void Emit(View arg1, RotationGesture arg2)
+ {
+ Interop.RotationGesture.RotationGestureDetectedSignal_Emit(swigCPtr, View.getCPtr(arg1), RotationGesture.getCPtr(arg2));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public RotationGestureDetectedSignal() : this(Interop.RotationGesture.new_RotationGestureDetectedSignal(), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ }
+
+}
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
-//------------------------------------------------------------------------------
-// <auto-generated />
-//
-// This file was automatically generated by SWIG (http://www.swig.org).
-// Version 3.0.12
-//
-// Do not make changes to this file unless you know what you are doing--modify
-// the SWIG interface file instead.
-//------------------------------------------------------------------------------
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
using System;
using System.ComponentModel;
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
if (_widthPolicy >= 0)
{
_measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
- //Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
- Size2D.Width = _widthPolicy;
+ Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
}
_layout?.RequestLayout();
}
if (_heightPolicy >= 0)
{
_measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
- //Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
- Size2D.Height = _heightPolicy;
+ Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
}
_layout?.RequestLayout();
}
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
-* Copyright (c) 2017 Samsung Electronics Co., Ltd.
+* Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
/// <summary>
- /// Enumeration for the text horizontal aligning.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum HorizontalAlignment
- {
- /// <summary>
- /// Texts place at the begin of horizontal direction.
- /// </summary>
- Begin,
- /// <summary>
- /// Texts place at the center of horizontal direction.
- /// </summary>
- Center,
- /// <summary>
- /// Texts place at the end of horizontal direction.
- /// </summary>
- End
- }
-
- /// <summary>
- /// Enumeration for the text horizontal aligning.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum VerticalAlignment
- {
- /// <summary>
- /// Texts place at the top of vertical direction.
- /// </summary>
- Top,
- /// <summary>
- /// Texts place at the center of vertical direction.
- /// </summary>
- Center,
- /// <summary>
- /// Texts place at the bottom of vertical direction.
- /// </summary>
- Bottom
- }
-
- /// <summary>
- /// This specifies wrap mode types.<br />
- /// WrapModeU and WrapModeV separately decide how the texture should be sampled when the u and v coordinate exceeds the range of 0.0 to 1.0.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum WrapModeType
- {
- /// <summary>
- /// The default value.
- /// </summary>
- Default = 0,
- /// <summary>
- /// Clamp to edge.
- /// </summary>
- ClampToEdge,
- /// <summary>
- /// Repeat.
- /// </summary>
- Repeat,
- /// <summary>
- /// Mirrored repeat.
- /// </summary>
- MirroredRepeat
- }
-
- /// <summary>
- /// Specifies the release policy types.<br />
- /// Decides if the image should be cached in different conditions.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public enum ReleasePolicyType
- {
- /// <summary>
- /// Image is released when visual detached from scene.
- /// </summary>
- Detached = 0,
- /// <summary>
- /// Image is only released when visual is destroyed.
- /// </summary>
- Destroyed,
- /// <summary>
- /// Image is not released.
- /// </summary>
- Never
- }
-
- /// <summary>
- /// Specifies the load policy types.<br />
- /// Decides when the image texture should be loaded.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public enum LoadPolicyType
- {
- /// <summary>
- /// Load texture once the image source has been provided. Even if not being used yet.
- /// </summary>
- Immediate = 0,
- /// <summary>
- /// Only load texture once the visual is attached, when the image needs to be shown.
- /// </summary>
- Attached
- }
-
- /// <summary>
- /// The type of coordinate system for certain attributes of the points in a gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum GradientVisualUnitsType
- {
- /// <summary>
- /// Uses the normals for the start, end, and center points, i.e., top-left is (-0.5, -0.5) and bottom-right is (0.5, 0.5).
- /// </summary>
- ObjectBoundingBox,
- /// <summary>
- /// Uses the user coordinates for the start, end, and center points, i.e., in a 200 by 200 control, top-left is (0, 0) and bottom-right is (200, 200).
- /// </summary>
- UserSpace
- }
-
- /// <summary>
- /// This specifies SpreadMethod types.<br />
- /// SpreadMethod defines what happens if the gradient starts or ends inside the bounds of the target rectangle.<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum GradientVisualSpreadMethodType
- {
- /// <summary>
- /// Uses the terminal colors of the gradient to fill the remainder of the quad.
- /// </summary>
- Pad,
- /// <summary>
- /// Reflects the gradient pattern start-to-end, end-to-start, start-to-end, etc. until the quad is filled.
- /// </summary>
- Reflect,
- /// <summary>
- /// Repeats the gradient pattern start-to-end, start-to-end, start-to-end, etc. until the quad is filled.
- /// </summary>
- Repeat
- }
-
- /// <summary>
- /// The shading mode used by the mesh visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum MeshVisualShadingModeValue
- {
- /// <summary>
- /// *Simplest*. One color that is lit by ambient and diffuse lighting.
- /// </summary>
- TexturelessWithDiffuseLighting,
- /// <summary>
- /// Uses only the visual image textures provided with specular lighting in addition to ambient and diffuse lighting.
- /// </summary>
- TexturedWithSpecularLighting,
- /// <summary>
- /// Uses all textures provided including gloss, normal, and texture map along with specular, ambient, and diffuse lighting.
- /// </summary>
- TexturedWithDetailedSpecularLighting
- }
-
- /// <summary>
- /// The primitive shape to render as a primitive visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum PrimitiveVisualShapeType
- {
- /// <summary>
- /// A perfectly round geometrical object in the three-dimensional space.
- /// </summary>
- Sphere,
- /// <summary>
- /// The area bound between two circles, i.e., a cone with the tip removed.
- /// </summary>
- ConicalFrustrum,
- /// <summary>
- /// Equivalent to a conical frustrum with the top radius of zero.
- /// </summary>Equivalent to a conical frustrum with the top radius of zero.
- Cone,
- /// <summary>
- /// Equivalent to a conical frustrum with the top radius of zero.
- /// </summary>
- Cylinder,
- /// <summary>
- /// Equivalent to a conical frustrum with equal radii for the top and bottom circles.
- /// </summary>
- Cube,
- /// <summary>
- /// Equivalent to a bevelled cube with a bevel percentage of zero.
- /// </summary>
- Octahedron,
- /// <summary>
- /// Equivalent to a bevelled cube with a bevel percentage of one.
- /// </summary>
- BevelledCube
- }
-
- /// <summary>
- /// This specifies fitting mode types. Fitting options, used when resizing images to fit desired dimensions.<br />
- /// A fitting mode controls the region of a loaded image to be mapped to the desired image rectangle.<br />
- /// All fitting modes preserve the aspect ratio of the image contents.<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum FittingModeType
- {
- /// <summary>
- /// Full-screen image display: Limit loaded image resolution to device resolution using the ShrinkToFit mode.
- /// </summary>
- ShrinkToFit,
- /// <summary>
- /// Thumbnail gallery grid: Limit loaded image resolution to screen tile using the ScaleToFill mode.
- /// </summary>
- ScaleToFill,
- /// <summary>
- /// Image columns: Limit loaded image resolution to column width using the FitWidth mode.
- /// </summary>
- FitWidth,
- /// <summary>
- /// Image rows: Limit loaded image resolution to row height using the FitHeight mode.
- /// </summary>
- FitHeight
- }
-
- /// <summary>
- /// The values of this enum determine how the visual should fit into the view.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public enum VisualFittingModeType
- {
- /// <summary>
- /// The visual should be scaled to fit, preserving aspect ratio.
- /// </summary>
- FitKeepAspectRatio,
- /// <summary>
- /// The visual should be stretched to fill, not preserving aspect ratio.
- /// </summary>
- Fill
- }
-
- /// <summary>
- /// This specifies sampling mode types. Filtering options are used when resizing images to sample original pixels.<br />
- /// A SamplingMode controls how pixels in an input image are sampled and combined to generate each pixel of a destination image during scaling.<br />
- /// NoFilter and Box modes do not guarantee that the output pixel array exactly matches the rectangle specified by the desired dimensions and the FittingMode,<br />
- /// but all other filter modes do if the desired dimensions are not more than the raw dimensions of the input image file.<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum SamplingModeType
- {
- /// <summary>
- /// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size. <br />
- /// This is the default.
- /// </summary>
- Box,
- /// <summary>
- /// For each output pixel, read one input pixel.
- /// </summary>
- Nearest,
- /// <summary>
- /// For each output pixel, read a quad of four input pixels and write a weighted average of them.
- /// </summary>
- Linear,
- /// <summary>
- /// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size, <br />
- /// then for each output pixel, read one pixel from the last level of box filtering.<br />
- /// </summary>
- BoxThenNearest,
- /// <summary>
- /// Iteratively box filter to almost the right size, then for each output pixel, read four pixels from the last level of box filtering and write their weighted average.
- /// </summary>
- BoxThenLinear,
- /// <summary>
- /// No filtering is performed. If the SCALE_TO_FILL scaling mode is enabled, the borders of the image may be trimmed to match the aspect ratio of the desired dimensions.
- /// </summary>
- NoFilter,
- /// <summary>
- /// For caching algorithms where a client strongly prefers a cache-hit to reuse a cached image.
- /// </summary>
- DontCare
- }
-
- /// <summary>
- /// This specifies policy types that could be used by the transform for the offset or size.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum VisualTransformPolicyType
- {
- /// <summary>
- /// Relative to the control (percentage [0.0f to 1.0f] of the control).
- /// </summary>
- Relative = 0,
- /// <summary>
- /// Absolute value in world units.
- /// </summary>
- Absolute = 1
- }
-
- /// <summary>
- /// This specifies all the transform property types.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum VisualTransformPropertyType
- {
- /// <summary>
- /// Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
- /// </summary>
- Offset,
- /// <summary>
- /// Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
- /// </summary>
- Size,
- /// <summary>
- /// The origin of the visual within its control area.
- /// </summary>
- Origin,
- /// <summary>
- /// The anchor-point of the visual.
- /// </summary>
- AnchorPoint,
- /// <summary>
- /// Whether the x or y offset values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
- /// </summary>
- OffsetPolicy,
- /// <summary>
- /// Whether the width or the height size values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
- /// </summary>
- SizePolicy
- }
-
- /// <summary>
/// The type for HiddenInput mode.
/// </summary>
/// <since_tizen> 3 </since_tizen>
}
/// <summary>
- /// This specifies visual types.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct Visual
- {
- /// <summary>
- /// The index for the visual type.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum Type
- {
- /// <summary>
- /// Renders a solid color as an internal border to the control's quad.
- /// </summary>
- Border,
- /// <summary>
- /// Renders a solid color to the control's quad.
- /// </summary>
- Color,
- /// <summary>
- /// Renders a smooth transition of colors to the control's quad.
- /// </summary>
- Gradient,
- /// <summary>
- /// Renders an image into the control's quad.
- /// </summary>
- Image,
- /// <summary>
- /// Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file.
- /// </summary>
- Mesh,
- /// <summary>
- /// Renders a simple 3D shape, such as a cube or a sphere.
- /// </summary>
- Primitive,
- /// <summary>
- /// Renders a simple wire-frame outlining a quad.
- /// </summary>
- Wireframe,
- /// <summary>
- /// Renders text.
- /// </summary>
- Text,
- /// <summary>
- /// Renders an NPatch image.
- /// </summary>
- NPatch,
- /// <summary>
- /// Renders an SVG image.
- /// </summary>
- SVG,
- /// <summary>
- /// Renders a animated image (animated GIF).
- /// </summary>
- AnimatedImage
- }
-
- /// <summary>
- /// This specifies visual properties.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct Property
- {
- /// <summary>
- /// Type.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Type = NDalic.VISUAL_PROPERTY_TYPE;
- /// <summary>
- /// Shader.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Shader = NDalic.VISUAL_PROPERTY_SHADER;
- /// <summary>
- /// Transform.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Transform = NDalic.VISUAL_PROPERTY_TRANSFORM;
- /// <summary>
- /// PremultipliedAlpha.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int PremultipliedAlpha = NDalic.VISUAL_PROPERTY_PREMULTIPLIED_ALPHA;
- /// <summary>
- /// MixColor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MixColor = NDalic.VISUAL_PROPERTY_MIX_COLOR;
- /// <summary>
- /// Opacity.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Opacity = NDalic.VISUAL_PROPERTY_MIX_COLOR + 1;
- /// <summary>
- /// The fitting mode of the visual.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int VisualFittingMode = NDalic.VISUAL_PROPERTY_MIX_COLOR + 2;
- }
-
- /// <summary>
- /// This specifies shader properties.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct ShaderProperty
- {
- /// <summary>
- /// Vertex shader code
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int VertexShader = NDalic.VISUAL_SHADER_VERTEX;
- /// <summary>
- /// Fragment shader code
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FragmentShader = NDalic.VISUAL_SHADER_FRAGMENT;
- /// <summary>
- /// How to subdivide the grid along X
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ShaderSubdivideGridX = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_X;
- /// <summary>
- /// How to subdivide the grid along Y
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ShaderSubdivideGridY = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_Y;
- /// <summary>
- /// Bitmask of hints
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ShaderHints = NDalic.VISUAL_SHADER_HINTS;
- }
-
- /// <summary>
- /// This specifies visaul align types.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum AlignType
- {
- /// <summary>
- /// TopBegin
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- TopBegin = 0,
- /// <summary>
- /// TopCenter
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- TopCenter,
- /// <summary>
- /// TopEnd
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- TopEnd,
- /// <summary>
- /// CenterBegin
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- CenterBegin,
- /// <summary>
- /// Center
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- Center,
- /// <summary>
- /// CenterEnd
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- CenterEnd,
- /// <summary>
- /// BottomBegin
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- BottomBegin,
- /// <summary>
- /// BottomCenter
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- BottomCenter,
- /// <summary>
- /// BottomEnd
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- BottomEnd
- }
- }
-
- /// <summary>
- /// This specifies properties of the BorderVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct BorderVisualProperty
- {
- /// <summary>
- /// The color of the border.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Color = NDalic.BORDER_VISUAL_COLOR;
- /// <summary>
- /// The width of the border (in pixels).
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Size = NDalic.BORDER_VISUAL_SIZE;
- /// <summary>
- /// Whether anti-aliasing of the border is required.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int AntiAliasing = NDalic.BORDER_VISUAL_ANTI_ALIASING;
- }
-
- /// <summary>
- /// This specifies properties of the ColorVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct ColorVisualProperty
- {
- /// <summary>
- /// The solid color required.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MixColor = NDalic.COLOR_VISUAL_MIX_COLOR;
- /// <summary>
- /// Whether to render if the MixColor is transparent.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int RenderIfTransparent = NDalic.COLOR_VISUAL_MIX_COLOR + 1;
- }
-
- /// <summary>
- /// This specifies properties of the GradientVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct GradientVisualProperty
- {
- /// <summary>
- /// The start position of a linear gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int StartPosition = NDalic.GRADIENT_VISUAL_START_POSITION;
- /// <summary>
- /// The end position of a linear gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int EndPosition = NDalic.GRADIENT_VISUAL_END_POSITION;
- /// <summary>
- /// The center point of a radial gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Center = NDalic.GRADIENT_VISUAL_CENTER;
- /// <summary>
- /// The size of the radius of a radial gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Radius = NDalic.GRADIENT_VISUAL_RADIUS;
- /// <summary>
- /// All the stop offsets.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int StopOffset = NDalic.GRADIENT_VISUAL_STOP_OFFSET;
- /// <summary>
- /// The color at the stop offsets.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int StopColor = NDalic.GRADIENT_VISUAL_STOP_COLOR;
- /// <summary>
- /// Defines the coordinate system for certain attributes of the points in a gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Units = NDalic.GRADIENT_VISUAL_UNITS;
- /// <summary>
- /// Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int SpreadMethod = NDalic.GRADIENT_VISUAL_SPREAD_METHOD;
- }
-
- /// <summary>
- /// This specifies properties of the ImageVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct ImageVisualProperty
- {
- /// <summary>
- /// The URL of the image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
-
- /// <summary>
- /// Fitting options, used when resizing images to fit desired dimensions.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
-
- /// <summary>
- /// Filtering options, used when resizing images to sample original pixels.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
-
- /// <summary>
- /// The desired image width.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
-
- /// <summary>
- /// The desired image height.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
-
- /// <summary>
- /// Whether to load the image synchronously.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
-
- /// <summary>
- /// If true, only draws the borders.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
-
- /// <summary>
- /// The image area to be displayed.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
-
- /// <summary>
- /// The wrap mode for u coordinate.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
-
- /// <summary>
- /// The wrap mode for v coordinate.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
-
- /// <summary>
- /// The border of the image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Border = NDalic.IMAGE_VISUAL_BORDER;
-
- /// <summary>
- /// Whether to use the texture atlas.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int Atlasing = NDalic.IMAGE_VISUAL_BORDER + 1;
-
- /// <summary>
- /// The URL of the alpha mask image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL;
-
- /// <summary>
- /// Defines the batch size for pre-loading images in the AnimatedImageVisual
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int BatchSize = NDalic.IMAGE_VISUAL_BATCH_SIZE;
-
- /// <summary>
- /// Defines the cache size for loading images in the AnimatedImageVisual
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int CacheSize = NDalic.IMAGE_VISUAL_CACHE_SIZE;
-
- /// <summary>
- /// The number of milliseconds between each frame in the AnimatedImageVisual
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int FrameDelay = NDalic.IMAGE_VISUAL_FRAME_DELAY;
-
- /// <summary>
- /// The scale factor to apply to the content image before masking.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE;
-
- /// <summary>
- /// Whether to crop image to mask or scale mask to fit image
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK;
-
- /// <summary>
- /// The policy to determine when an image should be loaded.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int LoadPolicy = NDalic.IMAGE_VISUAL_LOAD_POLICY;
-
- /// <summary>
- /// The policy to determine when an image should no longer be cached.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY;
-
- /// <summary>
- /// Determines if image orientation should be corrected so that the image displays as it was intended.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int OrientationCorrection = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION;
-
- /// <summary>
- /// Overlays the auxiliary image on top of an NPatch image.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int AuxiliaryImageURL = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_URL;
-
- /// <summary>
- /// Alpha value for the auxiliary image, without affecting the underlying NPatch image
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int AuxiliaryImageAlpha = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_ALPHA;
-
- /// <summary>
- /// The number of times the AnimatedImageVisual will be looped.
- /// The default is -1. If the value is less than 0, loop unlimited. Otherwise, loop loopCount times.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int LoopCount = NDalic.IMAGE_VISUAL_LOOP_COUNT;
-
- /// <summary>
- /// @brief The playing range the AnimatedVectorImageVisual will use.
- /// Animation will play between the values specified.The array can only have two values, and more will be ignored.
- /// Both values should be between 0 and the total frame number, otherwise they will be ignored.
- /// If the range provided is not in proper order (minimum, maximum), it will be reordered.
- /// @details Name "playRange", Type Property::ARRAY of Property::INTEGER
- /// @note Default 0 and the total frame number.
- /// </summary>
- /// <remarks>
- /// Hidden API (Inhouse API)
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int PlayRange = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 4;
-
- /// <summary>
- /// @brief The playing state the AnimatedVectorImageVisual will use.
- /// @details Name "playState", type PlayState (Property::INTEGER)
- /// @note This property is read-only.
- /// </summary>
- /// <remarks>
- /// Hidden API (Inhouse API)
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int PlayState = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 5;
-
- /// <summary>
- /// @brief The current frame number the AnimatedVectorImageVisual will use.
- /// @details Name "currentFrameNumber", Type Property::INTEGER, between[0, the maximum frame number] or between the play range if specified
- /// @note This property is read-only.
- /// </summary>
- /// <remarks>
- /// Inhouse API
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int CurrentFrameNumber = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 6;
-
- /// <summary>
- /// @brief The total frame number the AnimatedVectorImageVisual will use.
- /// @details Name "totalFrameNumber", Type Property::INTEGER.
- /// @note This property is read-only.
- /// </summary>
- /// <remarks>
- /// Inhouse API
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int TotalFrameNumber = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 7;
-
- /// <summary>
- /// @brief The stop behavior the AnimatedVectorImageVisual will use.
- /// @details Name "stopBehavior", Type StopBehavior::Type (Property::INTEGER)
- /// @note Default value is StopBehavior::CURRENT_FRAME.
- /// </summary>
- /// <remarks>
- /// Inhouse API
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int StopBehavior = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 8;
-
- /// <summary>
- /// @brief The looping mode the AnimatedVectorImageVisual will use.
- /// @details Name "loopingMode", Type LoopingMode::Type (Property::INTEGER)
- /// @note Default value is LoopingMode::RESTART.
- /// </summary>
- /// <remarks>
- /// Inhouse API
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int LoopingMode = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 9;
- }
-
- /// <summary>
- /// This specifies properties of the MeshVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct MeshVisualProperty
- {
- /// <summary>
- /// The location of the ".obj" file.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ObjectURL = NDalic.MESH_VISUAL_OBJECT_URL;
- /// <summary>
- /// The location of the ".mtl" file.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MaterialtURL = NDalic.MESH_VISUAL_MATERIAL_URL;
- /// <summary>
- /// Path to the directory the textures (including gloss and normal) are stored in.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int TexturesPath = NDalic.MESH_VISUAL_TEXTURES_PATH;
- /// <summary>
- /// Sets the type of shading mode that the mesh will use.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ShadingMode = NDalic.MESH_VISUAL_SHADING_MODE;
- /// <summary>
- /// Whether to use mipmaps for textures or not.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int UseMipmapping = NDalic.MESH_VISUAL_USE_MIPMAPPING;
- /// <summary>
- /// Whether to average normals at each point to smooth textures or not.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int UseSoftNormals = NDalic.MESH_VISUAL_USE_SOFT_NORMALS;
- /// <summary>
- /// The position, in stage space, of the point light that applies lighting to the model.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int LightPosition = NDalic.MESH_VISUAL_LIGHT_POSITION;
- }
-
- /// <summary>
- /// This specifies properties of the PrimitiveVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct PrimitiveVisualProperty
- {
- /// <summary>
- /// The specific shape to render.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Shape = NDalic.PRIMITIVE_VISUAL_SHAPE;
- /// <summary>
- /// The color of the shape.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MixColor = NDalic.PRIMITIVE_VISUAL_MIX_COLOR;
- /// <summary>
- /// The number of slices as you go around the shape.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Slices = NDalic.PRIMITIVE_VISUAL_SLICES;
- /// <summary>
- /// The number of stacks as you go down the shape.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Stacks = NDalic.PRIMITIVE_VISUAL_STACKS;
- /// <summary>
- /// The scale of the radius of the top circle of a conical frustrum.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleTopRadius = NDalic.PRIMITIVE_VISUAL_SCALE_TOP_RADIUS;
- /// <summary>
- /// The scale of the radius of the bottom circle of a conical frustrum.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleBottomRadius = NDalic.PRIMITIVE_VISUAL_SCALE_BOTTOM_RADIUS;
- /// <summary>
- /// The scale of the height of a conic.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleHeight = NDalic.PRIMITIVE_VISUAL_SCALE_HEIGHT;
- /// <summary>
- /// The scale of the radius of a cylinder.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleRadius = NDalic.PRIMITIVE_VISUAL_SCALE_RADIUS;
- /// <summary>
- /// The dimensions of a cuboid. Scales in the same fashion as a 9-patch image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleDimensions = NDalic.PRIMITIVE_VISUAL_SCALE_DIMENSIONS;
- /// <summary>
- /// Determines how bevelled the cuboid should be, based off the smallest dimension.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int BevelPercentage = NDalic.PRIMITIVE_VISUAL_BEVEL_PERCENTAGE;
- /// <summary>
- /// Defines how smooth the bevelled edges should be.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int BevelSmoothness = NDalic.PRIMITIVE_VISUAL_BEVEL_SMOOTHNESS;
- /// <summary>
- /// The position, in stage space, of the point light that applies lighting to the model.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int LightPosition = NDalic.PRIMITIVE_VISUAL_LIGHT_POSITION;
- }
-
- /// <summary>
- /// This specifies properties of the TextVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct TextVisualProperty
- {
- /// <summary>
- /// The text to display in UTF-8 format.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Text = NDalic.TEXT_VISUAL_TEXT;
- /// <summary>
- /// The requested font family to use.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FontFamily = NDalic.TEXT_VISUAL_FONT_FAMILY;
- /// <summary>
- /// The requested font style to use.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FontStyle = NDalic.TEXT_VISUAL_FONT_STYLE;
- /// <summary>
- /// The size of font in points.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int PointSize = NDalic.TEXT_VISUAL_POINT_SIZE;
- /// <summary>
- /// The single-line or multi-line layout option.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MultiLine = NDalic.TEXT_VISUAL_MULTI_LINE;
- /// <summary>
- /// The line horizontal alignment.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int HorizontalAlignment = NDalic.TEXT_VISUAL_HORIZONTAL_ALIGNMENT;
- /// <summary>
- /// The line vertical alignment.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int VerticalAlignment = NDalic.TEXT_VISUAL_VERTICAL_ALIGNMENT;
- /// <summary>
- /// The color of the text.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int TextColor = NDalic.TEXT_VISUAL_TEXT_COLOR;
- /// <summary>
- /// Whether the mark-up processing is enabled.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int EnableMarkup = NDalic.TEXT_VISUAL_ENABLE_MARKUP;
- /// <summary>
- /// The shadow parameters.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int Shadow = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 1;
- /// <summary>
- /// The default underline parameters.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int Underline = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 2;
- /// <summary>
- /// The default outline parameters.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int Outline = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 3;
- /// <summary>
- /// The default text background parameters.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int Background = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 4;
- }
-
- /// <summary>
- /// This specifies properties of the NpatchImageVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct NpatchImageVisualProperty
- {
- /// <summary>
- /// The URL of the image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
- /// <summary>
- /// Fitting options, used when resizing images to fit desired dimensions.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
- /// <summary>
- /// Filtering options, used when resizing images to sample original pixels.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
- /// <summary>
- /// The desired image width.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
- /// <summary>
- /// The desired image height.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
- /// <summary>
- /// Whether to load the image synchronously.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
- /// <summary>
- /// If true, only draws the borders.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
- /// <summary>
- /// The image area to be displayed.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
- /// <summary>
- /// The wrap mode for u coordinate.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
- /// <summary>
- /// The wrap mode for v coordinate.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
- /// <summary>
- /// The border of the image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Border = NDalic.IMAGE_VISUAL_WRAP_MODE_V + 1;
- }
-
- /// <summary>
/// The HiddenInput property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/// <param name="data">A pointer to the data that will be copied to the buffer.</param>
/// <param name="size">Number of elements to expand or contract the buffer.</param>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("Deprecated in API6, Will be removed in API9, " +
+ "Please use PropertyBuffer(PropertyMap bufferFormat) constructor instead!" +
+ "IntPtr(native integer pointer) is supposed to be not used in Application!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetData(System.IntPtr data, uint size)
{
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Tizen.NUI
{
-
-
///<summary>
/// Issues a notification upon a condition of the property being met.
/// See PropertyCondition for available defined conditions.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System.ComponentModel;
+
+namespace Tizen.NUI
+{
+
+ /// <summary>
+ /// A RotationGesture is emitted when the user moves two fingers in a circular motion.<br />
+ /// A rotation gesture will continue to be sent to the actor under the center point of the rotation until the rotation ends.<br />
+ /// </summary>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class RotationGesture : Gesture
+ {
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+
+ internal RotationGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.RotationGesture.RotationGesture_SWIGUpcast(cPtr), cMemoryOwn)
+ {
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+
+ /// <summary>
+ /// The overall rotation (in radians) from the start of the rotation gesture till the latest rotation gesture.
+ /// </summary>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float Rotation
+ {
+ get
+ {
+ return rotation;
+ }
+ }
+
+ /// <summary>
+ /// The center point of the two points that caused the rotation gesture in screen coordinates.
+ /// </summary>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 ScreenCenterPoint
+ {
+ get
+ {
+ return screenCenterPoint;
+ }
+ }
+
+ /// <summary>
+ /// The center point of the two points that caused the rotation gesture in local view coordinates.
+ /// </summary>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 LocalCenterPoint
+ {
+ get
+ {
+ return localCenterPoint;
+ }
+ }
+
+ /// <summary>
+ /// The default constructor.
+ /// </summary>
+ /// <param name="state">The state of the gesture.</param>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public RotationGesture(Gesture.StateType state) : this(Interop.RotationGesture.new_RotationGesture__SWIG_0((int)state), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ private float rotation
+ {
+ set
+ {
+ Interop.RotationGesture.RotationGesture_rotation_set(swigCPtr, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ float ret = Interop.RotationGesture.RotationGesture_rotation_get(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ private Vector2 screenCenterPoint
+ {
+ set
+ {
+ Interop.RotationGesture.RotationGesture_screenCenterPoint_set(swigCPtr, Vector2.getCPtr(value));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ global::System.IntPtr cPtr = Interop.RotationGesture.RotationGesture_screenCenterPoint_get(swigCPtr);
+ Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ private Vector2 localCenterPoint
+ {
+ set
+ {
+ Interop.RotationGesture.RotationGesture_localCenterPoint_set(swigCPtr, Vector2.getCPtr(value));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ global::System.IntPtr cPtr = Interop.RotationGesture.RotationGesture_localCenterPoint_get(swigCPtr);
+ Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RotationGesture obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ internal static RotationGesture GetRotationGestureFromPtr(global::System.IntPtr cPtr)
+ {
+ RotationGesture ret = new RotationGesture(cPtr, false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Dispose.
+ /// </summary>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ Interop.RotationGesture.delete_RotationGesture(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ base.Dispose(type);
+ }
+
+ }
+
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using System.Runtime.InteropServices;
+using Tizen.NUI.BaseComponents;
+using System.ComponentModel;
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// It tries to detect when the user moves two touch points in a circular motion.
+ /// </summary>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class RotationGestureDetector : GestureDetector
+ {
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+
+ private DaliEventHandler<object, DetectedEventArgs> _rotationGestureEventHandler;
+ private DetectedCallbackDelegate _rotationGestureCallbackDelegate;
+
+
+ /// <summary>
+ /// Creates an initialized RotationGestureDetector.
+ /// </summary>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public RotationGestureDetector() : this(Interop.RotationGesture.RotationGestureDetector_New(), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
+ }
+
+ /// <summary>
+ /// The copy constructor.
+ /// </summary>
+ /// <param name="handle">A reference to the copied handle</param>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public RotationGestureDetector(RotationGestureDetector handle) : this(Interop.RotationGesture.new_RotationGestureDetector__SWIG_1(RotationGestureDetector.getCPtr(handle)), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ internal RotationGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.RotationGesture.RotationGestureDetector_SWIGUpcast(cPtr), cMemoryOwn)
+ {
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void DetectedCallbackDelegate(IntPtr actor, IntPtr rotationGesture);
+
+ /// <summary>
+ /// This signal is emitted when the specified rotation is detected on the attached view.
+ /// </summary>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event DaliEventHandler<object, DetectedEventArgs> Detected
+ {
+ add
+ {
+ lock (this)
+ {
+ // Restricted to only one listener
+ if (_rotationGestureEventHandler == null)
+ {
+ _rotationGestureEventHandler += value;
+
+ _rotationGestureCallbackDelegate = new DetectedCallbackDelegate(OnRotationGestureDetected);
+ this.DetectedSignal().Connect(_rotationGestureCallbackDelegate);
+ }
+ }
+ }
+
+ remove
+ {
+ lock (this)
+ {
+ if (_rotationGestureEventHandler != null)
+ {
+ this.DetectedSignal().Disconnect(_rotationGestureCallbackDelegate);
+ }
+
+ _rotationGestureEventHandler -= value;
+ }
+ }
+ }
+
+
+ internal static RotationGestureDetector GetRotationGestureDetectorFromPtr(global::System.IntPtr cPtr)
+ {
+ RotationGestureDetector ret = new RotationGestureDetector(cPtr, false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal new static RotationGestureDetector DownCast(BaseHandle handle)
+ {
+ RotationGestureDetector ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as RotationGestureDetector;
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RotationGestureDetector obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ internal RotationGestureDetector Assign(RotationGestureDetector rhs)
+ {
+ RotationGestureDetector ret = new RotationGestureDetector(Interop.RotationGesture.RotationGestureDetector_Assign(swigCPtr, RotationGestureDetector.getCPtr(rhs)), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal RotationGestureDetectedSignal DetectedSignal()
+ {
+ RotationGestureDetectedSignal ret = new RotationGestureDetectedSignal(Interop.RotationGesture.RotationGestureDetector_DetectedSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Dispose.
+ /// </summary>
+ /// <param name="type">The dispose type</param>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //Because the execution order of Finalizes is non-deterministic.
+
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ Interop.RotationGesture.delete_RotationGestureDetector(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ base.Dispose(type);
+ }
+
+ private void OnRotationGestureDetected(IntPtr actor, IntPtr rotationGesture)
+ {
+ DetectedEventArgs e = new DetectedEventArgs();
+
+ // Populate all members of "e" (DetectedEventArgs) with real data.
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(actor) as View;
+ if (null == e.View)
+ {
+ e.View = Registry.GetManagedBaseHandleFromRefObject(actor) as View;
+ }
+
+ e.RotationGesture = Tizen.NUI.RotationGesture.GetRotationGestureFromPtr(rotationGesture);
+
+ if (_rotationGestureEventHandler != null)
+ {
+ //Here we send all data to user event handlers.
+ _rotationGestureEventHandler(this, e);
+ }
+ }
+
+ /// <summary>
+ /// Event arguments that passed via the RotationGestureEvent signal.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class DetectedEventArgs : EventArgs
+ {
+ private View _view;
+ private RotationGesture _rotationGesture;
+
+ /// <summary>
+ /// The attached view.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public View View
+ {
+ get
+ {
+ return _view;
+ }
+ set
+ {
+ _view = value;
+ }
+ }
+
+ /// <summary>
+ /// The RotationGesture.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public RotationGesture RotationGesture
+ {
+ get
+ {
+ return _rotationGesture;
+ }
+ set
+ {
+ _rotationGesture = value;
+ }
+ }
+ }
+
+ }
+
+}
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
--- /dev/null
+// Copyright (c) 2019 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+using System.ComponentModel;
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// Specifies the release policy types.<br />
+ /// Decides if the image should be cached in different conditions.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public enum ReleasePolicyType
+ {
+ /// <summary>
+ /// Image is released when visual detached from scene.
+ /// </summary>
+ Detached = 0,
+ /// <summary>
+ /// Image is only released when visual is destroyed.
+ /// </summary>
+ Destroyed,
+ /// <summary>
+ /// Image is not released.
+ /// </summary>
+ Never
+ }
+
+ /// <summary>
+ /// Specifies the load policy types.<br />
+ /// Decides when the image texture should be loaded.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public enum LoadPolicyType
+ {
+ /// <summary>
+ /// Load texture once the image source has been provided. Even if not being used yet.
+ /// </summary>
+ Immediate = 0,
+ /// <summary>
+ /// Only load texture once the visual is attached, when the image needs to be shown.
+ /// </summary>
+ Attached
+ }
+
+ /// <summary>
+ /// Enumeration for the text horizontal aligning.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum HorizontalAlignment
+ {
+ /// <summary>
+ /// Texts place at the begin of horizontal direction.
+ /// </summary>
+ Begin,
+ /// <summary>
+ /// Texts place at the center of horizontal direction.
+ /// </summary>
+ Center,
+ /// <summary>
+ /// Texts place at the end of horizontal direction.
+ /// </summary>
+ End
+ }
+
+ /// <summary>
+ /// Enumeration for the text horizontal aligning.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum VerticalAlignment
+ {
+ /// <summary>
+ /// Texts place at the top of vertical direction.
+ /// </summary>
+ Top,
+ /// <summary>
+ /// Texts place at the center of vertical direction.
+ /// </summary>
+ Center,
+ /// <summary>
+ /// Texts place at the bottom of vertical direction.
+ /// </summary>
+ Bottom
+ }
+
+ /// <summary>
+ /// This specifies wrap mode types.<br />
+ /// WrapModeU and WrapModeV separately decide how the texture should be sampled when the u and v coordinate exceeds the range of 0.0 to 1.0.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum WrapModeType
+ {
+ /// <summary>
+ /// The default value.
+ /// </summary>
+ Default = 0,
+ /// <summary>
+ /// Clamp to edge.
+ /// </summary>
+ ClampToEdge,
+ /// <summary>
+ /// Repeat.
+ /// </summary>
+ Repeat,
+ /// <summary>
+ /// Mirrored repeat.
+ /// </summary>
+ MirroredRepeat
+ }
+
+ /// <summary>
+ /// This specifies fitting mode types. Fitting options, used when resizing images to fit desired dimensions.<br />
+ /// A fitting mode controls the region of a loaded image to be mapped to the desired image rectangle.<br />
+ /// All fitting modes preserve the aspect ratio of the image contents.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum FittingModeType
+ {
+ /// <summary>
+ /// Full-screen image display: Limit loaded image resolution to device resolution using the ShrinkToFit mode.
+ /// </summary>
+ ShrinkToFit,
+ /// <summary>
+ /// Thumbnail gallery grid: Limit loaded image resolution to screen tile using the ScaleToFill mode.
+ /// </summary>
+ ScaleToFill,
+ /// <summary>
+ /// Image columns: Limit loaded image resolution to column width using the FitWidth mode.
+ /// </summary>
+ FitWidth,
+ /// <summary>
+ /// Image rows: Limit loaded image resolution to row height using the FitHeight mode.
+ /// </summary>
+ FitHeight
+ }
+
+ /// <summary>
+ /// This specifies sampling mode types. Filtering options are used when resizing images to sample original pixels.<br />
+ /// A SamplingMode controls how pixels in an input image are sampled and combined to generate each pixel of a destination image during scaling.<br />
+ /// NoFilter and Box modes do not guarantee that the output pixel array exactly matches the rectangle specified by the desired dimensions and the FittingMode,<br />
+ /// but all other filter modes do if the desired dimensions are not more than the raw dimensions of the input image file.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum SamplingModeType
+ {
+ /// <summary>
+ /// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size. <br />
+ /// This is the default.
+ /// </summary>
+ Box,
+ /// <summary>
+ /// For each output pixel, read one input pixel.
+ /// </summary>
+ Nearest,
+ /// <summary>
+ /// For each output pixel, read a quad of four input pixels and write a weighted average of them.
+ /// </summary>
+ Linear,
+ /// <summary>
+ /// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size, <br />
+ /// then for each output pixel, read one pixel from the last level of box filtering.<br />
+ /// </summary>
+ BoxThenNearest,
+ /// <summary>
+ /// Iteratively box filter to almost the right size, then for each output pixel, read four pixels from the last level of box filtering and write their weighted average.
+ /// </summary>
+ BoxThenLinear,
+ /// <summary>
+ /// No filtering is performed. If the SCALE_TO_FILL scaling mode is enabled, the borders of the image may be trimmed to match the aspect ratio of the desired dimensions.
+ /// </summary>
+ NoFilter,
+ /// <summary>
+ /// For caching algorithms where a client strongly prefers a cache-hit to reuse a cached image.
+ /// </summary>
+ DontCare
+ }
+
+ /// <summary>
+ /// The type of coordinate system for certain attributes of the points in a gradient.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum GradientVisualUnitsType
+ {
+ /// <summary>
+ /// Uses the normals for the start, end, and center points, i.e., top-left is (-0.5, -0.5) and bottom-right is (0.5, 0.5).
+ /// </summary>
+ ObjectBoundingBox,
+ /// <summary>
+ /// Uses the user coordinates for the start, end, and center points, i.e., in a 200 by 200 control, top-left is (0, 0) and bottom-right is (200, 200).
+ /// </summary>
+ UserSpace
+ }
+
+ /// <summary>
+ /// This specifies SpreadMethod types.<br />
+ /// SpreadMethod defines what happens if the gradient starts or ends inside the bounds of the target rectangle.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum GradientVisualSpreadMethodType
+ {
+ /// <summary>
+ /// Uses the terminal colors of the gradient to fill the remainder of the quad.
+ /// </summary>
+ Pad,
+ /// <summary>
+ /// Reflects the gradient pattern start-to-end, end-to-start, start-to-end, etc. until the quad is filled.
+ /// </summary>
+ Reflect,
+ /// <summary>
+ /// Repeats the gradient pattern start-to-end, start-to-end, start-to-end, etc. until the quad is filled.
+ /// </summary>
+ Repeat
+ }
+
+ /// <summary>
+ /// The shading mode used by the mesh visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum MeshVisualShadingModeValue
+ {
+ /// <summary>
+ /// *Simplest*. One color that is lit by ambient and diffuse lighting.
+ /// </summary>
+ TexturelessWithDiffuseLighting,
+ /// <summary>
+ /// Uses only the visual image textures provided with specular lighting in addition to ambient and diffuse lighting.
+ /// </summary>
+ TexturedWithSpecularLighting,
+ /// <summary>
+ /// Uses all textures provided including gloss, normal, and texture map along with specular, ambient, and diffuse lighting.
+ /// </summary>
+ TexturedWithDetailedSpecularLighting
+ }
+
+ /// <summary>
+ /// The primitive shape to render as a primitive visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum PrimitiveVisualShapeType
+ {
+ /// <summary>
+ /// A perfectly round geometrical object in the three-dimensional space.
+ /// </summary>
+ Sphere,
+ /// <summary>
+ /// The area bound between two circles, i.e., a cone with the tip removed.
+ /// </summary>
+ ConicalFrustrum,
+ /// <summary>
+ /// Equivalent to a conical frustrum with the top radius of zero.
+ /// </summary>Equivalent to a conical frustrum with the top radius of zero.
+ Cone,
+ /// <summary>
+ /// Equivalent to a conical frustrum with the top radius of zero.
+ /// </summary>
+ Cylinder,
+ /// <summary>
+ /// Equivalent to a conical frustrum with equal radii for the top and bottom circles.
+ /// </summary>
+ Cube,
+ /// <summary>
+ /// Equivalent to a bevelled cube with a bevel percentage of zero.
+ /// </summary>
+ Octahedron,
+ /// <summary>
+ /// Equivalent to a bevelled cube with a bevel percentage of one.
+ /// </summary>
+ BevelledCube
+ }
+
+ /// <summary>
+ /// The values of this enum determine how the visual should fit into the view.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public enum VisualFittingModeType
+ {
+ /// <summary>
+ /// The visual should be scaled to fit, preserving aspect ratio.
+ /// </summary>
+ FitKeepAspectRatio,
+ /// <summary>
+ /// The visual should be stretched to fill, not preserving aspect ratio.
+ /// </summary>
+ Fill
+ }
+
+ /// <summary>
+ /// This specifies policy types that could be used by the transform for the offset or size.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum VisualTransformPolicyType
+ {
+ /// <summary>
+ /// Relative to the control (percentage [0.0f to 1.0f] of the control).
+ /// </summary>
+ Relative = 0,
+ /// <summary>
+ /// Absolute value in world units.
+ /// </summary>
+ Absolute = 1
+ }
+
+ /// <summary>
+ /// This specifies all the transform property types.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum VisualTransformPropertyType
+ {
+ /// <summary>
+ /// Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
+ /// </summary>
+ Offset,
+ /// <summary>
+ /// Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
+ /// </summary>
+ Size,
+ /// <summary>
+ /// The origin of the visual within its control area.
+ /// </summary>
+ Origin,
+ /// <summary>
+ /// The anchor-point of the visual.
+ /// </summary>
+ AnchorPoint,
+ /// <summary>
+ /// Whether the x or y offset values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
+ /// </summary>
+ OffsetPolicy,
+ /// <summary>
+ /// Whether the width or the height size values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
+ /// </summary>
+ SizePolicy
+ }
+
+ /// <summary>
+ /// This specifies visual types.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct Visual
+ {
+ /// <summary>
+ /// The index for the visual type.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum Type
+ {
+ /// <summary>
+ /// Renders a solid color as an internal border to the control's quad.
+ /// </summary>
+ Border,
+ /// <summary>
+ /// Renders a solid color to the control's quad.
+ /// </summary>
+ Color,
+ /// <summary>
+ /// Renders a smooth transition of colors to the control's quad.
+ /// </summary>
+ Gradient,
+ /// <summary>
+ /// Renders an image into the control's quad.
+ /// </summary>
+ Image,
+ /// <summary>
+ /// Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file.
+ /// </summary>
+ Mesh,
+ /// <summary>
+ /// Renders a simple 3D shape, such as a cube or a sphere.
+ /// </summary>
+ Primitive,
+ /// <summary>
+ /// Renders a simple wire-frame outlining a quad.
+ /// </summary>
+ Wireframe,
+ /// <summary>
+ /// Renders text.
+ /// </summary>
+ Text,
+ /// <summary>
+ /// Renders an NPatch image.
+ /// </summary>
+ NPatch,
+ /// <summary>
+ /// Renders an SVG image.
+ /// </summary>
+ SVG,
+ /// <summary>
+ /// Renders a animated image (animated GIF).
+ /// </summary>
+ AnimatedImage
+ }
+
+ /// <summary>
+ /// This specifies visual properties.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct Property
+ {
+ /// <summary>
+ /// Type.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Type = NDalic.VISUAL_PROPERTY_TYPE;
+ /// <summary>
+ /// Shader.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Shader = NDalic.VISUAL_PROPERTY_SHADER;
+ /// <summary>
+ /// Transform.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Transform = NDalic.VISUAL_PROPERTY_TRANSFORM;
+ /// <summary>
+ /// PremultipliedAlpha.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int PremultipliedAlpha = NDalic.VISUAL_PROPERTY_PREMULTIPLIED_ALPHA;
+ /// <summary>
+ /// MixColor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int MixColor = NDalic.VISUAL_PROPERTY_MIX_COLOR;
+ /// <summary>
+ /// Opacity.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Opacity = NDalic.VISUAL_PROPERTY_MIX_COLOR + 1;
+ /// <summary>
+ /// The fitting mode of the visual.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int VisualFittingMode = NDalic.VISUAL_PROPERTY_MIX_COLOR + 2;
+ }
+
+ /// <summary>
+ /// This specifies shader properties.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct ShaderProperty
+ {
+ /// <summary>
+ /// Vertex shader code
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int VertexShader = NDalic.VISUAL_SHADER_VERTEX;
+ /// <summary>
+ /// Fragment shader code
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int FragmentShader = NDalic.VISUAL_SHADER_FRAGMENT;
+ /// <summary>
+ /// How to subdivide the grid along X
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ShaderSubdivideGridX = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_X;
+ /// <summary>
+ /// How to subdivide the grid along Y
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ShaderSubdivideGridY = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_Y;
+ /// <summary>
+ /// Bitmask of hints
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ShaderHints = NDalic.VISUAL_SHADER_HINTS;
+ }
+
+ /// <summary>
+ /// This specifies visaul align types.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public enum AlignType
+ {
+ /// <summary>
+ /// TopBegin
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ TopBegin = 0,
+ /// <summary>
+ /// TopCenter
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ TopCenter,
+ /// <summary>
+ /// TopEnd
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ TopEnd,
+ /// <summary>
+ /// CenterBegin
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ CenterBegin,
+ /// <summary>
+ /// Center
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ Center,
+ /// <summary>
+ /// CenterEnd
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ CenterEnd,
+ /// <summary>
+ /// BottomBegin
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ BottomBegin,
+ /// <summary>
+ /// BottomCenter
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ BottomCenter,
+ /// <summary>
+ /// BottomEnd
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ BottomEnd
+ }
+ }
+
+ /// <summary>
+ /// This specifies properties of the BorderVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct BorderVisualProperty
+ {
+ /// <summary>
+ /// The color of the border.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Color = NDalic.BORDER_VISUAL_COLOR;
+ /// <summary>
+ /// The width of the border (in pixels).
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Size = NDalic.BORDER_VISUAL_SIZE;
+ /// <summary>
+ /// Whether anti-aliasing of the border is required.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int AntiAliasing = NDalic.BORDER_VISUAL_ANTI_ALIASING;
+ }
+
+ /// <summary>
+ /// This specifies properties of the ColorVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct ColorVisualProperty
+ {
+ /// <summary>
+ /// The solid color required.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int MixColor = NDalic.COLOR_VISUAL_MIX_COLOR;
+ /// <summary>
+ /// Whether to render if the MixColor is transparent.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int RenderIfTransparent = NDalic.COLOR_VISUAL_MIX_COLOR + 1;
+ }
+
+ /// <summary>
+ /// This specifies properties of the GradientVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct GradientVisualProperty
+ {
+ /// <summary>
+ /// The start position of a linear gradient.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int StartPosition = NDalic.GRADIENT_VISUAL_START_POSITION;
+ /// <summary>
+ /// The end position of a linear gradient.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int EndPosition = NDalic.GRADIENT_VISUAL_END_POSITION;
+ /// <summary>
+ /// The center point of a radial gradient.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Center = NDalic.GRADIENT_VISUAL_CENTER;
+ /// <summary>
+ /// The size of the radius of a radial gradient.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Radius = NDalic.GRADIENT_VISUAL_RADIUS;
+ /// <summary>
+ /// All the stop offsets.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int StopOffset = NDalic.GRADIENT_VISUAL_STOP_OFFSET;
+ /// <summary>
+ /// The color at the stop offsets.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int StopColor = NDalic.GRADIENT_VISUAL_STOP_COLOR;
+ /// <summary>
+ /// Defines the coordinate system for certain attributes of the points in a gradient.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Units = NDalic.GRADIENT_VISUAL_UNITS;
+ /// <summary>
+ /// Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int SpreadMethod = NDalic.GRADIENT_VISUAL_SPREAD_METHOD;
+ }
+
+ /// <summary>
+ /// This specifies properties of the ImageVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct ImageVisualProperty
+ {
+ /// <summary>
+ /// The URL of the image.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
+
+ /// <summary>
+ /// Fitting options, used when resizing images to fit desired dimensions.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
+
+ /// <summary>
+ /// Filtering options, used when resizing images to sample original pixels.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
+
+ /// <summary>
+ /// The desired image width.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
+
+ /// <summary>
+ /// The desired image height.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
+
+ /// <summary>
+ /// Whether to load the image synchronously.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
+
+ /// <summary>
+ /// If true, only draws the borders.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
+
+ /// <summary>
+ /// The image area to be displayed.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
+
+ /// <summary>
+ /// The wrap mode for u coordinate.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
+
+ /// <summary>
+ /// The wrap mode for v coordinate.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
+
+ /// <summary>
+ /// The border of the image.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Border = NDalic.IMAGE_VISUAL_BORDER;
+
+ /// <summary>
+ /// Whether to use the texture atlas.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int Atlasing = NDalic.IMAGE_VISUAL_BORDER + 1;
+
+ /// <summary>
+ /// The URL of the alpha mask image.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL;
+
+ /// <summary>
+ /// Defines the batch size for pre-loading images in the AnimatedImageVisual
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public static readonly int BatchSize = NDalic.IMAGE_VISUAL_BATCH_SIZE;
+
+ /// <summary>
+ /// Defines the cache size for loading images in the AnimatedImageVisual
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public static readonly int CacheSize = NDalic.IMAGE_VISUAL_CACHE_SIZE;
+
+ /// <summary>
+ /// The number of milliseconds between each frame in the AnimatedImageVisual
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public static readonly int FrameDelay = NDalic.IMAGE_VISUAL_FRAME_DELAY;
+
+ /// <summary>
+ /// The scale factor to apply to the content image before masking.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE;
+
+ /// <summary>
+ /// Whether to crop image to mask or scale mask to fit image
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK;
+
+ /// <summary>
+ /// The policy to determine when an image should be loaded.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int LoadPolicy = NDalic.IMAGE_VISUAL_LOAD_POLICY;
+
+ /// <summary>
+ /// The policy to determine when an image should no longer be cached.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY;
+
+ /// <summary>
+ /// Determines if image orientation should be corrected so that the image displays as it was intended.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int OrientationCorrection = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION;
+
+ /// <summary>
+ /// Overlays the auxiliary image on top of an NPatch image.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int AuxiliaryImageURL = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_URL;
+
+ /// <summary>
+ /// Alpha value for the auxiliary image, without affecting the underlying NPatch image
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int AuxiliaryImageAlpha = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_ALPHA;
+
+ /// <summary>
+ /// The number of times the AnimatedImageVisual will be looped.
+ /// The default is -1. If the value is less than 0, loop unlimited. Otherwise, loop loopCount times.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int LoopCount = NDalic.IMAGE_VISUAL_LOOP_COUNT;
+
+ /// <summary>
+ /// @brief The playing range the AnimatedVectorImageVisual will use.
+ /// Animation will play between the values specified.The array can only have two values, and more will be ignored.
+ /// Both values should be between 0 and the total frame number, otherwise they will be ignored.
+ /// If the range provided is not in proper order (minimum, maximum), it will be reordered.
+ /// @details Name "playRange", Type Property::ARRAY of Property::INTEGER
+ /// @note Default 0 and the total frame number.
+ /// </summary>
+ /// <remarks>
+ /// Hidden API (Inhouse API)
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int PlayRange = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 4;
+
+ /// <summary>
+ /// @brief The playing state the AnimatedVectorImageVisual will use.
+ /// @details Name "playState", type PlayState (Property::INTEGER)
+ /// @note This property is read-only.
+ /// </summary>
+ /// <remarks>
+ /// Hidden API (Inhouse API)
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int PlayState = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 5;
+
+ /// <summary>
+ /// @brief The current frame number the AnimatedVectorImageVisual will use.
+ /// @details Name "currentFrameNumber", Type Property::INTEGER, between[0, the maximum frame number] or between the play range if specified
+ /// @note This property is read-only.
+ /// </summary>
+ /// <remarks>
+ /// Inhouse API
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int CurrentFrameNumber = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 6;
+
+ /// <summary>
+ /// @brief The total frame number the AnimatedVectorImageVisual will use.
+ /// @details Name "totalFrameNumber", Type Property::INTEGER.
+ /// @note This property is read-only.
+ /// </summary>
+ /// <remarks>
+ /// Inhouse API
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int TotalFrameNumber = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 7;
+
+ /// <summary>
+ /// @brief The stop behavior the AnimatedVectorImageVisual will use.
+ /// @details Name "stopBehavior", Type StopBehavior::Type (Property::INTEGER)
+ /// @note Default value is StopBehavior::CURRENT_FRAME.
+ /// </summary>
+ /// <remarks>
+ /// Inhouse API
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int StopBehavior = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 8;
+
+ /// <summary>
+ /// @brief The looping mode the AnimatedVectorImageVisual will use.
+ /// @details Name "loopingMode", Type LoopingMode::Type (Property::INTEGER)
+ /// @note Default value is LoopingMode::RESTART.
+ /// </summary>
+ /// <remarks>
+ /// Inhouse API
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int LoopingMode = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 9;
+ }
+
+ /// <summary>
+ /// This specifies properties of the MeshVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct MeshVisualProperty
+ {
+ /// <summary>
+ /// The location of the ".obj" file.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ObjectURL = NDalic.MESH_VISUAL_OBJECT_URL;
+ /// <summary>
+ /// The location of the ".mtl" file.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int MaterialtURL = NDalic.MESH_VISUAL_MATERIAL_URL;
+ /// <summary>
+ /// Path to the directory the textures (including gloss and normal) are stored in.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int TexturesPath = NDalic.MESH_VISUAL_TEXTURES_PATH;
+ /// <summary>
+ /// Sets the type of shading mode that the mesh will use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ShadingMode = NDalic.MESH_VISUAL_SHADING_MODE;
+ /// <summary>
+ /// Whether to use mipmaps for textures or not.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int UseMipmapping = NDalic.MESH_VISUAL_USE_MIPMAPPING;
+ /// <summary>
+ /// Whether to average normals at each point to smooth textures or not.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int UseSoftNormals = NDalic.MESH_VISUAL_USE_SOFT_NORMALS;
+ /// <summary>
+ /// The position, in stage space, of the point light that applies lighting to the model.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int LightPosition = NDalic.MESH_VISUAL_LIGHT_POSITION;
+ }
+
+ /// <summary>
+ /// This specifies properties of the PrimitiveVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct PrimitiveVisualProperty
+ {
+ /// <summary>
+ /// The specific shape to render.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Shape = NDalic.PRIMITIVE_VISUAL_SHAPE;
+ /// <summary>
+ /// The color of the shape.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int MixColor = NDalic.PRIMITIVE_VISUAL_MIX_COLOR;
+ /// <summary>
+ /// The number of slices as you go around the shape.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Slices = NDalic.PRIMITIVE_VISUAL_SLICES;
+ /// <summary>
+ /// The number of stacks as you go down the shape.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Stacks = NDalic.PRIMITIVE_VISUAL_STACKS;
+ /// <summary>
+ /// The scale of the radius of the top circle of a conical frustrum.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ScaleTopRadius = NDalic.PRIMITIVE_VISUAL_SCALE_TOP_RADIUS;
+ /// <summary>
+ /// The scale of the radius of the bottom circle of a conical frustrum.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ScaleBottomRadius = NDalic.PRIMITIVE_VISUAL_SCALE_BOTTOM_RADIUS;
+ /// <summary>
+ /// The scale of the height of a conic.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ScaleHeight = NDalic.PRIMITIVE_VISUAL_SCALE_HEIGHT;
+ /// <summary>
+ /// The scale of the radius of a cylinder.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ScaleRadius = NDalic.PRIMITIVE_VISUAL_SCALE_RADIUS;
+ /// <summary>
+ /// The dimensions of a cuboid. Scales in the same fashion as a 9-patch image.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int ScaleDimensions = NDalic.PRIMITIVE_VISUAL_SCALE_DIMENSIONS;
+ /// <summary>
+ /// Determines how bevelled the cuboid should be, based off the smallest dimension.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int BevelPercentage = NDalic.PRIMITIVE_VISUAL_BEVEL_PERCENTAGE;
+ /// <summary>
+ /// Defines how smooth the bevelled edges should be.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int BevelSmoothness = NDalic.PRIMITIVE_VISUAL_BEVEL_SMOOTHNESS;
+ /// <summary>
+ /// The position, in stage space, of the point light that applies lighting to the model.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int LightPosition = NDalic.PRIMITIVE_VISUAL_LIGHT_POSITION;
+ }
+
+ /// <summary>
+ /// This specifies properties of the TextVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct TextVisualProperty
+ {
+ /// <summary>
+ /// The text to display in UTF-8 format.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Text = NDalic.TEXT_VISUAL_TEXT;
+ /// <summary>
+ /// The requested font family to use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int FontFamily = NDalic.TEXT_VISUAL_FONT_FAMILY;
+ /// <summary>
+ /// The requested font style to use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int FontStyle = NDalic.TEXT_VISUAL_FONT_STYLE;
+ /// <summary>
+ /// The size of font in points.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int PointSize = NDalic.TEXT_VISUAL_POINT_SIZE;
+ /// <summary>
+ /// The single-line or multi-line layout option.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int MultiLine = NDalic.TEXT_VISUAL_MULTI_LINE;
+ /// <summary>
+ /// The line horizontal alignment.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int HorizontalAlignment = NDalic.TEXT_VISUAL_HORIZONTAL_ALIGNMENT;
+ /// <summary>
+ /// The line vertical alignment.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int VerticalAlignment = NDalic.TEXT_VISUAL_VERTICAL_ALIGNMENT;
+ /// <summary>
+ /// The color of the text.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int TextColor = NDalic.TEXT_VISUAL_TEXT_COLOR;
+ /// <summary>
+ /// Whether the mark-up processing is enabled.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int EnableMarkup = NDalic.TEXT_VISUAL_ENABLE_MARKUP;
+ /// <summary>
+ /// The shadow parameters.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int Shadow = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 1;
+ /// <summary>
+ /// The default underline parameters.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int Underline = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 2;
+ /// <summary>
+ /// The default outline parameters.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int Outline = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 3;
+ /// <summary>
+ /// The default text background parameters.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public static readonly int Background = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 4;
+ }
+
+ /// <summary>
+ /// This specifies properties of the NpatchImageVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public struct NpatchImageVisualProperty
+ {
+ /// <summary>
+ /// The URL of the image.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
+ /// <summary>
+ /// Fitting options, used when resizing images to fit desired dimensions.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
+ /// <summary>
+ /// Filtering options, used when resizing images to sample original pixels.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
+ /// <summary>
+ /// The desired image width.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
+ /// <summary>
+ /// The desired image height.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
+ /// <summary>
+ /// Whether to load the image synchronously.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
+ /// <summary>
+ /// If true, only draws the borders.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
+ /// <summary>
+ /// The image area to be displayed.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
+ /// <summary>
+ /// The wrap mode for u coordinate.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
+ /// <summary>
+ /// The wrap mode for v coordinate.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
+ /// <summary>
+ /// The border of the image.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public static readonly int Border = NDalic.IMAGE_VISUAL_WRAP_MODE_V + 1;
+ }
+}
/*
- * Copyright(c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*
*/
-using System.Text;
-using System.Collections.Generic;
using Tizen.NUI.BaseComponents;
-using System.ComponentModel;
namespace Tizen.NUI
{
if (_visualOrigin != null) { _visualTransformMap.Add((int)VisualTransformPropertyType.Origin, new PropertyValue((int)_visualOrigin)); }
if (_visualAnchorPoint != null) { _visualTransformMap.Add((int)VisualTransformPropertyType.AnchorPoint, new PropertyValue((int)_visualAnchorPoint)); }
}
-
- }
-
- /// <summary>
- /// A class encapsulating the property map of the image visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class ImageVisual : VisualMap
- {
- private string _url = null;
- private string _alphaMaskUrl = null;
- private string _auxiliaryImageUrl = null;
- private FittingModeType? _fittingMode = null;
- private SamplingModeType? _samplingMode = null;
- private int? _desiredWidth = null;
- private int? _desiredHeight = null;
- private bool? _synchronousLoading = false;
- private bool? _borderOnly = null;
- private Vector4 _pixelArea = null;
- private WrapModeType? _wrapModeU = null;
- private WrapModeType? _wrapModeV = null;
- private float? _auxiliaryImageAlpha = null;
- private float? _maskContentScale = null;
- private bool? _cropToMask = null;
- private ReleasePolicyType? _releasePolicy = null;
- private LoadPolicyType? _loadPolicy = null;
- private bool? _orientationCorrection = true;
- private bool? _atlasing = false;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImageVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets or sets the URL of the image.<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string URL
- {
- get
- {
- return _url;
- }
- set
- {
- _url = (value == null ? "" : value);
- UpdateVisual();
- }
- }
-
-
- /// <summary>
- /// Gets or sets the URL of the alpha mask.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string AlphaMaskURL
- {
- get
- {
- return _alphaMaskUrl;
- }
- set
- {
- _alphaMaskUrl = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Overlays the auxiliary image on top of an NPatch image.
- /// The resulting visual image will be at least as large as the smallest possible n-patch or the auxiliary image, whichever is larger.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public string AuxiliaryImageURL
- {
- get
- {
- return _auxiliaryImageUrl;
- }
- set
- {
- _auxiliaryImageUrl = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets fitting options used when resizing images to fit the desired dimensions.<br />
- /// If not supplied, the default is FittingModeType.ShrinkToFit.<br />
- /// For normal quad images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public FittingModeType FittingMode
- {
- get
- {
- return _fittingMode ?? (FittingModeType.ShrinkToFit);
- }
- set
- {
- _fittingMode = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets filtering options used when resizing images to the sample original pixels.<br />
- /// If not supplied, the default is SamplingModeType.Box.<br />
- /// For normal quad images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public SamplingModeType SamplingMode
- {
- get
- {
- return _samplingMode ?? (SamplingModeType.Box);
- }
- set
- {
- _samplingMode = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the desired image width.<br />
- /// If not specified, the actual image width is used.<br />
- /// For normal quad images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public int DesiredWidth
- {
- get
- {
- return _desiredWidth ?? (-1);
- }
- set
- {
- _desiredWidth = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the desired image height.<br />
- /// If not specified, the actual image height is used.<br />
- /// For normal quad images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public int DesiredHeight
- {
- get
- {
- return _desiredHeight ?? (-1);
- }
- set
- {
- _desiredHeight = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether to load the image synchronously.<br />
- /// If not specified, the default is false, i.e., the image is loaded asynchronously.<br />
- /// For normal quad images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool SynchronousLoading
- {
- get
- {
- return _synchronousLoading ?? (false);
- }
- set
- {
- _synchronousLoading = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether to draw the borders only (If true).<br />
- /// If not specified, the default is false.<br />
- /// For n-patch images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool BorderOnly
- {
- get
- {
- return _borderOnly ?? (false);
- }
- set
- {
- _borderOnly = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the image area to be displayed.<br />
- /// It is a rectangular area.<br />
- /// The first two elements indicate the top-left position of the area, and the last two elements are the areas of the width and the height respectively.<br />
- /// If not specified, the default value is Vector4 (0.0, 0.0, 1.0, 1.0), i.e., the entire area of the image.<br />
- /// For normal quad images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Vector4 PixelArea
- {
- get
- {
- return _pixelArea ?? (new Vector4(0.0f, 0.0f, 1.0f, 1.0f));
- }
- set
- {
- _pixelArea = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the wrap mode for the u coordinate.<br />
- /// It decides how the texture should be sampled when the u coordinate exceeds the range of 0.0 to 1.0.<br />
- /// If not specified, the default is WrapModeType.Default(CLAMP).<br />
- /// For normal quad images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public WrapModeType WrapModeU
- {
- get
- {
- return _wrapModeU ?? (WrapModeType.Default);
- }
- set
- {
- _wrapModeU = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the wrap mode for the v coordinate.<br />
- /// It decides how the texture should be sampled when the v coordinate exceeds the range of 0.0 to 1.0.<br />
- /// The first two elements indicate the top-left position of the area, and the last two elements are the areas of the width and the height respectively.<br />
- /// If not specified, the default is WrapModeType.Default(CLAMP).<br />
- /// For normal quad images only.
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public WrapModeType WrapModeV
- {
- get
- {
- return _wrapModeV ?? (WrapModeType.Default);
- }
- set
- {
- _wrapModeV = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets scale factor to apply to the content image before masking.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public float MaskContentScale
- {
- get
- {
- return _maskContentScale ?? 1.0f;
- }
- set
- {
- _maskContentScale = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Whether to crop image to mask or scale mask to fit image.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public bool CropToMask
- {
- get
- {
- return _cropToMask ?? false;
- }
- set
- {
- _cropToMask = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// An alpha value for mixing between the masked main NPatch image and the auxiliary image.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public float AuxiliaryImageAlpha
- {
- get
- {
- return _auxiliaryImageAlpha ?? 1.0f;
- }
- set
- {
- _auxiliaryImageAlpha = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the Image Visual release policy.<br/>
- /// It decides if a texture should be released from the cache or kept to reduce the loading time.<br/>
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public ReleasePolicyType ReleasePolicy
- {
- get
- {
- return _releasePolicy ?? (ReleasePolicyType.Destroyed );
- }
- set
- {
- _releasePolicy = value;
- UpdateVisual();
- }
- }
-
-
- /// <summary>
- /// Gets or sets the Image Visual image loading policy.<br />
- /// It decides if a texture should be loaded immediately after source set or only after the visual is added to the window.<br />
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public LoadPolicyType LoadPolicy
- {
- get
- {
- return _loadPolicy ?? (LoadPolicyType.Attached);
- }
- set
- {
- _loadPolicy = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether to automatically correct the orientation based on the Exchangeable Image File (EXIF) data.<br />
- /// If not specified, the default is true.<br />
- /// For JPEG images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public bool OrientationCorrection
- {
- get
- {
- return _orientationCorrection ?? (true);
- }
- set
- {
- _orientationCorrection = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Whether to use the texture atlas or not.
- /// Optional. By default atlasing is off.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public bool Atlasing
- {
- get
- {
- return _atlasing ?? (false);
- }
- set
- {
- _atlasing = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (_url != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
- _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_url));
- if (_alphaMaskUrl != null ) { _outputVisualMap.Add(ImageVisualProperty.AlphaMaskURL, new PropertyValue(_alphaMaskUrl)); }
- if (_auxiliaryImageUrl != null ) { _outputVisualMap.Add(ImageVisualProperty.AuxiliaryImageURL, new PropertyValue(_auxiliaryImageUrl)); }
- if (_fittingMode != null) { _outputVisualMap.Add(ImageVisualProperty.FittingMode, new PropertyValue((int)_fittingMode)); }
- if (_samplingMode != null) { _outputVisualMap.Add(ImageVisualProperty.SamplingMode, new PropertyValue((int)_samplingMode)); }
- if (_desiredWidth != null) { _outputVisualMap.Add(ImageVisualProperty.DesiredWidth, new PropertyValue((int)_desiredWidth)); }
- if (_desiredHeight != null) { _outputVisualMap.Add(ImageVisualProperty.DesiredHeight, new PropertyValue((int)_desiredHeight)); }
- if (_synchronousLoading != null) { _outputVisualMap.Add(ImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading)); }
- if (_borderOnly != null) { _outputVisualMap.Add(ImageVisualProperty.BorderOnly, new PropertyValue((bool)_borderOnly)); }
- if (_pixelArea != null) { _outputVisualMap.Add(ImageVisualProperty.PixelArea, new PropertyValue(_pixelArea)); }
- if (_wrapModeU != null) { _outputVisualMap.Add(ImageVisualProperty.WrapModeU, new PropertyValue((int)_wrapModeU)); }
- if (_wrapModeV != null) { _outputVisualMap.Add(ImageVisualProperty.WrapModeV, new PropertyValue((int)_wrapModeV)); }
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_maskContentScale != null) { _outputVisualMap.Add((int)ImageVisualProperty.MaskContentScale, new PropertyValue((float)_maskContentScale)); }
- if (_cropToMask != null) { _outputVisualMap.Add((int)ImageVisualProperty.CropToMask, new PropertyValue((bool)_cropToMask)); }
- if (_auxiliaryImageAlpha != null) { _outputVisualMap.Add((int)ImageVisualProperty.AuxiliaryImageAlpha, new PropertyValue((float)_auxiliaryImageAlpha)); }
- if (_releasePolicy != null) { _outputVisualMap.Add( ImageVisualProperty.ReleasePolicy , new PropertyValue((int)_releasePolicy)); }
- if (_loadPolicy != null) { _outputVisualMap.Add( ImageVisualProperty.LoadPolicy, new PropertyValue((int)_loadPolicy)); }
- if (_orientationCorrection != null) { _outputVisualMap.Add( ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)_orientationCorrection)); }
- if (_atlasing != null) { _outputVisualMap.Add( ImageVisualProperty.Atlasing, new PropertyValue((bool)_atlasing)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the text visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class TextVisual : VisualMap
- {
- private string _text = null;
- private string _fontFamily = null;
- private PropertyMap _fontStyle = null;
- private float? _pointSize = null;
- private bool? _multiLine = null;
- private string _horizontalAlignment = null;
- private string _verticalAlignment = null;
- private Color _textColor = null;
- private bool? _enableMarkup = null;
- private PropertyMap _shadow = null;
- private PropertyMap _underline = null;
- private PropertyMap _outline = null;
- private PropertyMap _background = null;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public TextVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets or sets the text to display in the UTF-8 format.<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string Text
- {
- get
- {
- return _text;
- }
- set
- {
- _text = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the requested font family to use.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string FontFamily
- {
- get
- {
- return _fontFamily;
- }
- set
- {
- _fontFamily = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the requested font style to use.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public PropertyMap FontStyle
- {
- get
- {
- return _fontStyle;
- }
- set
- {
- _fontStyle = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the size of font in points.<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float PointSize
- {
- get
- {
- return _pointSize ?? (0.0f);
- }
- set
- {
- _pointSize = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the single-line or multi-line layout option.<br />
- /// If not specified, the default is false.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool MultiLine
- {
- get
- {
- return _multiLine ?? (false);
- }
- set
- {
- _multiLine = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the line horizontal alignment.<br />
- /// If not specified, the default is begin.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public HorizontalAlignment HorizontalAlignment
- {
- get
- {
- switch (_horizontalAlignment)
- {
- case "BEGIN":
- return HorizontalAlignment.Begin;
- case "CENTER":
- return HorizontalAlignment.Center;
- case "END":
- return HorizontalAlignment.End;
- default:
- return HorizontalAlignment.Begin;
- }
- }
- set
- {
- switch (value)
- {
- case HorizontalAlignment.Begin:
- {
- _horizontalAlignment = "BEGIN";
- break;
- }
- case HorizontalAlignment.Center:
- {
- _horizontalAlignment = "CENTER";
- break;
- }
- case HorizontalAlignment.End:
- {
- _horizontalAlignment = "END";
- break;
- }
- default:
- {
- _horizontalAlignment = "BEGIN";
- break;
- }
- }
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the line vertical alignment.<br />
- /// If not specified, the default is top.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public VerticalAlignment VerticalAlignment
- {
- get
- {
- switch (_verticalAlignment)
- {
- case "TOP":
- return VerticalAlignment.Top;
- case "CENTER":
- return VerticalAlignment.Center;
- case "BOTTOM":
- return VerticalAlignment.Bottom;
- default:
- return VerticalAlignment.Top;
- }
- }
- set
- {
- switch (value)
- {
- case VerticalAlignment.Top:
- {
- _verticalAlignment = "TOP";
- break;
- }
- case VerticalAlignment.Center:
- {
- _verticalAlignment = "CENTER";
- break;
- }
- case VerticalAlignment.Bottom:
- {
- _verticalAlignment = "BOTTOM";
- break;
- }
- default:
- {
- _verticalAlignment = "TOP";
- break;
- }
- }
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the color of the text.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Color TextColor
- {
- get
- {
- return _textColor;
- }
- set
- {
- _textColor = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether the mark-up processing is enabled.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool EnableMarkup
- {
- get
- {
- return _enableMarkup ?? (false);
- }
- set
- {
- _enableMarkup = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the shadow parameters.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public PropertyMap Shadow
- {
- get
- {
- return _shadow;
- }
- set
- {
- _shadow = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the underline parameters.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public PropertyMap Underline
- {
- get
- {
- return _underline;
- }
- set
- {
- _underline = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the outline parameters.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public PropertyMap Outline
- {
- get
- {
- return _outline;
- }
- set
- {
- _outline = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the background parameters.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public PropertyMap Background
- {
- get
- {
- return _background;
- }
- set
- {
- _background = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (_text != null && _pointSize != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
- _outputVisualMap.Add(TextVisualProperty.Text, new PropertyValue(_text));
- _outputVisualMap.Add(TextVisualProperty.PointSize, new PropertyValue((float)_pointSize));
- if (_fontFamily != null) { _outputVisualMap.Add(TextVisualProperty.FontFamily, new PropertyValue(_fontFamily)); }
- if (_fontStyle != null) { _outputVisualMap.Add(TextVisualProperty.FontStyle, new PropertyValue(_fontStyle)); }
- if (_multiLine != null) { _outputVisualMap.Add(TextVisualProperty.MultiLine, new PropertyValue((bool)_multiLine)); }
- if (_horizontalAlignment != null) { _outputVisualMap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(_horizontalAlignment)); }
- if (_verticalAlignment != null) { _outputVisualMap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(_verticalAlignment)); }
- if (_textColor != null) { _outputVisualMap.Add(TextVisualProperty.TextColor, new PropertyValue(_textColor)); }
- if (_enableMarkup != null) { _outputVisualMap.Add(TextVisualProperty.EnableMarkup, new PropertyValue((bool)_enableMarkup)); }
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_shadow != null) { _outputVisualMap.Add(TextVisualProperty.Shadow, new PropertyValue(_shadow)); }
- if (_underline != null) { _outputVisualMap.Add(TextVisualProperty.Underline, new PropertyValue(_underline)); }
- if (_outline != null) { _outputVisualMap.Add(TextVisualProperty.Outline, new PropertyValue(_outline)); }
- if (_background != null) { _outputVisualMap.Add(TextVisualProperty.Background, new PropertyValue(_background)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the border visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class BorderVisual : VisualMap
- {
- private Color _color = null;
- private float? _size = null;
- private bool? _antiAliasing = null;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public BorderVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets or sets the color of the border.<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Color Color
- {
- get
- {
- return _color;
- }
- set
- {
- _color = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the width of the border (in pixels).<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float BorderSize
- {
- get
- {
- return _size ?? (-1.0f);
- }
- set
- {
- _size = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether the anti-aliasing of the border is required.<br />
- /// If not supplied, the default is false.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool AntiAliasing
- {
- get
- {
- return _antiAliasing ?? (false);
- }
- set
- {
- _antiAliasing = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (_color != null && _size != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Border));
- _outputVisualMap.Add(BorderVisualProperty.Size, new PropertyValue((float)_size));
- _outputVisualMap.Add(BorderVisualProperty.Color, new PropertyValue(_color));
- if (_antiAliasing != null) { _outputVisualMap.Add(BorderVisualProperty.AntiAliasing, new PropertyValue((bool)_antiAliasing)); }
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the color visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class ColorVisual : VisualMap
- {
- private Color _mixColorForColorVisual = null;
- private bool? _renderIfTransparent = false;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ColorVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets or sets the solid color required.<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Color Color
- {
- get
- {
- return _mixColorForColorVisual;
- }
- set
- {
- _mixColorForColorVisual = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether to render if the MixColor is transparent.
- /// By default it is false, which means that the ColorVisual will not render if the MIX_COLOR is transparent.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public bool RenderIfTransparent
- {
- get
- {
- return _renderIfTransparent ?? (false);
- }
- set
- {
- _renderIfTransparent = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (_mixColorForColorVisual != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color));
- _outputVisualMap.Add(ColorVisualProperty.MixColor, new PropertyValue(_mixColorForColorVisual));
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_renderIfTransparent != null) { _outputVisualMap.Add(ColorVisualProperty.RenderIfTransparent, new PropertyValue((bool)_renderIfTransparent)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the gradient visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class GradientVisual : VisualMap
- {
- private Vector2 _startPosition = null;
- private Vector2 _endPosition = null;
- private Vector2 _center = null;
- private float? _radius = null;
- private PropertyArray _stopOffset = null;
- private PropertyArray _stopColor = null;
- private GradientVisualUnitsType? _units = null;
- private GradientVisualSpreadMethodType? _spreadMethod = null;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public GradientVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets or sets the start position of a linear gradient.<br />
- /// Mandatory for linear.<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Vector2 StartPosition
- {
- get
- {
- return _startPosition;
- }
- set
- {
- _startPosition = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the end position of a linear gradient.<br />
- /// Mandatory for linear.<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Vector2 EndPosition
- {
- get
- {
- return _endPosition;
- }
- set
- {
- _endPosition = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the center point of a radial gradient.<br />
- /// Mandatory for radial.<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Vector2 Center
- {
- get
- {
- return _center;
- }
- set
- {
- _center = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the size of the radius of a radial gradient.<br />
- /// Mandatory for radial.<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float Radius
- {
- get
- {
- return _radius ?? (-1.0f);
- }
- set
- {
- _radius = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets all the stop offsets.<br />
- /// A PropertyArray of float.<br />
- /// If not supplied, the default is 0.0f and 1.0f.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public PropertyArray StopOffset
- {
- get
- {
- return _stopOffset;
- }
- set
- {
- _stopOffset = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the color at the stop offsets.<br />
- /// A PropertyArray of color.<br />
- /// At least 2 values are required to show a gradient.<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public PropertyArray StopColor
- {
- get
- {
- return _stopColor;
- }
- set
- {
- _stopColor = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets descriptions of the coordinate system for certain attributes of the points in a gradient.<br />
- /// If not supplied, the default is GradientVisualUnitsType.ObjectBoundingBox.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public GradientVisualUnitsType Units
- {
- get
- {
- return _units ?? (GradientVisualUnitsType.ObjectBoundingBox);
- }
- set
- {
- _units = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets indications of what happens if the gradient starts or ends inside the bounds of the target rectangle.<br />
- /// If not supplied, the default is GradientVisualSpreadMethodType.Pad.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public GradientVisualSpreadMethodType SpreadMethod
- {
- get
- {
- return _spreadMethod ?? (GradientVisualSpreadMethodType.Pad);
- }
- set
- {
- _spreadMethod = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (((_startPosition != null && _endPosition != null) || (_center != null && _radius != null)) && _stopColor != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Gradient));
- _outputVisualMap.Add(GradientVisualProperty.StopColor, new PropertyValue(_stopColor));
- if (_startPosition != null) { _outputVisualMap.Add(GradientVisualProperty.StartPosition, new PropertyValue(_startPosition)); }
- if (_endPosition != null) { _outputVisualMap.Add(GradientVisualProperty.EndPosition, new PropertyValue(_endPosition)); }
- if (_center != null) { _outputVisualMap.Add(GradientVisualProperty.Center, new PropertyValue(_center)); }
- if (_radius != null) { _outputVisualMap.Add(GradientVisualProperty.Radius, new PropertyValue((float)_radius)); }
- if (_stopOffset != null) { _outputVisualMap.Add(GradientVisualProperty.StopOffset, new PropertyValue(_stopOffset)); }
- if (_units != null) { _outputVisualMap.Add(GradientVisualProperty.Units, new PropertyValue((int)_units)); }
- if (_spreadMethod != null) { _outputVisualMap.Add(GradientVisualProperty.SpreadMethod, new PropertyValue((int)_spreadMethod)); }
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the mesh visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class MeshVisual : VisualMap
- {
- private string _objectURL = null;
- private string _materialtURL = null;
- private string _texturesPath = null;
- private MeshVisualShadingModeValue? _shadingMode = null;
- private bool? _useMipmapping = null;
- private bool? _useSoftNormals = null;
- private Vector3 _lightPosition = null;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public MeshVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets or sets the location of the ".obj" file.<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string ObjectURL
- {
- get
- {
- return _objectURL;
- }
- set
- {
- _objectURL = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the location of the ".mtl" file.<br />
- /// If not specified, then a textureless object is assumed.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string MaterialtURL
- {
- get
- {
- return _materialtURL;
- }
- set
- {
- _materialtURL = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the path to the directory the textures (including gloss and normal) are stored in.<br />
- /// Mandatory if using material.<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string TexturesPath
- {
- get
- {
- return _texturesPath;
- }
- set
- {
- _texturesPath = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the type of shading mode that the mesh will use.<br />
- /// If anything the specified shading mode requires is missing, a simpler mode that can be handled with what has been supplied will be used instead.<br />
- /// If not specified, it will use the best it can support (will try MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting first).<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public MeshVisualShadingModeValue ShadingMode
- {
- get
- {
- return _shadingMode ?? (MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting);
- }
- set
- {
- _shadingMode = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether to use mipmaps for textures or not.<br />
- /// If not specified, the default is true.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool UseMipmapping
- {
- get
- {
- return _useMipmapping ?? (true);
- }
- set
- {
- _useMipmapping = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether to average normals at each point to smooth textures or not.<br />
- /// If not specified, the default is true.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool UseSoftNormals
- {
- get
- {
- return _useSoftNormals ?? (true);
- }
- set
- {
- _useSoftNormals = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the position, in the stage space, of the point light that applies lighting to the model.<br />
- /// This is based off the stage's dimensions, so using the width and the height of the stage halved will correspond to the center,
- /// and using all zeroes will place the light at the top-left corner.<br />
- /// If not specified, the default is an offset outwards from the center of the screen.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Vector3 LightPosition
- {
- get
- {
- return _lightPosition;
- }
- set
- {
- _lightPosition = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (_objectURL != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Mesh));
- _outputVisualMap.Add(MeshVisualProperty.ObjectURL, new PropertyValue(_objectURL));
- if (_materialtURL != null) { _outputVisualMap.Add(MeshVisualProperty.MaterialtURL, new PropertyValue(_materialtURL)); }
- if (_texturesPath != null) { _outputVisualMap.Add(MeshVisualProperty.TexturesPath, new PropertyValue(_texturesPath)); }
- if (_shadingMode != null) { _outputVisualMap.Add(MeshVisualProperty.ShadingMode, new PropertyValue((int)_shadingMode)); }
- if (_useMipmapping != null) { _outputVisualMap.Add(MeshVisualProperty.UseMipmapping, new PropertyValue((bool)_useMipmapping)); }
- if (_useSoftNormals != null) { _outputVisualMap.Add(MeshVisualProperty.UseSoftNormals, new PropertyValue((bool)_useSoftNormals)); }
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the primetive visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class PrimitiveVisual : VisualMap
- {
- private PrimitiveVisualShapeType? _shape = null;
- private Color _mixColorForPrimitiveVisual = null;
- private int? _slices = null;
- private int? _stacks = null;
- private float? _scaleTopRadius = null;
- private float? _scaleBottomRadius = null;
- private float? _scaleHeight = null;
- private float? _scaleRadius = null;
- private Vector3 _scaleDimensions = null;
- private float? _bevelPercentage = null;
- private float? _bevelSmoothness = null;
- private Vector3 _lightPosition = null;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public PrimitiveVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets or sets the specific shape to render.<br />
- /// If not specified, the default is PrimitiveVisualShapeType.Sphere.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public PrimitiveVisualShapeType Shape
- {
- get
- {
- return _shape ?? (PrimitiveVisualShapeType.Sphere);
- }
- set
- {
- _shape = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the color of the shape.<br />
- /// If not specified, the default is Color (0.5, 0.5, 0.5, 1.0).<br />
- /// Applies to all shapes.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public new Color MixColor
- {
- get
- {
- return _mixColorForPrimitiveVisual ?? (new Color(0.5f, 0.5f, 0.5f, 1.0f));
- }
- set
- {
- _mixColorForPrimitiveVisual = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the number of slices as you go around the shape.<br />
- /// For spheres and conical frustrums, this determines how many divisions there are as you go around the object.<br />
- /// If not specified, the default is 128.<br />
- /// The range is from 1 to 255.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public int Slices
- {
- get
- {
- return _slices ?? (128);
- }
- set
- {
- _slices = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the number of stacks as you go down the shape.<br />
- /// For spheres, 'stacks' determines how many layers there are as you go down the object.<br />
- /// If not specified, the default is 128.<br />
- /// The range is from 1 to 255.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public int Stacks
- {
- get
- {
- return _stacks ?? (128);
- }
- set
- {
- _stacks = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the scale of the radius of the top circle of a conical frustrum.<br />
- /// If not specified, the default is 1.0f.<br />
- /// Applies to: - PrimitiveVisualShapeType.ConicalFrustrum<br />
- /// Only values greater than or equal to 0.0f are accepted.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float ScaleTopRadius
- {
- get
- {
- return _scaleTopRadius ?? (1.0f);
- }
- set
- {
- _scaleTopRadius = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the scale of the radius of the bottom circle of a conical frustrum.<br />
- /// If not specified, the default is 1.5f.<br />
- /// Applies to: - PrimitiveVisualShapeType.ConicalFrustrum<br />
- /// - PrimitiveVisualShapeType.Cone<br />
- /// Only values greater than or equal to 0.0f are accepted.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float ScaleBottomRadius
- {
- get
- {
- return _scaleBottomRadius ?? (1.5f);
- }
- set
- {
- _scaleBottomRadius = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the scale of the height of a conic.<br />
- /// If not specified, the default is 3.0f.<br />
- /// Applies to:<br />
- /// - PrimitiveVisualShapeType.ConicalFrustrum<br />
- /// - PrimitiveVisualShapeType.Cone<br />
- /// - PrimitiveVisualShapeType.Cylinder<br />
- /// Only values greater than or equal to 0.0f are accepted.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float ScaleHeight
- {
- get
- {
- return _scaleHeight ?? (3.0f);
- }
- set
- {
- _scaleHeight = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the scale of the radius of a cylinder.<br />
- /// If not specified, the default is 1.0f.<br />
- /// Applies to:<br />
- /// - PrimitiveVisualShapeType.Cylinder<br />
- /// Only values greater than or equal to 0.0f are accepted.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float ScaleRadius
- {
- get
- {
- return _scaleRadius ?? (1.0f);
- }
- set
- {
- _scaleRadius = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the dimensions of a cuboid. Scales in the same fashion as a 9-patch image.<br />
- /// If not specified, the default is Vector3.One.<br />
- /// Applies to:<br />
- /// - PrimitiveVisualShapeType.Cube<br />
- /// - PrimitiveVisualShapeType.Octahedron<br />
- /// - PrimitiveVisualShapeType.BevelledCube<br />
- /// Each Vector3 parameter should be greater than or equal to 0.0f.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Vector3 ScaleDimensions
- {
- get
- {
- return _scaleDimensions ?? (Vector3.One);
- }
- set
- {
- _scaleDimensions = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets determines how bevelled the cuboid should be, based off the smallest dimension.<br />
- /// Bevel percentage ranges from 0.0 to 1.0. It affects the ratio of the outer face widths to the width of the overall cube.<br />
- /// If not specified, the default is 0.0f (no bevel).<br />
- /// Applies to:<br />
- /// - PrimitiveVisualShapeType.BevelledCube<br />
- /// The range is from 0.0f to 1.0f.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float BevelPercentage
- {
- get
- {
- return _bevelPercentage ?? (0.0f);
- }
- set
- {
- _bevelPercentage = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets descriptions of how smooth the bevelled edges should be.<br />
- /// If not specified, the default is 0.0f (sharp edges).<br />
- /// Applies to:<br />
- /// - PrimitiveVisualShapeType.BevelledCube<br />
- /// The range is from 0.0f to 1.0f.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float BevelSmoothness
- {
- get
- {
- return _bevelSmoothness ?? (0.0f);
- }
- set
- {
- _bevelSmoothness = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets the position, in the stage space, of the point light that applies lighting to the model.<br />
- /// This is based off the stage's dimensions, so using the width and the height of the stage halved will correspond to the center,
- /// and using all zeroes will place the light at the top-left corner.<br />
- /// If not specified, the default is an offset outwards from the center of the screen.<br />
- /// Applies to all shapes.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Vector3 LightPosition
- {
- get
- {
- return _lightPosition;
- }
- set
- {
- _lightPosition = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- _outputVisualMap = new PropertyMap(); ;
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Primitive));
- if (_shape != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Shape, new PropertyValue((int)_shape)); }
- if (_mixColorForPrimitiveVisual != null) { _outputVisualMap.Add(PrimitiveVisualProperty.MixColor, new PropertyValue(_mixColorForPrimitiveVisual)); }
- if (_slices != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Slices, new PropertyValue((int)_slices)); }
- if (_stacks != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Stacks, new PropertyValue((int)_stacks)); }
- if (_scaleTopRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleTopRadius, new PropertyValue((float)_scaleTopRadius)); }
- if (_scaleBottomRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleBottomRadius, new PropertyValue((float)_scaleBottomRadius)); }
- if (_scaleHeight != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleHeight, new PropertyValue((float)_scaleHeight)); }
- if (_scaleRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleRadius, new PropertyValue((float)_scaleRadius)); }
- if (_scaleDimensions != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleDimensions, new PropertyValue(_scaleDimensions)); }
- if (_bevelPercentage != null) { _outputVisualMap.Add(PrimitiveVisualProperty.BevelPercentage, new PropertyValue((float)_bevelPercentage)); }
- if (_bevelSmoothness != null) { _outputVisualMap.Add(PrimitiveVisualProperty.BevelSmoothness, new PropertyValue((float)_bevelSmoothness)); }
- if (_lightPosition != null) { _outputVisualMap.Add(PrimitiveVisualProperty.LightPosition, new PropertyValue(_lightPosition)); }
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the n-patch image visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class NPatchVisual : VisualMap
- {
- private string _url = null;
- private bool? _borderOnly = null;
- private Rectangle _border = null;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public NPatchVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets or sets the URL of the image.<br />
- /// Mandatory.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string URL
- {
- get
- {
- return _url;
- }
- set
- {
- _url = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets or sets whether to draw the borders only (If true).<br />
- /// If not specified, the default is false.<br />
- /// For n-patch images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool BorderOnly
- {
- get
- {
- return _borderOnly ?? false;
- }
- set
- {
- _borderOnly = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// The border of the image is in the order: left, right, bottom, top.<br />
- /// For n-patch images only.<br />
- /// Optional.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Rectangle Border
- {
- get
- {
- return _border;
- }
- set
- {
- _border = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (_url != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch));
- _outputVisualMap.Add(NpatchImageVisualProperty.URL, new PropertyValue(_url));
- if (_borderOnly != null) { _outputVisualMap.Add(NpatchImageVisualProperty.BorderOnly, new PropertyValue((bool)_borderOnly)); }
- if (_border != null) { _outputVisualMap.Add(NpatchImageVisualProperty.Border, new PropertyValue(_border)); }
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the SVG visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class SVGVisual : VisualMap
- {
- private string _url = null;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public SVGVisual() : base()
- {
- }
-
- /// <summary>
- /// The url of the svg resource.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string URL
- {
- get
- {
- return _url;
- }
- set
- {
- _url = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (_url != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.SVG));
- _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_url));
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
- /// <summary>
- /// A class encapsulating the property map of the animated image (AGIF) visual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class AnimatedImageVisual : VisualMap
- {
- private List<string> _urls = null;
- private int? _batchSize = null;
- private int? _cacheSize = null;
- private float? _frameDelay = null;
- private float? _loopCount = null;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public AnimatedImageVisual() : base()
- {
- }
-
- /// <summary>
- /// Gets and Sets the url in the AnimatedImageVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string URL
- {
- get
- {
- if( _urls != null )
- {
- return _urls[0];
- }
- else
- {
- return null;
- }
- }
- set
- {
- if( _urls == null )
- {
- _urls = new List<string>();
- _urls.Add(value);
- }
- else
- {
- _urls[0] = value;
- }
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets and Sets the url list in the AnimatedImageVisual.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public List<string> URLS
- {
- get
- {
- return _urls;
- }
- set
- {
- _urls = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets and Sets the batch size for pre-loading images in the AnimatedImageVisual.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public int BatchSize
- {
- get
- {
- return _batchSize ?? 1;
- }
- set
- {
- _batchSize = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets and Sets the cache size for loading images in the AnimatedImageVisual.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public int CacheSize
- {
- get
- {
- return _cacheSize ?? 1;
- }
- set
- {
- _cacheSize = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets and Sets The number of milliseconds between each frame in the AnimatedImageVisual.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public float FrameDelay
- {
- get
- {
- return _frameDelay ?? 0.1f;
- }
- set
- {
- _frameDelay = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Gets and sets the number of times the AnimatedImageVisual will be looped.
- /// The default is -1. If the number is less than 0 then it loops unlimited,otherwise loop loopCount times.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public float LoopCount
- {
- get
- {
- return _loopCount ?? -1;
- }
- set
- {
- _loopCount = value;
- UpdateVisual();
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- if (_urls != null)
- {
- _outputVisualMap = new PropertyMap();
- _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.AnimatedImage));
- if( _urls.Count == 1 )
- {
- _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_urls[0]));
- }
- else
- {
- var urlArray = new PropertyArray();
- foreach( var url in _urls)
- {
- urlArray.Add(new PropertyValue(url));
- }
- _outputVisualMap.Add( ImageVisualProperty.URL, ( new PropertyValue( urlArray ) ) );
- }
- if (_batchSize != null ) {_outputVisualMap.Add((int)ImageVisualProperty.BatchSize, new PropertyValue((int)_batchSize)); }
- if (_cacheSize != null ) {_outputVisualMap.Add((int)ImageVisualProperty.CacheSize, new PropertyValue((int)_cacheSize)); }
- if (_frameDelay != null ) {_outputVisualMap.Add((int)ImageVisualProperty.FrameDelay, new PropertyValue((float)_frameDelay)); }
- if (_loopCount != null ) {_outputVisualMap.Add((int)ImageVisualProperty.LoopCount, new PropertyValue((int)_loopCount)); }
- if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
- if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
- if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
- if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
- if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
- }
- }
- }
-
-
- //temporary fix for TCT
- /// <summary>
- /// A class encapsulating the property map of the transition data.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class VisualAnimator : VisualMap
- {
- private string _alphaFunction = null;
- private int _startTime = 0;
- private int _endTime = 0;
- private string _target = null;
- private string _propertyIndex = null;
- private object _destinationValue = null;
-
- /// <summary>
- /// Create VisualAnimator object.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public VisualAnimator() : base()
- {
- }
-
- /// <summary>
- /// Sets and Gets the AlphaFunction of this transition.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public AlphaFunction.BuiltinFunctions AlphaFunction
- {
- get
- {
- switch (_alphaFunction)
- {
- case "LINEAR":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Linear;
- case "REVERSE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Reverse;
- case "EASE_IN_SQUARE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSquare;
- case "EASE_OUT_SQUARE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSquare;
- case "EASE_IN":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseIn;
- case "EASE_OUT":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOut;
- case "EASE_IN_OUT":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOut;
- case "EASE_IN_SINE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSine;
- case "EASE_OUT_SINE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSine;
- case "EASE_IN_OUT_SINE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOutSine;
- case "BOUNCE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Bounce;
- case "SIN":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Sin;
- case "EASE_OUT_BACK":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutBack;
- default:
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Default;
- }
- }
- set
- {
- switch (value)
- {
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.Linear:
- {
- _alphaFunction = "LINEAR";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.Reverse:
- {
- _alphaFunction = "REVERSE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSquare:
- {
- _alphaFunction = "EASE_IN_SQUARE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSquare:
- {
- _alphaFunction = "EASE_OUT_SQUARE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseIn:
- {
- _alphaFunction = "EASE_IN";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOut:
- {
- _alphaFunction = "EASE_OUT";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOut:
- {
- _alphaFunction = "EASE_IN_OUT";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSine:
- {
- _alphaFunction = "EASE_IN_SINE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSine:
- {
- _alphaFunction = "EASE_OUT_SINE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOutSine:
- {
- _alphaFunction = "EASE_IN_OUT_SINE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.Bounce:
- {
- _alphaFunction = "BOUNCE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.Sin:
- {
- _alphaFunction = "SIN";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutBack:
- {
- _alphaFunction = "EASE_OUT_BACK";
- break;
- }
- default:
- {
- _alphaFunction = "DEFAULT";
- break;
- }
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets the StartTime of this transition.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public int StartTime
- {
- get
- {
- return _startTime;
- }
- set
- {
- _startTime = value;
- }
- }
-
- /// <summary>
- /// Sets and Gets the EndTime of this transition.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public int EndTime
- {
- get
- {
- return _endTime;
- }
- set
- {
- _endTime = value;
- }
- }
-
- /// <summary>
- /// Sets and Gets the Target of this transition.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string Target
- {
- get
- {
- return _target;
- }
- set
- {
- _target = value;
- }
- }
-
- /// <summary>
- /// Sets and Gets the PropertyIndex of this transition.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public string PropertyIndex
- {
- get
- {
- return _propertyIndex;
- }
- set
- {
- _propertyIndex = value;
- }
- }
-
- /// <summary>
- /// Sets and Gets the DestinationValue of this transition.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public object DestinationValue
- {
- get
- {
- return _destinationValue;
- }
- set
- {
- _destinationValue = value;
- }
- }
-
- /// <summary>
- /// Compose the out visual map.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void ComposingPropertyMap()
- {
- PropertyMap _animator = new PropertyMap();
- _animator.Add("alphaFunction", new PropertyValue(_alphaFunction));
-
- PropertyMap _timePeriod = new PropertyMap();
- _timePeriod.Add("duration", new PropertyValue((_endTime - _startTime) / 1000.0f));
- _timePeriod.Add("delay", new PropertyValue(_startTime / 1000.0f));
- _animator.Add("timePeriod", new PropertyValue(_timePeriod));
-
- StringBuilder sb = new StringBuilder(_propertyIndex);
- sb[0] = (char)(sb[0] | 0x20);
- string _str = sb.ToString();
-
- PropertyValue val = PropertyValue.CreateFromObject(_destinationValue);
-
- PropertyMap _transition = new PropertyMap();
- _transition.Add("target", new PropertyValue(_target));
- _transition.Add("property", new PropertyValue(_str));
- _transition.Add("targetValue", val);
- _transition.Add("animator", new PropertyValue(_animator));
-
- _outputVisualMap = _transition;
- }
}
- //temporary fix for TCT
-
-
-
}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System.Collections.Generic;
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the animated image (AGIF) visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class AnimatedImageVisual : VisualMap
+ {
+ private List<string> _urls = null;
+ private int? _batchSize = null;
+ private int? _cacheSize = null;
+ private float? _frameDelay = null;
+ private float? _loopCount = null;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public AnimatedImageVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets and Sets the url in the AnimatedImageVisual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string URL
+ {
+ get
+ {
+ if (_urls != null)
+ {
+ return _urls[0];
+ }
+ else
+ {
+ return null;
+ }
+ }
+ set
+ {
+ if (_urls == null)
+ {
+ _urls = new List<string>();
+ _urls.Add(value);
+ }
+ else
+ {
+ _urls[0] = value;
+ }
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets and Sets the url list in the AnimatedImageVisual.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public List<string> URLS
+ {
+ get
+ {
+ return _urls;
+ }
+ set
+ {
+ _urls = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets and Sets the batch size for pre-loading images in the AnimatedImageVisual.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public int BatchSize
+ {
+ get
+ {
+ return _batchSize ?? 1;
+ }
+ set
+ {
+ _batchSize = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets and Sets the cache size for loading images in the AnimatedImageVisual.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public int CacheSize
+ {
+ get
+ {
+ return _cacheSize ?? 1;
+ }
+ set
+ {
+ _cacheSize = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets and Sets The number of milliseconds between each frame in the AnimatedImageVisual.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public float FrameDelay
+ {
+ get
+ {
+ return _frameDelay ?? 0.1f;
+ }
+ set
+ {
+ _frameDelay = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets and sets the number of times the AnimatedImageVisual will be looped.
+ /// The default is -1. If the number is less than 0 then it loops unlimited,otherwise loop loopCount times.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public float LoopCount
+ {
+ get
+ {
+ return _loopCount ?? -1;
+ }
+ set
+ {
+ _loopCount = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (_urls != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.AnimatedImage));
+ if (_urls.Count == 1)
+ {
+ _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_urls[0]));
+ }
+ else
+ {
+ var urlArray = new PropertyArray();
+ foreach (var url in _urls)
+ {
+ urlArray.Add(new PropertyValue(url));
+ }
+ _outputVisualMap.Add(ImageVisualProperty.URL, (new PropertyValue(urlArray)));
+ }
+ if (_batchSize != null) { _outputVisualMap.Add((int)ImageVisualProperty.BatchSize, new PropertyValue((int)_batchSize)); }
+ if (_cacheSize != null) { _outputVisualMap.Add((int)ImageVisualProperty.CacheSize, new PropertyValue((int)_cacheSize)); }
+ if (_frameDelay != null) { _outputVisualMap.Add((int)ImageVisualProperty.FrameDelay, new PropertyValue((float)_frameDelay)); }
+ if (_loopCount != null) { _outputVisualMap.Add((int)ImageVisualProperty.LoopCount, new PropertyValue((int)_loopCount)); }
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the border visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class BorderVisual : VisualMap
+ {
+ private Color _color = null;
+ private float? _size = null;
+ private bool? _antiAliasing = null;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public BorderVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets or sets the color of the border.<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Color Color
+ {
+ get
+ {
+ return _color;
+ }
+ set
+ {
+ _color = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the width of the border (in pixels).<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float BorderSize
+ {
+ get
+ {
+ return _size ?? (-1.0f);
+ }
+ set
+ {
+ _size = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether the anti-aliasing of the border is required.<br />
+ /// If not supplied, the default is false.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool AntiAliasing
+ {
+ get
+ {
+ return _antiAliasing ?? (false);
+ }
+ set
+ {
+ _antiAliasing = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (_color != null && _size != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Border));
+ _outputVisualMap.Add(BorderVisualProperty.Size, new PropertyValue((float)_size));
+ _outputVisualMap.Add(BorderVisualProperty.Color, new PropertyValue(_color));
+ if (_antiAliasing != null) { _outputVisualMap.Add(BorderVisualProperty.AntiAliasing, new PropertyValue((bool)_antiAliasing)); }
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the color visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class ColorVisual : VisualMap
+ {
+ private Color _mixColorForColorVisual = null;
+ private bool? _renderIfTransparent = false;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public ColorVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets or sets the solid color required.<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Color Color
+ {
+ get
+ {
+ return _mixColorForColorVisual;
+ }
+ set
+ {
+ _mixColorForColorVisual = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to render if the MixColor is transparent.
+ /// By default it is false, which means that the ColorVisual will not render if the MIX_COLOR is transparent.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public bool RenderIfTransparent
+ {
+ get
+ {
+ return _renderIfTransparent ?? (false);
+ }
+ set
+ {
+ _renderIfTransparent = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (_mixColorForColorVisual != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color));
+ _outputVisualMap.Add(ColorVisualProperty.MixColor, new PropertyValue(_mixColorForColorVisual));
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_renderIfTransparent != null) { _outputVisualMap.Add(ColorVisualProperty.RenderIfTransparent, new PropertyValue((bool)_renderIfTransparent)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the gradient visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class GradientVisual : VisualMap
+ {
+ private Vector2 _startPosition = null;
+ private Vector2 _endPosition = null;
+ private Vector2 _center = null;
+ private float? _radius = null;
+ private PropertyArray _stopOffset = null;
+ private PropertyArray _stopColor = null;
+ private GradientVisualUnitsType? _units = null;
+ private GradientVisualSpreadMethodType? _spreadMethod = null;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public GradientVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets or sets the start position of a linear gradient.<br />
+ /// Mandatory for linear.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Vector2 StartPosition
+ {
+ get
+ {
+ return _startPosition;
+ }
+ set
+ {
+ _startPosition = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the end position of a linear gradient.<br />
+ /// Mandatory for linear.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Vector2 EndPosition
+ {
+ get
+ {
+ return _endPosition;
+ }
+ set
+ {
+ _endPosition = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the center point of a radial gradient.<br />
+ /// Mandatory for radial.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Vector2 Center
+ {
+ get
+ {
+ return _center;
+ }
+ set
+ {
+ _center = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the size of the radius of a radial gradient.<br />
+ /// Mandatory for radial.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float Radius
+ {
+ get
+ {
+ return _radius ?? (-1.0f);
+ }
+ set
+ {
+ _radius = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets all the stop offsets.<br />
+ /// A PropertyArray of float.<br />
+ /// If not supplied, the default is 0.0f and 1.0f.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public PropertyArray StopOffset
+ {
+ get
+ {
+ return _stopOffset;
+ }
+ set
+ {
+ _stopOffset = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the color at the stop offsets.<br />
+ /// A PropertyArray of color.<br />
+ /// At least 2 values are required to show a gradient.<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public PropertyArray StopColor
+ {
+ get
+ {
+ return _stopColor;
+ }
+ set
+ {
+ _stopColor = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets descriptions of the coordinate system for certain attributes of the points in a gradient.<br />
+ /// If not supplied, the default is GradientVisualUnitsType.ObjectBoundingBox.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public GradientVisualUnitsType Units
+ {
+ get
+ {
+ return _units ?? (GradientVisualUnitsType.ObjectBoundingBox);
+ }
+ set
+ {
+ _units = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets indications of what happens if the gradient starts or ends inside the bounds of the target rectangle.<br />
+ /// If not supplied, the default is GradientVisualSpreadMethodType.Pad.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public GradientVisualSpreadMethodType SpreadMethod
+ {
+ get
+ {
+ return _spreadMethod ?? (GradientVisualSpreadMethodType.Pad);
+ }
+ set
+ {
+ _spreadMethod = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (((_startPosition != null && _endPosition != null) || (_center != null && _radius != null)) && _stopColor != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Gradient));
+ _outputVisualMap.Add(GradientVisualProperty.StopColor, new PropertyValue(_stopColor));
+ if (_startPosition != null) { _outputVisualMap.Add(GradientVisualProperty.StartPosition, new PropertyValue(_startPosition)); }
+ if (_endPosition != null) { _outputVisualMap.Add(GradientVisualProperty.EndPosition, new PropertyValue(_endPosition)); }
+ if (_center != null) { _outputVisualMap.Add(GradientVisualProperty.Center, new PropertyValue(_center)); }
+ if (_radius != null) { _outputVisualMap.Add(GradientVisualProperty.Radius, new PropertyValue((float)_radius)); }
+ if (_stopOffset != null) { _outputVisualMap.Add(GradientVisualProperty.StopOffset, new PropertyValue(_stopOffset)); }
+ if (_units != null) { _outputVisualMap.Add(GradientVisualProperty.Units, new PropertyValue((int)_units)); }
+ if (_spreadMethod != null) { _outputVisualMap.Add(GradientVisualProperty.SpreadMethod, new PropertyValue((int)_spreadMethod)); }
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the image visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class ImageVisual : VisualMap
+ {
+ private string _url = null;
+ private string _alphaMaskUrl = null;
+ private string _auxiliaryImageUrl = null;
+ private FittingModeType? _fittingMode = null;
+ private SamplingModeType? _samplingMode = null;
+ private int? _desiredWidth = null;
+ private int? _desiredHeight = null;
+ private bool? _synchronousLoading = false;
+ private bool? _borderOnly = null;
+ private Vector4 _pixelArea = null;
+ private WrapModeType? _wrapModeU = null;
+ private WrapModeType? _wrapModeV = null;
+ private float? _auxiliaryImageAlpha = null;
+ private float? _maskContentScale = null;
+ private bool? _cropToMask = null;
+ private ReleasePolicyType? _releasePolicy = null;
+ private LoadPolicyType? _loadPolicy = null;
+ private bool? _orientationCorrection = true;
+ private bool? _atlasing = false;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public ImageVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets or sets the URL of the image.<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string URL
+ {
+ get
+ {
+ return _url;
+ }
+ set
+ {
+ _url = (value == null ? "" : value);
+ UpdateVisual();
+ }
+ }
+
+
+ /// <summary>
+ /// Gets or sets the URL of the alpha mask.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string AlphaMaskURL
+ {
+ get
+ {
+ return _alphaMaskUrl;
+ }
+ set
+ {
+ _alphaMaskUrl = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Overlays the auxiliary image on top of an NPatch image.
+ /// The resulting visual image will be at least as large as the smallest possible n-patch or the auxiliary image, whichever is larger.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public string AuxiliaryImageURL
+ {
+ get
+ {
+ return _auxiliaryImageUrl;
+ }
+ set
+ {
+ _auxiliaryImageUrl = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets fitting options used when resizing images to fit the desired dimensions.<br />
+ /// If not supplied, the default is FittingModeType.ShrinkToFit.<br />
+ /// For normal quad images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public FittingModeType FittingMode
+ {
+ get
+ {
+ return _fittingMode ?? (FittingModeType.ShrinkToFit);
+ }
+ set
+ {
+ _fittingMode = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets filtering options used when resizing images to the sample original pixels.<br />
+ /// If not supplied, the default is SamplingModeType.Box.<br />
+ /// For normal quad images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public SamplingModeType SamplingMode
+ {
+ get
+ {
+ return _samplingMode ?? (SamplingModeType.Box);
+ }
+ set
+ {
+ _samplingMode = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the desired image width.<br />
+ /// If not specified, the actual image width is used.<br />
+ /// For normal quad images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public int DesiredWidth
+ {
+ get
+ {
+ return _desiredWidth ?? (-1);
+ }
+ set
+ {
+ _desiredWidth = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the desired image height.<br />
+ /// If not specified, the actual image height is used.<br />
+ /// For normal quad images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public int DesiredHeight
+ {
+ get
+ {
+ return _desiredHeight ?? (-1);
+ }
+ set
+ {
+ _desiredHeight = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to load the image synchronously.<br />
+ /// If not specified, the default is false, i.e., the image is loaded asynchronously.<br />
+ /// For normal quad images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool SynchronousLoading
+ {
+ get
+ {
+ return _synchronousLoading ?? (false);
+ }
+ set
+ {
+ _synchronousLoading = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to draw the borders only (If true).<br />
+ /// If not specified, the default is false.<br />
+ /// For n-patch images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool BorderOnly
+ {
+ get
+ {
+ return _borderOnly ?? (false);
+ }
+ set
+ {
+ _borderOnly = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the image area to be displayed.<br />
+ /// It is a rectangular area.<br />
+ /// The first two elements indicate the top-left position of the area, and the last two elements are the areas of the width and the height respectively.<br />
+ /// If not specified, the default value is Vector4 (0.0, 0.0, 1.0, 1.0), i.e., the entire area of the image.<br />
+ /// For normal quad images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Vector4 PixelArea
+ {
+ get
+ {
+ return _pixelArea ?? (new Vector4(0.0f, 0.0f, 1.0f, 1.0f));
+ }
+ set
+ {
+ _pixelArea = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the wrap mode for the u coordinate.<br />
+ /// It decides how the texture should be sampled when the u coordinate exceeds the range of 0.0 to 1.0.<br />
+ /// If not specified, the default is WrapModeType.Default(CLAMP).<br />
+ /// For normal quad images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public WrapModeType WrapModeU
+ {
+ get
+ {
+ return _wrapModeU ?? (WrapModeType.Default);
+ }
+ set
+ {
+ _wrapModeU = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the wrap mode for the v coordinate.<br />
+ /// It decides how the texture should be sampled when the v coordinate exceeds the range of 0.0 to 1.0.<br />
+ /// The first two elements indicate the top-left position of the area, and the last two elements are the areas of the width and the height respectively.<br />
+ /// If not specified, the default is WrapModeType.Default(CLAMP).<br />
+ /// For normal quad images only.
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public WrapModeType WrapModeV
+ {
+ get
+ {
+ return _wrapModeV ?? (WrapModeType.Default);
+ }
+ set
+ {
+ _wrapModeV = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets scale factor to apply to the content image before masking.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public float MaskContentScale
+ {
+ get
+ {
+ return _maskContentScale ?? 1.0f;
+ }
+ set
+ {
+ _maskContentScale = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Whether to crop image to mask or scale mask to fit image.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public bool CropToMask
+ {
+ get
+ {
+ return _cropToMask ?? false;
+ }
+ set
+ {
+ _cropToMask = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// An alpha value for mixing between the masked main NPatch image and the auxiliary image.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public float AuxiliaryImageAlpha
+ {
+ get
+ {
+ return _auxiliaryImageAlpha ?? 1.0f;
+ }
+ set
+ {
+ _auxiliaryImageAlpha = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the Image Visual release policy.<br/>
+ /// It decides if a texture should be released from the cache or kept to reduce the loading time.<br/>
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public ReleasePolicyType ReleasePolicy
+ {
+ get
+ {
+ return _releasePolicy ?? (ReleasePolicyType.Destroyed);
+ }
+ set
+ {
+ _releasePolicy = value;
+ UpdateVisual();
+ }
+ }
+
+
+ /// <summary>
+ /// Gets or sets the Image Visual image loading policy.<br />
+ /// It decides if a texture should be loaded immediately after source set or only after the visual is added to the window.<br />
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public LoadPolicyType LoadPolicy
+ {
+ get
+ {
+ return _loadPolicy ?? (LoadPolicyType.Attached);
+ }
+ set
+ {
+ _loadPolicy = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to automatically correct the orientation based on the Exchangeable Image File (EXIF) data.<br />
+ /// If not specified, the default is true.<br />
+ /// For JPEG images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public bool OrientationCorrection
+ {
+ get
+ {
+ return _orientationCorrection ?? (true);
+ }
+ set
+ {
+ _orientationCorrection = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Whether to use the texture atlas or not.
+ /// Optional. By default atlasing is off.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public bool Atlasing
+ {
+ get
+ {
+ return _atlasing ?? (false);
+ }
+ set
+ {
+ _atlasing = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (_url != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
+ _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_url));
+ if (_alphaMaskUrl != null) { _outputVisualMap.Add(ImageVisualProperty.AlphaMaskURL, new PropertyValue(_alphaMaskUrl)); }
+ if (_auxiliaryImageUrl != null) { _outputVisualMap.Add(ImageVisualProperty.AuxiliaryImageURL, new PropertyValue(_auxiliaryImageUrl)); }
+ if (_fittingMode != null) { _outputVisualMap.Add(ImageVisualProperty.FittingMode, new PropertyValue((int)_fittingMode)); }
+ if (_samplingMode != null) { _outputVisualMap.Add(ImageVisualProperty.SamplingMode, new PropertyValue((int)_samplingMode)); }
+ if (_desiredWidth != null) { _outputVisualMap.Add(ImageVisualProperty.DesiredWidth, new PropertyValue((int)_desiredWidth)); }
+ if (_desiredHeight != null) { _outputVisualMap.Add(ImageVisualProperty.DesiredHeight, new PropertyValue((int)_desiredHeight)); }
+ if (_synchronousLoading != null) { _outputVisualMap.Add(ImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading)); }
+ if (_borderOnly != null) { _outputVisualMap.Add(ImageVisualProperty.BorderOnly, new PropertyValue((bool)_borderOnly)); }
+ if (_pixelArea != null) { _outputVisualMap.Add(ImageVisualProperty.PixelArea, new PropertyValue(_pixelArea)); }
+ if (_wrapModeU != null) { _outputVisualMap.Add(ImageVisualProperty.WrapModeU, new PropertyValue((int)_wrapModeU)); }
+ if (_wrapModeV != null) { _outputVisualMap.Add(ImageVisualProperty.WrapModeV, new PropertyValue((int)_wrapModeV)); }
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_maskContentScale != null) { _outputVisualMap.Add((int)ImageVisualProperty.MaskContentScale, new PropertyValue((float)_maskContentScale)); }
+ if (_cropToMask != null) { _outputVisualMap.Add((int)ImageVisualProperty.CropToMask, new PropertyValue((bool)_cropToMask)); }
+ if (_auxiliaryImageAlpha != null) { _outputVisualMap.Add((int)ImageVisualProperty.AuxiliaryImageAlpha, new PropertyValue((float)_auxiliaryImageAlpha)); }
+ if (_releasePolicy != null) { _outputVisualMap.Add(ImageVisualProperty.ReleasePolicy, new PropertyValue((int)_releasePolicy)); }
+ if (_loadPolicy != null) { _outputVisualMap.Add(ImageVisualProperty.LoadPolicy, new PropertyValue((int)_loadPolicy)); }
+ if (_orientationCorrection != null) { _outputVisualMap.Add(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)_orientationCorrection)); }
+ if (_atlasing != null) { _outputVisualMap.Add(ImageVisualProperty.Atlasing, new PropertyValue((bool)_atlasing)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the mesh visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class MeshVisual : VisualMap
+ {
+ private string _objectURL = null;
+ private string _materialtURL = null;
+ private string _texturesPath = null;
+ private MeshVisualShadingModeValue? _shadingMode = null;
+ private bool? _useMipmapping = null;
+ private bool? _useSoftNormals = null;
+ private Vector3 _lightPosition = null;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public MeshVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets or sets the location of the ".obj" file.<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string ObjectURL
+ {
+ get
+ {
+ return _objectURL;
+ }
+ set
+ {
+ _objectURL = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the location of the ".mtl" file.<br />
+ /// If not specified, then a textureless object is assumed.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string MaterialtURL
+ {
+ get
+ {
+ return _materialtURL;
+ }
+ set
+ {
+ _materialtURL = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the path to the directory the textures (including gloss and normal) are stored in.<br />
+ /// Mandatory if using material.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string TexturesPath
+ {
+ get
+ {
+ return _texturesPath;
+ }
+ set
+ {
+ _texturesPath = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the type of shading mode that the mesh will use.<br />
+ /// If anything the specified shading mode requires is missing, a simpler mode that can be handled with what has been supplied will be used instead.<br />
+ /// If not specified, it will use the best it can support (will try MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting first).<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public MeshVisualShadingModeValue ShadingMode
+ {
+ get
+ {
+ return _shadingMode ?? (MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting);
+ }
+ set
+ {
+ _shadingMode = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to use mipmaps for textures or not.<br />
+ /// If not specified, the default is true.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool UseMipmapping
+ {
+ get
+ {
+ return _useMipmapping ?? (true);
+ }
+ set
+ {
+ _useMipmapping = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to average normals at each point to smooth textures or not.<br />
+ /// If not specified, the default is true.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool UseSoftNormals
+ {
+ get
+ {
+ return _useSoftNormals ?? (true);
+ }
+ set
+ {
+ _useSoftNormals = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the position, in the stage space, of the point light that applies lighting to the model.<br />
+ /// This is based off the stage's dimensions, so using the width and the height of the stage halved will correspond to the center,
+ /// and using all zeroes will place the light at the top-left corner.<br />
+ /// If not specified, the default is an offset outwards from the center of the screen.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Vector3 LightPosition
+ {
+ get
+ {
+ return _lightPosition;
+ }
+ set
+ {
+ _lightPosition = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (_objectURL != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Mesh));
+ _outputVisualMap.Add(MeshVisualProperty.ObjectURL, new PropertyValue(_objectURL));
+ if (_materialtURL != null) { _outputVisualMap.Add(MeshVisualProperty.MaterialtURL, new PropertyValue(_materialtURL)); }
+ if (_texturesPath != null) { _outputVisualMap.Add(MeshVisualProperty.TexturesPath, new PropertyValue(_texturesPath)); }
+ if (_shadingMode != null) { _outputVisualMap.Add(MeshVisualProperty.ShadingMode, new PropertyValue((int)_shadingMode)); }
+ if (_useMipmapping != null) { _outputVisualMap.Add(MeshVisualProperty.UseMipmapping, new PropertyValue((bool)_useMipmapping)); }
+ if (_useSoftNormals != null) { _outputVisualMap.Add(MeshVisualProperty.UseSoftNormals, new PropertyValue((bool)_useSoftNormals)); }
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the n-patch image visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class NPatchVisual : VisualMap
+ {
+ private string _url = null;
+ private bool? _borderOnly = null;
+ private Rectangle _border = null;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public NPatchVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets or sets the URL of the image.<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string URL
+ {
+ get
+ {
+ return _url;
+ }
+ set
+ {
+ _url = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to draw the borders only (If true).<br />
+ /// If not specified, the default is false.<br />
+ /// For n-patch images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool BorderOnly
+ {
+ get
+ {
+ return _borderOnly ?? false;
+ }
+ set
+ {
+ _borderOnly = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// The border of the image is in the order: left, right, bottom, top.<br />
+ /// For n-patch images only.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Rectangle Border
+ {
+ get
+ {
+ return _border;
+ }
+ set
+ {
+ _border = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (_url != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch));
+ _outputVisualMap.Add(NpatchImageVisualProperty.URL, new PropertyValue(_url));
+ if (_borderOnly != null) { _outputVisualMap.Add(NpatchImageVisualProperty.BorderOnly, new PropertyValue((bool)_borderOnly)); }
+ if (_border != null) { _outputVisualMap.Add(NpatchImageVisualProperty.Border, new PropertyValue(_border)); }
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the primetive visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class PrimitiveVisual : VisualMap
+ {
+ private PrimitiveVisualShapeType? _shape = null;
+ private Color _mixColorForPrimitiveVisual = null;
+ private int? _slices = null;
+ private int? _stacks = null;
+ private float? _scaleTopRadius = null;
+ private float? _scaleBottomRadius = null;
+ private float? _scaleHeight = null;
+ private float? _scaleRadius = null;
+ private Vector3 _scaleDimensions = null;
+ private float? _bevelPercentage = null;
+ private float? _bevelSmoothness = null;
+ private Vector3 _lightPosition = null;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public PrimitiveVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets or sets the specific shape to render.<br />
+ /// If not specified, the default is PrimitiveVisualShapeType.Sphere.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public PrimitiveVisualShapeType Shape
+ {
+ get
+ {
+ return _shape ?? (PrimitiveVisualShapeType.Sphere);
+ }
+ set
+ {
+ _shape = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the color of the shape.<br />
+ /// If not specified, the default is Color (0.5, 0.5, 0.5, 1.0).<br />
+ /// Applies to all shapes.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public new Color MixColor
+ {
+ get
+ {
+ return _mixColorForPrimitiveVisual ?? (new Color(0.5f, 0.5f, 0.5f, 1.0f));
+ }
+ set
+ {
+ _mixColorForPrimitiveVisual = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the number of slices as you go around the shape.<br />
+ /// For spheres and conical frustrums, this determines how many divisions there are as you go around the object.<br />
+ /// If not specified, the default is 128.<br />
+ /// The range is from 1 to 255.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public int Slices
+ {
+ get
+ {
+ return _slices ?? (128);
+ }
+ set
+ {
+ _slices = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the number of stacks as you go down the shape.<br />
+ /// For spheres, 'stacks' determines how many layers there are as you go down the object.<br />
+ /// If not specified, the default is 128.<br />
+ /// The range is from 1 to 255.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public int Stacks
+ {
+ get
+ {
+ return _stacks ?? (128);
+ }
+ set
+ {
+ _stacks = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the scale of the radius of the top circle of a conical frustrum.<br />
+ /// If not specified, the default is 1.0f.<br />
+ /// Applies to: - PrimitiveVisualShapeType.ConicalFrustrum<br />
+ /// Only values greater than or equal to 0.0f are accepted.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float ScaleTopRadius
+ {
+ get
+ {
+ return _scaleTopRadius ?? (1.0f);
+ }
+ set
+ {
+ _scaleTopRadius = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the scale of the radius of the bottom circle of a conical frustrum.<br />
+ /// If not specified, the default is 1.5f.<br />
+ /// Applies to: - PrimitiveVisualShapeType.ConicalFrustrum<br />
+ /// - PrimitiveVisualShapeType.Cone<br />
+ /// Only values greater than or equal to 0.0f are accepted.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float ScaleBottomRadius
+ {
+ get
+ {
+ return _scaleBottomRadius ?? (1.5f);
+ }
+ set
+ {
+ _scaleBottomRadius = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the scale of the height of a conic.<br />
+ /// If not specified, the default is 3.0f.<br />
+ /// Applies to:<br />
+ /// - PrimitiveVisualShapeType.ConicalFrustrum<br />
+ /// - PrimitiveVisualShapeType.Cone<br />
+ /// - PrimitiveVisualShapeType.Cylinder<br />
+ /// Only values greater than or equal to 0.0f are accepted.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float ScaleHeight
+ {
+ get
+ {
+ return _scaleHeight ?? (3.0f);
+ }
+ set
+ {
+ _scaleHeight = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the scale of the radius of a cylinder.<br />
+ /// If not specified, the default is 1.0f.<br />
+ /// Applies to:<br />
+ /// - PrimitiveVisualShapeType.Cylinder<br />
+ /// Only values greater than or equal to 0.0f are accepted.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float ScaleRadius
+ {
+ get
+ {
+ return _scaleRadius ?? (1.0f);
+ }
+ set
+ {
+ _scaleRadius = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the dimensions of a cuboid. Scales in the same fashion as a 9-patch image.<br />
+ /// If not specified, the default is Vector3.One.<br />
+ /// Applies to:<br />
+ /// - PrimitiveVisualShapeType.Cube<br />
+ /// - PrimitiveVisualShapeType.Octahedron<br />
+ /// - PrimitiveVisualShapeType.BevelledCube<br />
+ /// Each Vector3 parameter should be greater than or equal to 0.0f.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Vector3 ScaleDimensions
+ {
+ get
+ {
+ return _scaleDimensions ?? (Vector3.One);
+ }
+ set
+ {
+ _scaleDimensions = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets determines how bevelled the cuboid should be, based off the smallest dimension.<br />
+ /// Bevel percentage ranges from 0.0 to 1.0. It affects the ratio of the outer face widths to the width of the overall cube.<br />
+ /// If not specified, the default is 0.0f (no bevel).<br />
+ /// Applies to:<br />
+ /// - PrimitiveVisualShapeType.BevelledCube<br />
+ /// The range is from 0.0f to 1.0f.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float BevelPercentage
+ {
+ get
+ {
+ return _bevelPercentage ?? (0.0f);
+ }
+ set
+ {
+ _bevelPercentage = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets descriptions of how smooth the bevelled edges should be.<br />
+ /// If not specified, the default is 0.0f (sharp edges).<br />
+ /// Applies to:<br />
+ /// - PrimitiveVisualShapeType.BevelledCube<br />
+ /// The range is from 0.0f to 1.0f.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float BevelSmoothness
+ {
+ get
+ {
+ return _bevelSmoothness ?? (0.0f);
+ }
+ set
+ {
+ _bevelSmoothness = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the position, in the stage space, of the point light that applies lighting to the model.<br />
+ /// This is based off the stage's dimensions, so using the width and the height of the stage halved will correspond to the center,
+ /// and using all zeroes will place the light at the top-left corner.<br />
+ /// If not specified, the default is an offset outwards from the center of the screen.<br />
+ /// Applies to all shapes.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Vector3 LightPosition
+ {
+ get
+ {
+ return _lightPosition;
+ }
+ set
+ {
+ _lightPosition = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ _outputVisualMap = new PropertyMap(); ;
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Primitive));
+ if (_shape != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Shape, new PropertyValue((int)_shape)); }
+ if (_mixColorForPrimitiveVisual != null) { _outputVisualMap.Add(PrimitiveVisualProperty.MixColor, new PropertyValue(_mixColorForPrimitiveVisual)); }
+ if (_slices != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Slices, new PropertyValue((int)_slices)); }
+ if (_stacks != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Stacks, new PropertyValue((int)_stacks)); }
+ if (_scaleTopRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleTopRadius, new PropertyValue((float)_scaleTopRadius)); }
+ if (_scaleBottomRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleBottomRadius, new PropertyValue((float)_scaleBottomRadius)); }
+ if (_scaleHeight != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleHeight, new PropertyValue((float)_scaleHeight)); }
+ if (_scaleRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleRadius, new PropertyValue((float)_scaleRadius)); }
+ if (_scaleDimensions != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleDimensions, new PropertyValue(_scaleDimensions)); }
+ if (_bevelPercentage != null) { _outputVisualMap.Add(PrimitiveVisualProperty.BevelPercentage, new PropertyValue((float)_bevelPercentage)); }
+ if (_bevelSmoothness != null) { _outputVisualMap.Add(PrimitiveVisualProperty.BevelSmoothness, new PropertyValue((float)_bevelSmoothness)); }
+ if (_lightPosition != null) { _outputVisualMap.Add(PrimitiveVisualProperty.LightPosition, new PropertyValue(_lightPosition)); }
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the SVG visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class SVGVisual : VisualMap
+ {
+ private string _url = null;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public SVGVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// The url of the svg resource.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string URL
+ {
+ get
+ {
+ return _url;
+ }
+ set
+ {
+ _url = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (_url != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.SVG));
+ _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_url));
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// A class encapsulating the property map of the text visual.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class TextVisual : VisualMap
+ {
+ private string _text = null;
+ private string _fontFamily = null;
+ private PropertyMap _fontStyle = null;
+ private float? _pointSize = null;
+ private bool? _multiLine = null;
+ private string _horizontalAlignment = null;
+ private string _verticalAlignment = null;
+ private Color _textColor = null;
+ private bool? _enableMarkup = null;
+ private PropertyMap _shadow = null;
+ private PropertyMap _underline = null;
+ private PropertyMap _outline = null;
+ private PropertyMap _background = null;
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public TextVisual() : base()
+ {
+ }
+
+ /// <summary>
+ /// Gets or sets the text to display in the UTF-8 format.<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string Text
+ {
+ get
+ {
+ return _text;
+ }
+ set
+ {
+ _text = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the requested font family to use.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string FontFamily
+ {
+ get
+ {
+ return _fontFamily;
+ }
+ set
+ {
+ _fontFamily = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the requested font style to use.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public PropertyMap FontStyle
+ {
+ get
+ {
+ return _fontStyle;
+ }
+ set
+ {
+ _fontStyle = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the size of font in points.<br />
+ /// Mandatory.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public float PointSize
+ {
+ get
+ {
+ return _pointSize ?? (0.0f);
+ }
+ set
+ {
+ _pointSize = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the single-line or multi-line layout option.<br />
+ /// If not specified, the default is false.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool MultiLine
+ {
+ get
+ {
+ return _multiLine ?? (false);
+ }
+ set
+ {
+ _multiLine = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the line horizontal alignment.<br />
+ /// If not specified, the default is begin.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public HorizontalAlignment HorizontalAlignment
+ {
+ get
+ {
+ switch (_horizontalAlignment)
+ {
+ case "BEGIN":
+ return HorizontalAlignment.Begin;
+ case "CENTER":
+ return HorizontalAlignment.Center;
+ case "END":
+ return HorizontalAlignment.End;
+ default:
+ return HorizontalAlignment.Begin;
+ }
+ }
+ set
+ {
+ switch (value)
+ {
+ case HorizontalAlignment.Begin:
+ {
+ _horizontalAlignment = "BEGIN";
+ break;
+ }
+ case HorizontalAlignment.Center:
+ {
+ _horizontalAlignment = "CENTER";
+ break;
+ }
+ case HorizontalAlignment.End:
+ {
+ _horizontalAlignment = "END";
+ break;
+ }
+ default:
+ {
+ _horizontalAlignment = "BEGIN";
+ break;
+ }
+ }
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the line vertical alignment.<br />
+ /// If not specified, the default is top.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public VerticalAlignment VerticalAlignment
+ {
+ get
+ {
+ switch (_verticalAlignment)
+ {
+ case "TOP":
+ return VerticalAlignment.Top;
+ case "CENTER":
+ return VerticalAlignment.Center;
+ case "BOTTOM":
+ return VerticalAlignment.Bottom;
+ default:
+ return VerticalAlignment.Top;
+ }
+ }
+ set
+ {
+ switch (value)
+ {
+ case VerticalAlignment.Top:
+ {
+ _verticalAlignment = "TOP";
+ break;
+ }
+ case VerticalAlignment.Center:
+ {
+ _verticalAlignment = "CENTER";
+ break;
+ }
+ case VerticalAlignment.Bottom:
+ {
+ _verticalAlignment = "BOTTOM";
+ break;
+ }
+ default:
+ {
+ _verticalAlignment = "TOP";
+ break;
+ }
+ }
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the color of the text.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Color TextColor
+ {
+ get
+ {
+ return _textColor;
+ }
+ set
+ {
+ _textColor = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether the mark-up processing is enabled.<br />
+ /// Optional.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool EnableMarkup
+ {
+ get
+ {
+ return _enableMarkup ?? (false);
+ }
+ set
+ {
+ _enableMarkup = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the shadow parameters.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public PropertyMap Shadow
+ {
+ get
+ {
+ return _shadow;
+ }
+ set
+ {
+ _shadow = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the underline parameters.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public PropertyMap Underline
+ {
+ get
+ {
+ return _underline;
+ }
+ set
+ {
+ _underline = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the outline parameters.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public PropertyMap Outline
+ {
+ get
+ {
+ return _outline;
+ }
+ set
+ {
+ _outline = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the background parameters.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public PropertyMap Background
+ {
+ get
+ {
+ return _background;
+ }
+ set
+ {
+ _background = value;
+ UpdateVisual();
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ if (_text != null && _pointSize != null)
+ {
+ _outputVisualMap = new PropertyMap();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
+ _outputVisualMap.Add(TextVisualProperty.Text, new PropertyValue(_text));
+ _outputVisualMap.Add(TextVisualProperty.PointSize, new PropertyValue((float)_pointSize));
+ if (_fontFamily != null) { _outputVisualMap.Add(TextVisualProperty.FontFamily, new PropertyValue(_fontFamily)); }
+ if (_fontStyle != null) { _outputVisualMap.Add(TextVisualProperty.FontStyle, new PropertyValue(_fontStyle)); }
+ if (_multiLine != null) { _outputVisualMap.Add(TextVisualProperty.MultiLine, new PropertyValue((bool)_multiLine)); }
+ if (_horizontalAlignment != null) { _outputVisualMap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(_horizontalAlignment)); }
+ if (_verticalAlignment != null) { _outputVisualMap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(_verticalAlignment)); }
+ if (_textColor != null) { _outputVisualMap.Add(TextVisualProperty.TextColor, new PropertyValue(_textColor)); }
+ if (_enableMarkup != null) { _outputVisualMap.Add(TextVisualProperty.EnableMarkup, new PropertyValue((bool)_enableMarkup)); }
+ if (_shader != null) { _outputVisualMap.Add((int)Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add((int)Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add((int)Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add((int)Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_shadow != null) { _outputVisualMap.Add(TextVisualProperty.Shadow, new PropertyValue(_shadow)); }
+ if (_underline != null) { _outputVisualMap.Add(TextVisualProperty.Underline, new PropertyValue(_underline)); }
+ if (_outline != null) { _outputVisualMap.Add(TextVisualProperty.Outline, new PropertyValue(_outline)); }
+ if (_background != null) { _outputVisualMap.Add(TextVisualProperty.Background, new PropertyValue(_background)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add((int)Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System.Text;
+
+namespace Tizen.NUI
+{
+ //temporary fix for TCT
+ /// <summary>
+ /// A class encapsulating the property map of the transition data.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class VisualAnimator : VisualMap
+ {
+ private string _alphaFunction = null;
+ private int _startTime = 0;
+ private int _endTime = 0;
+ private string _target = null;
+ private string _propertyIndex = null;
+ private object _destinationValue = null;
+
+ /// <summary>
+ /// Create VisualAnimator object.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public VisualAnimator() : base()
+ {
+ }
+
+ /// <summary>
+ /// Sets and Gets the AlphaFunction of this transition.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public AlphaFunction.BuiltinFunctions AlphaFunction
+ {
+ get
+ {
+ switch (_alphaFunction)
+ {
+ case "LINEAR":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.Linear;
+ case "REVERSE":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.Reverse;
+ case "EASE_IN_SQUARE":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSquare;
+ case "EASE_OUT_SQUARE":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSquare;
+ case "EASE_IN":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseIn;
+ case "EASE_OUT":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOut;
+ case "EASE_IN_OUT":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOut;
+ case "EASE_IN_SINE":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSine;
+ case "EASE_OUT_SINE":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSine;
+ case "EASE_IN_OUT_SINE":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOutSine;
+ case "BOUNCE":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.Bounce;
+ case "SIN":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.Sin;
+ case "EASE_OUT_BACK":
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutBack;
+ default:
+ return Tizen.NUI.AlphaFunction.BuiltinFunctions.Default;
+ }
+ }
+ set
+ {
+ switch (value)
+ {
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.Linear:
+ {
+ _alphaFunction = "LINEAR";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.Reverse:
+ {
+ _alphaFunction = "REVERSE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSquare:
+ {
+ _alphaFunction = "EASE_IN_SQUARE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSquare:
+ {
+ _alphaFunction = "EASE_OUT_SQUARE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseIn:
+ {
+ _alphaFunction = "EASE_IN";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOut:
+ {
+ _alphaFunction = "EASE_OUT";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOut:
+ {
+ _alphaFunction = "EASE_IN_OUT";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSine:
+ {
+ _alphaFunction = "EASE_IN_SINE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSine:
+ {
+ _alphaFunction = "EASE_OUT_SINE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOutSine:
+ {
+ _alphaFunction = "EASE_IN_OUT_SINE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.Bounce:
+ {
+ _alphaFunction = "BOUNCE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.Sin:
+ {
+ _alphaFunction = "SIN";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutBack:
+ {
+ _alphaFunction = "EASE_OUT_BACK";
+ break;
+ }
+ default:
+ {
+ _alphaFunction = "DEFAULT";
+ break;
+ }
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets the StartTime of this transition.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public int StartTime
+ {
+ get
+ {
+ return _startTime;
+ }
+ set
+ {
+ _startTime = value;
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets the EndTime of this transition.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public int EndTime
+ {
+ get
+ {
+ return _endTime;
+ }
+ set
+ {
+ _endTime = value;
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets the Target of this transition.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string Target
+ {
+ get
+ {
+ return _target;
+ }
+ set
+ {
+ _target = value;
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets the PropertyIndex of this transition.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public string PropertyIndex
+ {
+ get
+ {
+ return _propertyIndex;
+ }
+ set
+ {
+ _propertyIndex = value;
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets the DestinationValue of this transition.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public object DestinationValue
+ {
+ get
+ {
+ return _destinationValue;
+ }
+ set
+ {
+ _destinationValue = value;
+ }
+ }
+
+ /// <summary>
+ /// Compose the out visual map.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void ComposingPropertyMap()
+ {
+ PropertyMap _animator = new PropertyMap();
+ _animator.Add("alphaFunction", new PropertyValue(_alphaFunction));
+
+ PropertyMap _timePeriod = new PropertyMap();
+ _timePeriod.Add("duration", new PropertyValue((_endTime - _startTime) / 1000.0f));
+ _timePeriod.Add("delay", new PropertyValue(_startTime / 1000.0f));
+ _animator.Add("timePeriod", new PropertyValue(_timePeriod));
+
+ StringBuilder sb = new StringBuilder(_propertyIndex);
+ sb[0] = (char)(sb[0] | 0x20);
+ string _str = sb.ToString();
+
+ PropertyValue val = PropertyValue.CreateFromObject(_destinationValue);
+
+ PropertyMap _transition = new PropertyMap();
+ _transition.Add("target", new PropertyValue(_target));
+ _transition.Add("property", new PropertyValue(_str));
+ _transition.Add("targetValue", val);
+ _transition.Add("animator", new PropertyValue(_animator));
+
+ _outputVisualMap = _transition;
+ }
+ }
+ //temporary fix for TCT
+}
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
-
-
/*
* Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
*
*/
using System;
-using System.Runtime.InteropServices;
-using Tizen.NUI.BaseComponents;
using System.ComponentModel;
using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using Tizen.NUI.BaseComponents;
namespace Tizen.NUI
{
/// The window has an orientation and indicator properties.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public class Window : BaseHandle
+ public partial class Window : BaseHandle
{
+ private static readonly Window instance = Application.Instance?.GetWindow();
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
private global::System.Runtime.InteropServices.HandleRef stageCPtr;
private Layer _rootLayer;
private string _windowTitle;
private List<Layer> _childLayers = new List<Layer>();
- private WindowFocusChangedEventCallbackType _windowFocusChangedEventCallback;
- private RootLayerTouchDataCallbackType _rootLayerTouchDataCallback;
- private WheelEventCallbackType _wheelEventCallback;
- private EventCallbackDelegateType1 _stageKeyCallbackDelegate;
- private EventCallbackDelegateType0 _stageEventProcessingFinishedEventCallbackDelegate;
- private EventHandler _stageContextLostEventHandler;
- private EventCallbackDelegateType0 _stageContextLostEventCallbackDelegate;
- private EventHandler _stageContextRegainedEventHandler;
- private EventCallbackDelegateType0 _stageContextRegainedEventCallbackDelegate;
- private EventHandler _stageSceneCreatedEventHandler;
- private EventCallbackDelegateType0 _stageSceneCreatedEventCallbackDelegate;
- private WindowResizedEventCallbackType _windowResizedEventCallback;
- private WindowFocusChangedEventCallbackType _windowFocusChangedEventCallback2;
-
- private static readonly Window instance = Application.Instance?.GetWindow();
-
private LayoutController localController;
internal Window(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Window.Window_SWIGUpcast(cPtr), cMemoryOwn)
NUILog.Debug("layoutController id:" + localController.GetId() );
}
}
-
+
/// <summary>
/// Creates a new Window.<br />
/// This creates an extra window in addition to the default main window<br />
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void WindowFocusChangedEventCallbackType(bool focusGained);
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool RootLayerTouchDataCallbackType(IntPtr view, IntPtr touchData);
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void WindowResizedEventCallbackType(IntPtr windowSize);
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void WindowFocusChangedEventCallbackType2(bool focusGained);
-
- /// <summary>
- /// FocusChanged event.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public event EventHandler<FocusChangedEventArgs> FocusChanged
- {
- add
- {
- if (_windowFocusChangedEventHandler == null)
- {
- _windowFocusChangedEventCallback = OnWindowFocusedChanged;
- WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback);
- }
-
- _windowFocusChangedEventHandler += value;
- }
- remove
- {
- _windowFocusChangedEventHandler -= value;
-
- if (_windowFocusChangedEventHandler == null && WindowFocusChangedSignal().Empty() == false && _windowFocusChangedEventCallback != null)
- {
- WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback);
- }
- }
- }
-
- /// <summary>
- /// This event is emitted when the screen is touched and when the touch ends.<br />
- /// If there are multiple touch points, then this will be emitted when the first touch occurs and
- /// then when the last finger is lifted.<br />
- /// An interrupted event will also be emitted (if it occurs).<br />
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public event EventHandler<TouchEventArgs> TouchEvent
- {
- add
- {
- if (_rootLayerTouchDataEventHandler == null)
- {
- _rootLayerTouchDataCallback = OnWindowTouch;
- this.TouchDataSignal().Connect(_rootLayerTouchDataCallback);
- }
- _rootLayerTouchDataEventHandler += value;
- }
- remove
- {
- _rootLayerTouchDataEventHandler -= value;
- if (_rootLayerTouchDataEventHandler == null && TouchSignal().Empty() == false)
- {
- this.TouchDataSignal().Disconnect(_rootLayerTouchDataCallback);
- }
- }
- }
-
- /// <summary>
- /// This event is emitted when the wheel event is received.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public event EventHandler<WheelEventArgs> WheelEvent
- {
- add
- {
- if (_stageWheelHandler == null)
- {
- _wheelEventCallback = OnStageWheel;
- this.StageWheelEventSignal().Connect(_wheelEventCallback);
- }
- _stageWheelHandler += value;
- }
- remove
- {
- _stageWheelHandler -= value;
- if (_stageWheelHandler == null && StageWheelEventSignal().Empty() == false)
- {
- this.StageWheelEventSignal().Disconnect(_wheelEventCallback);
- }
- }
- }
-
- /// <summary>
- /// This event is emitted when the key event is received.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public event EventHandler<KeyEventArgs> KeyEvent
- {
- add
- {
- if (_stageKeyHandler == null)
- {
- _stageKeyCallbackDelegate = OnStageKey;
- KeyEventSignal().Connect(_stageKeyCallbackDelegate);
- }
- _stageKeyHandler += value;
- }
- remove
- {
- _stageKeyHandler -= value;
- if (_stageKeyHandler == null && KeyEventSignal().Empty() == false)
- {
- KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This event is emitted when the window resized.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public event EventHandler<ResizedEventArgs> Resized
- {
- add
- {
- if (_windowResizedEventHandler == null)
- {
- _windowResizedEventCallback = OnResized;
- ResizedSignal().Connect(_windowResizedEventCallback);
- }
-
- _windowResizedEventHandler += value;
- }
- remove
- {
- _windowResizedEventHandler -= value;
-
- if (_windowResizedEventHandler == null && ResizedSignal().Empty() == false && _windowResizedEventCallback != null)
- {
- ResizedSignal().Disconnect(_windowResizedEventCallback);
- }
- }
- }
-
- /// <summary>
- /// Please do not use! this will be deprecated. Please use 'FocusChanged' event instead.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use FocusChanged.
- [Obsolete("Please do not use! This will be deprecated! Please use FocusChanged instead! " +
- "Like: " +
- "Window.Instance.FocusChanged = OnFocusChanged; " +
- "private void OnFocusChanged(object source, Window.FocusChangedEventArgs args) {...}")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<FocusChangedEventArgs> WindowFocusChanged
- {
- add
- {
- if (_windowFocusChangedEventHandler2 == null)
- {
- _windowFocusChangedEventCallback2 = OnWindowFocusedChanged2;
- WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback2);
- }
-
- _windowFocusChangedEventHandler2 += value;
- }
- remove
- {
- _windowFocusChangedEventHandler2 -= value;
-
- if (_windowFocusChangedEventHandler2 == null && WindowFocusChangedSignal().Empty() == false && _windowFocusChangedEventCallback2 != null)
- {
- WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback2);
- }
- }
- }
-
- /// <summary>
- /// ViewAdded will be triggered when the view added on Window
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler ViewAdded;
-
- internal void SendViewAdded(View view)
- {
- ViewAdded?.Invoke(view, EventArgs.Empty);
- }
-
- internal event EventHandler EventProcessingFinished
- {
- add
- {
- if (_stageEventProcessingFinishedEventHandler == null)
- {
- _stageEventProcessingFinishedEventCallbackDelegate = OnEventProcessingFinished;
- EventProcessingFinishedSignal().Connect(_stageEventProcessingFinishedEventCallbackDelegate);
- }
- _stageEventProcessingFinishedEventHandler += value;
-
- }
- remove
- {
- _stageEventProcessingFinishedEventHandler -= value;
- if (_stageEventProcessingFinishedEventHandler == null && EventProcessingFinishedSignal().Empty() == false)
- {
- EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
- }
- }
- }
-
- internal event EventHandler ContextLost
- {
- add
- {
- if (_stageContextLostEventHandler == null)
- {
- _stageContextLostEventCallbackDelegate = OnContextLost;
- ContextLostSignal().Connect(_stageContextLostEventCallbackDelegate);
- }
- _stageContextLostEventHandler += value;
- }
- remove
- {
- _stageContextLostEventHandler -= value;
- if (_stageContextLostEventHandler == null && ContextLostSignal().Empty() == false)
- {
- ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
- }
- }
- }
-
- internal event EventHandler ContextRegained
- {
- add
- {
- if (_stageContextRegainedEventHandler == null)
- {
- _stageContextRegainedEventCallbackDelegate = OnContextRegained;
- ContextRegainedSignal().Connect(_stageContextRegainedEventCallbackDelegate);
- }
- _stageContextRegainedEventHandler += value;
- }
- remove
- {
- _stageContextRegainedEventHandler -= value;
- if (_stageContextRegainedEventHandler == null && ContextRegainedSignal().Empty() == false)
- {
- this.ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
- }
- }
- }
-
- internal event EventHandler SceneCreated
- {
- add
- {
- if (_stageSceneCreatedEventHandler == null)
- {
- _stageSceneCreatedEventCallbackDelegate = OnSceneCreated;
- SceneCreatedSignal().Connect(_stageSceneCreatedEventCallbackDelegate);
- }
- _stageSceneCreatedEventHandler += value;
- }
- remove
- {
- _stageSceneCreatedEventHandler -= value;
- if (_stageSceneCreatedEventHandler == null && SceneCreatedSignal().Empty() == false)
- {
- SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
- }
- }
- }
-
- private event EventHandler<FocusChangedEventArgs> _windowFocusChangedEventHandler;
- private event EventHandler<TouchEventArgs> _rootLayerTouchDataEventHandler;
- private event EventHandler<WheelEventArgs> _stageWheelHandler;
- private event EventHandler<KeyEventArgs> _stageKeyHandler;
- private event EventHandler _stageEventProcessingFinishedEventHandler;
- private event EventHandler<ResizedEventArgs> _windowResizedEventHandler;
- private event EventHandler<FocusChangedEventArgs> _windowFocusChangedEventHandler2;
-
/// <summary>
/// Enumeration for orientation of the window is the way in which a rectangular page is oriented for normal viewing.
/// </summary>
};
/// <summary>
+ /// Enumeration for transition effect's state.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public enum EffectStates
+ {
+ /// <summary>
+ /// None state.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ None = 0,
+ /// <summary>
+ /// Transition effect is started.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Start,
+ /// <summary>
+ /// Transition effect is ended.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ End,
+ }
+
+ /// <summary>
+ /// Enumeration for transition effect's type.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public enum EffectTypes
+ {
+ /// <summary>
+ /// None type.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ None = 0,
+ /// <summary>
+ /// Window show effect.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Show,
+ /// <summary>
+ /// Window hide effect.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Hide,
+ }
+
+ /// <summary>
/// Enumeration for opacity of the indicator.
/// </summary>
internal enum IndicatorBackgroundOpacity
SetPosition(value);
}
}
+
+ /// <summary>
+ /// Sets position and size of the window. This API guarantees that
+ /// both moving and resizing of window will appear on the screen at once.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Rectangle WindowPositionSize
+ {
+ get
+ {
+ Position2D position = GetPosition();
+ Size2D size = GetSize();
+ Rectangle ret = new Rectangle(position.X, position.Y, size.Width, size.Height);
+ return ret;
+ }
+ set
+ {
+ SetPositionSize(value);
+ }
+ }
+
internal static Vector4 DEFAULT_BACKGROUND_COLOR
{
get
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Window obj)
+ /// <summary>
+ /// Sets whether the window is transparent or not.
+ /// </summary>
+ /// <param name="transparent">Whether the window is transparent or not.</param>
+ /// <since_tizen> 5 </since_tizen>
+ public void SetTransparency(bool transparent)
{
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ Interop.Window.SetTransparency(swigCPtr, transparent);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
+ // Setting transparency of the window should request a relayout of the tree in the case the window changes from fully transparent.
}
- internal static Window GetCurrent()
+ /// <summary>
+ /// Sets parent window of the window.
+ /// After setting that, these windows do together when raise-up, lower and iconified/deiconified.
+ /// Initially, the window is located on top of the parent. The window can go below parent by calling Lower().
+ /// If parent's window stack is changed by calling Raise() or Lower(), child windows are located on top of the parent again.
+ /// </summary>
+ /// <param name="parent">The parent window.</param>
+ /// <since_tizen> 6 </since_tizen>
+ public void SetParent(Window parent)
{
- Window ret = new Window(Interop.Stage.Stage_GetCurrent(), true);
+ Interop.Window.SetParent(swigCPtr, Window.getCPtr(parent));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
}
- internal static bool IsInstalled()
+ /// <summary>
+ /// Unsets parent window of the window.
+ /// After unsetting, the window is disconnected his parent window.
+ /// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ public void Unparent()
{
- bool ret = Interop.Stage.Stage_IsInstalled();
+ Interop.Window.Unparent(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
}
- internal WindowFocusSignalType WindowFocusChangedSignal()
+ /// <summary>
+ /// Gets parent window of the window.
+ /// </summary>
+ /// <returns>The parent window of the window.</returns>
+ /// <since_tizen> 6 </since_tizen>
+ public Window GetParent()
{
- WindowFocusSignalType ret = new WindowFocusSignalType(Interop.Window.FocusChangedSignal(swigCPtr), false);
+ Window ret = Registry.GetManagedBaseHandleFromNativePtr(Interop.Window.GetParent(swigCPtr)) as Window;
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Window obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ internal static Window GetCurrent()
+ {
+ Window ret = new Window(Interop.Stage.Stage_GetCurrent(), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal static bool IsInstalled()
+ {
+ bool ret = Interop.Stage.Stage_IsInstalled();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
return ret;
}
- internal WindowFocusSignalType FocusChangedSignal()
- {
- WindowFocusSignalType ret = new WindowFocusSignalType(Interop.Window.FocusChangedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal void Add(Layer layer)
{
Interop.Window.Add(swigCPtr, Layer.getCPtr(layer));
return ret;
}
- internal KeyEventSignal KeyEventSignal()
- {
- KeyEventSignal ret = new KeyEventSignal(Interop.Window.KeyEventSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal VoidSignal EventProcessingFinishedSignal()
- {
- VoidSignal ret = new VoidSignal(Interop.StageSignal.Stage_EventProcessingFinishedSignal(stageCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal TouchSignal TouchSignal()
- {
- TouchSignal ret = new TouchSignal(Interop.Window.TouchSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal TouchDataSignal TouchDataSignal()
- {
- TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(Layer.getCPtr(GetRootLayer())), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal VoidSignal ContextLostSignal()
- {
- VoidSignal ret = new VoidSignal(Interop.StageSignal.Stage_ContextLostSignal(stageCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal VoidSignal ContextRegainedSignal()
- {
- VoidSignal ret = new VoidSignal(Interop.StageSignal.Stage_ContextRegainedSignal(stageCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal VoidSignal SceneCreatedSignal()
- {
- VoidSignal ret = new VoidSignal(Interop.StageSignal.Stage_SceneCreatedSignal(stageCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal ResizedSignal ResizedSignal()
- {
- ResizedSignal ret = new ResizedSignal(Interop.Window.Window_ResizedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal void SetWindowSize(Size2D size)
{
var val = new Uint16Pair((uint)size.Width, (uint)size.Height);
Interop.Window.SetPosition(swigCPtr, Uint16Pair.getCPtr(val));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
// Setting Position of the window should request a relayout of the tree.
-
}
internal Position2D GetPosition()
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
// Setting Position of the window should request a relayout of the tree.
-
- }
-
- /// <summary>
- /// Sets whether the window is transparent or not.
- /// </summary>
- /// <param name="transparent">Whether the window is transparent or not.</param>
- /// <since_tizen> 5 </since_tizen>
- public void SetTransparency(bool transparent) {
- Interop.Window.SetTransparency(swigCPtr, transparent);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- // Setting transparency of the window should request a relayout of the tree in the case the window changes from fully transparent.
-
- }
-
- /// <summary>
- /// Sets parent window of the window.
- /// After setting that, these windows do together when raise-up, lower and iconified/deiconified.
- /// Initially, the window is located on top of the parent. The window can go below parent by calling Lower().
- /// If parent's window stack is changed by calling Raise() or Lower(), child windows are located on top of the parent again.
- /// </summary>
- /// <param name="parent">The parent window.</param>
- /// <since_tizen> 6 </since_tizen>
- public void SetParent(Window parent) {
- Interop.Window.SetParent(swigCPtr, Window.getCPtr(parent));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Unsets parent window of the window.
- /// After unsetting, the window is disconnected his parent window.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- public void Unparent() {
- Interop.Window.Unparent(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets parent window of the window.
- /// </summary>
- /// <returns>The parent window of the window.</returns>
- /// <since_tizen> 6 </since_tizen>
- public Window GetParent() {
- Window ret = Registry.GetManagedBaseHandleFromNativePtr(Interop.Window.GetParent(swigCPtr)) as Window;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
}
/// <summary>
base.Dispose(type);
}
-
- internal System.IntPtr GetNativeWindowHandler()
- {
- System.IntPtr ret = Interop.Window.GetNativeWindowHandler(HandleRef.ToIntPtr(this.swigCPtr));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private void OnWindowFocusedChanged(bool focusGained)
- {
- FocusChangedEventArgs e = new FocusChangedEventArgs();
-
- e.FocusGained = focusGained;
-
- if (_windowFocusChangedEventHandler != null)
- {
- _windowFocusChangedEventHandler(this, e);
- }
- }
-
- private StageWheelSignal WheelEventSignal()
- {
- StageWheelSignal ret = new StageWheelSignal(Interop.StageSignal.Stage_WheelEventSignal(stageCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private WheelSignal StageWheelEventSignal()
- {
- WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(Layer.getCPtr(this.GetRootLayer())), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private bool OnWindowTouch(IntPtr view, IntPtr touchData)
- {
- if (touchData == global::System.IntPtr.Zero)
- {
- NUILog.Error("touchData should not be null!");
- return false;
- }
-
- TouchEventArgs e = new TouchEventArgs();
-
- e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
-
- if (_rootLayerTouchDataEventHandler != null)
- {
- _rootLayerTouchDataEventHandler(this, e);
- }
- return false;
- }
-
- private bool OnStageWheel(IntPtr rootLayer, IntPtr wheelEvent)
- {
- if (wheelEvent == global::System.IntPtr.Zero)
- {
- NUILog.Error("wheelEvent should not be null!");
- return true;
- }
-
- WheelEventArgs e = new WheelEventArgs();
-
- e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
-
- if (_stageWheelHandler != null)
- {
- _stageWheelHandler(this, e);
- }
- return true;
- }
-
- // Callback for Stage KeyEventsignal
- private void OnStageKey(IntPtr data)
- {
- KeyEventArgs e = new KeyEventArgs();
- e.Key = Tizen.NUI.Key.GetKeyFromPtr(data);
-
-
- if (_stageKeyHandler != null)
- {
- //here we send all data to user event handlers
- _stageKeyHandler(this, e);
- }
- }
-
- // Callback for Stage EventProcessingFinishedSignal
- private void OnEventProcessingFinished()
- {
- if (_stageEventProcessingFinishedEventHandler != null)
- {
- _stageEventProcessingFinishedEventHandler(this, null);
- }
- }
-
- // Callback for Stage ContextLostSignal
- private void OnContextLost()
- {
- if (_stageContextLostEventHandler != null)
- {
- _stageContextLostEventHandler(this, null);
- }
- }
-
- // Callback for Stage ContextRegainedSignal
- private void OnContextRegained()
- {
- if (_stageContextRegainedEventHandler != null)
- {
- _stageContextRegainedEventHandler(this, null);
- }
- }
-
- // Callback for Stage SceneCreatedSignal
- private void OnSceneCreated()
- {
- if (_stageSceneCreatedEventHandler != null)
- {
- _stageSceneCreatedEventHandler(this, null);
- }
- }
-
- private void OnResized(IntPtr windowSize)
- {
- ResizedEventArgs e = new ResizedEventArgs();
- var val = new Uint16Pair(windowSize, false);
- e.WindowSize = new Size2D(val.GetWidth(), val.GetHeight());
- val.Dispose();
-
- if (_windowResizedEventHandler != null)
- {
- _windowResizedEventHandler(this, e);
- }
- }
-
- private void OnWindowFocusedChanged2(bool focusGained)
- {
- FocusChangedEventArgs e = new FocusChangedEventArgs();
-
- e.FocusGained = focusGained;
-
- if (_windowFocusChangedEventHandler2 != null)
- {
- _windowFocusChangedEventHandler2(this, e);
- }
- }
-
- /// <summary>
- /// The focus changed event argument.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class FocusChangedEventArgs : EventArgs
- {
- /// <summary>
- /// FocusGained flag.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool FocusGained
- {
- get;
- set;
- }
- }
-
- /// <summary>
- /// The touch event argument.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class TouchEventArgs : EventArgs
- {
- private Touch _touch;
-
- /// <summary>
- /// Touch.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Touch Touch
- {
- get
- {
- return _touch;
- }
- set
- {
- _touch = value;
- }
- }
- }
-
- /// <summary>
- /// Wheel event arguments.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class WheelEventArgs : EventArgs
- {
- private Wheel _wheel;
-
- /// <summary>
- /// Wheel.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Wheel Wheel
- {
- get
- {
- return _wheel;
- }
- set
- {
- _wheel = value;
- }
- }
- }
-
- /// <summary>
- /// Key event arguments.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class KeyEventArgs : EventArgs
- {
- private Key _key;
-
- /// <summary>
- /// Key.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Key Key
- {
- get
- {
- return _key;
- }
- set
- {
- _key = value;
- }
- }
- }
-
- /// <summary>
- /// Sets position and size of the window. This API guarantees that
- /// both moving and resizing of window will appear on the screen at once.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Rectangle WindowPositionSize
- {
- get
- {
- Position2D position = GetPosition();
- Size2D size = GetSize();
- Rectangle ret = new Rectangle(position.X, position.Y, size.Width, size.Height);
- return ret;
- }
- set
- {
- SetPositionSize(value);
- }
- }
-
- /// <summary>
- /// Feeds a key event into the window.
- /// This resized event arguments.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class ResizedEventArgs : EventArgs
- {
- Size2D _windowSize;
-
- /// <summary>
- /// This window size.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public Size2D WindowSize
- {
- get
- {
- return _windowSize;
- }
- set
- {
- _windowSize = value;
- }
- }
- }
-
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use FocusChangedEventArgs instead! " +
- "Like: " +
- "Window.Instance.FocusChanged = OnFocusChanged; " +
- "private void OnFocusChanged(object source, Window.FocusChangedEventArgs args) {...}")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class WindowFocusChangedEventArgs : EventArgs
- {
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool FocusGained
- {
- get;
- set;
- }
- }
-
- /// <summary>
- /// Contains and encapsulates Native Window handle.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public class SafeNativeWindowHandle : SafeHandle
- {
- /// <summary>
- /// Contructor, Native window handle is set to handle.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public SafeNativeWindowHandle() : base(IntPtr.Zero, false)
- {
- SetHandle(Tizen.NUI.Window.Instance.GetNativeWindowHandler());
- }
- /// <summary>
- /// Null check if the handle is valid or not.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public override bool IsInvalid
- {
- get
- {
- return this.handle == IntPtr.Zero;
- }
- }
- /// <summary>
- /// Release handle itself.
- /// </summary>
- /// <returns>true when released successfully.</returns>
- /// <since_tizen> 4 </since_tizen>
- protected override bool ReleaseHandle()
- {
- return true;
- }
- }
-
- /// <summary>
- /// Disconnect all native signals
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- internal void DisconnectNativeSignals()
- {
- if( _windowFocusChangedEventCallback != null )
- {
- WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback);
- }
-
- if( _rootLayerTouchDataCallback != null )
- {
- TouchDataSignal().Disconnect(_rootLayerTouchDataCallback);
- }
-
- if( _wheelEventCallback != null )
- {
- StageWheelEventSignal().Disconnect(_wheelEventCallback);
- }
-
- if( _stageKeyCallbackDelegate != null )
- {
- KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
- }
-
- if( _stageEventProcessingFinishedEventCallbackDelegate != null )
- {
- EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
- }
-
- if( _stageContextLostEventCallbackDelegate != null )
- {
- ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
- }
-
- if( _stageContextRegainedEventCallbackDelegate != null )
- {
- ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
- }
-
- if( _stageSceneCreatedEventCallbackDelegate != null )
- {
- SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
- }
-
- if( _windowResizedEventCallback != null )
- {
- ResizedSignal().Disconnect(_windowResizedEventCallback);
- }
-
- if( _windowFocusChangedEventCallback2 != null )
- {
- WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback2);
- }
-
- if(transitionEffectSignal != null)
- {
- TransitionEffectEventSignal().Disconnect(transitionEffectEventCallback);
- }
-
- }
-
- private void OnTransitionEffect(IntPtr window, int state, int type)
- {
- //Tizen.Log.Fatal("NUITEST", $"OnTransitionEffect() called");
- if (window == global::System.IntPtr.Zero)
- {
- //Tizen.Log.Error("NUI", $"OnTransitionEffect() IntPtr window is null!");
- return;
- }
-
- TransitionEffectArgs e = new TransitionEffectArgs();
-
- e.State = (EffectStates)state;
- //Tizen.Log.Error("NUITEST", $"e.State={e.State}");
-
- e.Type = (EffectTypes)type;
- //Tizen.Log.Error("NUITEST", $"e.Type={e.Type}");
-
- if (transitionEffectHandler != null)
- {
- //Tizen.Log.Fatal("NUITEST", $"Execute transitionEffectHandler(this, e)!!!");
- transitionEffectHandler(this, e);
- }
- return;
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void TransitionEffectEventCallbackType(IntPtr window, int state, int type);
-
- private TransitionEffectEventCallbackType transitionEffectEventCallback;
-
- private event EventHandler<TransitionEffectArgs> transitionEffectHandler;
-
- /// <summary>
- /// Enumeration for transition effect's state.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum EffectStates
- {
- /// <summary>
- /// None state.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- None = 0,
- /// <summary>
- /// Transition effect is started.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- Start,
- /// <summary>
- /// Transition effect is ended.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- End,
- }
-
- /// <summary>
- /// Enumeration for transition effect's type.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum EffectTypes
- {
- /// <summary>
- /// None type.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- None = 0,
- /// <summary>
- /// Window show effect.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- Show,
- /// <summary>
- /// Window hide effect.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- Hide,
- }
-
- /// <summary>
- /// TransitionEffectArgs
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class TransitionEffectArgs : EventArgs
- {
- private EffectStates state;
- /// <summary>
- /// State
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public EffectStates State
- {
- get
- {
- return state;
- }
- set
- {
- state = value;
- }
- }
- private EffectTypes type;
- /// <summary>
- /// Type
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public EffectTypes Type
- {
- get
- {
- return type;
- }
- set
- {
- type = value;
- }
- }
- }
-
- /// <summary>
- /// EffectStart
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<TransitionEffectArgs> TransitionEffect
- {
- add
- {
- if (transitionEffectHandler== null)
- {
- transitionEffectEventCallback = OnTransitionEffect;
- TransitionEffectEventSignal().Connect(transitionEffectEventCallback);
- }
- transitionEffectHandler += value;
- }
- remove
- {
- transitionEffectHandler -= value;
- if (transitionEffectHandler == null && TransitionEffectEventSignal().Empty() == false)
- {
- TransitionEffectEventSignal().Disconnect(transitionEffectEventCallback);
- }
- }
- }
-
- private WindowTransitionEffectSignal transitionEffectSignal;
- private WindowTransitionEffectSignal TransitionEffectEventSignal()
- {
- //Tizen.Log.Fatal("NUITEST", "TransitionEffectEventSignal()!");
- if (transitionEffectSignal == null)
- {
- transitionEffectSignal = new WindowTransitionEffectSignal(this);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- //Tizen.Log.Fatal("NUITEST", $"transitionEffectSignal is null, new here!");
- }
- return transitionEffectSignal;
- }
-
}
}
--- /dev/null
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using System.ComponentModel;
+using System.Runtime.InteropServices;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// The window class is used internally for drawing.<br />
+ /// The window has an orientation and indicator properties.<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public partial class Window
+ {
+ private WindowFocusChangedEventCallbackType _windowFocusChangedEventCallback;
+ private RootLayerTouchDataCallbackType _rootLayerTouchDataCallback;
+ private WheelEventCallbackType _wheelEventCallback;
+ private EventCallbackDelegateType1 _stageKeyCallbackDelegate;
+ private EventCallbackDelegateType0 _stageEventProcessingFinishedEventCallbackDelegate;
+ private EventHandler _stageContextLostEventHandler;
+ private EventCallbackDelegateType0 _stageContextLostEventCallbackDelegate;
+ private EventHandler _stageContextRegainedEventHandler;
+ private EventCallbackDelegateType0 _stageContextRegainedEventCallbackDelegate;
+ private EventHandler _stageSceneCreatedEventHandler;
+ private EventCallbackDelegateType0 _stageSceneCreatedEventCallbackDelegate;
+ private WindowResizedEventCallbackType _windowResizedEventCallback;
+ private WindowFocusChangedEventCallbackType _windowFocusChangedEventCallback2;
+ private TransitionEffectEventCallbackType transitionEffectEventCallback;
+ private WindowTransitionEffectSignal transitionEffectSignal;
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void WindowFocusChangedEventCallbackType(bool focusGained);
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool RootLayerTouchDataCallbackType(IntPtr view, IntPtr touchData);
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void WindowResizedEventCallbackType(IntPtr windowSize);
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void WindowFocusChangedEventCallbackType2(bool focusGained);
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void TransitionEffectEventCallbackType(IntPtr window, int state, int type);
+
+ /// <summary>
+ /// FocusChanged event.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public event EventHandler<FocusChangedEventArgs> FocusChanged
+ {
+ add
+ {
+ if (_windowFocusChangedEventHandler == null)
+ {
+ _windowFocusChangedEventCallback = OnWindowFocusedChanged;
+ WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback);
+ }
+
+ _windowFocusChangedEventHandler += value;
+ }
+ remove
+ {
+ _windowFocusChangedEventHandler -= value;
+
+ if (_windowFocusChangedEventHandler == null && WindowFocusChangedSignal().Empty() == false && _windowFocusChangedEventCallback != null)
+ {
+ WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback);
+ }
+ }
+ }
+
+ /// <summary>
+ /// This event is emitted when the screen is touched and when the touch ends.<br />
+ /// If there are multiple touch points, then this will be emitted when the first touch occurs and
+ /// then when the last finger is lifted.<br />
+ /// An interrupted event will also be emitted (if it occurs).<br />
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public event EventHandler<TouchEventArgs> TouchEvent
+ {
+ add
+ {
+ if (_rootLayerTouchDataEventHandler == null)
+ {
+ _rootLayerTouchDataCallback = OnWindowTouch;
+ this.TouchDataSignal().Connect(_rootLayerTouchDataCallback);
+ }
+ _rootLayerTouchDataEventHandler += value;
+ }
+ remove
+ {
+ _rootLayerTouchDataEventHandler -= value;
+ if (_rootLayerTouchDataEventHandler == null && TouchSignal().Empty() == false)
+ {
+ this.TouchDataSignal().Disconnect(_rootLayerTouchDataCallback);
+ }
+ }
+ }
+
+ /// <summary>
+ /// This event is emitted when the wheel event is received.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public event EventHandler<WheelEventArgs> WheelEvent
+ {
+ add
+ {
+ if (_stageWheelHandler == null)
+ {
+ _wheelEventCallback = OnStageWheel;
+ this.StageWheelEventSignal().Connect(_wheelEventCallback);
+ }
+ _stageWheelHandler += value;
+ }
+ remove
+ {
+ _stageWheelHandler -= value;
+ if (_stageWheelHandler == null && StageWheelEventSignal().Empty() == false)
+ {
+ this.StageWheelEventSignal().Disconnect(_wheelEventCallback);
+ }
+ }
+ }
+
+ /// <summary>
+ /// This event is emitted when the key event is received.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public event EventHandler<KeyEventArgs> KeyEvent
+ {
+ add
+ {
+ if (_stageKeyHandler == null)
+ {
+ _stageKeyCallbackDelegate = OnStageKey;
+ KeyEventSignal().Connect(_stageKeyCallbackDelegate);
+ }
+ _stageKeyHandler += value;
+ }
+ remove
+ {
+ _stageKeyHandler -= value;
+ if (_stageKeyHandler == null && KeyEventSignal().Empty() == false)
+ {
+ KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
+ }
+ }
+ }
+
+ /// <summary>
+ /// This event is emitted when the window resized.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public event EventHandler<ResizedEventArgs> Resized
+ {
+ add
+ {
+ if (_windowResizedEventHandler == null)
+ {
+ _windowResizedEventCallback = OnResized;
+ ResizedSignal().Connect(_windowResizedEventCallback);
+ }
+
+ _windowResizedEventHandler += value;
+ }
+ remove
+ {
+ _windowResizedEventHandler -= value;
+
+ if (_windowResizedEventHandler == null && ResizedSignal().Empty() == false && _windowResizedEventCallback != null)
+ {
+ ResizedSignal().Disconnect(_windowResizedEventCallback);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Please do not use! this will be deprecated. Please use 'FocusChanged' event instead.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// Please do not use! this will be deprecated!
+ /// Instead please use FocusChanged.
+ [Obsolete("Please do not use! This will be deprecated! Please use FocusChanged instead! " +
+ "Like: " +
+ "Window.Instance.FocusChanged = OnFocusChanged; " +
+ "private void OnFocusChanged(object source, Window.FocusChangedEventArgs args) {...}")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler<FocusChangedEventArgs> WindowFocusChanged
+ {
+ add
+ {
+ if (_windowFocusChangedEventHandler2 == null)
+ {
+ _windowFocusChangedEventCallback2 = OnWindowFocusedChanged2;
+ WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback2);
+ }
+
+ _windowFocusChangedEventHandler2 += value;
+ }
+ remove
+ {
+ _windowFocusChangedEventHandler2 -= value;
+
+ if (_windowFocusChangedEventHandler2 == null && WindowFocusChangedSignal().Empty() == false && _windowFocusChangedEventCallback2 != null)
+ {
+ WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback2);
+ }
+ }
+ }
+
+ /// <summary>
+ /// EffectStart
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler<TransitionEffectArgs> TransitionEffect
+ {
+ add
+ {
+ if (transitionEffectHandler == null)
+ {
+ transitionEffectEventCallback = OnTransitionEffect;
+ TransitionEffectEventSignal().Connect(transitionEffectEventCallback);
+ }
+ transitionEffectHandler += value;
+ }
+ remove
+ {
+ transitionEffectHandler -= value;
+ if (transitionEffectHandler == null && TransitionEffectEventSignal().Empty() == false)
+ {
+ TransitionEffectEventSignal().Disconnect(transitionEffectEventCallback);
+ }
+ }
+ }
+
+ /// <summary>
+ /// ViewAdded will be triggered when the view added on Window
+ /// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler ViewAdded;
+ private event EventHandler<FocusChangedEventArgs> _windowFocusChangedEventHandler;
+ private event EventHandler<TouchEventArgs> _rootLayerTouchDataEventHandler;
+ private event EventHandler<WheelEventArgs> _stageWheelHandler;
+ private event EventHandler<KeyEventArgs> _stageKeyHandler;
+ private event EventHandler _stageEventProcessingFinishedEventHandler;
+ private event EventHandler<ResizedEventArgs> _windowResizedEventHandler;
+ private event EventHandler<FocusChangedEventArgs> _windowFocusChangedEventHandler2;
+ private event EventHandler<TransitionEffectArgs> transitionEffectHandler;
+
+ internal void SendViewAdded(View view)
+ {
+ ViewAdded?.Invoke(view, EventArgs.Empty);
+ }
+
+ internal event EventHandler EventProcessingFinished
+ {
+ add
+ {
+ if (_stageEventProcessingFinishedEventHandler == null)
+ {
+ _stageEventProcessingFinishedEventCallbackDelegate = OnEventProcessingFinished;
+ EventProcessingFinishedSignal().Connect(_stageEventProcessingFinishedEventCallbackDelegate);
+ }
+ _stageEventProcessingFinishedEventHandler += value;
+
+ }
+ remove
+ {
+ _stageEventProcessingFinishedEventHandler -= value;
+ if (_stageEventProcessingFinishedEventHandler == null && EventProcessingFinishedSignal().Empty() == false)
+ {
+ EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
+ }
+ }
+ }
+
+ internal event EventHandler ContextLost
+ {
+ add
+ {
+ if (_stageContextLostEventHandler == null)
+ {
+ _stageContextLostEventCallbackDelegate = OnContextLost;
+ ContextLostSignal().Connect(_stageContextLostEventCallbackDelegate);
+ }
+ _stageContextLostEventHandler += value;
+ }
+ remove
+ {
+ _stageContextLostEventHandler -= value;
+ if (_stageContextLostEventHandler == null && ContextLostSignal().Empty() == false)
+ {
+ ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
+ }
+ }
+ }
+
+ internal event EventHandler ContextRegained
+ {
+ add
+ {
+ if (_stageContextRegainedEventHandler == null)
+ {
+ _stageContextRegainedEventCallbackDelegate = OnContextRegained;
+ ContextRegainedSignal().Connect(_stageContextRegainedEventCallbackDelegate);
+ }
+ _stageContextRegainedEventHandler += value;
+ }
+ remove
+ {
+ _stageContextRegainedEventHandler -= value;
+ if (_stageContextRegainedEventHandler == null && ContextRegainedSignal().Empty() == false)
+ {
+ this.ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
+ }
+ }
+ }
+
+ internal event EventHandler SceneCreated
+ {
+ add
+ {
+ if (_stageSceneCreatedEventHandler == null)
+ {
+ _stageSceneCreatedEventCallbackDelegate = OnSceneCreated;
+ SceneCreatedSignal().Connect(_stageSceneCreatedEventCallbackDelegate);
+ }
+ _stageSceneCreatedEventHandler += value;
+ }
+ remove
+ {
+ _stageSceneCreatedEventHandler -= value;
+ if (_stageSceneCreatedEventHandler == null && SceneCreatedSignal().Empty() == false)
+ {
+ SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
+ }
+ }
+ }
+
+ internal WindowFocusSignalType WindowFocusChangedSignal()
+ {
+ WindowFocusSignalType ret = new WindowFocusSignalType(Interop.Window.FocusChangedSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal WindowFocusSignalType FocusChangedSignal()
+ {
+ WindowFocusSignalType ret = new WindowFocusSignalType(Interop.Window.FocusChangedSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal KeyEventSignal KeyEventSignal()
+ {
+ KeyEventSignal ret = new KeyEventSignal(Interop.Window.KeyEventSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal VoidSignal EventProcessingFinishedSignal()
+ {
+ VoidSignal ret = new VoidSignal(Interop.StageSignal.Stage_EventProcessingFinishedSignal(stageCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal TouchSignal TouchSignal()
+ {
+ TouchSignal ret = new TouchSignal(Interop.Window.TouchSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal TouchDataSignal TouchDataSignal()
+ {
+ TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(Layer.getCPtr(GetRootLayer())), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal VoidSignal ContextLostSignal()
+ {
+ VoidSignal ret = new VoidSignal(Interop.StageSignal.Stage_ContextLostSignal(stageCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal VoidSignal ContextRegainedSignal()
+ {
+ VoidSignal ret = new VoidSignal(Interop.StageSignal.Stage_ContextRegainedSignal(stageCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal VoidSignal SceneCreatedSignal()
+ {
+ VoidSignal ret = new VoidSignal(Interop.StageSignal.Stage_SceneCreatedSignal(stageCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal ResizedSignal ResizedSignal()
+ {
+ ResizedSignal ret = new ResizedSignal(Interop.Window.Window_ResizedSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal System.IntPtr GetNativeWindowHandler()
+ {
+ System.IntPtr ret = Interop.Window.GetNativeWindowHandler(HandleRef.ToIntPtr(this.swigCPtr));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Disconnect all native signals
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ internal void DisconnectNativeSignals()
+ {
+ if (_windowFocusChangedEventCallback != null)
+ {
+ WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback);
+ }
+
+ if (_rootLayerTouchDataCallback != null)
+ {
+ TouchDataSignal().Disconnect(_rootLayerTouchDataCallback);
+ }
+
+ if (_wheelEventCallback != null)
+ {
+ StageWheelEventSignal().Disconnect(_wheelEventCallback);
+ }
+
+ if (_stageKeyCallbackDelegate != null)
+ {
+ KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
+ }
+
+ if (_stageEventProcessingFinishedEventCallbackDelegate != null)
+ {
+ EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
+ }
+
+ if (_stageContextLostEventCallbackDelegate != null)
+ {
+ ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
+ }
+
+ if (_stageContextRegainedEventCallbackDelegate != null)
+ {
+ ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
+ }
+
+ if (_stageSceneCreatedEventCallbackDelegate != null)
+ {
+ SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
+ }
+
+ if (_windowResizedEventCallback != null)
+ {
+ ResizedSignal().Disconnect(_windowResizedEventCallback);
+ }
+
+ if (_windowFocusChangedEventCallback2 != null)
+ {
+ WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback2);
+ }
+
+ if (transitionEffectSignal != null)
+ {
+ TransitionEffectEventSignal().Disconnect(transitionEffectEventCallback);
+ }
+ }
+
+ private StageWheelSignal WheelEventSignal()
+ {
+ StageWheelSignal ret = new StageWheelSignal(Interop.StageSignal.Stage_WheelEventSignal(stageCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private WheelSignal StageWheelEventSignal()
+ {
+ WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(Layer.getCPtr(this.GetRootLayer())), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private WindowTransitionEffectSignal TransitionEffectEventSignal()
+ {
+ //Tizen.Log.Fatal("NUITEST", "TransitionEffectEventSignal()!");
+ if (transitionEffectSignal == null)
+ {
+ transitionEffectSignal = new WindowTransitionEffectSignal(this);
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ //Tizen.Log.Fatal("NUITEST", $"transitionEffectSignal is null, new here!");
+ }
+ return transitionEffectSignal;
+ }
+
+ private void OnWindowFocusedChanged(bool focusGained)
+ {
+ FocusChangedEventArgs e = new FocusChangedEventArgs();
+
+ e.FocusGained = focusGained;
+
+ if (_windowFocusChangedEventHandler != null)
+ {
+ _windowFocusChangedEventHandler(this, e);
+ }
+ }
+
+ private bool OnWindowTouch(IntPtr view, IntPtr touchData)
+ {
+ if (touchData == global::System.IntPtr.Zero)
+ {
+ NUILog.Error("touchData should not be null!");
+ return false;
+ }
+
+ TouchEventArgs e = new TouchEventArgs();
+
+ e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
+
+ if (_rootLayerTouchDataEventHandler != null)
+ {
+ _rootLayerTouchDataEventHandler(this, e);
+ }
+ return false;
+ }
+
+ private bool OnStageWheel(IntPtr rootLayer, IntPtr wheelEvent)
+ {
+ if (wheelEvent == global::System.IntPtr.Zero)
+ {
+ NUILog.Error("wheelEvent should not be null!");
+ return true;
+ }
+
+ WheelEventArgs e = new WheelEventArgs();
+
+ e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
+
+ if (_stageWheelHandler != null)
+ {
+ _stageWheelHandler(this, e);
+ }
+ return true;
+ }
+
+ // Callback for Stage KeyEventsignal
+ private void OnStageKey(IntPtr data)
+ {
+ KeyEventArgs e = new KeyEventArgs();
+ e.Key = Tizen.NUI.Key.GetKeyFromPtr(data);
+
+
+ if (_stageKeyHandler != null)
+ {
+ //here we send all data to user event handlers
+ _stageKeyHandler(this, e);
+ }
+ }
+
+ // Callback for Stage EventProcessingFinishedSignal
+ private void OnEventProcessingFinished()
+ {
+ if (_stageEventProcessingFinishedEventHandler != null)
+ {
+ _stageEventProcessingFinishedEventHandler(this, null);
+ }
+ }
+
+ // Callback for Stage ContextLostSignal
+ private void OnContextLost()
+ {
+ if (_stageContextLostEventHandler != null)
+ {
+ _stageContextLostEventHandler(this, null);
+ }
+ }
+
+ // Callback for Stage ContextRegainedSignal
+ private void OnContextRegained()
+ {
+ if (_stageContextRegainedEventHandler != null)
+ {
+ _stageContextRegainedEventHandler(this, null);
+ }
+ }
+
+ // Callback for Stage SceneCreatedSignal
+ private void OnSceneCreated()
+ {
+ if (_stageSceneCreatedEventHandler != null)
+ {
+ _stageSceneCreatedEventHandler(this, null);
+ }
+ }
+
+ private void OnResized(IntPtr windowSize)
+ {
+ ResizedEventArgs e = new ResizedEventArgs();
+ var val = new Uint16Pair(windowSize, false);
+ e.WindowSize = new Size2D(val.GetWidth(), val.GetHeight());
+ val.Dispose();
+
+ if (_windowResizedEventHandler != null)
+ {
+ _windowResizedEventHandler(this, e);
+ }
+ }
+
+ private void OnWindowFocusedChanged2(bool focusGained)
+ {
+ FocusChangedEventArgs e = new FocusChangedEventArgs();
+
+ e.FocusGained = focusGained;
+
+ if (_windowFocusChangedEventHandler2 != null)
+ {
+ _windowFocusChangedEventHandler2(this, e);
+ }
+ }
+
+ private void OnTransitionEffect(IntPtr window, int state, int type)
+ {
+ //Tizen.Log.Fatal("NUITEST", $"OnTransitionEffect() called");
+ if (window == global::System.IntPtr.Zero)
+ {
+ //Tizen.Log.Error("NUI", $"OnTransitionEffect() IntPtr window is null!");
+ return;
+ }
+
+ TransitionEffectArgs e = new TransitionEffectArgs();
+
+ e.State = (EffectStates)state;
+ //Tizen.Log.Error("NUITEST", $"e.State={e.State}");
+
+ e.Type = (EffectTypes)type;
+ //Tizen.Log.Error("NUITEST", $"e.Type={e.Type}");
+
+ if (transitionEffectHandler != null)
+ {
+ //Tizen.Log.Fatal("NUITEST", $"Execute transitionEffectHandler(this, e)!!!");
+ transitionEffectHandler(this, e);
+ }
+ return;
+ }
+
+ /// <summary>
+ /// The focus changed event argument.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class FocusChangedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// FocusGained flag.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool FocusGained
+ {
+ get;
+ set;
+ }
+ }
+
+ /// <summary>
+ /// The touch event argument.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class TouchEventArgs : EventArgs
+ {
+ private Touch _touch;
+
+ /// <summary>
+ /// Touch.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Touch Touch
+ {
+ get
+ {
+ return _touch;
+ }
+ set
+ {
+ _touch = value;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Wheel event arguments.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class WheelEventArgs : EventArgs
+ {
+ private Wheel _wheel;
+
+ /// <summary>
+ /// Wheel.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Wheel Wheel
+ {
+ get
+ {
+ return _wheel;
+ }
+ set
+ {
+ _wheel = value;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Key event arguments.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class KeyEventArgs : EventArgs
+ {
+ private Key _key;
+
+ /// <summary>
+ /// Key.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Key Key
+ {
+ get
+ {
+ return _key;
+ }
+ set
+ {
+ _key = value;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Feeds a key event into the window.
+ /// This resized event arguments.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public class ResizedEventArgs : EventArgs
+ {
+ Size2D _windowSize;
+
+ /// <summary>
+ /// This window size.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public Size2D WindowSize
+ {
+ get
+ {
+ return _windowSize;
+ }
+ set
+ {
+ _windowSize = value;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Please do not use! this will be deprecated
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [Obsolete("Please do not use! This will be deprecated! Please use FocusChangedEventArgs instead! " +
+ "Like: " +
+ "Window.Instance.FocusChanged = OnFocusChanged; " +
+ "private void OnFocusChanged(object source, Window.FocusChangedEventArgs args) {...}")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class WindowFocusChangedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// Please do not use! this will be deprecated
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public bool FocusGained
+ {
+ get;
+ set;
+ }
+ }
+
+ /// <summary>
+ /// Contains and encapsulates Native Window handle.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public class SafeNativeWindowHandle : SafeHandle
+ {
+ /// <summary>
+ /// Contructor, Native window handle is set to handle.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public SafeNativeWindowHandle() : base(IntPtr.Zero, false)
+ {
+ SetHandle(Tizen.NUI.Window.Instance.GetNativeWindowHandler());
+ }
+ /// <summary>
+ /// Null check if the handle is valid or not.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public override bool IsInvalid
+ {
+ get
+ {
+ return this.handle == IntPtr.Zero;
+ }
+ }
+ /// <summary>
+ /// Release handle itself.
+ /// </summary>
+ /// <returns>true when released successfully.</returns>
+ /// <since_tizen> 4 </since_tizen>
+ protected override bool ReleaseHandle()
+ {
+ return true;
+ }
+ }
+
+ /// <summary>
+ /// TransitionEffectArgs
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class TransitionEffectArgs : EventArgs
+ {
+ private EffectStates state;
+ private EffectTypes type;
+
+ /// <summary>
+ /// State
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public EffectStates State
+ {
+ get
+ {
+ return state;
+ }
+ set
+ {
+ state = value;
+ }
+ }
+ /// <summary>
+ /// Type
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public EffectTypes Type
+ {
+ get
+ {
+ return type;
+ }
+ set
+ {
+ type = value;
+ }
+ }
+ }
+ }
+}