Combined Stage and Window class, and removed Stage class 78/127478/4
authorUmar <m.umar@partner.samsung.com>
Thu, 27 Apr 2017 11:01:01 +0000 (12:01 +0100)
committerUmar <m.umar@partner.samsung.com>
Thu, 27 Apr 2017 13:57:59 +0000 (14:57 +0100)
Change-Id: I1e7699c3b11c332195d4f8193626b48d8185ea6c

185 files changed:
plugins/dali-sharp/examples/control-dashboard.cs
plugins/dali-sharp/examples/hello-world.cs
plugins/dali-sharp/examples/image-view.cs
plugins/dali-sharp/examples/scroll-view.cs
plugins/dali-sharp/examples/user-alphafunction.cs
plugins/dali-sharp/examples/visuals-example.cs
plugins/dali-sharp/examples/visuals-using-custom-view/visuals-using-custom-view.cs
plugins/dali-sharp/sharp/internal/AccessibilityActionSignal.cs
plugins/dali-sharp/sharp/internal/AccessibilityFocusOvershotSignal.cs
plugins/dali-sharp/sharp/internal/AccessibilityManager.cs
plugins/dali-sharp/sharp/internal/Alignment.cs
plugins/dali-sharp/sharp/internal/AlphaFunction.cs
plugins/dali-sharp/sharp/internal/AngleAxis.cs
plugins/dali-sharp/sharp/internal/Animatable.cs
plugins/dali-sharp/sharp/internal/AnimatablePropertyComponentRegistration.cs
plugins/dali-sharp/sharp/internal/AnimatablePropertyRegistration.cs
plugins/dali-sharp/sharp/internal/Animation.cs
plugins/dali-sharp/sharp/internal/AnimationSignal.cs
plugins/dali-sharp/sharp/internal/Any.cs
plugins/dali-sharp/sharp/internal/Application.cs
plugins/dali-sharp/sharp/internal/ApplicationControlSignal.cs
plugins/dali-sharp/sharp/internal/ApplicationExtensions.cs
plugins/dali-sharp/sharp/internal/ApplicationSignal.cs
plugins/dali-sharp/sharp/internal/AsyncImageLoader.cs
plugins/dali-sharp/sharp/internal/BaseHandle.cs
plugins/dali-sharp/sharp/internal/BufferImage.cs
plugins/dali-sharp/sharp/internal/Builder.cs
plugins/dali-sharp/sharp/internal/Button.cs
plugins/dali-sharp/sharp/internal/ButtonSignal.cs
plugins/dali-sharp/sharp/internal/Camera.cs
plugins/dali-sharp/sharp/internal/CheckBoxButton.cs
plugins/dali-sharp/sharp/internal/ChildPropertyRegistration.cs
plugins/dali-sharp/sharp/internal/ClampState2D.cs
plugins/dali-sharp/sharp/internal/Color.cs
plugins/dali-sharp/sharp/internal/ConnectionTracker.cs
plugins/dali-sharp/sharp/internal/ConnectionTrackerInterface.cs
plugins/dali-sharp/sharp/internal/ControlKeySignal.cs
plugins/dali-sharp/sharp/internal/CustomActor.cs
plugins/dali-sharp/sharp/internal/CustomAlgorithmInterface.cs
plugins/dali-sharp/sharp/internal/DaliException.cs
plugins/dali-sharp/sharp/internal/Degree.cs
plugins/dali-sharp/sharp/internal/DragAndDropDetector.cs
plugins/dali-sharp/sharp/internal/EncodedBufferImage.cs
plugins/dali-sharp/sharp/internal/FlexContainer.cs
plugins/dali-sharp/sharp/internal/FloatSignal.cs
plugins/dali-sharp/sharp/internal/FocusChangedSignal.cs
plugins/dali-sharp/sharp/internal/FocusGroupChangedSignal.cs
plugins/dali-sharp/sharp/internal/FocusManager.cs
plugins/dali-sharp/sharp/internal/FrameBuffer.cs
plugins/dali-sharp/sharp/internal/FrameBufferImage.cs
plugins/dali-sharp/sharp/internal/GaussianBlurView.cs
plugins/dali-sharp/sharp/internal/GaussianBlurViewSignal.cs
plugins/dali-sharp/sharp/internal/Geometry.cs
plugins/dali-sharp/sharp/internal/Gesture.cs
plugins/dali-sharp/sharp/internal/GestureDetector.cs
plugins/dali-sharp/sharp/internal/Hover.cs
plugins/dali-sharp/sharp/internal/HoverSignal.cs
plugins/dali-sharp/sharp/internal/Image.cs
plugins/dali-sharp/sharp/internal/ImageSignal.cs
plugins/dali-sharp/sharp/internal/ImageView.cs
plugins/dali-sharp/sharp/internal/ItemFactory.cs
plugins/dali-sharp/sharp/internal/ItemIdContainer.cs
plugins/dali-sharp/sharp/internal/ItemLayout.cs
plugins/dali-sharp/sharp/internal/ItemRange.cs
plugins/dali-sharp/sharp/internal/ItemView.cs
plugins/dali-sharp/sharp/internal/Key.cs
plugins/dali-sharp/sharp/internal/KeyEventSignal.cs
plugins/dali-sharp/sharp/internal/KeyFrames.cs
plugins/dali-sharp/sharp/internal/KeyInputFocusSignal.cs
plugins/dali-sharp/sharp/internal/KeyboardPreFocusChangeSignal.cs
plugins/dali-sharp/sharp/internal/Layer.cs
plugins/dali-sharp/sharp/internal/LinearConstrainer.cs
plugins/dali-sharp/sharp/internal/LongPressGesture.cs
plugins/dali-sharp/sharp/internal/LongPressGestureDetectedSignal.cs
plugins/dali-sharp/sharp/internal/LongPressGestureDetector.cs
plugins/dali-sharp/sharp/internal/Matrix.cs
plugins/dali-sharp/sharp/internal/Matrix3.cs
plugins/dali-sharp/sharp/internal/Model3dView.cs
plugins/dali-sharp/sharp/internal/NativeImage.cs
plugins/dali-sharp/sharp/internal/NinePatchImage.cs
plugins/dali-sharp/sharp/internal/ObjectCreatedSignal.cs
plugins/dali-sharp/sharp/internal/ObjectDestroyedSignal.cs
plugins/dali-sharp/sharp/internal/ObjectRegistry.cs
plugins/dali-sharp/sharp/internal/PaddingType.cs
plugins/dali-sharp/sharp/internal/PageFactory.cs
plugins/dali-sharp/sharp/internal/PagePanSignal.cs
plugins/dali-sharp/sharp/internal/PageTurnLandscapeView.cs
plugins/dali-sharp/sharp/internal/PageTurnPortraitView.cs
plugins/dali-sharp/sharp/internal/PageTurnSignal.cs
plugins/dali-sharp/sharp/internal/PageTurnView.cs
plugins/dali-sharp/sharp/internal/PanGesture.cs
plugins/dali-sharp/sharp/internal/PanGestureDetectedSignal.cs
plugins/dali-sharp/sharp/internal/PanGestureDetector.cs
plugins/dali-sharp/sharp/internal/Path.cs
plugins/dali-sharp/sharp/internal/PathConstrainer.cs
plugins/dali-sharp/sharp/internal/PinchGesture.cs
plugins/dali-sharp/sharp/internal/PinchGestureDetectedSignal.cs
plugins/dali-sharp/sharp/internal/PinchGestureDetector.cs
plugins/dali-sharp/sharp/internal/PixelData.cs
plugins/dali-sharp/sharp/internal/Popup.cs
plugins/dali-sharp/sharp/internal/Position.cs
plugins/dali-sharp/sharp/internal/Position2D.cs
plugins/dali-sharp/sharp/internal/ProgressBar.cs
plugins/dali-sharp/sharp/internal/ProgressBarValueChangedSignal.cs
plugins/dali-sharp/sharp/internal/Property.cs
plugins/dali-sharp/sharp/internal/PropertyBuffer.cs
plugins/dali-sharp/sharp/internal/PropertyCondition.cs
plugins/dali-sharp/sharp/internal/PropertyNotification.cs
plugins/dali-sharp/sharp/internal/PropertyNotifySignal.cs
plugins/dali-sharp/sharp/internal/PushButton.cs
plugins/dali-sharp/sharp/internal/Radian.cs
plugins/dali-sharp/sharp/internal/RadioButton.cs
plugins/dali-sharp/sharp/internal/Rectangle.cs
plugins/dali-sharp/sharp/internal/RelayoutContainer.cs
plugins/dali-sharp/sharp/internal/RenderTask.cs
plugins/dali-sharp/sharp/internal/RenderTaskList.cs
plugins/dali-sharp/sharp/internal/RenderTaskSignal.cs
plugins/dali-sharp/sharp/internal/Renderer.cs
plugins/dali-sharp/sharp/internal/ResourceImage.cs
plugins/dali-sharp/sharp/internal/ResourceImageSignal.cs
plugins/dali-sharp/sharp/internal/Rotation.cs
plugins/dali-sharp/sharp/internal/RulerPtr.cs
plugins/dali-sharp/sharp/internal/Sampler.cs
plugins/dali-sharp/sharp/internal/ScrollBar.cs
plugins/dali-sharp/sharp/internal/ScrollView.cs
plugins/dali-sharp/sharp/internal/ScrollViewEffect.cs
plugins/dali-sharp/sharp/internal/ScrollViewPagePathEffect.cs
plugins/dali-sharp/sharp/internal/ScrollViewSnapStartedSignal.cs
plugins/dali-sharp/sharp/internal/Scrollable.cs
plugins/dali-sharp/sharp/internal/ScrollableSignal.cs
plugins/dali-sharp/sharp/internal/Shader.cs
plugins/dali-sharp/sharp/internal/SignalObserver.cs
plugins/dali-sharp/sharp/internal/Size.cs
plugins/dali-sharp/sharp/internal/Size2D.cs
plugins/dali-sharp/sharp/internal/Slider.cs
plugins/dali-sharp/sharp/internal/SliderMarkReachedSignal.cs
plugins/dali-sharp/sharp/internal/SliderValueChangedSignal.cs
plugins/dali-sharp/sharp/internal/SlotObserver.cs
plugins/dali-sharp/sharp/internal/Stage.cs [deleted file]
plugins/dali-sharp/sharp/internal/StageWheelSignal.cs
plugins/dali-sharp/sharp/internal/StyleChangedSignal.cs
plugins/dali-sharp/sharp/internal/StyleManager.cs
plugins/dali-sharp/sharp/internal/TableView.cs
plugins/dali-sharp/sharp/internal/TapGesture.cs
plugins/dali-sharp/sharp/internal/TapGestureDetectedSignal.cs
plugins/dali-sharp/sharp/internal/TapGestureDetector.cs
plugins/dali-sharp/sharp/internal/TextEditor.cs
plugins/dali-sharp/sharp/internal/TextEditorSignal.cs
plugins/dali-sharp/sharp/internal/TextField.cs
plugins/dali-sharp/sharp/internal/TextFieldSignal.cs
plugins/dali-sharp/sharp/internal/TextLabel.cs
plugins/dali-sharp/sharp/internal/Texture.cs
plugins/dali-sharp/sharp/internal/TextureSet.cs
plugins/dali-sharp/sharp/internal/TimePeriod.cs
plugins/dali-sharp/sharp/internal/Timer.cs
plugins/dali-sharp/sharp/internal/TimerSignalType.cs
plugins/dali-sharp/sharp/internal/ToggleButton.cs
plugins/dali-sharp/sharp/internal/Touch.cs
plugins/dali-sharp/sharp/internal/TouchDataSignal.cs
plugins/dali-sharp/sharp/internal/TouchPoint.cs
plugins/dali-sharp/sharp/internal/TouchPointContainer.cs
plugins/dali-sharp/sharp/internal/TouchSignal.cs
plugins/dali-sharp/sharp/internal/TransitionData.cs
plugins/dali-sharp/sharp/internal/TypeInfo.cs
plugins/dali-sharp/sharp/internal/Uint16Pair.cs
plugins/dali-sharp/sharp/internal/Vector2.cs
plugins/dali-sharp/sharp/internal/Vector3.cs
plugins/dali-sharp/sharp/internal/Vector4.cs
plugins/dali-sharp/sharp/internal/VectorFloat.cs
plugins/dali-sharp/sharp/internal/VectorInteger.cs
plugins/dali-sharp/sharp/internal/VectorUint16Pair.cs
plugins/dali-sharp/sharp/internal/VectorUnsignedChar.cs
plugins/dali-sharp/sharp/internal/VideoView.cs
plugins/dali-sharp/sharp/internal/VideoViewSignal.cs
plugins/dali-sharp/sharp/internal/View.cs
plugins/dali-sharp/sharp/internal/ViewContainer.cs
plugins/dali-sharp/sharp/internal/ViewSignal.cs
plugins/dali-sharp/sharp/internal/ViewWrapper.cs
plugins/dali-sharp/sharp/internal/ViewWrapperImpl.cs
plugins/dali-sharp/sharp/internal/VisualBase.cs
plugins/dali-sharp/sharp/internal/VisualFactory.cs
plugins/dali-sharp/sharp/internal/VoidSignal.cs
plugins/dali-sharp/sharp/internal/Wheel.cs
plugins/dali-sharp/sharp/internal/WheelSignal.cs
plugins/dali-sharp/sharp/internal/Window.cs

index cff8dad80acf63de21b692200e1164681d3545b3..abe7efaffd32772c86635d58c3b3a9a77287a716 100755 (executable)
@@ -40,7 +40,7 @@ namespace MyCSharpExample
         private Dali.Application _application;
         private TableView _contentContainer;
         private Timer _timer;
-        private Stage _stage;
+        private Window _window;
         private Popup _popup;
         private ProgressBar _progressBar;
 
