public void Deactivate() { root?.Unparent(); goback?.Unparent(); goback?.Dispose(); msg?.Unparent(); msg?.Dispose(); title?.Unparent(); title?.Dispose(); root?.Dispose(); }
/// <summary> /// Dispose radioButtonGroupView and guide /// </summary> public void Deactivate() { Window.Instance.GetDefaultLayer().Remove(guide); guide.Dispose(); guide = null; Window.Instance.GetDefaultLayer().Remove(svgImage); svgImage.Dispose(); svgImage = null; Window.Instance.GetDefaultLayer().Remove(zoomInButton); zoomInButton.Dispose(); zoomInButton = null; Window.Instance.GetDefaultLayer().Remove(zoomOutButton); zoomOutButton.Dispose(); zoomOutButton = null; }
public void TextLabelEnableFontSizeScale() { tlog.Debug(tag, $"TextLabelEnableFontSizeScale START"); var testingTarget = new TextLabel(true); Assert.IsNotNull(testingTarget, "Can't create success object TextLabel"); Assert.IsInstanceOf <TextLabel>(testingTarget, "Should be an instance of TextLabel type."); testingTarget.EnableFontSizeScale = false; Assert.AreEqual(false, testingTarget.EnableFontSizeScale, "Should be equal!"); testingTarget.EnableFontSizeScale = true; Assert.AreEqual(true, testingTarget.EnableFontSizeScale, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"TextLabelEnableFontSizeScale END (OK)"); }
public void TextLabelFontSizeScale() { tlog.Debug(tag, $"TextLabelFontSizeScale START"); var testingTarget = new TextLabel(true); Assert.IsNotNull(testingTarget, "Can't create success object TextLabel"); Assert.IsInstanceOf <TextLabel>(testingTarget, "Should be an instance of TextLabel type."); testingTarget.FontSizeScale = 2.0f; Assert.AreEqual(2.0f, testingTarget.FontSizeScale, "Should be equal!"); testingTarget.FontSizeScale = Tizen.NUI.FontSizeScale.UseSystemSetting; Assert.AreEqual(Tizen.NUI.FontSizeScale.UseSystemSetting, testingTarget.FontSizeScale, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"TextLabelFontSizeScale END (OK)"); }
/// <summary> /// Dispose the two imageView and guide. /// </summary> public void Deactivate() { Window.Instance.GetDefaultLayer().Remove(guide); guide.Dispose(); guide = null; Window.Instance.GetDefaultLayer().Remove(userGuide); userGuide.Dispose(); userGuide = null; Window.Instance.GetDefaultLayer().Remove(imageView); imageView.Dispose(); imageView = null; Window.Instance.GetDefaultLayer().Remove(bgImage); bgImage.Dispose(); bgImage = null; }
public static void Detach() { if (_frameUpdate == null) { return; } Window.Instance.RemoveFrameUpdateCallback(_frameUpdate); Window.Instance.RemoveLayer(_overlayLayer); _overlayLayer?.Remove(_fpsLabel); _fpsLabel?.Dispose(); _overlayLayer?.Dispose(); _fpsLabel = null; _overlayLayer = null; _frameUpdate.Dispose(); _frameUpdate = null; }
void ReleaseDesignerOutlets() { if (ImageView != null) { ImageView.Dispose(); ImageView = null; } if (TextLabel != null) { TextLabel.Dispose(); TextLabel = null; } if (CheckmarkAccessory != null) { CheckmarkAccessory.Dispose(); CheckmarkAccessory = null; } }
public void TextEventAnchorClickedEventArgsHref() { tlog.Debug(tag, $"TextEventAnchorClickedEventArgsHref START"); TextLabel label = new TextLabel() { Text = "hypertext", }; var testingTarget = new AnchorClickedEventArgs(); Assert.IsNotNull(testingTarget, "Can't create success object AnchorClickedEventArgs"); Assert.IsInstanceOf <AnchorClickedEventArgs>(testingTarget, "Should be an instance of AnchorClickedEventArgs type."); testingTarget.Href = Marshal.PtrToStringAnsi(label.SwigCPtr.Handle); Assert.IsNotNull(testingTarget.Href, "Should be not null."); label.Dispose(); tlog.Debug(tag, $"TextEventAnchorClickedEventArgsHref END (OK)"); }
public void TextEventInputFilteredEventArgsType() { tlog.Debug(tag, $"TextEventInputFilteredEventArgsType START"); TextLabel label = new TextLabel() { Text = "hypertext", }; var testingTarget = new InputFilteredEventArgs(); Assert.IsNotNull(testingTarget, "Can't create success object InputFilteredEventArgs"); Assert.IsInstanceOf <InputFilteredEventArgs>(testingTarget, "Should be an instance of InputFilteredEventArgs type."); testingTarget.Type = InputFilterType.Accept; Assert.IsNotNull(testingTarget.Type, "Should be not null."); label.Dispose(); tlog.Debug(tag, $"TextEventInputFilteredEventArgsType END (OK)"); }
public void Deactivate() { b1.Clicked -= B1_Clicked; b2.Clicked -= B2_Clicked; b3.Clicked -= B3_Clicked; b1.Unparent(); b2.Unparent(); b3.Unparent(); b1.Dispose(); b2.Dispose(); b3.Dispose(); text.Unparent(); text.Dispose(); text = null; v.Unparent(); v.Dispose(); v = null; }
/// <summary> /// Remove all the view from window, and Dispose three imageView and guide. /// </summary> public void Deactivate() { Window.Instance.GetDefaultLayer().Remove(guide); guide.Dispose(); guide = null; Window.Instance.GetDefaultLayer().Remove(userGuide); userGuide.Dispose(); userGuide = null; Window.Instance.GetDefaultLayer().Remove(small); small.Dispose(); small = null; Window.Instance.GetDefaultLayer().Remove(middle); middle.Dispose(); middle = null; Window.Instance.GetDefaultLayer().Remove(large); large.Dispose(); large = null; }
public void TextLabelCharacterSpacing() { tlog.Debug(tag, $"TextLabelCharacterSpacing START"); var testingTarget = new TextLabel(true); Assert.IsNotNull(testingTarget, "Can't create success object TextLabel"); Assert.IsInstanceOf <TextLabel>(testingTarget, "Should be an instance of TextLabel type."); float expandedValue = 1.5f; testingTarget.CharacterSpacing = expandedValue; Assert.AreEqual(expandedValue, testingTarget.CharacterSpacing, "Should be equal!"); float condensedValue = -1.5f; testingTarget.CharacterSpacing = condensedValue; Assert.AreEqual(condensedValue, testingTarget.CharacterSpacing, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"TextLabelCharacterSpacing END (OK)"); }
private void Instance_KeyEvent(object sender, Window.KeyEventArgs e) { //////NUILog.Debug("State=" + e.Key.State.ToString() + " Pressed=" + e.Key.KeyPressedName + " Time=" + e.Key.Time); if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == "BackSpace" || e.Key.KeyPressedName == "XF86Back")) { Exit(); } if (e.Key.State == Key.StateType.Down) { if (e.Key.KeyPressedName == "Left") { mainView.Remove(title); title.Dispose(); title = null; mainView = new View(); mainView.Size2D = screenSize; mainView.BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 1.0f); mainView.PivotPoint = PivotPoint.TopLeft; mainView.Position = new Position(0, 0, 0); Window.Instance.GetDefaultLayer().Add(mainView); title = new TextLabel("Ambient is the new off"); title.PivotPoint = PivotPoint.TopLeft; title.Size2D = new Size2D(screenSize.Width, screenSize.Height / 2); title.Position = new Position(0, 0, 0); //title.TextColor = new Color(1.0f, 1.0f, 1.0f, 1.0f); title.TextColor = new Color(255.0f, 255.0f, 255.0f, 255.0f); title.PixelSize = pixelSize; title.HorizontalAlignment = HorizontalAlignment.Center; title.VerticalAlignment = VerticalAlignment.Center; title.MultiLine = true; mainView.Add(title); } } }
public void TextShadowConstructorWithPropertyMap() { tlog.Debug(tag, $"TextShadowConstructorWithPropertyMap START"); TextLabel textLabel = new TextLabel() { Text = "TextShadowConstructor", Color = Color.Green, PointSize = 15.0f, }; PropertyMap temp = new PropertyMap(); Tizen.NUI.Object.GetProperty((global::System.Runtime.InteropServices.HandleRef)textLabel.SwigCPtr, TextLabel.Property.SHADOW).Get(temp); var testingTarget = new TextShadow(temp); Assert.IsNotNull(testingTarget, "Can't create success object TextShadow"); Assert.IsInstanceOf <TextShadow>(testingTarget, "Should be an instance of TextShadow type."); textLabel.Dispose(); testingTarget.Dispose(); tlog.Debug(tag, $"TextShadowConstructorWithPropertyMap END (OK)"); }
/// <summary> /// Remove all the view from window. and Dispose puahButton, imageViews, tableView and guide. /// </summary> public void Deactivate() { Window.Instance.GetDefaultLayer().Remove(guide); guide.Dispose(); guide = null; Window.Instance.GetDefaultLayer().Remove(pushButton); pushButton.Dispose(); pushButton = null; for (uint i = 0; i < 3; i++) { for (uint j = 0; j < 3; j++) { tableView.Remove(imageView[i * 3 + j]); imageView[i * 3 + j].Dispose(); imageView[i * 3 + j] = null; } } Window.Instance.GetDefaultLayer().Remove(tableView); tableView.Dispose(); tableView = null; }
public void Deactivate() { if (root != null) { NUIApplication.GetDefaultWindow().Remove(root); if (text_nullstyle != null) { text_nullstyle.Dispose(); text_nullstyle = null; } if (text_style != null) { text_style.Dispose(); text_style = null; } for (int i = 0; i < 4; i++) { if (button[i] != null) { button[i].Dispose(); button[i] = null; } } for (int i = 0; i < 3; i++) { if (scrollBar[i] != null) { scrollBar[i].Dispose(); scrollBar[i] = null; } } if (top_parent != null) { top_parent.Dispose(); top_parent = null; } if (bottom_parent != null) { bottom_parent.Dispose(); bottom_parent = null; } if (null_style_parent != null) { null_style_parent.Dispose(); null_style_parent = null; } if (style_parent != null) { style_parent.Dispose(); style_parent = null; } root.Dispose(); root = null; } }
public void Deactivate() { if (mLayoutButton != null) { mLayoutButton.GetParent().Remove(mLayoutButton); mLayoutButton.Dispose(); } if (mEditButton != null) { mEditButton.GetParent().Remove(mEditButton); mEditButton.Dispose(); } if (mReplaceButton != null) { mReplaceButton.GetParent().Remove(mReplaceButton); mReplaceButton.Dispose(); } if (mInsertButton != null) { mInsertButton.GetParent().Remove(mInsertButton); mInsertButton.Dispose(); } if (mDeleteButton != null) { mDeleteButton.GetParent().Remove(mDeleteButton); mDeleteButton.Dispose(); } if (mTitle != null) { mTitle.GetParent().Remove(mTitle); mTitle.Dispose(); } if (mToolBarBackground != null) { mToolBarBackground.GetParent().Remove(mToolBarBackground); mToolBarBackground.Dispose(); } if (mItemView != null) { mItemView.GetParent().Remove(mItemView); mItemView.Dispose(); } if (mContentView != null) { Window.Instance.Remove(mContentView); mContentView.Dispose(); } if (mToolBarLayer != null) { Window.Instance.RemoveLayer(mToolBarLayer); mToolBarLayer.Dispose(); } Window.Instance.GetDefaultLayer().Behavior = Layer.LayerBehavior.Layer2D; }
// Disposer public void Dispose() { label.Dispose(); }
public void Deactivate() { if (mEditButton != null) { mToolBarLayer.Remove(mEditButton); mEditButton.Dispose(); mEditButton = null; } if (mTitle != null) { mToolBarLayer.Remove(mTitle); mTitle.Dispose(); mTitle = null; } if (mLayoutButton != null) { mToolBarLayer.Remove(mLayoutButton); mLayoutButton.Dispose(); mLayoutButton = null; } if (mToolBarLayer != null) { mRootView.Remove(mToolBarLayer); mToolBarLayer.Dispose(); mToolBarLayer = null; } if (mReplaceButton != null) { mReplaceButton.GetParent().Remove(mReplaceButton); mReplaceButton.Dispose(); mReplaceButton = null; } if (mInsertButton != null) { mInsertButton.GetParent().Remove(mInsertButton); mInsertButton.Dispose(); mInsertButton = null; } if (mDeleteButton != null) { mDeleteButton.GetParent().Remove(mDeleteButton); mDeleteButton.Dispose(); mDeleteButton = null; } if (mItemView != null) { mContentView.Remove(mItemView); mItemView.Dispose(); mItemView = null; } if (mContentView != null) { mRootView.Remove(mContentView); mContentView.Dispose(); mContentView = null; } if (mRootView != null) { mDefaultLayer.Remove(mRootView); mRootView.Dispose(); mRootView = null; } NUIApplication.GetDefaultWindow().GetDefaultLayer().Behavior = Layer.LayerBehavior.LayerUI; }
public void Deactivate() { if (mTitle) { tool_bar.Remove(mTitle); mTitle.Dispose(); mTitle = null; } if (mSlideshowButton) { tool_bar.Remove(mSlideshowButton); mSlideshowButton.Clicked -= OnPushButtonClicked; mSlideshowButton.Dispose(); mSlideshowButton = null; } if (toggle_button) { tool_bar.Remove(toggle_button); toggle_button.Clicked -= OnToggleButtonClicked; toggle_button.Dispose(); toggle_button = null; } if (tool_bar) { Window.Instance.GetDefaultLayer().Remove(tool_bar); tool_bar.Dispose(); tool_bar = null; } if (mCubeWaveEffect) { mCubeWaveEffect.TransitionCompleted -= OnCubeEffectCompleted; mCubeWaveEffect.Dispose(); mCubeWaveEffect = null; } if (mCubeCrossEffect) { mCubeCrossEffect.TransitionCompleted -= OnCubeEffectCompleted; mCubeCrossEffect.Dispose(); mCubeCrossEffect = null; } if (mCubeFoldEffect) { mCubeFoldEffect.TransitionCompleted -= OnCubeEffectCompleted; mCubeFoldEffect.Dispose(); mCubeFoldEffect = null; } if (mPanGestureDetector) { mPanGestureDetector.Detected -= OnPanGesture; mPanGestureDetector.Dispose(); mPanGestureDetector = null; } if (mContent) { if (null != mCurrentEffect) { mContent.Remove(mCurrentEffect); } content_layer.Remove(mContent); mContent.Dispose(); mContent = null; } if (content_layer) { Window.Instance.RemoveLayer(content_layer); content_layer.Dispose(); content_layer = null; } }
public void Deactivate() { if (board != null) { root.Remove(board); board.Dispose(); board = null; } if (board1 != null) { root.Remove(board1); board1.Dispose(); board1 = null; } if (board2 != null) { root.Remove(board2); board2.Dispose(); board2 = null; } if (button1 != null) { button1.ClickEvent -= Loading1FPSAdd; button1.FocusGained -= FocusGained; button1.FocusLost -= FocusLost; root.Remove(button1); button1.Dispose(); button1 = null; } if (button2 != null) { button2.ClickEvent -= Loading1FPSMinus; button2.FocusGained -= FocusGained; button2.FocusLost -= FocusLost; root.Remove(button2); button2.Dispose(); button2 = null; } if (button3 != null) { root.Remove(button3); button3.Dispose(); button3 = null; } if (loading1_1 != null) { root.Remove(loading1_1); loading1_1.Dispose(); loading1_1 = null; } if (loading2_1 != null) { root.Remove(loading2_1); loading2_1.Dispose(); loading2_1 = null; } if (root != null) { NUIApplication.GetDefaultWindow().Remove(root); root.Dispose(); root = null; } }
public void Deactivate() { if (mTitle) { tool_bar.Remove(mTitle); mTitle.Dispose(); mTitle = null; } if (mSlideshowButton) { tool_bar.Remove(mSlideshowButton); mSlideshowButton.Clicked -= OnPushButtonClicked; mSlideshowButton.Dispose(); mSlideshowButton = null; } if (radiosParent) { for (int i = 0; i < 3; i++) { if (radios[i]) { if (0 == i) { radios[0].SelectedChanged -= OnWaveClicked; } if (1 == i) { radios[1].SelectedChanged -= OnCrossClicked; } if (2 == i) { radios[2].SelectedChanged -= OnFoldClicked; } radiosParent.Remove(radios[i]); radios[i].Dispose(); radios[i] = null; } } tool_bar.Remove(radiosParent); radiosParent.Dispose(); radiosParent = null; } if (tool_bar) { NUIApplication.GetDefaultWindow().GetDefaultLayer().Remove(tool_bar); tool_bar.Dispose(); tool_bar = null; } if (mCubeWaveEffect) { mCubeWaveEffect.TransitionCompleted -= OnCubeEffectCompleted; mCubeWaveEffect.Dispose(); mCubeWaveEffect = null; } if (mCubeCrossEffect) { mCubeCrossEffect.TransitionCompleted -= OnCubeEffectCompleted; mCubeCrossEffect.Dispose(); mCubeCrossEffect = null; } if (mCubeFoldEffect) { mCubeFoldEffect.TransitionCompleted -= OnCubeEffectCompleted; mCubeFoldEffect.Dispose(); mCubeFoldEffect = null; } if (mPanGestureDetector) { mPanGestureDetector.Detected -= OnPanGesture; mPanGestureDetector.Dispose(); mPanGestureDetector = null; } if (null != mViewTimer) { mViewTimer.Stop(); mViewTimer.Tick -= OnTimerTick; mViewTimer.Dispose(); mViewTimer = null; } if (null != mCurrentEffect) { mCurrentEffect.StopTransition(); mContent.Remove(mCurrentEffect); mCurrentEffect.Dispose(); mCurrentEffect = null; } if (mContent) { content_layer.Remove(mContent); mContent.Dispose(); mContent = null; } if (content_layer) { NUIApplication.GetDefaultWindow().RemoveLayer(content_layer); content_layer.Dispose(); content_layer = null; } }
public override void OnDestroy() { Tizen.Log.Error("MYLOG", "MyFrameComponent OnDestroy"); text.Dispose(); }
public void Deactivate() { t1.Unparent(); t1.Dispose(); }