<None Include="shared\res\NUISamples.TizenTV.png" />\r
</ItemGroup>\r
<ItemGroup>\r
- <Compile Include="examples\transition.cs" />\r
+ <Compile Include="examples\hello-test.cs" />\r
<Compile Include="Properties\AssemblyInfo.cs" />\r
</ItemGroup>\r
<ItemGroup>\r
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
- <PropertyGroup>\r
- <ProjectView>ShowAllFiles</ProjectView>\r
- </PropertyGroup>\r
-</Project>
\ No newline at end of file
--- /dev/null
+using System;\r
+using Tizen.NUI;\r
+\r
+namespace Tizen.TV.NUI.Examples\r
+{\r
+ public class AnimationSample\r
+ {\r
+ private Application application;\r
+ private View view;\r
+ private Animation toAnimation1;\r
+ private Animation toAnimation2;\r
+ private Animation byAnimation;\r
+ private Animation pathAnimation;\r
+ private Animation betweenAnimation;\r
+\r
+ private AnimationSample(Application application)\r
+ {\r
+ this.application = application;\r
+ this.application.Initialized += OnInitialize;\r
+ }\r
+\r
+ static void Main(string[] args) //changed
+ {\r
+ AnimationSample animationSample = new AnimationSample(Application.NewApplication());\r
+ animationSample.MainLoop();\r
+ }\r
+\r
+ private void MainLoop()\r
+ {\r
+ application.MainLoop();\r
+ }\r
+\r
+ private void OnInitialize(object source, EventArgs e)\r
+ {\r
+ view = new View();\r
+ view.Size = new Size(200, 200, 0);\r
+ view.Position = new Position(0, 0, 0);\r
+ view.AnchorPoint = AnchorPoint.TopLeft;\r
+ view.BackgroundColor = Color.Red;\r
+\r
+ Stage.Instance.GetDefaultLayer().Add(view);\r
+\r
+ toAnimation1 = new Animation(1000);\r
+ toAnimation1.Looping = true;\r
+ toAnimation1.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.21f, 2), new Vector2(0.14f, 1));\r
+\r
+ toAnimation2 = new Animation(1000);\r
+ toAnimation2.Looping = true;\r
+\r
+ byAnimation = new Animation(1000);\r
+ byAnimation.AnimateBy(view, "PositionX", 100.0f);\r
+ byAnimation.AnimateBy(view, "PositionY", 100.0f);\r
+\r
+ Path path = new Path();\r
+ path.AddPoint(new Position(100, 100, 0));\r
+ path.AddPoint(new Position(600, 600, 0)); //added\r
+ path.AddPoint(new Position(1100, 100, 0)); //changed\r
+ path.GenerateControlPoints(0.5f); //added\r
+ pathAnimation = new Animation(1000);\r
+ pathAnimation.AnimatePath(view, path, new Vector3(0, 0, 0));\r
+\r
+ KeyFrames keyFrames = new KeyFrames();\r
+ keyFrames.Add(0.0f, new Vector3(10.0f, 10.0f, 10.0f));\r
+ keyFrames.Add(0.7f, new Vector3(200.0f, 200.0f, 200.0f));\r
+ keyFrames.Add(1.0f, new Vector3(100.0f, 100.0f, 100.0f));\r
+ betweenAnimation = new Animation(1000);\r
+ betweenAnimation.AnimateBetween(view, "Position", keyFrames); //activated\r
+\r
+ view.KeyEvent += OnKeyPressed;\r
+ view.Focusable = true;\r
+ view.SetKeyInputFocus();\r
+ }\r
+\r
+ private void AllStop()\r
+ {\r
+ toAnimation1.Stop();\r
+ toAnimation2.Stop();\r
+ byAnimation.Stop();\r
+ pathAnimation.Stop();\r
+ betweenAnimation.Stop();\r
+ }\r
+\r
+ private bool OnKeyPressed(object source, View.KeyEventArgs e)\r
+ {\r
+ if (e.Key.State == Key.StateType.Down)\r
+ {\r
+ if (e.Key.KeyPressedName == "Right")\r
+ {\r
+ AllStop();\r
+\r
+ toAnimation1.Clear();\r
+\r
+ toAnimation1.AnimateTo(view, "PositionX", view.PositionX + 100.0f);\r
+ toAnimation1.AnimateTo(view, "PositionY", view.PositionY + 100.0f);\r
+ toAnimation1.AnimateTo(view, "ColorAlpha", 0.5f);\r
+ toAnimation1.AnimateTo(view, "PositionX", view.PositionX + 200.0f, 1000, 2000);\r
+ toAnimation1.AnimateTo(view, "ColorAlpha", 1.0f, 1500, 2000);\r
+\r
+ toAnimation2.AnimateTo(view, "Scale", new Size(1.2f, 1.2f, 1.0f));\r
+ toAnimation2.AnimateTo(view, "Scale", new Size(0.7f, 0.7f, 1.0f), 1200, 2200);\r
+\r
+ toAnimation1.Play();\r
+ toAnimation2.Play();\r
+ }\r
+ else if (e.Key.KeyPressedName == "Left")\r
+ {\r
+ AllStop();\r
+ byAnimation.Play();\r
+ }\r
+ else if (e.Key.KeyPressedName == "Up")\r
+ {\r
+ AllStop();\r
+ pathAnimation.Play();\r
+ }\r
+ else if (e.Key.KeyPressedName == "Down")\r
+ {\r
+ AllStop();\r
+ betweenAnimation.Play();\r
+ }\r
+ }\r
+\r
+ return true;\r
+ }\r
+ }\r
+}\r
{
private void LOG(string _str)
{
- Tizen.Log.Debug("NUI", _str);
- //Console.WriteLine("[NUI]" + _str);
+ Tizen.Log.Debug("NUI-APP", _str);
+ //Console.WriteLine("[NUI-APP]" + _str);
}
private Animation _animation;
{
}
- public Example(string stylesheet, Application.WindowMode windowMode) : base(stylesheet, windowMode)
+ public Example(string stylesheet, WindowMode windowMode) : base(stylesheet, windowMode)
{
}
LOG("Customized Application Initialize event handler");
_stage = Stage.Instance;
_stage.Touch += OnStageTouched;
+ _stage.Key += OnStageKeyEvent;
// Add a _text label to the stage
_text = new TextLabel("Hello NUI World");
_text.PointSize = 32.0f;
_text.TextColor = Color.Magenta;
_stage.GetDefaultLayer().Add(_text);
+
+ _animation = new Animation
+ {
+ Duration = 2000
+ };
+
+ LOG("[1]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight);
+
+ _animation.AnimateTo(_text, "PositionX", _text.PositionX + 200.0f);
+ _animation.AnimateTo(_text, "SizeHeight", _text.SizeHeight + 200.0f);
+
+ LOG("[2]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight);
+
+ _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), Vector3.XAxis), 0, 500);
+ _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), Vector3.XAxis), 500, 1000);
+ _animation.EndAction = Animation.EndActions.Discard;
+ }
+
+ public void OnStageKeyEvent(object sender, Stage.KeyEventArgs e)
+ {
+ if (e.Key.State == Key.StateType.Down)
+ {
+ if (e.Key.KeyPressedName == "Up")
+ {
+ if (_animation)
+ {
+ _animation.Finished += AnimationFinished;
+ LOG("AnimationFinished added!");
+ }
+ }
+ else if (e.Key.KeyPressedName == "Down")
+ {
+ if (_animation)
+ {
+ _animation.Finished -= AnimationFinished;
+ LOG("AnimationFinished removed!");
+ }
+ }
+ }
}
// Callback for _animation finished signal handling
LOG("Duration= " + _animation.Duration);
LOG("EndAction= " + _animation.EndAction);
}
-
LOG("[4]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight);
}
if (e.Touch.GetState(0) == PointStateType.Down)
{
LOG("Customized Stage Touch event handler");
- // Create a new _animation
- if (_animation)
- {
- //_animation.Stop(Dali.Constants.Animation.EndAction.Stop);
- _animation.Reset();
- }
-
- _animation = new Animation
- {
- Duration = 2000
- };
-
- LOG("[1]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight);
- _animation.AnimateTo(_text, "PositionX", _text.PositionX + 200.0f);
- _animation.AnimateTo(_text, "SizeHeight", _text.SizeHeight + 200.0f);
-
- LOG("[2]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight);
-
- _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), Vector3.XAxis), 0, 500);
- _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), Vector3.XAxis), 500, 1000);
-
- //_animation.AnimateBy(_text, "ScaleX", 3.0f, 1000, 1500);
- //_animation.AnimateBy(_text, "ScaleY", 4.0f, 1250, 2000);
- _animation.EndAction = Animation.EndActions.Discard;
-
- // Connect the signal callback for animaiton finished signal
- _animation.Finished += AnimationFinished;
-
-
// Play the _animation
_animation.Play();
LOG("[3]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight);
-
}
}
\r
ImageVisualMap _imageViewMap = new ImageVisualMap();\r
_imageViewMap.URL = "/home/owner/apps_rw/NUISamples.TizenTV/res/images/gallery-" + myCount + ".jpg";\r
- _imageViewMap.FittingMode = FittingModeType.SHRINK_TO_FIT;\r
+ _imageViewMap.FittingMode = FittingModeType.ShrinkToFit;\r
_imageViewMap.DepthIndex = 0;\r
\r
TextVisualMap _textVisualMap = new TextVisualMap();\r
_textVisualMap.Text = "TEXT-" + myCount;\r
_textVisualMap.PointSize = 20.0f; //20 + 2 * myCount;\r
- _textVisualMap.TextColor = new Vector4(1.0f, 1.0f, 1.0f, 1.0f);\r
+ _textVisualMap.TextColor = new Color(1.0f, 1.0f, 1.0f, 1.0f);\r
_textVisualMap.DepthIndex = 1;\r
\r
myContentView.ImageVisual = _imageViewMap;\r
+++ /dev/null
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\NUISamples.dll\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\NUISamples.pdb\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\Xamarin.Forms.Core.dll\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\Xamarin.Forms.Platform.dll\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\Xamarin.Forms.Xaml.dll\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\Xamarin.Forms.Core.pdb\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\Xamarin.Forms.Core.xml\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\Xamarin.Forms.Platform.pdb\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\Xamarin.Forms.Xaml.pdb\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\bin\Debug\Xamarin.Forms.Xaml.xml\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\obj\Debug\NUISamples.csprojResolveAssemblyReference.cache\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\obj\Debug\NUISamples.dll\r
-D:\ssong2best\work\2017\workspace\csharp-0217\Tizen.NUI\NUISamples\NUISamples\obj\Debug\NUISamples.pdb\r
Name: csapi-nui
Summary: dali-NUI
-Version: 1.0.0
+Version: 1.0.1
Release: 0
Group: Development/Libraries
License: Apache-2.0
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
- <PropertyGroup>\r
- <ProjectView>ShowAllFiles</ProjectView>\r
- </PropertyGroup>\r
-</Project>
\ No newline at end of file
-//------------------------------------------------------------------------------
-// <auto-generated />
-//
-// This file was automatically generated by SWIG (http://www.swig.org).
-// Version 3.0.9
-//
-// Do not make changes to this file unless you know what you are doing--modify
-// the SWIG interface file instead.
-//------------------------------------------------------------------------------
-
+//------------------------------------------------------------------------------\r
+// <auto-generated />\r
+//\r
+// This file was automatically generated by SWIG (http://www.swig.org).\r
+// Version 3.0.9\r
+//\r
+// Do not make changes to this file unless you know what you are doing--modify\r
+// the SWIG interface file instead.\r
+//------------------------------------------------------------------------------\r
+\r
namespace Tizen.NUI\r
-{
-
- using System;
- using System.Runtime.InteropServices;
-
+{\r
+\r
+ using System;\r
+ using System.Runtime.InteropServices;\r
+\r
internal class LOG\r
{\r
internal LOG(string _str)\r
}\r
}\r
\r
- /**
- * @brief Event arguments that passed via NUIApplicationInit signal
- *
- */
- public class NUIApplicationInitEventArgs : EventArgs
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationInit signal\r
+ *\r
+ */\r
+ internal class NUIApplicationInitEventArgs : EventArgs\r
{\r
private Application _application;\r
\r
- /**
- * @brief Application - is the application that is being initialized
- *
+ /**\r
+ * @brief Application - is the application that is being initialized\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationTerminate signal
- *
- */
- public class NUIApplicationTerminateEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationTerminate signal\r
+ *\r
+ */\r
+ internal class NUIApplicationTerminateEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being Terminated
- *
+ /**\r
+ * @brief Application - is the application that is being Terminated\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationPause signal
- *
- */
- public class NUIApplicationPauseEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationPause signal\r
+ *\r
+ */\r
+ internal class NUIApplicationPauseEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being Paused
- *
+ /**\r
+ * @brief Application - is the application that is being Paused\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationResume signal
- *
- */
- public class NUIApplicationResumeEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationResume signal\r
+ *\r
+ */\r
+ internal class NUIApplicationResumeEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being Resumed
- *
+ /**\r
+ * @brief Application - is the application that is being Resumed\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationReset signal
- *
- */
- public class NUIApplicationResetEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationReset signal\r
+ *\r
+ */\r
+ internal class NUIApplicationResetEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being Reset
- *
+ /**\r
+ * @brief Application - is the application that is being Reset\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationResize signal
- *
- */
- public class NUIApplicationResizeEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationResize signal\r
+ *\r
+ */\r
+ internal class NUIApplicationResizeEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being Resized
- *
+ /**\r
+ * @brief Application - is the application that is being Resized\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationLanguageChanged signal
- *
- */
- public class NUIApplicationLanguageChangedEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationLanguageChanged signal\r
+ *\r
+ */\r
+ internal class NUIApplicationLanguageChangedEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being affected with Device's language change
- *
+ /**\r
+ * @brief Application - is the application that is being affected with Device's language change\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationRegionChanged signal
- *
- */
- public class NUIApplicationRegionChangedEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationRegionChanged signal\r
+ *\r
+ */\r
+ internal class NUIApplicationRegionChangedEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being affected with Device's region change
- *
+ /**\r
+ * @brief Application - is the application that is being affected with Device's region change\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationBatteryLow signal
- *
- */
- public class NUIApplicationBatteryLowEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationBatteryLow signal\r
+ *\r
+ */\r
+ internal class NUIApplicationBatteryLowEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being affected when the battery level of the device is low
- *
+ /**\r
+ * @brief Application - is the application that is being affected when the battery level of the device is low\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationMemoryLow signal
- *
- */
- public class NUIApplicationMemoryLowEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationMemoryLow signal\r
+ *\r
+ */\r
+ internal class NUIApplicationMemoryLowEventArgs : EventArgs\r
{\r
private Application _application;\r
- /**
- * @brief Application - is the application that is being affected when the memory level of the device is low
- *
+ /**\r
+ * @brief Application - is the application that is being affected when the memory level of the device is low\r
+ *\r
*/\r
public Application Application\r
{\r
{\r
_application = value;\r
}\r
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationAppControl signal
- *
- */
- public class NUIApplicationAppControlEventArgs : EventArgs
+ }\r
+ }\r
+\r
+ /**\r
+ * @brief Event arguments that passed via NUIApplicationAppControl signal\r
+ *\r
+ */\r
+ internal class NUIApplicationAppControlEventArgs : EventArgs\r
{\r
private Application _application;\r
private IntPtr _voidp;\r
- /**
- * @brief Application - is the application that is receiving the launch request from another application
- *
+ /**\r
+ * @brief Application - is the application that is receiving the launch request from another application\r
+ *\r
*/\r
public Application Application\r
{\r
_application = value;\r
}\r
}\r
- /**
- * @brief VoidP - contains the information about why the application is launched
- *
+ /**\r
+ * @brief VoidP - contains the information about why the application is launched\r
+ *\r
*/\r
public IntPtr VoidP\r
{\r
{\r
_voidp = value;\r
}\r
- }
+ }\r
}\r
\r
- public class Application : BaseHandle\r
+ internal class Application : BaseHandle\r
{\r
private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
\r
private DaliEventHandler<object, NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;\r
private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;\r
\r
- /**
- * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
- * provided by the user. Initialized signal is emitted when application is initialised
+ /**\r
+ * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)\r
+ * provided by the user. Initialized signal is emitted when application is initialised\r
*/\r
public event DaliEventHandler<object, NUIApplicationInitEventArgs> Initialized\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
- * provided by the user. Terminated signal is emitted when application is terminated
+ /**\r
+ * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)\r
+ * provided by the user. Terminated signal is emitted when application is terminated\r
*/\r
public event DaliEventHandler<object, NUIApplicationTerminateEventArgs> Terminated\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
- * provided by the user. Paused signal is emitted when application is paused
+ /**\r
+ * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)\r
+ * provided by the user. Paused signal is emitted when application is paused\r
*/\r
public event DaliEventHandler<object, NUIApplicationPauseEventArgs> Paused\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
- * provided by the user. Resumed signal is emitted when application is resumed
+ /**\r
+ * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)\r
+ * provided by the user. Resumed signal is emitted when application is resumed\r
*/\r
public event DaliEventHandler<object, NUIApplicationResumeEventArgs> Resumed\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
- * provided by the user. Reset signal is emitted when application is reset
+ /**\r
+ * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)\r
+ * provided by the user. Reset signal is emitted when application is reset\r
*/\r
public event DaliEventHandler<object, NUIApplicationResetEventArgs> Reset\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
- * provided by the user. Resized signal is emitted when application is resized
+ /**\r
+ * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)\r
+ * provided by the user. Resized signal is emitted when application is resized\r
*/\r
public event DaliEventHandler<object, NUIApplicationResizeEventArgs> Resized\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
- * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
+ /**\r
+ * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)\r
+ * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.\r
*/\r
public event DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> LanguageChanged\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)
- * provided by the user. RegionChanged signal is emitted when the region of the device is changed.
+ /**\r
+ * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)\r
+ * provided by the user. RegionChanged signal is emitted when the region of the device is changed.\r
*/\r
public event DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> RegionChanged\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>)
- * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
+ /**\r
+ * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>) \r
+ * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.\r
*/\r
public event DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> BatteryLow\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)
- * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
+ /**\r
+ * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)\r
+ * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.\r
*/\r
public event DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> MemoryLow\r
{\r
}\r
}\r
\r
- /**
- * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)
- * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
+ /**\r
+ * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler\r
+ * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)\r
+ * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.\r
*/\r
public event DaliEventHandler<object, NUIApplicationAppControlEventArgs> AppControl\r
{\r
\r
\r
\r
- /**
- * Outer::outer_method(int)
+ /**\r
+ * Outer::outer_method(int)\r
*/\r
public static Application New()\r
{\r
Transparent = 1\r
}\r
\r
- }
-
-}
+ }\r
+\r
+}\r
}\r
}\r
\r
- public bool Visibility\r
- {\r
- get\r
- {\r
- return IsVisible();\r
- }\r
- }\r
-\r
public float Opacity\r
{\r
get\r
\r
\r
\r
- private AnimationFinishedEventCallbackType _animationFinishedEventCallback;\r
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
- private delegate void AnimationFinishedEventCallbackType(IntPtr data);\r
- private event EventHandler _animationFinishedEventHandler;\r
-\r
/**\r
* @brief Create an initialized Animation.\r
*\r
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
}\r
\r
+ private AnimationFinishedEventCallbackType _animationFinishedEventCallback;\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void AnimationFinishedEventCallbackType(IntPtr data);\r
+ private event EventHandler _animationFinishedEventHandler;\r
/**\r
* @brief Event for Finished signal which can be used to subscribe/unsubscribe the event handler\r
* Finished signal is emitted when an Animation's animations have finished.\r
}\r
remove\r
{\r
- if (_animationFinishedEventHandler != null)\r
+ _animationFinishedEventHandler -= value;\r
+\r
+ if (_animationFinishedEventHandler == null && _animationFinishedEventCallback != null)\r
{\r
FinishedSignal().Disconnect(_animationFinishedEventCallback);\r
}\r
-\r
- _animationFinishedEventHandler -= value;\r
}\r
}\r
private void OnFinished(IntPtr data)\r
}\r
}\r
\r
- public void AnimateBetween(Actor target, string property, KeyFrames keyFrames, AlphaFunction alphaFunction = null)\r
+ public void AnimateBetween(Actor target, string property, KeyFrames keyFrames, Interpolation interpolation = Interpolation.Linear, AlphaFunction alphaFunction = null)\r
{\r
string _str1 = property.Substring(0, 1);\r
string _str2 = property.Substring(1);\r
\r
if (alphaFunction != null)\r
{\r
-\r
- AnimateBetween(_prop, keyFrames);\r
+ AnimateBetween(_prop, keyFrames, alphaFunction, interpolation);\r
}\r
else\r
{\r
- AnimateBetween(_prop, keyFrames, alphaFunction);\r
+ AnimateBetween(_prop, keyFrames, interpolation);\r
}\r
}\r
\r
// You may obtain a copy of the License at\r
//\r
// http://www.apache.org/licenses/LICENSE-2.0\r
-//
+//\r
// Unless required by applicable law or agreed to in writing, software\r
// distributed under the License is distributed on an "AS IS" BASIS,\r
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
// See the License for the specific language governing permissions and\r
// limitations under the License.\r
-//
-
+//\r
+\r
// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts\r
// Some have been manually changed\r
\r
\r
remove\r
{\r
- if (_clickedEventHandler != null)\r
+ _clickedEventHandler -= value;\r
+\r
+ if (_clickedEventHandler == null && _clickedCallback != null)\r
{\r
ClickedSignal().Disconnect(_clickedCallback);\r
}\r
-\r
- _clickedEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_pressedEventHandler != null)\r
+ _pressedEventHandler -= value;\r
+\r
+ if (_pressedEventHandler == null && _pressedCallback != null)\r
{\r
this.PressedSignal().Disconnect(_pressedCallback);\r
}\r
-\r
- _pressedEventHandler -= value;\r
}\r
}\r
\r
_releasedCallback = OnReleased;\r
ReleasedSignal().Connect(_releasedCallback);\r
}\r
-\r
_releasedEventHandler += value;\r
}\r
\r
remove\r
{\r
- lock (this)\r
- {\r
- if (_releasedEventHandler != null)\r
- {\r
- ReleasedSignal().Disconnect(_releasedCallback);\r
- }\r
+ _releasedEventHandler -= value;\r
\r
- _releasedEventHandler -= value;\r
+ if (_releasedEventHandler == null && _releasedCallback != null)\r
+ {\r
+ ReleasedSignal().Disconnect(_releasedCallback);\r
}\r
+\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_stateChangedEventHandler != null)\r
+ _stateChangedEventHandler -= value;\r
+\r
+ if (_stateChangedEventHandler == null && _stateChangedCallback != null)\r
{\r
StateChangedSignal().Disconnect(_stateChangedCallback);\r
}\r
-\r
- _stateChangedEventHandler -= value;\r
}\r
}\r
\r
}\r
}\r
\r
- }
-
+ }\r
+\r
}
\ No newline at end of file
return ret;
}
+ /// <summary>
+ /// Enumeration for the direction of the main axis in the flex container. This determines
+ /// the direction that flex items are laid out in the flex container.
+ /// </summary>
public enum FlexDirectionType
{
Column,
RTL
}
+ /// <summary>
+ /// Enumeration for the alignment of the flex items when the items do not use all available
+ /// space on the main-axis.
+ /// </summary>
public enum Justification
{
JustifyFlexStart,
JustifySpaceAround
}
+ /// <summary>
+ /// Enumeration for the alignment of the flex items or lines when the items or lines do not
+ /// use all the available space on the cross-axis.
+ /// </summary>
public enum Alignment
{
AlignAuto,
AlignFlexEnd,
AlignStretch
}
+
+ /// <summary>
+ /// Enumeration for the wrap type of the flex container when there is no enough room for
+ /// all the items on one flex line.
+ /// </summary>
public enum WrapType
{
NoWrap,
CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000
}
- public int ContentDirection
+ /// <summary>
+ /// The primary direction in which content is ordered
+ /// </summary>
+ public ContentDirectionType ContentDirection
{
get
{
int temp = 0;
GetProperty(FlexContainer.Property.CONTENT_DIRECTION).Get(ref temp);
- return temp;
+ return (ContentDirectionType)temp;
}
set
{
- SetProperty(FlexContainer.Property.CONTENT_DIRECTION, new Tizen.NUI.PropertyValue(value));
+ SetProperty(FlexContainer.Property.CONTENT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
}
}
- public int FlexDirection
+
+ /// <summary>
+ /// The direction of the main-axis which determines the direction that flex items are laid out
+ /// </summary>
+ public FlexDirectionType FlexDirection
{
get
{
int temp = 0;
GetProperty(FlexContainer.Property.FLEX_DIRECTION).Get(ref temp);
- return temp;
+ return (FlexDirectionType)temp;
}
set
{
- SetProperty(FlexContainer.Property.FLEX_DIRECTION, new Tizen.NUI.PropertyValue(value));
+ SetProperty(FlexContainer.Property.FLEX_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
}
}
- public int FlexWrap
+
+ /// <summary>
+ /// Whether the flex items should wrap or not if there is no enough room for them on one flex line
+ /// </summary>
+ public WrapType FlexWrap
{
get
{
int temp = 0;
GetProperty(FlexContainer.Property.FLEX_WRAP).Get(ref temp);
- return temp;
+ return (WrapType)temp;
}
set
{
- SetProperty(FlexContainer.Property.FLEX_WRAP, new Tizen.NUI.PropertyValue(value));
+ SetProperty(FlexContainer.Property.FLEX_WRAP, new Tizen.NUI.PropertyValue((int)value));
}
}
- public int JustifyContent
+
+ /// <summary>
+ /// The alignment of flex items when the items do not use all available space on the main-axis
+ /// </summary>
+ public Justification JustifyContent
{
get
{
int temp = 0;
GetProperty(FlexContainer.Property.JUSTIFY_CONTENT).Get(ref temp);
- return temp;
+ return (Justification)temp;
}
set
{
- SetProperty(FlexContainer.Property.JUSTIFY_CONTENT, new Tizen.NUI.PropertyValue(value));
+ SetProperty(FlexContainer.Property.JUSTIFY_CONTENT, new Tizen.NUI.PropertyValue((int)value));
}
}
- public int AlignItems
+
+ /// <summary>
+ /// The alignment of flex items when the items do not use all available space on the cross-axis
+ /// </summary>
+ public Alignment AlignItems
{
get
{
int temp = 0;
GetProperty(FlexContainer.Property.ALIGN_ITEMS).Get(ref temp);
- return temp;
+ return (Alignment)temp;
}
set
{
- SetProperty(FlexContainer.Property.ALIGN_ITEMS, new Tizen.NUI.PropertyValue(value));
+ SetProperty(FlexContainer.Property.ALIGN_ITEMS, new Tizen.NUI.PropertyValue((int)value));
}
}
- public int AlignContent
+
+ /// <summary>
+ /// Similar to "alignItems", but it aligns flex lines, so only works when there are multiple lines
+ /// </summary>
+ public Alignment AlignContent
{
get
{
int temp = 0;
GetProperty(FlexContainer.Property.ALIGN_CONTENT).Get(ref temp);
- return temp;
+ return (Alignment)temp;
}
set
{
- SetProperty(FlexContainer.Property.ALIGN_CONTENT, new Tizen.NUI.PropertyValue(value));
+ SetProperty(FlexContainer.Property.ALIGN_CONTENT, new Tizen.NUI.PropertyValue((int)value));
}
}
}\r
remove\r
{\r
- if (_preFocusChangeEventHandler != null)\r
+ _preFocusChangeEventHandler -= value;\r
+ if (_preFocusChangeEventHandler == null && _preFocusChangeCallback != null)\r
{\r
PreFocusChangeSignal().Disconnect(_preFocusChangeCallback);\r
}\r
- _preFocusChangeEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_focusChangedEventCallback != null)\r
+ _focusChangedEventHandler -= value;\r
+\r
+ if (_focusChangedEventCallback == null && _focusChangedEventCallback != null)\r
{\r
FocusChangedSignal().Disconnect(_focusChangedEventCallback);\r
}\r
- _focusChangedEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_focusGroupChangedEventCallback != null)\r
+ _focusGroupChangedEventHandler -= value;\r
+\r
+ if (_focusGroupChangedEventCallback == null && _focusGroupChangedEventCallback != null)\r
{\r
FocusGroupChangedSignal().Disconnect(_focusGroupChangedEventCallback);\r
}\r
- _focusGroupChangedEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_focusedViewEnterKeyEventCallback != null)\r
+ _focusedViewEnterKeyEventHandler -= value;\r
+\r
+ if (_focusedViewEnterKeyEventCallback == null && _focusedViewEnterKeyEventCallback != null)\r
{\r
FocusedActorEnterKeySignal().Disconnect(_focusedViewEnterKeyEventCallback);\r
}\r
- _focusedViewEnterKeyEventHandler -= value;\r
}\r
}\r
\r
namespace Tizen.NUI
{
+ /// <summary>
+ /// Represents an application that have UI screen. The NUIApplication class has a default stage.
+ /// </summary>
public class NUIApplication : CoreUIApplication
{
private void LOG(string _str)
{
- Tizen.Log.Debug("NUI", _str);
+ //Tizen.Log.Debug("NUI", _str);
//Console.WriteLine("[NUI]" + _str);
}
+ /// <summary>
+ /// The instance of the Application.
+ /// </summary>
+ /// <remarks>
+ /// This application is created before OnCreate() or created event. And the NUIApplication will be terminated when this application is closed.
+ /// </remarks>
private Application _application;
+
+ /// <summary>
+ /// The instance of the Dali Application extension.
+ /// </summary>
private ApplicationExtensions _applicationExt;
+
+ /// <summary>
+ /// Store the stylesheet value.
+ /// </summary>
private string _stylesheet;
+
+ /// <summary>
+ /// Store the window mode value.
+ /// </summary>
private Application.WindowMode _windowMode;
+
+ /// <summary>
+ /// Store the app mode value.
+ /// </summary>
private AppMode _appMode;
+
+ /// <summary>
+ /// The instance of the Dali Stage.
+ /// </summary>
private Stage _stage;
+ /// <summary>
+ /// The default constructor.
+ /// </summary>
public NUIApplication() : base()
{
_appMode = AppMode.Default;
}
+ /// <summary>
+ /// The constructor with stylesheet.
+ /// </summary>
public NUIApplication(string stylesheet) : base()
{
//handle the stylesheet
_stylesheet = stylesheet;
}
- public NUIApplication(string stylesheet, Application.WindowMode windowMode) : base()
+ /// <summary>
+ /// The constructor with stylesheet and window mode.
+ /// </summary>
+ public NUIApplication(string stylesheet, WindowMode windowMode) : base()
{
//handle the stylesheet and windowMode
_appMode = AppMode.StyleSheetWithWindowMode;
_stylesheet = stylesheet;
- _windowMode = windowMode;
+ _windowMode = (Application.WindowMode)windowMode;
}
-
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnPause()
{
base.OnPause();
LOG("OnPause() is called!");
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior before calling OnCreate().
+ /// stage property is initialized in this overrided method.
+ /// </summary>
protected override void OnPreCreate()
{
switch (_appMode)
LOG("OnPreCreate() is called!");
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnResume()
{
base.OnResume();
LOG("OnResume() is called!");
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnAppControlReceived(AppControlReceivedEventArgs e)
{
base.OnAppControlReceived(e);
}
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnCreate()
{
base.OnCreate();
LOG("OnCreate() is called!");
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnLocaleChanged(LocaleChangedEventArgs e)
{
base.OnLocaleChanged(e);
LOG("OnLocaleChanged() is called!");
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnLowBattery(LowBatteryEventArgs e)
{
base.OnLowBattery(e);
LOG("OnLowBattery() is called!");
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnLowMemory(LowMemoryEventArgs e)
{
base.OnLowMemory(e);
LOG("OnLowMemory() is called!");
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
{
base.OnRegionFormatChanged(e);
LOG("OnRegionFormatChanged() is called!");
}
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
protected override void OnTerminate()
{
base.OnTerminate();
LOG("OnTerminate() is called!");
}
+ /// <summary>
+ /// The mode of creating NUI application.
+ /// </summary>
private enum AppMode
{
Default = 0,
StyleSheetOnly = 1,
StyleSheetWithWindowMode = 2
}
+
+ /// <summary>
+ /// Enumeration for deciding whether a NUI application window is opaque or transparent.
+ /// </summary>
+ public enum WindowMode
+ {
+ Opaque = 0,
+ Transparent = 1
+ }
+
}
}
}\r
remove\r
{\r
- if (_popUpOutsideTouchedEventCallback != null)\r
+ _popUpOutsideTouchedEventHandler -= value;\r
+\r
+ if (_popUpOutsideTouchedEventCallback == null && _popUpOutsideTouchedEventCallback != null)\r
{\r
OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallback);\r
-\r
}\r
- _popUpOutsideTouchedEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_popUpShowingEventCallback != null)\r
+ _popUpShowingEventHandler -= value;\r
+\r
+ if (_popUpShowingEventCallback == null && _popUpShowingEventCallback != null)\r
{\r
ShowingSignal().Disconnect(_popUpShowingEventCallback);\r
}\r
- _popUpShowingEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_popUpShownEventCallback == null)\r
+ _popUpShownEventHandler -= value;\r
+\r
+ if (_popUpShownEventCallback == null && _popUpShownEventCallback != null)\r
{\r
ShownSignal().Disconnect(_popUpShownEventCallback);\r
}\r
- _popUpShownEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_popUpHidingEventCallback != null)\r
+ _popUpHidingEventHandler -= value;\r
+\r
+ if (_popUpHidingEventCallback == null && _popUpHidingEventCallback != null)\r
{\r
HidingSignal().Disconnect(_popUpHidingEventCallback);\r
}\r
- _popUpHidingEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_popUpHiddenEventCallback != null)\r
+ _popUpHiddenEventHandler -= value;\r
+\r
+ if (_popUpHiddenEventCallback == null && _popUpHiddenEventCallback != null)\r
{\r
HiddenSignal().Disconnect(_popUpHiddenEventCallback);\r
}\r
- _popUpHiddenEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_stageTouchEventHandler != null)\r
+ _stageTouchEventHandler -= value;\r
+\r
+ if (_stageTouchEventHandler == null && _stageTouchCallback != null)\r
{\r
TouchSignal().Disconnect(_stageTouchCallback);\r
}\r
-\r
- _stageTouchEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_stageWheelEventHandler != null)\r
+ _stageWheelEventHandler -= value;\r
+\r
+ if (_stageWheelEventHandler == null && _stageWheelCallback != null)\r
{\r
WheelEventSignal().Disconnect(_stageWheelCallback);\r
}\r
\r
- _stageWheelEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_stageKeyEventHandler != null)\r
+ _stageKeyEventHandler -= value;\r
+\r
+ if (_stageKeyEventHandler == null && _stageKeyCallback != null)\r
{\r
KeyEventSignal().Disconnect(_stageKeyCallback);\r
}\r
-\r
- _stageKeyEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_stageEventProcessingFinishedEventHandler != null)\r
+ _stageEventProcessingFinishedEventHandler -= value;\r
+\r
+ if (_stageEventProcessingFinishedEventHandler == null && _stageEventProcessingFinishedEventCallback != null)\r
{\r
EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallback);\r
}\r
-\r
- _stageEventProcessingFinishedEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_stageContextLostEventHandler != null)\r
+ _stageContextLostEventHandler -= value;\r
+\r
+ if (_stageContextLostEventHandler == null && _stageContextLostEventCallback != null)\r
{\r
ContextLostSignal().Disconnect(_stageContextLostEventCallback);\r
}\r
-\r
- _stageContextLostEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_stageContextRegainedEventHandler != null)\r
+ _stageContextRegainedEventHandler -= value;\r
+\r
+ if (_stageContextRegainedEventHandler == null && _stageContextRegainedEventCallback != null)\r
{\r
ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallback);\r
}\r
-\r
- _stageContextRegainedEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_stageSceneCreatedEventHandler != null)\r
+ _stageSceneCreatedEventHandler -= value;\r
+\r
+ if (_stageSceneCreatedEventHandler == null && _stageSceneCreatedEventCallback != null)\r
{\r
SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallback);\r
}\r
\r
- _stageSceneCreatedEventHandler -= value;\r
}\r
}\r
\r
}\r
remove\r
{\r
- if (_tickCallBack != null)\r
+ _tickEventHandler -= value;\r
+\r
+ if (_tickCallBack == null && _tickCallBack != null)\r
{\r
this.TickSignal().Disconnect(_tickCallBack);\r
_tickCallBack = null;\r
}\r
- _tickEventHandler -= value;\r
}\r
}\r
private bool OnTick()\r
\r
public override void Dispose()\r
{\r
- if (!Stage.IsInstalled())
- {
- DisposeQueue.Instance.Add(this);
- return;
- }
+ if (!Stage.IsInstalled())\r
+ {\r
+ DisposeQueue.Instance.Add(this);\r
+ return;\r
+ }\r
\r
lock (this)\r
{\r
\r
remove\r
{\r
- if (_keyInputFocusGainedEventHandler != null)\r
+ _keyInputFocusGainedEventHandler -= value;\r
+\r
+ if (_keyInputFocusGainedEventHandler == null && _keyInputFocusGainedCallback != null)\r
{\r
this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);\r
}\r
-\r
- _keyInputFocusGainedEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_keyInputFocusLostEventHandler != null)\r
+ _keyInputFocusLostEventHandler -= value;\r
+\r
+ if (_keyInputFocusLostEventHandler == null && _keyInputFocusLostCallback != null)\r
{\r
this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);\r
}\r
-\r
- _keyInputFocusLostEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_keyEventHandler != null)\r
+ _keyEventHandler -= value;\r
+\r
+ if (_keyEventHandler == null && _keyCallback != null)\r
{\r
this.KeyEventSignal().Disconnect(_keyCallback);\r
}\r
-\r
- _keyEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_onRelayoutEventHandler != null)\r
+ _onRelayoutEventHandler -= value;\r
+\r
+ if (_onRelayoutEventHandler == null && _onRelayoutEventCallback != null)\r
{\r
this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);\r
}\r
\r
- _onRelayoutEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_touchDataEventHandler != null)\r
+ _touchDataEventHandler -= value;\r
+\r
+ if (_touchDataEventHandler == null && _touchDataCallback != null)\r
{\r
this.TouchSignal().Disconnect(_touchDataCallback);\r
}\r
\r
- _touchDataEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_hoverEventHandler != null)\r
+ _hoverEventHandler -= value;\r
+\r
+ if (_hoverEventHandler == null && _hoverEventCallback != null)\r
{\r
this.HoveredSignal().Disconnect(_hoverEventCallback);\r
}\r
\r
- _hoverEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_wheelEventHandler != null)\r
+ _wheelEventHandler -= value;\r
+\r
+ if (_wheelEventHandler == null && _wheelEventCallback != null)\r
{\r
this.WheelEventSignal().Disconnect(_wheelEventCallback);\r
}\r
\r
- _wheelEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_onStageEventHandler != null)\r
+ _onStageEventHandler -= value;\r
+\r
+ if (_onStageEventHandler == null && _onStageEventCallback != null)\r
{\r
this.OnStageSignal().Disconnect(_onStageEventCallback);\r
}\r
-\r
- _onStageEventHandler -= value;\r
}\r
}\r
\r
\r
remove\r
{\r
- if (_offStageEventHandler != null)\r
+ _offStageEventHandler -= value;\r
+\r
+ if (_offStageEventHandler == null && _offStageEventCallback != null)\r
{\r
this.OnStageSignal().Disconnect(_offStageEventCallback);\r
}\r
- _offStageEventHandler -= value;\r
}\r
}\r
\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Child Property of FlexContainer\r
+ /// The proportion of the free space in the container the flex item will receive. \r
+ /// If all items in the container set this property, their sizes will be proportional to the specified flex factor\r
+ /// </summary> \r
public float Flex\r
{\r
get\r
SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));\r
}\r
}\r
+\r
+ /// <summary>\r
+ /// Child Property of FlexContainer\r
+ /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container\r
+ /// </summary> \r
public int AlignSelf\r
{\r
get\r
SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));\r
}\r
}\r
+\r
+ /// <summary>\r
+ /// Child Property of FlexContainer\r
+ /// The space around the flex item\r
+ /// </summary> \r
public Vector4 FlexMargin\r
{\r
get\r