@@ -62,8 +62,8 @@ namespace MyCSharpExample
         public void OnInitialize(object source, NUIApplicationInitEventArgs e)
         {
             Console.WriteLine("Customized Application Initialize event handler");
-            _stage = Stage.GetCurrent();
-            _stage.BackgroundColor = Color.White;
+            _window = Window.Instance;
+            _window.BackgroundColor = Color.White;
 
             // Top label
             TextLabel topLabel = new TextLabel();
@@ -78,7 +78,7 @@ namespace MyCSharpExample
             topLabel.HorizontalAlignment = "BEGIN";
             topLabel.VerticalAlignment = "CENTER";
             topLabel.PointSize = 42.0f;
-            _stage.Add(topLabel);
+            _window.Add(topLabel);
 
             // Grid container to contain items. Use tableView because FlexContainer support focus navigation just two direction ( up/down or left/right )
             _contentContainer = new TableView(6, 5);
@@ -86,7 +86,7 @@ namespace MyCSharpExample
             _contentContainer.SetResizePolicy(ResizePolicyType.SIZE_RELATIVE_TO_PARENT, DimensionType.HEIGHT);
             _contentContainer.SetSizeModeFactor(new Vector3(0.0f, 0.9f, 0.0f));
             _contentContainer.AnchorPoint = NDalic.AnchorPointBottomCenter;
-            _contentContainer.Position = new Position(0, _stage.Size.Height * 0.1f, 0);
+            _contentContainer.Position = new Position(0, _window.Size.Height * 0.1f, 0);
             _contentContainer.SetRelativeHeight(0, 0.07f);
             _contentContainer.SetRelativeHeight(1, 0.26f);
             _contentContainer.SetRelativeHeight(2, 0.07f);
@@ -94,7 +94,7 @@ namespace MyCSharpExample
             _contentContainer.SetRelativeHeight(4, 0.07f);
             _contentContainer.SetRelativeHeight(5, 0.26f);
             _contentContainer.SetKeyboardFocusable(true);
-            _stage.Add(_contentContainer);
+            _window.Add(_contentContainer);
 
             CreateContent();
 
@@ -123,13 +123,13 @@ namespace MyCSharpExample
         {
             // Make label for item
             TextLabel itemLabel = new TextLabel("    " + item.name);
-            itemLabel.Size = new Vector3(_stage.GetSize().Width * 0.2f, _stage.GetSize().Height * 0.05f, 0.0f);
+            itemLabel.Size = new Vector3(_window.GetSize().Width * 0.2f, _window.GetSize().Height * 0.05f, 0.0f);
             itemLabel.HorizontalAlignment = "BEGIN";
             itemLabel.VerticalAlignment = "BOTTOM";
             itemLabel.PointSize = 18.0f;
             _contentContainer.AddChild(itemLabel, new TableView.CellPosition(((uint)idx / 5) * 2, (uint)idx % 5));
 
-            // If item is implemented in public, attach it on stage
+            // If item is implemented in public, attach it on window
             if (item.isImplemented)
             {
                 if (item.name.CompareTo("PushButton") == 0)
@@ -319,7 +319,7 @@ namespace MyCSharpExample
 
                     button.Clicked += (obj, ee) =>
                     {
-                        _stage.Add(_popup);
+                        _window.Add(_popup);
                         _popup.SetDisplayState(Popup.DisplayStateType.SHOWN);
                         FocusManager.Instance.SetCurrentFocusView((_popup.FindChildByName("Footer")).FindChildByName("OKButton"));
                         return true;
@@ -346,7 +346,7 @@ namespace MyCSharpExample
                                 text.MultiLine = true;
                                 text.HorizontalAlignment = "center";
                                 toast.SetTitle(text);
-                                _stage.Add(toast);
+                                _window.Add(toast);
                                 toast.SetDisplayState(Popup.DisplayStateType.SHOWN);
                             }
                         }
@@ -362,7 +362,7 @@ namespace MyCSharpExample
             else
             {
                 ImageView notSupportView = new ImageView("images/not_yet_sign.png");
-                notSupportView.Size = new Vector3(_stage.GetSize().Width * 0.2f, _stage.GetSize().Height * 0.25f, 0.0f);
+                notSupportView.Size = new Vector3(_window.GetSize().Width * 0.2f, _window.GetSize().Height * 0.25f, 0.0f);
                 notSupportView.SetKeyboardFocusable(true);
 
                 _contentContainer.AddChild(notSupportView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
index 1daf6a09a40b19945572cb81c9278a571941dea6..4f2667cc13526757cc4bf0911c2aeb72e3c43c29 100755 (executable)
@@ -27,7 +27,7 @@ namespace MyCSharpExample
         private Dali.Application _application;
         private Animation _animation;
         private TextLabel _text;
-        private Stage _stage;
+        private Window _window;
 
         public Example(Dali.Application application)
         {
@@ -38,9 +38,9 @@ namespace MyCSharpExample
         public void Initialize(object source, NUIApplicationInitEventArgs e)
         {
             Console.WriteLine("Customized Application Initialize event handler");
-            _stage = Stage.Instance;
-            _stage.BackgroundColor = Color.White;
-            _stage.Touch += OnStageTouched;
+            _window = Window.Instance;
+            _window.BackgroundColor = Color.White;
+            _window.Touch += OnWindowTouched;
 
             // Add a _text label to the stage
             _text = new TextLabel("Hello Mono World");
@@ -49,7 +49,7 @@ namespace MyCSharpExample
             _text.HorizontalAlignment = "CENTER";
             _text.PointSize = 32.0f;
             _text.TextColor = Color.Magenta;
-            _stage.Add(_text);
+            _window.Add(_text);
 
             _animation = new Animation
             {
@@ -95,8 +95,8 @@ namespace MyCSharpExample
             }
         }
 
-        // Callback for stage touched signal handling
-        public void OnStageTouched(object sender, Stage.TouchEventArgs e)
+        // Callback for window touched signal handling
+        public void OnWindowTouched(object sender, Window.TouchEventArgs e)
         {
             // Only animate the _text label when touch down happens
             if (e.Touch.GetState(0) == PointStateType.DOWN)
index 6ece63b7fe6c3e45472f65168e0c7a10f78365f7..85c568d639c29c72a08b0a08fdd678c166da4faa 100755 (executable)
@@ -35,7 +35,7 @@ namespace ImageViewExample
         private bool _isAniFinised = true;
         private Layer layer, _layer1, _layer2;
         private PushButton _pushButton1, _pushButton2;
-        private Stage stage;
+        private Window window;
 
         public Example(Dali.Application application)
         {
@@ -46,25 +46,25 @@ namespace ImageViewExample
         public void Initialize(object source, NUIApplicationInitEventArgs e)
         {
             Log("Customized Application Initialize event handler");
-            stage = Stage.Instance;
-            stage.BackgroundColor = Color.Cyan;
-            stage.Touch += OnStageTouched;
-            stage.Wheel += OnStageWheelMoved;
-            stage.Key += OnStageKeyPressed;
-            //stage.EventProcessingFinished += OnStageEventProcessingFinished;
-
-            layer = stage.GetDefaultLayer();
+            window = Window.Instance;
+            window.BackgroundColor = Color.Cyan;
+            window.Touch += OnWindowTouched;
+            window.Wheel += OnWindowWheelMoved;
+            window.Key += OnWindowKeyPressed;
+            //window.EventProcessingFinished += OnWindowEventProcessingFinished;
+
+            layer = window.GetDefaultLayer();
             _layer1 = new Layer();
             _layer2 = new Layer();
-            stage.AddLayer(_layer1);
-            stage.AddLayer(_layer2);
+            window.Add(_layer1);
+            window.Add(_layer2);
             Log("_layer1.Behavior =" + _layer1.Behavior);
             if (_layer1.Behavior == Layer.LayerBehavior.LAYER_UI)
             {
                 _layer1.Behavior = Layer.LayerBehavior.LAYER_2D;
                 Log("again _layer1.Behavior =" + _layer1.Behavior);
             }
-            // Add a ImageView to the stage
+            // Add a ImageView to the window
             _imageView = new ImageView();
             _imageView.ResourceUrl = "./images/gallery-3.jpg";
             _imageView.ParentOrigin = ParentOrigin.Center;
@@ -77,7 +77,7 @@ namespace ImageViewExample
             _pushButton1.ParentOrigin = ParentOrigin.BottomLeft;
             _pushButton1.AnchorPoint = AnchorPoint.BottomLeft;
             _pushButton1.LabelText = "start animation";
-            _pushButton1.Position = new Vector3(0.0f, stage.Size.Height * 0.1f, 0.0f);
+            _pushButton1.Position = new Vector3(0.0f, window.Size.Height * 0.1f, 0.0f);
             _pushButton1.Clicked += OnPushButtonClicked1;
             _layer1.Add(_pushButton1);
 
@@ -85,7 +85,7 @@ namespace ImageViewExample
             _pushButton2.ParentOrigin = ParentOrigin.BottomLeft;
             _pushButton2.AnchorPoint = AnchorPoint.BottomLeft;
             _pushButton2.LabelText = "reload image with same URL";
-            _pushButton2.Position = new Vector3(0.0f, stage.Size.Height * 0.2f, 0.0f);
+            _pushButton2.Position = new Vector3(0.0f, window.Size.Height * 0.2f, 0.0f);
             _pushButton2.Clicked += OnPushButtonClicked2;
             _layer2.Add(_pushButton2);
 
@@ -154,8 +154,8 @@ namespace ImageViewExample
                 _animation.TargetProperty = "Size";
                 KeyFrames _keyFrames = new KeyFrames();
                 _keyFrames.Add(0.0f, new Size(0.0f, 0.0f, 0.0f));
-                _keyFrames.Add(0.3f, new Size((stage.Size * 0.7f)));
-                _keyFrames.Add(1.0f, new Size(stage.Size));
+                _keyFrames.Add(0.3f, new Size((window.Size * 0.7f)));
+                _keyFrames.Add(1.0f, new Size(window.Size));
                 _animation.AnimateBetween(_imageView, _keyFrames, Animation.Interpolation.Linear);
 
                 _animation.EndAction = Animation.EndActions.Discard;
@@ -189,33 +189,33 @@ namespace ImageViewExample
             }
         }
 
-        public void OnStageEventProcessingFinished(object sender, EventArgs e)
+        public void OnWindowEventProcessingFinished(object sender, EventArgs e)
         {
-            Log("OnStageEventProcessingFinished()!");
+            Log("OnWindowEventProcessingFinished()!");
             if (e != null)
             {
                 Log("e != null !");
             }
         }
 
-        public void OnStageKeyPressed(object sender, Stage.KeyEventArgs e)
+        public void OnWindowKeyPressed(object sender, Window.KeyEventArgs e)
         {
-            Log("OnStageKeyEventOccured()!");
+            Log("OnWindowKeyEventOccured()!");
             Log("keyPressedName=" + e.Key.KeyPressedName);
             Log("state=" + e.Key.State);
         }
 
-        public void OnStageWheelMoved(object sender, Stage.WheelEventArgs e)
+        public void OnWindowWheelMoved(object sender, Window.WheelEventArgs e)
         {
-            Log("OnStageWheelEventOccured()!");
+            Log("OnWindowWheelEventOccured()!");
             Log("direction=" + e.Wheel.Direction);
             Log("type=" + e.Wheel.Type);
         }
 
-        // Callback for stage touched signal handling
-        public void OnStageTouched(object sender, Stage.TouchEventArgs e)
+        // Callback for window touched signal handling
+        public void OnWindowTouched(object sender, Window.TouchEventArgs e)
         {
-            Log("OnStageTouched()! e.TouchData.GetState(0)=" + e.Touch.GetState(0));
+            Log("OnWindowTouched()! e.TouchData.GetState(0)=" + e.Touch.GetState(0));
         }
 
         public void MainLoop()
index a1964c70eb27be0eb0b5415114749ee559679df2..3199857b5352723e009b0e770c813aedf41353f7 100755 (executable)
@@ -42,16 +42,16 @@ namespace MyCSharpExample
 
         private void CreateScrollView()
         {
-            Stage stage = Stage.GetCurrent();
-            stage.BackgroundColor = Color.White;
+            Window window = Window.Instance;
+            window.BackgroundColor = Color.White;
 
             // Create a scroll view
             _scrollView = new ScrollView();
-            Size2D stageSize = stage.Size;
-            _scrollView.Size = new Position(stageSize.Width, stageSize.Height, 0.0f);
+            Size2D windowSize = window.Size;
+            _scrollView.Size = new Position(windowSize.Width, windowSize.Height, 0.0f);
             _scrollView.ParentOrigin = NDalic.ParentOriginCenter;
             _scrollView.AnchorPoint = NDalic.AnchorPointCenter;
-            stage.Add(_scrollView);
+            window.Add(_scrollView);
 
             // Add actors to a scroll view with 3 pages
             int pageRows = 1;
@@ -64,13 +64,13 @@ namespace MyCSharpExample
                     pageActor.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.ALL_DIMENSIONS);
                     pageActor.ParentOrigin = NDalic.ParentOriginCenter;
                     pageActor.AnchorPoint = NDalic.AnchorPointCenter;
-                    pageActor.Position = new Position(pageColumn * stageSize.Width, pageRow * stageSize.Height, 0.0f);
+                    pageActor.Position = new Position(pageColumn * windowSize.Width, pageRow * windowSize.Height, 0.0f);
 
                     // Add images in a 3x4 grid layout for each page
                     int imageRows = 4;
                     int imageColumns = 3;
                     float margin = 10.0f;
-                    Position imageSize = new Position((stageSize.Width / imageColumns) - margin, (stageSize.Height / imageRows) - margin, 0.0f);
+                    Position imageSize = new Position((windowSize.Width / imageColumns) - margin, (windowSize.Height / imageRows) - margin, 0.0f);
 
                     for (int row = 0; row < imageRows; row++)
                     {
@@ -81,8 +81,8 @@ namespace MyCSharpExample
                             imageView.ParentOrigin = NDalic.ParentOriginCenter;
                             imageView.AnchorPoint = NDalic.AnchorPointCenter;
                             imageView.Size = imageSize;
-                            imageView.Position = new Position(margin * 0.5f + (imageSize.X + margin) * column - stageSize.Width * 0.5f + imageSize.X * 0.5f,
-                                                 margin * 0.5f + (imageSize.Y + margin) * row - stageSize.Height * 0.5f + imageSize.Y * 0.5f, 0.0f);
+                            imageView.Position = new Position(margin * 0.5f + (imageSize.X + margin) * column - windowSize.Width * 0.5f + imageSize.X * 0.5f,
+                                                 margin * 0.5f + (imageSize.Y + margin) * row - windowSize.Height * 0.5f + imageSize.Y * 0.5f, 0.0f);
                             pageActor.Add(imageView);
                         }
                     }
@@ -95,9 +95,9 @@ namespace MyCSharpExample
 
             // Set scroll view to have 3 pages in X axis and allow page snapping,
             // and also disable scrolling in Y axis.
-            RulerPtr scrollRulerX = new RulerPtr(new FixedRuler(stageSize.Width));
+            RulerPtr scrollRulerX = new RulerPtr(new FixedRuler(windowSize.Width));
             RulerPtr scrollRulerY = new RulerPtr(new DefaultRuler());
-            scrollRulerX.SetDomain(new RulerDomain(0.0f, stageSize.Width * pageColumns, true));
+            scrollRulerX.SetDomain(new RulerDomain(0.0f, windowSize.Width * pageColumns, true));
             scrollRulerY.Disable();
             _scrollView.SetRulerX(scrollRulerX);
             _scrollView.SetRulerY(scrollRulerY);
@@ -149,7 +149,7 @@ namespace MyCSharpExample
             // Only animate the _text label when touch down happens
             if (e.Touch.GetState(0) == PointStateType.DOWN)
             {
-                Console.WriteLine("Customized Stage Touch event handler");
+                Console.WriteLine("Customized Window Touch event handler");
                 // Create a new _animation
                 if (_animation)
                 {
index 40415f9e6761dc9d17ced34d0c264104b2d3c102..a55fd4a5be28d043f54a7583bf6ea722892a196f 100755 (executable)
@@ -48,19 +48,19 @@ namespace MyCSharpExample
         public void Initialize(object source, NUIApplicationInitEventArgs e)
         {
             Log("Initialize() is called!");
-            Stage stage = Stage.GetCurrent();
-            stage.BackgroundColor = Color.White;
-            stage.Touch += OnStageTouched;
-            stage.Touch += OnStageTouched2;
-            stage.Wheel += OnStageWheelEvent;
+            Window window = Window.Instance;
+            window.BackgroundColor = Color.White;
+            window.Touch += OnWindowTouched;
+            window.Touch += OnWindowTouched2;
+            window.Wheel += OnWindowWheelEvent;
 
-            // Add a _text label to the stage
+            // Add a _text label to the window
             _text = new TextLabel("Hello Mono World");
             _text.ParentOrigin = ParentOrigin.BottomCenter;
             _text.AnchorPoint = AnchorPoint.BottomCenter;
             _text.HorizontalAlignment = "CENTER";
             _text.PointSize = 32.0f;
-            stage.Add(_text);
+            window.Add(_text);
 
             _view1 = new View();
             _view1.Size = new Vector3(200.0f, 200.0f, 0.0f);
@@ -68,8 +68,8 @@ namespace MyCSharpExample
             _view1.ParentOrigin = ParentOrigin.Center;
             _view1.AnchorPoint = AnchorPoint.Center;
             _view1.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.ALL_DIMENSIONS);
-            _view1.OnStageEvent += OnStage;
-            stage.Add(_view1);
+            _view1.OnWindowEvent += OnWindow;
+            window.Add(_view1);
 
             _view2 = new View();
             _view2.BackgroundColor = Color.Red;
@@ -136,13 +136,13 @@ namespace MyCSharpExample
             _animation.Play();
         }
 
-        // Callback for stage touched signal handling
-        public void OnStageTouched(object source, Stage.TouchEventArgs e)
+        // Callback for window touched signal handling
+        public void OnWindowTouched(object source, Window.TouchEventArgs e)
         {
             // Only animate the _text label when touch down happens
             if (e.Touch.GetState(0) == PointStateType.DOWN)
             {
-                Log("OnStageTouched() is called! PointStateType.DOWN came!");
+                Log("OnWindowTouched() is called! PointStateType.DOWN came!");
                 myCount++;
                 if (myCount > 1)
                 {
@@ -152,10 +152,10 @@ namespace MyCSharpExample
             }
         }
 
-        // Callback for stage touched signal handling
-        public void OnStageTouched2(object source, Stage.TouchEventArgs e)
+        // Callback for window touched signal handling
+        public void OnWindowTouched2(object source, Window.TouchEventArgs e)
         {
-            Log("OnStageTouched2() is called!state=" + e.Touch.GetState(0));
+            Log("OnWindowTouched2() is called!state=" + e.Touch.GetState(0));
         }
 
         public void OnEventProcessingFinished(object source)
@@ -163,15 +163,15 @@ namespace MyCSharpExample
             Log("OnEventProcessingFinished() is called!");
         }
 
-        public void OnStageWheelEvent(object source, Stage.WheelEventArgs e)
+        public void OnWindowWheelEvent(object source, Window.WheelEventArgs e)
         {
-            Log("OnStageWheelEvent() is called!");
+            Log("OnWindowWheelEvent() is called!");
         }
 
 
-        public void OnStage(object source, View.OnStageEventArgs e)
+        public void OnWindow(object source, View.OnWindowEventArgs e)
         {
-            Log("OnStage() is called!");
+            Log("OnWindow() is called!");
         }
 
         public void MainLoop()
index 51c57d9ca09c609d34f8b8f92667f6ca04711727..f3b21eaefae2ad446589f753a1b102e219658423 100755 (executable)
@@ -34,8 +34,8 @@ namespace MyCSharpExample
 
         public void Initialize(object source, NUIApplicationInitEventArgs e)
         {
-            Stage stage = Stage.Instance;
-            stage.BackgroundColor = Color.White;
+            Window window = Window.Instance;
+            window.BackgroundColor = Color.White;
 
             TableView contentLayout = new TableView(4, 1);
             contentLayout.Name = ("ContentLayout");
@@ -44,7 +44,7 @@ namespace MyCSharpExample
             contentLayout.SetCellPadding(new Size2D(0, 5));
             contentLayout.BackgroundColor = new Color(0.949f, 0.949f, 0.949f, 1.0f);
 
-            stage.GetDefaultLayer().Add(contentLayout);
+            window.GetDefaultLayer().Add(contentLayout);
 
             _title = new TextLabel("Visuals Example");
             _title.Name = "Title";
index 8762974811f88dc53d88ef3c44279385a3b87e01..a77417ae24edc6c4e0f87b934f93694d0da8adc3 100755 (executable)
@@ -30,8 +30,8 @@ namespace VisualsUsingCustomView
 
         private void Initialize(object source, NUIApplicationInitEventArgs e)
         {
-            Stage stage = Stage.Instance;
-            stage.BackgroundColor = Color.White;
+            Window window = Window.Instance;
+            window.BackgroundColor = Color.White;
 
             TableView contentLayout = new TableView(14, 1);
             contentLayout.Name = "ContentLayout";
@@ -40,7 +40,7 @@ namespace VisualsUsingCustomView
             contentLayout.SetCellPadding(new Size2D(5, 5));
             contentLayout.BackgroundColor = new Color(0.949f, 0.949f, 0.949f, 1.0f);
 
-            stage.GetDefaultLayer().Add(contentLayout);
+            window.GetDefaultLayer().Add(contentLayout);
 
             TextLabel title = new TextLabel("Contacts List with Visuals");
             title.Name = "Title";
index 273ee8520f419bfedfbb7819b51348391b9c6bff..68cfaa87718b9cf2f1609022ed7e6727b7f8405f 100644 (file)
@@ -28,7 +28,7 @@ public class AccessibilityActionSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index e3ceeaff078a94ed2713ddeca29ab73a1d39cc02..a038c9059f1eb5d52cae160b5fbf9a9915fde5c6 100644 (file)
@@ -28,7 +28,7 @@ public class AccessibilityFocusOvershotSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 45f1f5e24868b4867a1d14f9eeccd105ffd3b036..a0613a228c8d0d343557dec440026433db40fd84 100644 (file)
@@ -29,7 +29,7 @@ public class AccessibilityManager : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index e2567e0e17d89f8862f4dd76a2b86d941d0f3a39..5b3b00042a64affdd36c86cec1257c690a379a01 100644 (file)
@@ -42,7 +42,7 @@ internal class Alignment : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index cafca8d843d1990814ff70b9c4cf81eae09d7175..de08a1e788ffcc1818d3a0e2abd80b43e65b22cd 100644 (file)
@@ -28,7 +28,7 @@ public class AlphaFunction : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 2da0c6451bf9c9115f86090c07a311bdf19e13a4..ca51c8dea3e575915b93e5d73e9316317e0f6ce0 100644 (file)
@@ -28,7 +28,7 @@ public class AngleAxis : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index e193d4aab1ec560c16c6f215056a4c61fc3ad21b..95d7e3bb776a7bdb4147e846af82f880a4ccbfb1 100644 (file)
@@ -32,7 +32,7 @@ public class Animatable : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 4132ae11b8ba3e8ee05a5877db94a097696a9aaa..7c328f0c0fa552c0afa7c949a14a2ee14f031c92 100644 (file)
@@ -28,7 +28,7 @@ public class AnimatablePropertyComponentRegistration : global::System.IDisposabl
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index a3f9f85f1c6dc5cf31721d5b566c7c4ef65733cf..f617343f99a1feebd1fbab1cdea6357ef22cc278 100644 (file)
@@ -28,7 +28,7 @@ public class AnimatablePropertyRegistration : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 8cb94079daaede2d1f8f99051c69b4f37f50b6cf..6eb45fbd0e9f4f2f4d4f8a4df3265abfe61738ab 100644 (file)
@@ -51,7 +51,7 @@ namespace Dali
 
         public override void Dispose()
         {
-            if (!Stage.IsInstalled())
+            if (!Window.IsInstalled())
             {
                 DisposeQueue.Instance.Add(this);
                 return;
index 5e3d5a5b3601df69bcb5dda338ac2481f6738198..c558d960eb3251e2616c6c5292dc3fd5fc00d558 100644 (file)
@@ -28,7 +28,7 @@ public class AnimationSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b60b9f933023d6e3266ca2b9ddccac1de6738d57..99207f0986ac8d40e6e5330797f87deb087a0804 100644 (file)
@@ -28,7 +28,7 @@ public class Any : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ad3c0bee9be2fd500d77ab9cfa0dff9332057639..d07c8863075c6a8a578030675cac15a39e9396f1 100644 (file)
@@ -310,7 +310,7 @@ public class Application : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1a246aafbb65240fd9fffbf34739d206869f6058..bc88f614ee5a9208ab8e494fc82b6396b81dd6b7 100644 (file)
@@ -28,7 +28,7 @@ public class ApplicationControlSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 611f6e7a8d00bfb82a90ddcfc9e1fea5eeb826c6..22dd82a9f90ab654b9bd2e786c6f60fbb64208cc 100644 (file)
@@ -28,7 +28,7 @@ public class ApplicationExtensions : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 902281f899e863407aac80eb1499a8671942f340..17d0925ea03b234840c14e82ee07e5a3678cd06c 100644 (file)
@@ -28,7 +28,7 @@ public class ApplicationSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b411cf171d4527ade720d24992f18c4397757679..c54428ed7a4dc321a80d3237b2c88ef41ad6f3d4 100644 (file)
@@ -42,7 +42,7 @@ public class AsyncImageLoader : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d571764a1bebb592490221b901d8aa1022517a9c..842064914a6ce41873fd8a41c514a5a67399f917 100644 (file)
@@ -28,7 +28,7 @@ public class BaseHandle : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index dc825f5eae5f2b830f41c0202510fb41c9c040b5..d93efb437ff78bc29fcd0fa4e5bbac152583d2b4 100644 (file)
@@ -42,7 +42,7 @@ public class BufferImage : Image {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 9730348ce0c636bd6c164ffebafced34bc6e2e1b..1eeb9e86667783d92926d774df581bef819c6e07 100644 (file)
@@ -46,7 +46,7 @@ public class Builder : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d9767f670f158054315d27318b95c860117eee62..d7852604aa445ed008ca84dd7995ba1906c15f6a 100644 (file)
@@ -30,7 +30,7 @@ public class Button : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index eb90e3c1f09ddc958480697282d0ab3fa9d287ea..cd19677d1ed31e8d12ff5251e0ded9de30cc6be4 100644 (file)
@@ -28,7 +28,7 @@ public class ButtonSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index aea33d467fe00be13253728132bbc6e1dd469a2f..4b0543075bb8d8edd6c547b841bb7feef9b7c012 100644 (file)
@@ -42,7 +42,7 @@ namespace Dali {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 0d5dfda4410fc1b153a98ffd7048f9c9c374447d..289d0590bf1478befbf80864a6aef6e28afe541b 100644 (file)
@@ -42,7 +42,7 @@ public class CheckBoxButton : Button {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 3091aac6bb63b170a340941aa7d53f1da4c230ff..527ff1c90d74d72f6e600a26a9d96287738b4934 100644 (file)
@@ -28,7 +28,7 @@ public class ChildPropertyRegistration : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 44f3163309bd9a96b6bf819ce200e7b1d7dbb886..ea62e9a0a718d1d9879492ab77f9d3cf1324ac1e 100644 (file)
@@ -28,7 +28,7 @@ public class ClampState2D : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ca0dd011a767a31869f884ac0bd5b822a7f5b35e..6b1c59a9b578c3161e600acfc063c30e5e5421b0 100755 (executable)
@@ -37,7 +37,7 @@ public class Color : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index e167ae92f7f85a5cbb4089acf9536164bfbed3ba..e87416a5e94d3fdf284b3d19a4bb30fe5a7aff33 100644 (file)
@@ -26,7 +26,7 @@ public class ConnectionTracker : ConnectionTrackerInterface {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index cfc92a4837ad88776300c2c25faf32c81231c91f..9f6ec661dee40accb7d266b63ede99c0d0f2d674 100644 (file)
@@ -26,7 +26,7 @@ public class ConnectionTrackerInterface : SignalObserver {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 95bf65dcfa5e11a0b8c558349106260f25008188..c0138e68ce7c2f52364116a549982ac3c2352e54 100644 (file)
@@ -28,7 +28,7 @@ public class ControlKeySignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index e1da6fa92a6f54292a4eaef0a944cd2ec133cc34..86b873ab1eb140a0adf318e172954da1b705781c 100644 (file)
@@ -26,7 +26,7 @@ namespace Dali {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 34b8a2c7022cc3ab1572cec68d4b057cac82c18d..aaf13e3ebb44d4eac89a6ca78bdf261773d76d90 100644 (file)
@@ -28,7 +28,7 @@ public class CustomAlgorithmInterface : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index bcad280e2b71926385f366561495bef785328c5f..3160ef9bf88442fd3cf95c8328638b72966c5558 100644 (file)
@@ -28,7 +28,7 @@ public class DaliException : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 865fcf51c9d8ce0b15a89f2b48e1c612c2c6120f..c47993ccbda294b58184b6ceb3eb430068bb3a8f 100644 (file)
@@ -28,7 +28,7 @@ public class Degree : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index a349deba71f97686df102d03ed3b01155f3f461f..db7c9f9be0abc6bf1d29046d6a5e735971054c35 100644 (file)
@@ -26,7 +26,7 @@ public class DragAndDropDetector : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1933076c5a052347a0cf8492c82a4f6337976ebb..f178a259cd949478b25b6e27b92c1adc6b832fcb 100644 (file)
@@ -42,7 +42,7 @@ public class EncodedBufferImage : Image {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index a67cc285ba09c41c4ee7ee089308c421aba70e3f..902ed7820748f72d9ece825000f0da6a7859deda 100644 (file)
@@ -42,7 +42,7 @@ public class FlexContainer : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 6f028a776fd9c9a53b28c7e9a0ec5f427abf6210..7d5ba42f42596022607e0565be9c3534e30d82e4 100644 (file)
@@ -28,7 +28,7 @@ public class FloatSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index f234f4c5ad1b9ca0ca09a28c26c0249826dea9aa..3304d261f2e7f29aa65ef474d3694a06353ab799 100644 (file)
@@ -28,7 +28,7 @@ public class FocusChangedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 72764bd8d11a6ac8fd71bcef2be6abac70b14fda..43494c23563e3ff5c878cb06365e60168cdf8ef0 100644 (file)
@@ -28,7 +28,7 @@ public class FocusGroupChangedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 78972d8e2fab5735b77d62111975d77d32c605c5..2189b55f2f00050b8cbe5e3c5ed03ba33275783b 100755 (executable)
@@ -37,7 +37,7 @@ public class FocusManager : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index c7ec931cee6a7cf214ddffd414478eed060baf66..41e6c3527092bec75db69c16c008ee73ba427cc3 100644 (file)
@@ -42,7 +42,7 @@ public class FrameBuffer : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 61a2854ce668efffc261c8cc919b212c9462db10..c7b428ce797bcf932be15b59a3dca8e8a2e16f88 100644 (file)
@@ -42,7 +42,7 @@ public class FrameBufferImage : Image {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 77bb64d36d4d2eea29b7bd91cb7df37d89c56099..5f0ce5862d69f9b8b6a1d641b75c39cd09a0c726 100644 (file)
@@ -46,7 +46,7 @@ public class GaussianBlurView : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index cd6b06ffcce683b8d76960ee0c0bcc9907f102d5..8fe1248338d6265369e02e12fd47bfa1f1e5f533 100644 (file)
@@ -28,7 +28,7 @@ public class GaussianBlurViewSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index c43b02459f60627975a123db2c044caff28d4ff7..69b0ddfeb1f20ec93f86a5ec1f5ebb5c499a180c 100644 (file)
@@ -42,7 +42,7 @@ public class Geometry : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index dfe94ac316b191296c20df5d94a615c214581be3..48ba55e710c37ca237feff339e8b00c3049e351d 100644 (file)
@@ -28,7 +28,7 @@ public class Gesture : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 27358d0a3ed300b261affa6f5d3e685b65338b75..ef20276f4b2e3a721dca8c6ae6055c953c88c7b1 100644 (file)
@@ -26,7 +26,7 @@ public class GestureDetector : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 5c81e7cac7dfe015c527e2365ea49c62bfc41579..1e1d58cb828dc3478dc50e9df262af4a3947f8d9 100644 (file)
@@ -28,7 +28,7 @@ public class Hover : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1623fab91aa60cc8681a0c0993ed6bc5028131e4..417ef2678a98fb31687983c362e569007eb2b766 100644 (file)
@@ -28,7 +28,7 @@ internal class HoverSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 9f8f0a7765bc4aff7c9397681cd89f2bbcf894d6..8dc5ca63a08e625496486d9434b4bbe37b94761c 100644 (file)
@@ -30,7 +30,7 @@ public class Image : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 19d88969beb3bff0cc12b0d9070e23f466ef6eaa..47f7247fe229a8656bd4af149bb508f8419edc9d 100644 (file)
@@ -28,7 +28,7 @@ public class ImageSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 8b9db52de44c9aae9e7980a91ffce2b777a49f61..a4e645e01726a0bf158bfa3918bbc15e22d3ce5c 100644 (file)
@@ -42,7 +42,7 @@ public class ImageView : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 774b7c98d0ac89bdc73048a937a94b53b415ee73..d0c0163d5102362babdd514c2d98c4e20b1bba12 100644 (file)
@@ -28,7 +28,7 @@ public class ItemFactory : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 17a5cb410188d5663069fa867ef69fabda02fdd9..9c98bd8d624956bd1900f042d6f8b29f60fc4d99 100644 (file)
@@ -30,7 +30,7 @@ public class ItemIdContainer : global::System.IDisposable, global::System.Collec
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index eb2c508529da86e06dbf46f871e4f70acddfc98c..735efce8ea3d08e2d6a1d630ab7397a40a6f5b10 100644 (file)
@@ -26,7 +26,7 @@ public class ItemLayout : RefObject {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index c6df63f9fe43fc0e2e2f90b6070805af28e4135e..fe82cf4e427f83f6fd35abbd113f9ce504612f44 100644 (file)
@@ -28,7 +28,7 @@ public class ItemRange : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index fc6ec565a74a65f38886c7d2cf6df7ad8bcba0f9..5c791df949628c3e01b74594d5780b8e71d6359c 100644 (file)
@@ -46,7 +46,7 @@ public class ItemView : Scrollable {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 05e6a628dde786424c0923b509a47e8872d80a83..813c64c74f734ede839bd2c115a13d14feef5ae3 100644 (file)
@@ -28,7 +28,7 @@ public class Key : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 9396ac0804dd783f794aa25d5a8f2353b8805507..79109ad23077622962eef726c79c721e34c073e3 100644 (file)
@@ -28,7 +28,7 @@ public class KeyEventSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1c443d1b5d361c48e6d9d6307852a45b5d506758..9c45f3b6bedc8e826962e9975c0b2e5b8199f1d1 100644 (file)
@@ -42,7 +42,7 @@ public class KeyFrames : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 82a16ed956b31da00f4400bf132cc11581e06548..08670d25b419f36fe6c7cb599f2233dc6fb45d6c 100644 (file)
@@ -28,7 +28,7 @@ public class KeyInputFocusSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 278b4a6f0f34c3815c490e76a52aed2ee59bc935..4ef8cd65d4341b9010099d13d04d1b7b0bfed07b 100755 (executable)
@@ -39,7 +39,7 @@ public class PreFocusChangeSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 641f230bc51ca92b328cbe61a057fcd645e922a0..c32972c65db592e61a5083c93c9ee008eba12c68 100644 (file)
@@ -38,7 +38,7 @@ namespace Dali
 
         public virtual void Dispose()
         {
-            if (!Stage.IsInstalled())
+            if (!Window.IsInstalled())
             {
                 DisposeQueue.Instance.Add(this);
                 return;
index a153e75d54130b562da81c3cc82f4a776b5c4a95..61657d6188edc58d8183467ddf66abf9848b51e9 100644 (file)
@@ -42,7 +42,7 @@ public class LinearConstrainer : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 0cf5a5867d1778694d69fdb8402964ab1e4499c7..2cd44ee6a3f672a75876018af7b88cdc7cd12a6e 100644 (file)
@@ -26,7 +26,7 @@ public class LongPressGesture : Gesture {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 5f5dcc5c6e3cde98d2a3b1c2e99d5839f5d4e746..f4c4ecd0abbee039cab08f51ac9255013616c557 100644 (file)
@@ -28,7 +28,7 @@ public class LongPressGestureDetectedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d4a5256cc40b6a8748ad8d895c709d96d636d78e..7eb839e51c8da423e368969409f8c8c230b921cf 100644 (file)
@@ -45,7 +45,7 @@ public class LongPressGestureDetector : GestureDetector {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 58669956f03b588e8cb41823c3bc558e2c6f41e2..a7c5c626cf082655ffad9deeee1c6df1368c5e0c 100644 (file)
@@ -28,7 +28,7 @@ public class Matrix : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index dfcb5a1f7c4c88998673810e8aad6fb872f99f9d..0b39649f9bf154560b1399ad2b9c460b115e1e4f 100644 (file)
@@ -28,7 +28,7 @@ public class Matrix3 : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index c58d13a5c6c235ab9ced4faa9f3c9fe5fa0b4311..c3eb6f63b776db695d76ee8908f37498b3fa93f3 100644 (file)
@@ -42,7 +42,7 @@ public class Model3dView : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index a432a9c2c454742d023f7e6044044ac09c5e281a..26ad62285d0e3ceb57c3582ae321486d13a9e3ae 100644 (file)
@@ -42,7 +42,7 @@ public class NativeImage : Image {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 40a208345e868ac3ca227b56de8212c02c077365..1843d4373efbaa1e4bf4ddc3730d4ef4aaf72fe2 100644 (file)
@@ -42,7 +42,7 @@ public class NinePatchImage : ResourceImage {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d9589e328e3a1b823b3bdb31b57dbab3a7a92395..d8eee474cc13cc5e9a4a79fd4a482364928c6043 100644 (file)
@@ -28,7 +28,7 @@ public class ObjectCreatedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 8238903d3ec655406388fbbab539120a5d0b6ad3..1437c557c8b50c2372d26353e01f43f25e292ead 100644 (file)
@@ -28,7 +28,7 @@ public class ObjectDestroyedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 329bbd7d0ea08254099c901cd5d047d120d06e2c..8342997738bdf73f79196c8f089bd39250a1f08c 100644 (file)
@@ -30,7 +30,7 @@ public class ObjectRegistry : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 0a8797461e0375e26828f4209e93d47c2ba3ac13..a2ec8125f37746808e0aec418581371dcfbf32e6 100644 (file)
@@ -28,7 +28,7 @@ public class PaddingType : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 939998f8e51dcbb8f4cfbe3aabd9f6ad5d3e9b51..03b4384921c595ad1688ca6d738c2257a92bec03 100644 (file)
@@ -28,7 +28,7 @@ public class PageFactory : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 25fc566cdea9d6d846a21d57fa2299063ef8680c..832c237537a898466865d5de76bbeb467ba02b99 100644 (file)
@@ -28,7 +28,7 @@ public class PagePanSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 7813d663fe4e517f32188a1015c27a5c8b5c652f..70b69c2bb5a7c93eb17d66d96b69ac47012b2ede 100644 (file)
@@ -42,7 +42,7 @@ public class PageTurnLandscapeView : PageTurnView {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index bae81a215f007e44365278059686a1ec098a3c57..b27c84a5140d8a78cbc1d0d1df865fd842eb689e 100644 (file)
@@ -42,7 +42,7 @@ public class PageTurnPortraitView : PageTurnView {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ff838f495b941d789b34b882ad1428b58ac99da0..d4bb1177c59367626276744fc0d8c21260187234 100644 (file)
@@ -28,7 +28,7 @@ public class PageTurnSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 82547bc7ce93f5a8122c6483cd1b83c8d192f3f5..c8f003da1140251ee0a9a27c14efebc962708666 100644 (file)
@@ -30,7 +30,7 @@ public class PageTurnView : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ab0c3203d6ce28b51c9aea2ac8817a0236d8f602..d822102f608b436db7bfcb7625dc09bf4ea7a27f 100644 (file)
@@ -26,7 +26,7 @@ public class PanGesture : Gesture {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 7fe6e04b4f9f0874ca43ec555786ffe4b4a741f6..17894b502b3a7f41c98c892dd22632d574459f8c 100644 (file)
@@ -28,7 +28,7 @@ public class PanGestureDetectedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 4b792c78d5e43fe809f1da28b5a93862f88e533a..0d7b5577cee032c2cc03d674a9b748dc8f3ca497 100644 (file)
@@ -46,7 +46,7 @@ public class PanGestureDetector : GestureDetector {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ddf30e820a1d6d07e6511367a8403f7fd8041f4e..31897da48e4638fc1d6b5010289657c34e08b699 100644 (file)
@@ -42,7 +42,7 @@ public class Path : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 9d6f136ff78a189920ff689074eb61ccb7b69992..2b9cc6acf39164e42023ab6b1830d2a552199da3 100644 (file)
@@ -42,7 +42,7 @@ public class PathConstrainer : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 3b7008eb3f2296153c9369e2123a6f818a6ccb6e..e88b531b5f976b7d4d5d0da90b63b5bac01f32c1 100644 (file)
@@ -26,7 +26,7 @@ public class PinchGesture : Gesture {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ddb2fc3bda132b78a4055482ad9f5e5446e64cb9..7499af5c7f9869d77107a13958cd44068eda9aeb 100644 (file)
@@ -28,7 +28,7 @@ public class PinchGestureDetectedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d193dab996501f6fb4b968c3b5153c0b93acd8f7..7467e6289f6841d5ed256f76bb24c46d1055070a 100644 (file)
@@ -46,7 +46,7 @@ public class PinchGestureDetector : GestureDetector {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 40fe2f191215771f6e08796eba168d51b2696af0..488919c9684967842111494ab4ded6bff8f0fc15 100644 (file)
@@ -42,7 +42,7 @@ public class PixelData : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 44aa5cb4cfc60335db2c4c6a50c1889fbafa8017..79d92f51894e9c304d3d185d022320b2ebc3f095 100644 (file)
@@ -46,7 +46,7 @@ public class Popup : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b705ac69ae8d2634637c8605cbe7c55d1f82f9f9..27b5dd468c2ef15d17e484f9ddc5f992de1a696e 100755 (executable)
@@ -35,7 +35,7 @@ public class Position : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 668b5b034b5b7dc68e6040dc3299f58b9a736783..4379d6b0795063b57f8c23914549bc055471acff 100755 (executable)
@@ -35,7 +35,7 @@ public class Position2D : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1372d5b5ccfdf2fbd819cc62d63571d1c9d8e92c..5bb8281b9f46307d3fb7e4232c0f4ce6e1b27e60 100644 (file)
@@ -46,7 +46,7 @@ public class ProgressBar : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 578942f337ad690f8d7184eb517b5d611e622f3e..08fb49b2adf2c55aafc03b1ba2583a83ea252704 100644 (file)
@@ -28,7 +28,7 @@ public class ProgressBarValueChangedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 551b2aed77bc8103dbb1023a0921e14dd616a40c..f1dc0f973b1864376e032d76fb61cf7c6468006b 100644 (file)
@@ -28,7 +28,7 @@ public class Property : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 478978bf7b87de312316997feb6561aa2fb07f9d..dc75cb6b6bedd6ab949890275916294893691acd 100644 (file)
@@ -42,7 +42,7 @@ public class PropertyBuffer : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d72c21879b295354725c4faaf9745c70516cf518..65abe1446a973de2448c04e4b7bc12ee2aa021a0 100644 (file)
@@ -26,7 +26,7 @@ public class PropertyCondition : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 14b25e828da51f55f584980fbd1ae117329123e5..d1f1048b3feb63190607b797a57ba0f993211b5a 100644 (file)
@@ -30,7 +30,7 @@ public class PropertyNotification : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 18bb0d8eed57c95763056f96b1867162ed6652cd..f253371da020d7a94065404bc4c44a63b2fc90e1 100644 (file)
@@ -28,7 +28,7 @@ public class PropertyNotifySignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 94d358ba7c757c971109034be1b407897110c921..5bc4f1f8bd776a565534cf229ccfbdff6c43f82c 100644 (file)
@@ -42,7 +42,7 @@ public class PushButton : Button {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 6d739257157df9cd0235ea2801d64b2044677e6e..dd791ef410ed4617600aca5cafb2c50cc0ffce57 100644 (file)
@@ -28,7 +28,7 @@ public class Radian : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1f7e46d8c48568fb867d4087c18a498d9f857554..8b70cb5deca33a2e8ec94c98de3a1f5d075bfa58 100644 (file)
@@ -42,7 +42,7 @@ public class RadioButton : Button {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index fc22303e691304180deb104e2a52ebad98896e48..ae1a2e12e7148e130f1c4cd18b480f2369d85ce2 100644 (file)
@@ -28,7 +28,7 @@ public class Rectangle : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 9b7e9b621ca7823b110365c49e0e5bf479965f5f..9270c54a52fefae1579bd40965206ae3d62ca373 100644 (file)
@@ -28,7 +28,7 @@ public class RelayoutContainer : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 0db9eaed695eeaaad338780c218da5b5859315b9..e16deed927e68bb4c5a923ea84e6517551ec2245 100644 (file)
@@ -26,7 +26,7 @@ public class RenderTask : Animatable {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 9f684e492c07b2169cf6d2adf6b40864446d04ca..e5a55850d3692abfff9d8ce6cce72556bebb1ca5 100644 (file)
@@ -26,7 +26,7 @@ public class RenderTaskList : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 31579f98185c5bb25399d1c9441bbb96477f9322..88903f338c2cd3428c444284cbfa10cd11343b68 100644 (file)
@@ -28,7 +28,7 @@ public class RenderTaskSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index e7051be33e05b101c61a983004b653f607bccf96..f5cd74039d91e7ca8063ea57870f7beec7ee6701 100644 (file)
@@ -42,7 +42,7 @@ public class Renderer : Animatable {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 4d4b7ff7d38b4da198c13cf27170dfe934663f1a..945537ceb2fccc3e7ab37bec1267a778f8e4cb81 100644 (file)
@@ -46,7 +46,7 @@ public class ResourceImage : Image {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 0a77205779e81748daffafa369ae871ff0d93cf3..58b1bfec204f17b615e569e5741ee4e30a7ff778 100644 (file)
@@ -28,7 +28,7 @@ public class ResourceImageSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ba6e83ce7eb85a7ebc26a6743c5474bc77f798e4..d332d9030d6a9d4696297329276c4b08478e432c 100644 (file)
@@ -28,7 +28,7 @@ public class Rotation : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 219f310c07a42fb153f10ac2d6f6902f52b956e0..34ae3a8af1dcab4deaa532eb0400262c5c91dee4 100644 (file)
@@ -28,7 +28,7 @@ public class RulerPtr : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ad11ee23e834274ca7712948717f7dfb18efc2b3..4ca9f65d36c9dc73591dfdae7ad7d0ac7b91200b 100644 (file)
@@ -42,7 +42,7 @@ public class Sampler : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index c12976da395ab5ee2312fdf1a46b403173f3a202..3266752c7ce98ae072478cff7583c6032d3b928f 100644 (file)
@@ -46,7 +46,7 @@ public class ScrollBar : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ae39932cb324b200104c6821dcccf8e5380a5117..3ccaaa234f3ddca83ef94808293b73476ad7cbcd 100644 (file)
@@ -46,7 +46,7 @@ public class ScrollView : Scrollable {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1793e9ae68effc778000fd2f88c38d2b4b49da11..1d54301dd264e8b09a9704c013f0072e25d36bb2 100644 (file)
@@ -26,7 +26,7 @@ public class ScrollViewEffect : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b2f56744678d6740cd1d0ab084453d3a4e8db24d..2cd59d794ec4d3e001f970e303069cb3f0b01aa8 100644 (file)
@@ -42,7 +42,7 @@ public class ScrollViewPagePathEffect : ScrollViewEffect {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ef9501556a83e2818fc2ce1a81054905c2671204..6074898b91cb436c9a2dffc047a54b0afd6fad6e 100644 (file)
@@ -28,7 +28,7 @@ public class ScrollViewSnapStartedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 6c533dcb38ef236cb653d0c9e91d28e505e64442..42569a7148f8915b17128465bb694f05c7f7a399 100644 (file)
@@ -30,7 +30,7 @@ public class Scrollable : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b6a25a201d46b737e6841d9af1a395352e8a031e..d4ef47fd17bd08431db8b06987bf5220b0f2f722 100644 (file)
@@ -28,7 +28,7 @@ public class ScrollableSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1e6d722e5bbb8b16346ed09f49313db488689e05..d17e399c62d9a86f4947bfca3beb83bc4d78480b 100644 (file)
@@ -42,7 +42,7 @@ public class Shader : Animatable {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 5da050511749f214c3a2cb326079b8ba50a8d2f3..36b1d111620c966abc1c9f311534109f4cbbbbb1 100644 (file)
@@ -28,7 +28,7 @@ public class SignalObserver : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 930557f1942ae3a07cf9f1d5f407dd94e6c87e8c..05b83d165f1a1697bf1c06ec4f1f46cb14841d5d 100755 (executable)
@@ -35,7 +35,7 @@ public class Size : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index fb37d4114f70655dc12be49805f825b38bcf1dc0..9b699120e242e8de97706dceb448adfcf6a0ae01 100755 (executable)
@@ -35,7 +35,7 @@ public class Size2D : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index f1c38c1faf73fc3c2ccdc8dc50d2eb9efede8e58..ee42f346898ab43679b55fe9a5d37d19f4afc86a 100644 (file)
@@ -46,7 +46,7 @@ public class Slider : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b252fec5c128fc7c25d95d0dad82b8d2f59bad91..43d8d8ae77be31b173788453ce82a6479143a6fd 100644 (file)
@@ -28,7 +28,7 @@ public class SliderMarkReachedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 412f17eb95046218e3d690280459df97cbfbc5f4..33484e3ef463f8e8c97934a483eb5232eafd323f 100644 (file)
@@ -28,7 +28,7 @@ public class SliderValueChangedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 104793cb37e504833dd0a7d848321abc3eea99da..edcbf6b6e8a36ec9b519f0a44b98eeeb86f42ef1 100644 (file)
@@ -28,7 +28,7 @@ public class SlotObserver : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
diff --git a/plugins/dali-sharp/sharp/internal/Stage.cs b/plugins/dali-sharp/sharp/internal/Stage.cs
deleted file mode 100644 (file)
index 3eef0a5..0000000
+++ /dev/null
@@ -1,651 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated />
-//
-// This file was automatically generated by SWIG (http://www.swig.org).
-// Version 3.0.10
-//
-// Do not make changes to this file unless you know what you are doing--modify
-// the SWIG interface file instead.
-//------------------------------------------------------------------------------
-
-namespace Dali {
-
-using System;
-using System.Runtime.InteropServices;
-
-
-public class Stage : BaseHandle {
-  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-
-  internal Stage(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Stage_SWIGUpcast(cPtr), cMemoryOwn) {
-    swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-  }
-
-  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Stage obj) {
-    return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
-  }
-
-  ~Stage() {
-    DisposeQueue.Instance.Add(this);
-  }
-
-  public override void Dispose() {
-    if (!Stage.IsInstalled()) {
-      DisposeQueue.Instance.Add(this);
-      return;
-    }
-
-    lock(this) {
-      if (swigCPtr.Handle != global::System.IntPtr.Zero) {
-        if (swigCMemOwn) {
-          swigCMemOwn = false;
-          NDalicPINVOKE.delete_Stage(swigCPtr);
-        }
-        swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
-      }
-      global::System.GC.SuppressFinalize(this);
-      base.Dispose();
-    }
-  }
-
-
-
-
-  /**
-    * @brief Event arguments that passed via Touch signal
-    *
-    */
-  public class TouchEventArgs : EventArgs
-  {
-     private Touch _touch;
-
-     /**
-       * @brief Touch - contains the information of touch points
-       *
-       */
-     public Touch Touch
-     {
-        get
-        {
-           return _touch;
-        }
-        set
-        {
-           _touch = value;
-        }
-     }
-  }
-
-  private event EventHandler<TouchEventArgs> _stageTouchHandler;
-  private EventCallbackDelegateType1<IntPtr> _stageTouchCallbackDelegate;
-
-  /**
-    * @brief Event for TouchEvent signal which can be used to subscribe/unsubscribe the event handler
-    * TouchEvent signal is emitted when the screen is touched and when the touch ends
-    * (i.e. the down & up touch events only).
-    *
-    */
-  public event EventHandler<TouchEventArgs> Touch
-  {
-     add
-     {
-        lock(this)
-        {
-          _stageTouchHandler += value;
-          _stageTouchCallbackDelegate = OnStageTouch;
-          this.TouchSignal().Connect(_stageTouchCallbackDelegate);
-        }
-     }
-     remove
-     {
-        lock(this)
-        {
-           if (_stageTouchHandler != null)
-           {
-              this.TouchSignal().Disconnect(_stageTouchCallbackDelegate);
-           }
-           _stageTouchHandler -= value;
-        }
-     }
-  }
-
-  private void OnStageTouch(IntPtr data)
-  {
-    TouchEventArgs e = new TouchEventArgs();
-
-    if( data != null )
-    {
-      e.Touch = Dali.Touch.GetTouchFromPtr( data );
-    }
-
-    if (_stageTouchHandler != null)
-    {
-      _stageTouchHandler(this, e);
-    }
-  }
-
-  /**
-    * @brief Wheel arguments that passed via Wheel signal
-    *
-    */
-  public class WheelEventArgs : EventArgs
-  {
-     private Wheel _wheel;
-
-     /**
-       * @brief Wheel - store a wheel rolling type MOUSE_WHEEL or CUSTOM_WHEEL
-       *
-       */
-     public Wheel Wheel
-     {
-        get
-        {
-           return _wheel;
-        }
-        set
-        {
-           _wheel = value;
-        }
-     }
-  }
-
-  private event EventHandler<WheelEventArgs> _stageWheelHandler;
-  private EventCallbackDelegateType1<IntPtr> _stageWheelCallbackDelegate;
-
-  /**
-    * @brief Event for Wheel signal which can be used to subscribe/unsubscribe the event handler
-    * Wheel signal is emitted is emitted when wheel event is received.
-    *
-    */
-  public event EventHandler<WheelEventArgs> Wheel
-  {
-     add
-     {
-        lock(this)
-        {
-          _stageWheelHandler += value;
-          _stageWheelCallbackDelegate = OnStageWheel;
-          this.WheelEventSignal().Connect(_stageWheelCallbackDelegate);
-        }
-     }
-     remove
-     {
-        lock(this)
-        {
-           if (_stageWheelHandler != null)
-           {
-              this.WheelEventSignal().Disconnect(_stageWheelCallbackDelegate);
-           }
-           _stageWheelHandler -= value;
-        }
-     }
-  }
-
-  private void OnStageWheel(IntPtr data)
-  {
-    WheelEventArgs e = new WheelEventArgs();
-
-    if( data != null )
-    {
-      e.Wheel = Dali.Wheel.GetWheelFromPtr( data );
-    }
-
-    if (_stageWheelHandler != null)
-    {
-      _stageWheelHandler(this, e);
-    }
-  }
-
-  /**
-    * @brief Event arguments that passed via Key signal
-    *
-    */
-  public class KeyEventArgs : EventArgs
-  {
-     private Key _key;
-
-     /**
-       * @brief Key - is the keyevent sent to Stage.
-       *
-       */
-     public Key Key
-     {
-        get
-        {
-           return _key;
-        }
-        set
-        {
-           _key = value;
-        }
-     }
-  }
-
-  private event EventHandler<KeyEventArgs> _stageKeyHandler;
-  private EventCallbackDelegateType1<IntPtr> _stageKeyCallbackDelegate;
-
-  /**
-    * @brief Event for Key signal which can be used to subscribe/unsubscribe the event handler
-    * Key signal is emitted is emitted when key event is received.
-    *
-    */
-  public event EventHandler<KeyEventArgs> Key
-  {
-     add
-     {
-        lock(this)
-        {
-            _stageKeyHandler += value;
-            _stageKeyCallbackDelegate = OnStageKey;
-            this.KeyEventSignal().Connect(_stageKeyCallbackDelegate);
-        }
-     }
-     remove
-     {
-        lock(this)
-        {
-           if (_stageKeyHandler != null)
-           {
-              this.KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
-           }
-           _stageKeyHandler -= value;
-        }
-     }
-  }
-
-  // Callback for Stage KeyEventsignal
-  private void OnStageKey(IntPtr data)
-  {
-    KeyEventArgs e = new KeyEventArgs();
-
-    if( data != null )
-    {
-      e.Key = Dali.Key.GetKeyFromPtr( data );
-    }
-
-    if (_stageKeyHandler != null)
-    {
-      //here we send all data to user event handlers
-      _stageKeyHandler(this, e);
-    }
-  }
-
-
-  private event EventHandler _stageEventProcessingFinishedEventHandler;
-  private EventCallbackDelegateType0 _stageEventProcessingFinishedEventCallbackDelegate;
-
-  /**
-    * @brief Event for EventProcessingFinished signal which can be used to subscribe/unsubscribe the event handler
-    * provided by the user. EventProcessingFinished signal is emitted just after the event processing is finished.
-    *
-    */
-  public event EventHandler EventProcessingFinished
-  {
-     add
-     {
-        lock(this)
-        {
-          _stageEventProcessingFinishedEventHandler += value;
-          _stageEventProcessingFinishedEventCallbackDelegate = OnEventProcessingFinished;
-          this.EventProcessingFinishedSignal().Connect(_stageEventProcessingFinishedEventCallbackDelegate);
-        }
-     }
-     remove
-     {
-        lock(this)
-        {
-           if (_stageEventProcessingFinishedEventHandler != null)
-           {
-              this.EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
-           }
-           _stageEventProcessingFinishedEventHandler -= value;
-        }
-     }
-  }
-
-  // Callback for Stage EventProcessingFinishedSignal
-  private void OnEventProcessingFinished()
-  {
-     if (_stageEventProcessingFinishedEventHandler != null)
-     {
-        _stageEventProcessingFinishedEventHandler(this, null);
-     }
-  }
-
-
-  private EventHandler _stageContextLostEventHandler;
-  private EventCallbackDelegateType0 _stageContextLostEventCallbackDelegate;
-
-  /**
-    * @brief Event for ContextLost signal which can be used to subscribe/unsubscribe the event handler
-    * ContextLost signal is emitted when the GL context is lost (Platform specific behaviour).
-    *
-    */
-  public event EventHandler ContextLost
-  {
-     add
-     {
-        lock(this)
-        {
-            _stageContextLostEventHandler += value;
-            _stageContextLostEventCallbackDelegate = OnContextLost;
-            this.ContextLostSignal().Connect(_stageContextLostEventCallbackDelegate);
-        }
-     }
-     remove
-     {
-        lock(this)
-        {
-           if (_stageContextLostEventHandler != null)
-           {
-              this.ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
-           }
-
-           _stageContextLostEventHandler -= value;
-        }
-     }
-  }
-
-  // Callback for Stage ContextLostSignal
-  private void OnContextLost()
-  {
-     if (_stageContextLostEventHandler != null)
-     {
-        _stageContextLostEventHandler(this, null);
-     }
-  }
-
-
-  private EventHandler _stageContextRegainedEventHandler;
-  private EventCallbackDelegateType0 _stageContextRegainedEventCallbackDelegate;
-
-  /**
-    * @brief Event for ContextRegained signal which can be used to subscribe/unsubscribe the event handler
-    * provided by the user. ContextRegained signal is emitted when the GL context is regained (Platform specific
-    * behaviour).
-    *
-    */
-  public event EventHandler ContextRegained
-  {
-     add
-     {
-        lock(this)
-        {
-            _stageContextRegainedEventHandler += value;
-            _stageContextRegainedEventCallbackDelegate = OnContextRegained;
-            this.ContextRegainedSignal().Connect(_stageContextRegainedEventCallbackDelegate);
-        }
-     }
-     remove
-     {
-        lock(this)
-        {
-           if (_stageContextRegainedEventHandler != null)
-           {
-              this.ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
-           }
-
-           _stageContextRegainedEventHandler -= value;
-        }
-     }
-  }
-
-  // Callback for Stage ContextRegainedSignal
-  private void OnContextRegained()
-  {
-     if (_stageContextRegainedEventHandler != null)
-     {
-        _stageContextRegainedEventHandler(this, null);
-     }
-  }
-
-
-  private EventHandler _stageSceneCreatedEventHandler;
-  private EventCallbackDelegateType0 _stageSceneCreatedEventCallbackDelegate;
-
-  /**
-    * @brief Event for SceneCreated signal which can be used to subscribe/unsubscribe the event handler
-    * SceneCreated signal is emitted after the initial scene is created.
-    *
-    */
-  public event EventHandler SceneCreated
-  {
-     add
-     {
-        lock(this)
-        {
-            _stageSceneCreatedEventHandler += value;
-            _stageSceneCreatedEventCallbackDelegate = OnSceneCreated;
-            this.SceneCreatedSignal().Connect(_stageSceneCreatedEventCallbackDelegate);
-        }
-     }
-     remove
-     {
-        lock(this)
-        {
-           if (_stageSceneCreatedEventHandler != null)
-           {
-              this.SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
-           }
-
-           _stageSceneCreatedEventHandler -= value;
-        }
-     }
-  }
-
-  // Callback for Stage SceneCreatedSignal
-  private void OnSceneCreated()
-  {
-     if (_stageSceneCreatedEventHandler != null)
-     {
-        _stageSceneCreatedEventHandler(this, null);
-     }
-  }
-
-
-  public Vector2 Size
-  {
-     get
-     {
-        Vector2 ret = GetSize();
-        return ret;
-     }
-  }
-
-  public Vector4 BackgroundColor
-  {
-     set
-     {
-        SetBackgroundColor(value);
-     }
-     get
-     {
-        Vector4 ret = GetBackgroundColor();
-        return ret;
-     }
-   }
-
-  private static readonly Stage instance = Stage.GetCurrent();
-
-  public static Stage Instance
-  {
-      get
-      {
-          return instance;
-      }
-  }
-
-  public Layer GetDefaultLayer()
-  {
-    return this.GetRootLayer();
-  }
-
-  public void AddLayer(Layer layer)
-  {
-    NDalicPINVOKE.Stage_Add(swigCPtr, Layer.getCPtr(layer));
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void RemoveLayer(Layer layer)
-  {
-    NDalicPINVOKE.Stage_Remove(swigCPtr, Layer.getCPtr(layer));
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static Vector4 DEFAULT_BACKGROUND_COLOR {
-    get {
-      global::System.IntPtr cPtr = NDalicPINVOKE.Stage_DEFAULT_BACKGROUND_COLOR_get();
-      Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
-      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public static Vector4 DEBUG_BACKGROUND_COLOR {
-    get {
-      global::System.IntPtr cPtr = NDalicPINVOKE.Stage_DEBUG_BACKGROUND_COLOR_get();
-      Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
-      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public Stage() : this(NDalicPINVOKE.new_Stage__SWIG_0(), true) {
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static Stage GetCurrent() {
-    Stage ret = new Stage(NDalicPINVOKE.Stage_GetCurrent(), true);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static bool IsInstalled() {
-    bool ret = NDalicPINVOKE.Stage_IsInstalled();
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public Stage(Stage handle) : this(NDalicPINVOKE.new_Stage__SWIG_1(Stage.getCPtr(handle)), true) {
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public Stage Assign(Stage rhs) {
-    Stage ret = new Stage(NDalicPINVOKE.Stage_Assign(swigCPtr, Stage.getCPtr(rhs)), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void Add(View view) {
-    NDalicPINVOKE.Stage_Add(swigCPtr, View.getCPtr(view));
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void Remove(View view) {
-    NDalicPINVOKE.Stage_Remove(swigCPtr, View.getCPtr(view));
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public Vector2 GetSize() {
-    Vector2 ret = new Vector2(NDalicPINVOKE.Stage_GetSize(swigCPtr), true);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public RenderTaskList GetRenderTaskList() {
-    RenderTaskList ret = new RenderTaskList(NDalicPINVOKE.Stage_GetRenderTaskList(swigCPtr), true);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public uint GetLayerCount() {
-    uint ret = NDalicPINVOKE.Stage_GetLayerCount(swigCPtr);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public Layer GetLayer(uint depth) {
-    Layer ret = new Layer(NDalicPINVOKE.Stage_GetLayer(swigCPtr, depth), true);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public Layer GetRootLayer() {
-    Layer ret = new Layer(NDalicPINVOKE.Stage_GetRootLayer(swigCPtr), true);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void SetBackgroundColor(Vector4 color) {
-    NDalicPINVOKE.Stage_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public Vector4 GetBackgroundColor() {
-    Vector4 ret = new Vector4(NDalicPINVOKE.Stage_GetBackgroundColor(swigCPtr), true);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public Vector2 GetDpi() {
-    Vector2 ret = new Vector2(NDalicPINVOKE.Stage_GetDpi(swigCPtr), true);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public ObjectRegistry GetObjectRegistry() {
-    ObjectRegistry ret = new ObjectRegistry(NDalicPINVOKE.Stage_GetObjectRegistry(swigCPtr), true);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void KeepRendering(float durationSeconds) {
-    NDalicPINVOKE.Stage_KeepRendering(swigCPtr, durationSeconds);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public KeyEventSignal KeyEventSignal() {
-    KeyEventSignal ret = new KeyEventSignal(NDalicPINVOKE.Stage_KeyEventSignal(swigCPtr), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public VoidSignal EventProcessingFinishedSignal() {
-    VoidSignal ret = new VoidSignal(NDalicPINVOKE.Stage_EventProcessingFinishedSignal(swigCPtr), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public TouchSignal TouchSignal() {
-    TouchSignal ret = new TouchSignal(NDalicPINVOKE.Stage_TouchSignal(swigCPtr), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public StageWheelSignal WheelEventSignal() {
-    StageWheelSignal ret = new StageWheelSignal(NDalicPINVOKE.Stage_WheelEventSignal(swigCPtr), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public VoidSignal ContextLostSignal() {
-    VoidSignal ret = new VoidSignal(NDalicPINVOKE.Stage_ContextLostSignal(swigCPtr), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public VoidSignal ContextRegainedSignal() {
-    VoidSignal ret = new VoidSignal(NDalicPINVOKE.Stage_ContextRegainedSignal(swigCPtr), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public VoidSignal SceneCreatedSignal() {
-    VoidSignal ret = new VoidSignal(NDalicPINVOKE.Stage_SceneCreatedSignal(swigCPtr), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
-
-}
index 14b7c6f487fa2f9bd6d2573ec56626006e58063e..bab68168258695db3bdc7c054db594723ccc02c8 100644 (file)
@@ -28,7 +28,7 @@ public class StageWheelSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 8ff2c729be5b42dc0421fe93205bcb356602571b..67733710a85d490b49a08ed5fcbd69cdb03654a6 100644 (file)
@@ -28,7 +28,7 @@ public class StyleChangedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 64fee71759e567d43fedbbdfc3bcd0938c8c928c..a9f69d654650f32b165fd70f5ba9b4d5a199177c 100644 (file)
@@ -29,7 +29,7 @@ public class StyleManager : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 6fd4508785dda8f8306a5de409fc014b96b38fb7..7f70d8fdf7179531de9f90b873d0d75657702632 100644 (file)
@@ -42,7 +42,7 @@ public class TableView : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 85d01b73cadeb50710a34c0af942fbb3c3cac1b0..1a458715740bff67b3c54bab9852ad9d35288bd6 100644 (file)
@@ -26,7 +26,7 @@ public class TapGesture : Gesture {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index e36189c524d3a57a842c945badae077b1e7ee543..5eda3bf69e956efb7dfd006d5c14d13726a9bebb 100644 (file)
@@ -28,7 +28,7 @@ public class TapGestureDetectedSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d83abbad38bb927daa8f76545ac9464c36ee3b29..4150aa628fe2b60d6cc6113412e7165692f6650f 100644 (file)
@@ -45,7 +45,7 @@ public class TapGestureDetector : GestureDetector {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 557f7f294bdd689e2bd8a75c0120de57783623ad..9cb93fa17f6cee7d2557ed4607d3ad5203eceaba 100644 (file)
@@ -46,7 +46,7 @@ public class TextEditor : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b25acc28ba863bd1a9d70b0a59f8b72b64d055cc..6a940506303a1b638e0d06453dfa6d33868c51c9 100644 (file)
@@ -28,7 +28,7 @@ public class TextEditorSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 2ae92f8f1e7cd43f655d1ca16ab2347191b6a9d0..38bb8a96b1f6ef4f7a42e338a7e2e93770f575d1 100644 (file)
@@ -46,7 +46,7 @@ public class TextField : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ffe714d91b86b612a17e61d51cc42559ce0825eb..50851041d82880688509d3d8aaecc5a11e2be266 100644 (file)
@@ -28,7 +28,7 @@ public class TextFieldSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 2cdeca833214d28b37b89fa06f08ca1df52223be..ce1f1d8bcb15fbc8470d1fe2d47010c8c7528651 100644 (file)
@@ -42,7 +42,7 @@ public class TextLabel : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 96f5c189b10e1f8e51e1f7505f823bb980a6fdfa..00c511c9e57027891311b32745264a04733dad78 100644 (file)
@@ -42,7 +42,7 @@ public class Texture : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index adb5ce91b4e917f596d260896f0ca1fe8a81edd7..52756a8aa69d3edcff56a474a4b6a3648b1acfd4 100644 (file)
@@ -42,7 +42,7 @@ public class TextureSet : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index c268aedd43c7b446984fa05ec1478694ed314efa..b394e4f184171ac1de1d75c24107c2e39153e1d2 100644 (file)
@@ -28,7 +28,7 @@ public class TimePeriod : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d744e5c243ca0539c98009d03afb6dd9c48c0602..7e57604b2b5e0fd61d605a0a9bbdfe331488d3c3 100644 (file)
@@ -46,7 +46,7 @@ public class Timer : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index dd55b5a5eefb67a15cf4488e2a310b977c37e2cc..0d427c645ef2a5b5575ba438a39f9371c64740c2 100644 (file)
@@ -28,7 +28,7 @@ public class TimerSignalType : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 914ed8336f0c4a09a93c662a41e9cb4e9798dd72..c4b3293a70e72106e47b308f12b14a9517d42b1f 100644 (file)
@@ -42,7 +42,7 @@ public class ToggleButton : Button {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 66444829eec2cad7e5955a2615896f5c261ff0ed..5bbf844e30ff326b09f3c27b0f65505f69fc4fa1 100644 (file)
@@ -26,7 +26,7 @@ public class Touch : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 8cc8d78cb2b12b4fc6b5727155c0fd155731b969..cc243073c6097f6a354403e3720d7ba6a57b3c19 100644 (file)
@@ -28,7 +28,7 @@ internal class TouchDataSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1a695da2bc3fef526bc8e61373d1d8f7a0fc5362..f4428fb81caac140aad5c587a8ff2010c69f0123 100644 (file)
@@ -28,7 +28,7 @@ public class TouchPoint : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 41509fc39430e2e987973971047d94366fe98a22..fba575ffd0509944bcfe6de75813bf6169aab7f7 100644 (file)
@@ -30,7 +30,7 @@ public class TouchPointContainer : global::System.IDisposable, global::System.Co
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1ef78d87ab74122087fd3158da0fcc60d92e57d5..77486de9054e68d4419d02c3c697334b69d817ee 100644 (file)
@@ -28,7 +28,7 @@ public class TouchSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b13a8a32c6cb1edeb88d3b3300c00fc13dd79aa0..0c7189eeb8af552685a2b00d653a77910691e2cb 100644 (file)
@@ -42,7 +42,7 @@ public class TransitionData : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 4219ac5d44345d77e949ffab44d2fcab3434b676..d5afa5412453b554117feb7b907d303a50d362ba 100644 (file)
@@ -26,7 +26,7 @@ public class TypeInfo : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 67b3f68003ecb2bd247a76173a0b552f6f726fc5..d444f92dc2654ac548fc729690196221781110dd 100644 (file)
@@ -28,7 +28,7 @@ public class Uint16Pair : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 64b5f1f317311232bf0bd2ce3ebdae7187b9ddb0..0ce99cd71e37ff111b171f95db80f9d5523a3865 100644 (file)
@@ -28,7 +28,7 @@ public class Vector2 : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 27e5402b377c90c0e868197cdafdea0a9212bb6d..468d9049996d7be0e60de0b4ba9d78c908a7734b 100644 (file)
@@ -28,7 +28,7 @@ public class Vector3 : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index d7726dea65d30ee849b25fe92c36adc66ffac144..80c03f4f028337443a9a9b9a34c231eb722ec38b 100644 (file)
@@ -28,7 +28,7 @@ public class Vector4 : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index acb8a057d63d4fed8868143bccb91e9cf4e9e965..109504231d348248a646c340da6f400a6a13e3b4 100644 (file)
@@ -28,7 +28,7 @@ public class VectorFloat : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 11c92979316dbb87f4dd4ff87c597f728edd7dd5..2999a00c6de380f8933cfb70c2642ea2b83732a7 100644 (file)
@@ -28,7 +28,7 @@ public class VectorInteger : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 46a48531a20c21318efb738e2bad5572a147cc36..6a0675dfe5d4ada1cdf1e61de53dcd3f34409124 100644 (file)
@@ -28,7 +28,7 @@ public class VectorUint16Pair : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 67255aadba8dc79585fcdae2d4cbec040b2448c7..17bd89962466cc91c0f09bff90738c7eabdc9116 100644 (file)
@@ -28,7 +28,7 @@ public class VectorUnsignedChar : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 1b61100c2c24a713857766514006cffc7d4a6384..b6f392fbdeba23b03da5bd953afa8882de7c0303 100644 (file)
@@ -46,7 +46,7 @@ public class VideoView : View {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 04a88965092812c1291a7b0e83fe418cb98b5490..c3cadf4ccec5e7ed1754f858d46d8fcd11c6c1bf 100644 (file)
@@ -28,7 +28,7 @@ public class VideoViewSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index aa1171f89ce4b90499f0aa6fcc341cdc6355eddb..a80555054274c2d466e61df7541f2f6eec7cdcba 100755 (executable)
@@ -49,7 +49,7 @@ namespace Dali
 
         public virtual void Dispose()
         {
-            if (!Stage.IsInstalled())
+            if (!Window.IsInstalled())
             {
                 DisposeQueue.Instance.Add(this);
                 return;
@@ -316,15 +316,15 @@ namespace Dali
         }
 
         /**
-         * @brief Event arguments that passed via OnStage signal
+         * @brief Event arguments that passed via OnWindow signal
          *
          */
-        public class OnStageEventArgs : EventArgs
+        public class OnWindowEventArgs : EventArgs
         {
             private View _view;
 
             /**
-             * @brief View - is the view that is being connected to the stage
+             * @brief View - is the view that is being connected to the window
              *
              */
             public View View
@@ -341,15 +341,15 @@ namespace Dali
         }
 
         /**
-         * @brief Event arguments that passed via OffStage signal
+         * @brief Event arguments that passed via OffWindow signal
          *
          */
-        public class OffStageEventArgs : EventArgs
+        public class OffWindowEventArgs : EventArgs
         {
             private View _view;
 
             /**
-             * @brief View - is the view that is being disconnected from the stage
+             * @brief View - is the view that is being disconnected from the window
              *
              */
             public View View
@@ -408,16 +408,16 @@ namespace Dali
         private WheelCallbackDelegate _viewWheelCallbackDelegate;
 
         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-        private delegate void OnStageEventCallbackDelegate(IntPtr control);
+        private delegate void OnWindowEventCallbackDelegate(IntPtr control);
 
-        private DaliEventHandler<object,OnStageEventArgs> _viewOnStageEventHandler;
-        private OnStageEventCallbackDelegate _viewOnStageEventCallbackDelegate;
+        private DaliEventHandler<object,OnWindowEventArgs> _viewOnWindowEventHandler;
+        private OnWindowEventCallbackDelegate _viewOnWindowEventCallbackDelegate;
 
         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-        private delegate void OffStageEventCallbackDelegate(IntPtr control);
+        private delegate void OffWindowEventCallbackDelegate(IntPtr control);
 
-        private DaliEventHandler<object,OffStageEventArgs> _viewOffStageEventHandler;
-        private OffStageEventCallbackDelegate _viewOffStageEventCallbackDelegate;
+        private DaliEventHandler<object,OffWindowEventArgs> _viewOffWindowEventHandler;
+        private OffWindowEventCallbackDelegate _viewOffWindowEventCallbackDelegate;
 
         /**
          * @brief Event for KeyInputFocusGained signal which can be used to subscribe/unsubscribe the event handler
@@ -787,23 +787,23 @@ namespace Dali
         }
 
         /**
-         * @brief Event for OnStage signal which can be used to subscribe/unsubscribe the event handler
-         * (in the type of OnStageEventHandler) provided by the user.
-         * OnStage signal is emitted after the view has been connected to the stage.
+         * @brief Event for OnWindow signal which can be used to subscribe/unsubscribe the event handler
+         * (in the type of OnWindowEventHandler) provided by the user.
+         * OnWindow signal is emitted after the view has been connected to the window.
          */
-        public event DaliEventHandler<object,OnStageEventArgs> OnStageEvent
+        public event DaliEventHandler<object,OnWindowEventArgs> OnWindowEvent
         {
             add
             {
                 lock (this)
                 {
                     // Restricted to only one listener
-                    if (_viewOnStageEventHandler == null)
+                    if (_viewOnWindowEventHandler == null)
                     {
-                        _viewOnStageEventHandler += value;
+                        _viewOnWindowEventHandler += value;
 
-                        _viewOnStageEventCallbackDelegate = new OnStageEventCallbackDelegate(OnStage);
-                        this.OnStageSignal().Connect(_viewOnStageEventCallbackDelegate);
+                        _viewOnWindowEventCallbackDelegate = new OnWindowEventCallbackDelegate(OnWindow);
+                        this.OnWindowSignal().Connect(_viewOnWindowEventCallbackDelegate);
                     }
                 }
             }
@@ -812,51 +812,51 @@ namespace Dali
             {
                 lock (this)
                 {
-                    if (_viewOnStageEventHandler != null)
+                    if (_viewOnWindowEventHandler != null)
                     {
-                        this.OnStageSignal().Disconnect(_viewOnStageEventCallbackDelegate);
+                        this.OnWindowSignal().Disconnect(_viewOnWindowEventCallbackDelegate);
                     }
 
-                    _viewOnStageEventHandler -= value;
+                    _viewOnWindowEventHandler -= value;
                 }
             }
         }
 
-        // Callback for View OnStage signal
-        private void OnStage(IntPtr data)
+        // Callback for View OnWindow signal
+        private void OnWindow(IntPtr data)
         {
-            OnStageEventArgs e = new OnStageEventArgs();
+            OnWindowEventArgs e = new OnWindowEventArgs();
 
-            // Populate all members of "e" (OnStageEventArgs) with real data
+            // Populate all members of "e" (OnWindowEventArgs) with real data
             e.View = View.GetViewFromPtr(data);
 
-            //Console.WriteLine("############# OnStage()! e.View.Name=" + e.View.Name);
+            //Console.WriteLine("############# OnWindow()! e.View.Name=" + e.View.Name);
 
-            if (_viewOnStageEventHandler != null)
+            if (_viewOnWindowEventHandler != null)
             {
                 //here we send all data to user event handlers
-                _viewOnStageEventHandler(this, e);
+                _viewOnWindowEventHandler(this, e);
             }
         }
 
         /**
-         * @brief Event for OffStage signal which can be used to subscribe/unsubscribe the event handler
-         * (in the type of OffStageEventHandler) provided by the user.
-         * OffStage signal is emitted after the view has been disconnected from the stage.
+         * @brief Event for OffWindow signal which can be used to subscribe/unsubscribe the event handler
+         * (in the type of OffWindowEventHandler) provided by the user.
+         * OffWindow signal is emitted after the view has been disconnected from the window.
          */
-        public event DaliEventHandler<object,OffStageEventArgs> OffStageEvent
+        public event DaliEventHandler<object,OffWindowEventArgs> OffWindowEvent
         {
             add
             {
                 lock (this)
                 {
                     // Restricted to only one listener
-                    if (_viewOffStageEventHandler == null)
+                    if (_viewOffWindowEventHandler == null)
                     {
-                        _viewOffStageEventHandler += value;
+                        _viewOffWindowEventHandler += value;
 
-                        _viewOffStageEventCallbackDelegate = new OffStageEventCallbackDelegate(OffStage);
-                        this.OnStageSignal().Connect(_viewOffStageEventCallbackDelegate);
+                        _viewOffWindowEventCallbackDelegate = new OffWindowEventCallbackDelegate(OffWindow);
+                        this.OnWindowSignal().Connect(_viewOffWindowEventCallbackDelegate);
                     }
                 }
             }
@@ -865,28 +865,28 @@ namespace Dali
             {
                 lock (this)
                 {
-                    if (_viewOffStageEventHandler != null)
+                    if (_viewOffWindowEventHandler != null)
                     {
-                        this.OnStageSignal().Disconnect(_viewOffStageEventCallbackDelegate);
+                        this.OnWindowSignal().Disconnect(_viewOffWindowEventCallbackDelegate);
                     }
 
-                    _viewOffStageEventHandler -= value;
+                    _viewOffWindowEventHandler -= value;
                 }
             }
         }
 
-        // Callback for View OffStage signal
-        private void OffStage(IntPtr data)
+        // Callback for View OffWindow signal
+        private void OffWindow(IntPtr data)
         {
-            OffStageEventArgs e = new OffStageEventArgs();
+            OffWindowEventArgs e = new OffWindowEventArgs();
 
-            // Populate all members of "e" (OffStageEventArgs) with real data
+            // Populate all members of "e" (OffWindowEventArgs) with real data
             e.View = View.GetViewFromPtr(data);
 
-            if (_viewOffStageEventHandler != null)
+            if (_viewOffWindowEventHandler != null)
             {
                 //here we send all data to user event handlers
-                _viewOffStageEventHandler(this, e);
+                _viewOffWindowEventHandler(this, e);
             }
         }
 
@@ -1123,7 +1123,7 @@ namespace Dali
 
             if (!view)
             {
-                view = Stage.Instance.GetRootLayer().FindChildById(id);
+                view = Window.Instance.GetRootLayer().FindChildById(id);
             }
 
             return view;
@@ -1571,7 +1571,7 @@ namespace Dali
         /**
          * @brief The left focusable view.
          * @note This will return NULL if not set.
-         * This will also return NULL if the specified left focusable view is not on stage.
+         * This will also return NULL if the specified left focusable view is not on window.
          *
          */
         public View LeftFocusableView
@@ -1594,7 +1594,7 @@ namespace Dali
         /**
          * @brief The right focusable view.
          * @note This will return NULL if not set.
-         * This will also return NULL if the specified right focusable view is not on stage.
+         * This will also return NULL if the specified right focusable view is not on window.
          *
          */
         public View RightFocusableView
@@ -1617,7 +1617,7 @@ namespace Dali
         /**
          * @brief The up focusable view.
          * @note This will return NULL if not set.
-         * This will also return NULL if the specified up focusable view is not on stage.
+         * This will also return NULL if the specified up focusable view is not on window.
          *
          */
         public View UpFocusableView
@@ -1640,7 +1640,7 @@ namespace Dali
         /**
          * @brief The down focusable view.
          * @note This will return NULL if not set.
-         * This will also return NULL if the specified down focusable view is not on stage.
+         * This will also return NULL if the specified down focusable view is not on window.
          *
          */
         public View DownFocusableView
@@ -1770,11 +1770,11 @@ namespace Dali
             }
         }
 
-        public bool IsOnStage
+        public bool IsOnWindow
         {
             get
             {
-                return OnStage();
+                return OnWindow();
             }
         }
 
@@ -1867,7 +1867,7 @@ namespace Dali
             return ret;
         }
 
-        public bool OnStage()
+        public bool OnWindow()
         {
             bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
             if (NDalicPINVOKE.SWIGPendingException.Pending)
@@ -2573,7 +2573,7 @@ namespace Dali
             return ret;
         }
 
-        public ViewSignal OnStageSignal()
+        public ViewSignal OnWindowSignal()
         {
             ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
             if (NDalicPINVOKE.SWIGPendingException.Pending)
index b3532f7291656653f2c7f5f0d358c8d8478e7718..76251e6b863049ecbc4cfc75026cfea16a30cf2a 100644 (file)
@@ -30,7 +30,7 @@ public class ViewContainer : global::System.IDisposable, global::System.Collecti
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 6f9c172488d5b7922d31b48a29f69c029e5edb6d..19ce9104c000b1321419ea15cb69a0a545095d81 100644 (file)
@@ -28,7 +28,7 @@ public class ViewSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index bcc54ec13ffd33223afa2627cb4cfb89855bd72c..80596a0c7debfe415c5d3b7feab17b50d6a9d3b7 100755 (executable)
@@ -38,7 +38,7 @@ namespace Dali
 
         public override void Dispose()
         {
-            if (!Stage.IsInstalled())
+            if (!Window.IsInstalled())
             {
                 DisposeQueue.Instance.Add(this);
                 return;
index f4a6b26a36463b781bd6a87bf812c230daa6d939..15ac6804be380a5e835db0738dc4d53470c53459 100644 (file)
@@ -115,7 +115,7 @@ namespace Dali
 
         public override void Dispose()
         {
-            if (!Stage.IsInstalled())
+            if (!Window.IsInstalled())
             {
                 DisposeQueue.Instance.Add(this);
                 return;
index 92dca4dc61c14ee95bdeb966087753938d0d40c9..e27a61d72935eafeb3cc2950bb7390ed0217a6e1 100644 (file)
@@ -26,7 +26,7 @@ public class VisualBase : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 217079ff94124104492f97b612bf72315ff298c9..1a914637a59448831eb1a2e8713788908cac487f 100644 (file)
@@ -26,7 +26,7 @@ public class VisualFactory : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index b7cb4d2b0ae7fef98871fd37c88e28764803702b..f19a51acd6a8b516a70f5022462ca2bfdda598a4 100644 (file)
@@ -28,7 +28,7 @@ public class VoidSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index 6c0cf402f1777cc1e91711d2d293aff320bf69c8..1c8071ccc1528805110f315e6f7d67670375d5e5 100644 (file)
@@ -28,7 +28,7 @@ public class Wheel : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index ae88c6f7b047ba00aab53351a68d6196657b8497..e31658f7119520f7e07cf1ac698dea6b6309aa5a 100644 (file)
@@ -28,7 +28,7 @@ internal class WheelSignal : global::System.IDisposable {
   }
 
   public virtual void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
index a53e14c665be56b138690e1309b043d84be6acf2..196cd475f195dace8da6a553ddcb681806933a46 100644 (file)
@@ -31,9 +31,11 @@ namespace Dali {
 
 public class Window : BaseHandle {
   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+  private global::System.Runtime.InteropServices.HandleRef stageCPtr;
 
   internal Window(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Window_SWIGUpcast(cPtr), cMemoryOwn) {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+    stageCPtr = new global::System.Runtime.InteropServices.HandleRef(this, NDalicPINVOKE.Stage_GetCurrent());
   }
 
   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Window obj) {
@@ -45,7 +47,7 @@ public class Window : BaseHandle {
   }
 
   public override void Dispose() {
-    if (!Stage.IsInstalled()) {
+    if (!Window.IsInstalled()) {
       DisposeQueue.Instance.Add(this);
       return;
     }
@@ -55,6 +57,7 @@ public class Window : BaseHandle {
         if (swigCMemOwn) {
           swigCMemOwn = false;
           NDalicPINVOKE.delete_Window(swigCPtr);
+          NDalicPINVOKE.delete_Stage(stageCPtr);
         }
         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
       }
@@ -64,7 +67,11 @@ public class Window : BaseHandle {
   }
 
 
-
+  public static bool IsInstalled() {
+    bool ret = NDalicPINVOKE.Stage_IsInstalled();
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
     public void SetAcceptFocus( bool accept )
     {
       NDalicPINVOKE.SetAcceptFocus(swigCPtr, accept);
@@ -251,6 +258,160 @@ public class Window : BaseHandle {
     return ret;
   }
 
+  public Layer GetDefaultLayer()
+  {
+    return this.GetRootLayer();
+  }
+
+  public void Add(Layer layer)
+  {
+    NDalicPINVOKE.Stage_Add(stageCPtr, Layer.getCPtr(layer));
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+  }
+
+  public void Remove(Layer layer)
+  {
+    NDalicPINVOKE.Stage_Remove(stageCPtr, Layer.getCPtr(layer));
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+  }
+
+  public void Add(View view) {
+    NDalicPINVOKE.Stage_Add(stageCPtr, View.getCPtr(view));
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+  }
+
+  public void Remove(View view) {
+    NDalicPINVOKE.Stage_Remove(stageCPtr, View.getCPtr(view));
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+  }
+
+  public Vector2 GetSize() {
+    Vector2 ret = new Vector2(NDalicPINVOKE.Stage_GetSize(stageCPtr), true);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public RenderTaskList GetRenderTaskList() {
+    RenderTaskList ret = new RenderTaskList(NDalicPINVOKE.Stage_GetRenderTaskList(stageCPtr), true);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public uint GetLayerCount() {
+    uint ret = NDalicPINVOKE.Stage_GetLayerCount(stageCPtr);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public Layer GetLayer(uint depth) {
+    Layer ret = new Layer(NDalicPINVOKE.Stage_GetLayer(stageCPtr, depth), true);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public Layer GetRootLayer() {
+    Layer ret = new Layer(NDalicPINVOKE.Stage_GetRootLayer(stageCPtr), true);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public void SetBackgroundColor(Vector4 color) {
+    NDalicPINVOKE.Stage_SetBackgroundColor(stageCPtr, Vector4.getCPtr(color));
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+  }
+
+  public Vector4 GetBackgroundColor() {
+    Vector4 ret = new Vector4(NDalicPINVOKE.Stage_GetBackgroundColor(stageCPtr), true);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public Vector2 GetDpi() {
+    Vector2 ret = new Vector2(NDalicPINVOKE.Stage_GetDpi(stageCPtr), true);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public ObjectRegistry GetObjectRegistry() {
+    ObjectRegistry ret = new ObjectRegistry(NDalicPINVOKE.Stage_GetObjectRegistry(stageCPtr), true);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public void KeepRendering(float durationSeconds) {
+    NDalicPINVOKE.Stage_KeepRendering(stageCPtr, durationSeconds);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+  }
+
+  public KeyEventSignal KeyEventSignal() {
+    KeyEventSignal ret = new KeyEventSignal(NDalicPINVOKE.Stage_KeyEventSignal(stageCPtr), false);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public VoidSignal EventProcessingFinishedSignal() {
+    VoidSignal ret = new VoidSignal(NDalicPINVOKE.Stage_EventProcessingFinishedSignal(stageCPtr), false);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public TouchSignal TouchSignal() {
+    TouchSignal ret = new TouchSignal(NDalicPINVOKE.Stage_TouchSignal(stageCPtr), false);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  private StageWheelSignal WheelEventSignal() {
+    StageWheelSignal ret = new StageWheelSignal(NDalicPINVOKE.Stage_WheelEventSignal(stageCPtr), false);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public VoidSignal ContextLostSignal() {
+    VoidSignal ret = new VoidSignal(NDalicPINVOKE.Stage_ContextLostSignal(stageCPtr), false);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public VoidSignal ContextRegainedSignal() {
+    VoidSignal ret = new VoidSignal(NDalicPINVOKE.Stage_ContextRegainedSignal(stageCPtr), false);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public VoidSignal SceneCreatedSignal() {
+    VoidSignal ret = new VoidSignal(NDalicPINVOKE.Stage_SceneCreatedSignal(stageCPtr), false);
+    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public static Vector4 DEFAULT_BACKGROUND_COLOR {
+    get {
+      global::System.IntPtr cPtr = NDalicPINVOKE.Stage_DEFAULT_BACKGROUND_COLOR_get();
+      Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+      return ret;
+    }
+  }
+
+  public static Vector4 DEBUG_BACKGROUND_COLOR {
+    get {
+      global::System.IntPtr cPtr = NDalicPINVOKE.Stage_DEBUG_BACKGROUND_COLOR_get();
+      Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+      return ret;
+    }
+  }
+
+  private static readonly Window instance = Application.Instance.GetWindow();
+  public static Window Instance
+  {
+    get
+    {
+      return instance;
+    }
+  }
+
   public enum WindowOrientation {
     PORTRAIT = 0,
     LANDSCAPE = 90,
@@ -270,6 +431,422 @@ public class Window : BaseHandle {
     AUTO = 2
   }
 
+
+
+  /**
+    * @brief Event arguments that passed via Touch signal
+    *
+    */
+  public class TouchEventArgs : EventArgs
+  {
+     private Touch _touch;
+
+     /**
+       * @brief Touch - contains the information of touch points
+       *
+       */
+     public Touch Touch
+     {
+        get
+        {
+           return _touch;
+        }
+        set
+        {
+           _touch = value;
+        }
+     }
+  }
+
+  private event EventHandler<TouchEventArgs> _stageTouchHandler;
+  private EventCallbackDelegateType1<IntPtr> _stageTouchCallbackDelegate;
+
+  /**
+    * @brief Event for TouchEvent signal which can be used to subscribe/unsubscribe the event handler
+    * TouchEvent signal is emitted when the screen is touched and when the touch ends
+    * (i.e. the down & up touch events only).
+    *
+    */
+  public event EventHandler<TouchEventArgs> Touch
+  {
+     add
+     {
+        lock(this)
+        {
+          _stageTouchHandler += value;
+          _stageTouchCallbackDelegate = OnStageTouch;
+          this.TouchSignal().Connect(_stageTouchCallbackDelegate);
+        }
+     }
+     remove
+     {
+        lock(this)
+        {
+           if (_stageTouchHandler != null)
+           {
+              this.TouchSignal().Disconnect(_stageTouchCallbackDelegate);
+           }
+           _stageTouchHandler -= value;
+        }
+     }
+  }
+
+  private void OnStageTouch(IntPtr data)
+  {
+    TouchEventArgs e = new TouchEventArgs();
+
+    if( data != null )
+    {
+      e.Touch = Dali.Touch.GetTouchFromPtr( data );
+    }
+
+    if (_stageTouchHandler != null)
+    {
+      _stageTouchHandler(this, e);
+    }
+  }
+
+  /**
+    * @brief Wheel arguments that passed via Wheel signal
+    *
+    */
+  public class WheelEventArgs : EventArgs
+  {
+     private Wheel _wheel;
+
+     /**
+       * @brief Wheel - store a wheel rolling type MOUSE_WHEEL or CUSTOM_WHEEL
+       *
+       */
+     public Wheel Wheel
+     {
+        get
+        {
+           return _wheel;
+        }
+        set
+        {
+           _wheel = value;
+        }
+     }
+  }
+
+  private event EventHandler<WheelEventArgs> _stageWheelHandler;
+  private EventCallbackDelegateType1<IntPtr> _stageWheelCallbackDelegate;
+
+  /**
+    * @brief Event for Wheel signal which can be used to subscribe/unsubscribe the event handler
+    * Wheel signal is emitted is emitted when wheel event is received.
+    *
+    */
+  public event EventHandler<WheelEventArgs> Wheel
+  {
+     add
+     {
+        lock(this)
+        {
+          _stageWheelHandler += value;
+          _stageWheelCallbackDelegate = OnStageWheel;
+          this.WheelEventSignal().Connect(_stageWheelCallbackDelegate);
+        }
+     }
+     remove
+     {
+        lock(this)
+        {
+           if (_stageWheelHandler != null)
+           {
+              this.WheelEventSignal().Disconnect(_stageWheelCallbackDelegate);
+           }
+           _stageWheelHandler -= value;
+        }
+     }
+  }
+
+  private void OnStageWheel(IntPtr data)
+  {
+    WheelEventArgs e = new WheelEventArgs();
+
+    if( data != null )
+    {
+      e.Wheel = Dali.Wheel.GetWheelFromPtr( data );
+    }
+
+    if (_stageWheelHandler != null)
+    {
+      _stageWheelHandler(this, e);
+    }
+  }
+
+  /**
+    * @brief Event arguments that passed via Key signal
+    *
+    */
+  public class KeyEventArgs : EventArgs
+  {
+     private Key _key;
+
+     /**
+       * @brief Key - is the keyevent sent to Stage.
+       *
+       */
+     public Key Key
+     {
+        get
+        {
+           return _key;
+        }
+        set
+        {
+           _key = value;
+        }
+     }
+  }
+
+  private event EventHandler<KeyEventArgs> _stageKeyHandler;
+  private EventCallbackDelegateType1<IntPtr> _stageKeyCallbackDelegate;
+
+  /**
+    * @brief Event for Key signal which can be used to subscribe/unsubscribe the event handler
+    * Key signal is emitted is emitted when key event is received.
+    *
+    */
+  public event EventHandler<KeyEventArgs> Key
+  {
+     add
+     {
+        lock(this)
+        {
+            _stageKeyHandler += value;
+            _stageKeyCallbackDelegate = OnStageKey;
+            this.KeyEventSignal().Connect(_stageKeyCallbackDelegate);
+        }
+     }
+     remove
+     {
+        lock(this)
+        {
+           if (_stageKeyHandler != null)
+           {
+              this.KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
+           }
+           _stageKeyHandler -= value;
+        }
+     }
+  }
+
+  // Callback for Stage KeyEventsignal
+  private void OnStageKey(IntPtr data)
+  {
+    KeyEventArgs e = new KeyEventArgs();
+
+    if( data != null )
+    {
+      e.Key = Dali.Key.GetKeyFromPtr( data );
+    }
+
+    if (_stageKeyHandler != null)
+    {
+      //here we send all data to user event handlers
+      _stageKeyHandler(this, e);
+    }
+  }
+
+
+  private event EventHandler _stageEventProcessingFinishedEventHandler;
+  private EventCallbackDelegateType0 _stageEventProcessingFinishedEventCallbackDelegate;
+
+  /**
+    * @brief Event for EventProcessingFinished signal which can be used to subscribe/unsubscribe the event handler
+    * provided by the user. EventProcessingFinished signal is emitted just after the event processing is finished.
+    *
+    */
+  public event EventHandler EventProcessingFinished
+  {
+     add
+     {
+        lock(this)
+        {
+          _stageEventProcessingFinishedEventHandler += value;
+          _stageEventProcessingFinishedEventCallbackDelegate = OnEventProcessingFinished;
+          this.EventProcessingFinishedSignal().Connect(_stageEventProcessingFinishedEventCallbackDelegate);
+        }
+     }
+     remove
+     {
+        lock(this)
+        {
+           if (_stageEventProcessingFinishedEventHandler != null)
+           {
+              this.EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
+           }
+           _stageEventProcessingFinishedEventHandler -= value;
+        }
+     }
+  }
+
+  // Callback for Stage EventProcessingFinishedSignal
+  private void OnEventProcessingFinished()
+  {
+     if (_stageEventProcessingFinishedEventHandler != null)
+     {
+        _stageEventProcessingFinishedEventHandler(this, null);
+     }
+  }
+
+
+  private EventHandler _stageContextLostEventHandler;
+  private EventCallbackDelegateType0 _stageContextLostEventCallbackDelegate;
+
+  /**
+    * @brief Event for ContextLost signal which can be used to subscribe/unsubscribe the event handler
+    * ContextLost signal is emitted when the GL context is lost (Platform specific behaviour).
+    *
+    */
+  public event EventHandler ContextLost
+  {
+     add
+     {
+        lock(this)
+        {
+            _stageContextLostEventHandler += value;
+            _stageContextLostEventCallbackDelegate = OnContextLost;
+            this.ContextLostSignal().Connect(_stageContextLostEventCallbackDelegate);
+        }
+     }
+     remove
+     {
+        lock(this)
+        {
+           if (_stageContextLostEventHandler != null)
+           {
+              this.ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
+           }
+
+           _stageContextLostEventHandler -= value;
+        }
+     }
+  }
+
+  // Callback for Stage ContextLostSignal
+  private void OnContextLost()
+  {
+     if (_stageContextLostEventHandler != null)
+     {
+        _stageContextLostEventHandler(this, null);
+     }
+  }
+
+
+  private EventHandler _stageContextRegainedEventHandler;
+  private EventCallbackDelegateType0 _stageContextRegainedEventCallbackDelegate;
+
+  /**
+    * @brief Event for ContextRegained signal which can be used to subscribe/unsubscribe the event handler
+    * provided by the user. ContextRegained signal is emitted when the GL context is regained (Platform specific
+    * behaviour).
+    *
+    */
+  public event EventHandler ContextRegained
+  {
+     add
+     {
+        lock(this)
+        {
+            _stageContextRegainedEventHandler += value;
+            _stageContextRegainedEventCallbackDelegate = OnContextRegained;
+            this.ContextRegainedSignal().Connect(_stageContextRegainedEventCallbackDelegate);
+        }
+     }
+     remove
+     {
+        lock(this)
+        {
+           if (_stageContextRegainedEventHandler != null)
+           {
+              this.ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
+           }
+
+           _stageContextRegainedEventHandler -= value;
+        }
+     }
+  }
+
+  // Callback for Stage ContextRegainedSignal
+  private void OnContextRegained()
+  {
+     if (_stageContextRegainedEventHandler != null)
+     {
+        _stageContextRegainedEventHandler(this, null);
+     }
+  }
+
+
+  private EventHandler _stageSceneCreatedEventHandler;
+  private EventCallbackDelegateType0 _stageSceneCreatedEventCallbackDelegate;
+
+  /**
+    * @brief Event for SceneCreated signal which can be used to subscribe/unsubscribe the event handler
+    * SceneCreated signal is emitted after the initial scene is created.
+    *
+    */
+  public event EventHandler SceneCreated
+  {
+     add
+     {
+        lock(this)
+        {
+            _stageSceneCreatedEventHandler += value;
+            _stageSceneCreatedEventCallbackDelegate = OnSceneCreated;
+            this.SceneCreatedSignal().Connect(_stageSceneCreatedEventCallbackDelegate);
+        }
+     }
+     remove
+     {
+        lock(this)
+        {
+           if (_stageSceneCreatedEventHandler != null)
+           {
+              this.SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
+           }
+
+           _stageSceneCreatedEventHandler -= value;
+        }
+     }
+  }
+
+  // Callback for Stage SceneCreatedSignal
+  private void OnSceneCreated()
+  {
+     if (_stageSceneCreatedEventHandler != null)
+     {
+        _stageSceneCreatedEventHandler(this, null);
+     }
+  }
+
+
+  public Vector2 Size
+  {
+     get
+     {
+        Vector2 ret = GetSize();
+        return ret;
+     }
+  }
+
+  public Vector4 BackgroundColor
+  {
+     set
+     {
+        SetBackgroundColor(value);
+     }
+     get
+     {
+        Vector4 ret = GetBackgroundColor();
+        return ret;
+     }
+   }
+
 }
 
 }