/// <since_tizen> 6 </since_tizen>
public class Loading : Control
{
- /// <summary>The ImageArray bindable property.</summary>
+ /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty ImageArrayProperty = BindableProperty.Create(nameof(ImageArray), typeof(string[]), typeof(Loading), null, propertyChanged: (bindable, oldValue, newValue) =>
{
if (newValue != null)
{
instance.loadingStyle.Images = (string[])newValue;
- instance.imageVisual.URLS = instance.loadingStyle.ImageList as List<string>;
+ instance.imageVisual.URLS = new List<string>((string[])newValue);
}
},
defaultValueCreator: (bindable) =>
var instance = (Loading)bindable;
return instance.loadingStyle.Images;
});
- /// <summary>The ImageList bindable property.</summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ImageListProperty = BindableProperty.Create(nameof(ImageList), typeof(IList<string>), typeof(Loading), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var instance = (Loading)bindable;
- if (newValue != null)
- {
- var newValueList = newValue as List<string>;
- instance.loadingStyle.ImageList = newValueList;
- if (instance.imageVisual != null) instance.imageVisual.URLS = newValueList;
- }
- },
- defaultValueCreator: (bindable) =>
- {
- return ((Loading)bindable).loadingStyle.ImageList;
- });
- /// <summary>The Size bindable property.</summary>
+ /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(Loading), new Size(0, 0), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (View)bindable;
return instance.Size;
});
- /// <summary>The FrameRate bindable property.</summary>
+ /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty FrameRateProperty = BindableProperty.Create(nameof(FrameRate), typeof(int), typeof(Loading), (int)(1000 / 16.6f), propertyChanged: (bindable, oldValue, newValue) =>
{
}
/// <summary>
- /// Gets loading image resource array.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public IList<string> ImageList
- {
- get
- {
- return GetValue(ImageListProperty) as List<string>;
- }
- }
-
- /// <summary>
/// Gets or sets loading size.
/// </summary>
/// <since_tizen> 6 </since_tizen>
{
if (null != loadingStyle.Images)
{
- loadingStyle.ImageList = new List<string>(loadingStyle.Images);
- imageVisual.URLS = loadingStyle.ImageList as List<string>;
+ imageVisual.URLS = new List<string>(loadingStyle.Images);
}
if (null != loadingStyle.FrameRate?.All && 0 != loadingStyle.FrameRate.All.Value)
{
+++ /dev/null
-/*
- * Copyright(c) 2020 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Binding;
-using System.Windows.Input;
-
-namespace Tizen.NUI.Components
-{
- /// <summary>
- /// The AppBar class is a class which shows title text and provides navigation
- /// and action functions on Page.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class AppBar : Control
- {
- //TODO: This app bar height should be implemented in AppBar style.
- private float appBarHeight = 72.0f;
-
- private bool autoNavigationContent = true;
- private View defaultNavigationContent = null;
-
- private View appBarNavigation = null;
- private View appBarTitle = null;
- private View appBarAction = null;
-
- /// <summary>
- /// Creates a new instance of a AppBar.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public AppBar() : base()
- {
- defaultNavigationContent = CreateDefaultNavigationContent();
-
- //Navigation, Title and Action are located horizontally.
- var linearLayout = new LinearLayout();
- linearLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;
- Layout = linearLayout;
-
- WidthSpecification = LayoutParamPolicies.MatchParent;
-
- //TODO: This app bar height should be implemented in AppBar style.
- SizeHeight = appBarHeight;
-
- if ((AutoNavigationContent == true) && (DefaultNavigationContent != null))
- {
- Add(DefaultNavigationContent);
- }
- }
-
- /// <summary>
- /// Creates a new instance of a AppBar.
- /// </summary>
- /// <param name="navigationContent">The content to set to NavigationContent of AppBar.</param>
- /// <param name="titleContent">The content to set to TitleContent of AppBar.</param>
- /// <param name="actionContent">The content to set to ActionContent of AppBar.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public AppBar(View navigationContent, View titleContent, View actionContent) : base()
- {
- defaultNavigationContent = CreateDefaultNavigationContent();
-
- //Navigation, Title and Action are located horizontally.
- var linearLayout = new LinearLayout();
- linearLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;
- Layout = linearLayout;
-
- WidthSpecification = LayoutParamPolicies.MatchParent;
-
- //TODO: This app bar height should be implemented in AppBar style.
- SizeHeight = appBarHeight;
-
- if (navigationContent != null)
- {
- NavigationContent = navigationContent;
- }
- else if ((AutoNavigationContent == true) && (DefaultNavigationContent != null))
- {
- Add(DefaultNavigationContent);
- }
-
- if (titleContent != null)
- {
- TitleContent = titleContent;
- }
-
- if (actionContent != null)
- {
- ActionContent = actionContent;
- }
- }
-
- /// <summary>
- /// Creates a new instance of a AppBar.
- /// </summary>
- /// <param name="title">The text string to set to TitleContent of AppBar.</param>
- /// <param name="actionContents">The contents to add to ActionContent of AppBar.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public AppBar(string title, params View[] actionContents) : this(null, title, actionContents)
- {
- }
-
- /// <summary>
- /// Creates a new instance of a AppBar.
- /// </summary>
- /// <param name="navigationContent">The content to set to NavigationContent of AppBar.</param>
- /// <param name="title">The text string to set to TitleContent of AppBar.</param>
- /// <param name="actionContents">The contents to add to ActionContent of AppBar.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public AppBar(View navigationContent, string title, params View[] actionContents) : base()
- {
- defaultNavigationContent = CreateDefaultNavigationContent();
-
- //Navigation, Title and Action are located horizontally.
- var linearLayout = new LinearLayout();
- linearLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;
- Layout = linearLayout;
-
- WidthSpecification = LayoutParamPolicies.MatchParent;
-
- //TODO: This app bar height should be implemented in AppBar style.
- SizeHeight = appBarHeight;
-
- if (navigationContent != null)
- {
- navigationContent.HeightSpecification = LayoutParamPolicies.MatchParent;
- navigationContent.Weight = 0.0f;
-
- NavigationContent = navigationContent;
- }
- else if ((AutoNavigationContent == true) && (DefaultNavigationContent != null))
- {
- Add(DefaultNavigationContent);
- }
-
- if (title != null)
- {
- var titleContent = new TextLabel()
- {
- Text = title,
- HeightSpecification = LayoutParamPolicies.MatchParent,
- VerticalAlignment = VerticalAlignment.Center,
- Weight = 1.0f,
- BackgroundColor = new Color(0.88f, 0.88f, 0.88f, 1.0f)
- };
-
- TitleContent = titleContent;
- }
-
- if (actionContents != null)
- {
- var actionContent = new Control()
- {
- Layout = new LinearLayout()
- {
- LinearOrientation = LinearLayout.Orientation.Horizontal
- },
- HeightSpecification = LayoutParamPolicies.MatchParent,
- Weight = 0.0f
- };
-
- foreach (var actionView in actionContents)
- {
- actionView.HeightSpecification = LayoutParamPolicies.MatchParent;
-
- actionContent.Add(actionView);
- }
-
- ActionContent = actionContent;
- }
- }
-
- /// <summary>
- /// Disposes AppBar and all children on it.
- /// </summary>
- /// <param name="type">Dispose type.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected override void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- if (appBarNavigation != null)
- {
- Utility.Dispose(appBarNavigation);
- }
-
- if (appBarTitle != null)
- {
- Utility.Dispose(appBarTitle);
- }
-
- if (appBarAction != null)
- {
- Utility.Dispose(appBarAction);
- }
- }
-
- base.Dispose(type);
- }
-
- /// <summary>
- /// Navigation content of AppBar. NavigationContent is added to Children automatically.
- /// If AutoNavigationContent is set to be true and NavigationContent is not set,
- /// then default navigation content is automatically displayed.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View NavigationContent
- {
- get
- {
- return appBarNavigation;
- }
- set
- {
- if (appBarNavigation == value)
- {
- return;
- }
-
- if (appBarNavigation != null)
- {
- Remove(appBarNavigation);
- }
-
- appBarNavigation = value;
- if (appBarNavigation == null)
- {
- return;
- }
-
- ResetContent();
- }
- }
-
- /// <summary>
- /// Title content of AppBar. TitleContent is added to Children automatically.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View TitleContent
- {
- get
- {
- return appBarTitle;
- }
- set
- {
- if (appBarTitle == value)
- {
- return;
- }
-
- if (appBarTitle != null)
- {
- Remove(appBarTitle);
- }
-
- appBarTitle = value;
- if (appBarTitle == null)
- {
- return;
- }
-
- ResetContent();
- }
- }
-
- /// <summary>
- /// Action content of AppBar. ActionContent is added to Children automatically.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View ActionContent
- {
- get
- {
- return appBarAction;
- }
- set
- {
- if (appBarAction == value)
- {
- return;
- }
-
- if (appBarAction != null)
- {
- Remove(appBarAction);
- }
-
- appBarAction = value;
- if (appBarAction == null)
- {
- return;
- }
-
- ResetContent();
- }
- }
-
- /// <summary>
- /// Flag to indicate if default navigation content is automatically set or not.
- /// The default value is true.
- /// If AutoNavigationContent is set to be true and NavigationContent is not set,
- /// then default navigation content is automatically displayed.
- /// If default navigation content is clicked, it calls navigator pop operation.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool AutoNavigationContent
- {
- get
- {
- return autoNavigationContent;
- }
-
- set
- {
- if (autoNavigationContent == value)
- {
- return;
- }
-
- autoNavigationContent = value;
-
- ResetContent();
- }
- }
-
- /// <summary>
- /// Default navigation content of AppBar set automatically by default.
- /// If AutoNavigationContent is set to be true and NavigationContent is not set,
- /// then default navigation content is automatically displayed.
- /// If default navigation content is clicked, it calls navigator pop operation.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected View DefaultNavigationContent
- {
- get
- {
- //TODO: Do not set default navigation content if there is no previous page.
- return defaultNavigationContent;
- }
- }
-
- private View CreateDefaultNavigationContent()
- {
- var backButton = new Button()
- {
- //FIXME: When back icon resource is added, replace this text to the icon resource.
- Text = "<",
- //TODO: This app bar height should be implemented in Appbar style.
- Size = new Size(72.0f, 72.0f),
- };
-
- backButton.Clicked += (object sender, ClickedEventArgs args) =>
- {
- //The page of app bar is popped when default back button is clicked.
- var page = GetParent() as Page;
- if (page != null)
- {
- var navigator = page.GetParent() as Navigator;
- if (navigator != null)
- {
- navigator.Pop();
- }
- }
- };
-
- return backButton;
- }
-
- private void ResetContent()
- {
- //To keep the order of NavigationContent, TitleContent and ActionContent,
- //the existing contents are removed and added again.
- if ((appBarNavigation != null) && Children.Contains(appBarNavigation))
- {
- Remove(appBarNavigation);
- }
- else if ((DefaultNavigationContent != null) && Children.Contains(DefaultNavigationContent))
- {
- Remove(DefaultNavigationContent);
- }
-
- if ((appBarTitle != null) && Children.Contains(appBarTitle))
- {
- Remove(appBarTitle);
- }
-
- if ((appBarAction != null) && Children.Contains(appBarAction))
- {
- Remove(appBarAction);
- }
-
- if (appBarNavigation != null)
- {
- Add(appBarNavigation);
- }
- else if ((AutoNavigationContent == true) && (DefaultNavigationContent != null))
- {
- Add(DefaultNavigationContent);
- }
-
- if (appBarTitle != null)
- {
- Add(appBarTitle);
- }
-
- if (appBarAction != null)
- {
- Add(appBarAction);
- }
- }
- }
-}
//This will be replaced with view transition class instance.
private Animation _newAnimation = null;
- //TODO: Needs to consider how to remove disposed window from dictionary.
- //Two dictionaries are required to remove disposed navigator from dictionary.
private static Dictionary<Window, Navigator> windowNavigator = new Dictionary<Window, Navigator>();
- private static Dictionary<Navigator, Window> navigatorWindow = new Dictionary<Navigator, Window>();
/// <summary>
/// Creates a new instance of a Navigator.
}
/// <summary>
- /// Disposes Navigator and all children on it.
- /// </summary>
- /// <param name="type">Dispose type.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected override void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- foreach (Page page in NavigationPages)
- {
- Utility.Dispose(page);
- }
- NavigationPages.Clear();
-
- Window window;
-
- if (navigatorWindow.TryGetValue(this, out window) == true)
- {
- navigatorWindow.Remove(this);
- windowNavigator.Remove(window);
- }
- }
-
- base.Dispose(type);
- }
-
- /// <summary>
/// Returns the default navigator of the given window.
/// </summary>
/// <returns>The default navigator of the given window.</returns>
defaultNavigator.HeightResizePolicy = ResizePolicyType.FillToParent;
window.Add(defaultNavigator);
windowNavigator.Add(window, defaultNavigator);
- navigatorWindow.Add(defaultNavigator, window);
return defaultNavigator;
}
[EditorBrowsable(EditorBrowsableState.Never)]
public class Page : Control
{
- private AppBar _appBar = null;
private View _content = null;
/// <summary>
/// </summary>
/// <param name="content">The content to set to Content of Page.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
- public Page(View content = null) : this(null, content)
+ public Page(View content = null) : base()
{
- }
-
- /// <summary>
- /// Creates a new instance of a Page.
- /// </summary>
- /// <param name="appBar">The content to set to AppBar of Page.</param>
- /// <param name="content">The content to set to Content of Page.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Page(AppBar appBar, View content = null) : base()
- {
- //AppBar and Content are located verically.
- var linearLayout = new LinearLayout();
- linearLayout.LinearOrientation = LinearLayout.Orientation.Vertical;
- Layout = linearLayout;
-
//Page fills to parent by default.
WidthResizePolicy = ResizePolicyType.FillToParent;
HeightResizePolicy = ResizePolicyType.FillToParent;
- if (appBar)
- {
- AppBar = appBar;
- }
-
if (content)
{
Content = content;
}
/// <summary>
- /// Dispose Page and all children on it.
- /// </summary>
- /// <param name="type">Dispose type.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected override void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- if (_appBar != null)
- {
- Utility.Dispose(_appBar);
- }
-
- if (_content != null)
- {
- Utility.Dispose(_content);
- }
- }
-
- base.Dispose(type);
- }
-
- /// <summary>
- /// AppBar of Page. AppBar is added to Children automatically.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public AppBar AppBar
- {
- get
- {
- return _appBar;
- }
- set
- {
- if (_appBar == value)
- {
- return;
- }
-
- if (_appBar != null)
- {
- Remove(_appBar);
- }
-
- _appBar = value;
- if (_appBar == null)
- {
- return;
- }
-
- _appBar.Weight = 0.0f;
-
- ResetContent();
- }
- }
-
- /// <summary>
/// Content of Page. Content is added to Children automatically.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
}
set
{
- if (_content == value)
+ if (_content)
{
- return;
+ if (_content != value)
+ {
+ Remove(_content);
+ _content = value;
+ Add(value);
+ }
}
-
- if (_content != null)
+ else
{
- Remove(_content);
+ _content = value;
+ Add(value);
}
-
- _content = value;
- if (_content == null)
- {
- return;
- }
-
- _content.Weight = 1.0f;
-
- ResetContent();
- }
- }
-
- private void ResetContent()
- {
- //To keep the order of AppBar and Content, the existing contents are
- //removed and added again.
- if ((_appBar != null) && Children.Contains(_appBar))
- {
- Remove(_appBar);
- }
-
- if ((_content != null) && Children.Contains(_content))
- {
- Remove(_content);
- }
-
- if (_appBar != null)
- {
- Add(_appBar);
- }
-
- if (_content != null)
- {
- Add(_content);
}
}
}
paginationStyle.IndicatorSize = value;
UpdateVisual();
- UpdateContainer();
}
}
{
return;
}
- if (paginationStyle.IndicatorSize == null)
- {
- paginationStyle.IndicatorSize = new Size(0, 0);
- }
ImageVisual indicator = new ImageVisual
{
URL = paginationStyle.IndicatorImageUrl?.Normal,
* limitations under the License.
*
*/
-using System.Collections.Generic;
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty ImagesProperty = BindableProperty.Create(nameof(Images), typeof(string[]), typeof(LoadingStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
{
- ((LoadingStyle)bindable).images = newValue == null ? null : new List<string>((string[])newValue);
+ ((LoadingStyle)bindable).images = (string[])((string[])newValue)?.Clone();
},
- defaultValueCreator: (bindable) => ((LoadingStyle)bindable).images?.ToArray()
- );
-
- /// <summary>The Images bindable property.</summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ImageListProperty = BindableProperty.Create(nameof(ImageList), typeof(IList<string>), typeof(LoadingStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ defaultValueCreator: (bindable) =>
{
- ((LoadingStyle)bindable).images = newValue as List<string>;
- },
- defaultValueCreator: (bindable) => ((LoadingStyle)bindable).images
- );
+ return ((LoadingStyle)bindable).images;
+ });
private Selector<int?> frameRate;
- private List<string> images;
+ private string[] images;
static LoadingStyle() { }
/// <since_tizen> 8 </since_tizen>
public string[] Images
{
- get => (ImageList as List<string>)?.ToArray();
+ get => (string[])GetValue(ImagesProperty);
set => SetValue(ImagesProperty, value);
}
/// <summary>
- /// Gets loading image resources.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public IList<string> ImageList
- {
- get
- {
- if (images == null)
- {
- images = new List<string>();
- }
- return GetValue(ImageListProperty) as List<string>;
- }
- internal set => SetValue(ImageListProperty, value);
- }
-
- /// <summary>
/// Gets or sets loading image size.
/// </summary>
/// <since_tizen> 8 </since_tizen>
#if !PROFILE_WEARABLE
using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
public Theme Create() => Create(null);
- [SuppressMessage("Microsoft.Reliability", "CA2000: Dispose objects before losing scope", Justification = "The responsibility to dispose the object is transferred to the theme object.")]
public Theme Create(IEnumerable<KeyValuePair<string, string>> changedResources)
{
var theme = new Theme() { Id = "Tizen.NUI.Theme.Common" };
/// <summary>
/// Bool selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class BoolSelector : Selector<bool?>
{
/// <summary>
/// Bool selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new BoolSelector Clone()
/// <summary>
/// Size2D selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class Size2DSelector : Selector<Size2D>
{
/// <summary>
/// Size2D selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new Size2DSelector Clone()
/// <summary>
/// Position2D selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class Position2DSelector : Selector<Position2D>
{
/// <summary>
/// Position2D selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new Position2DSelector Clone()
/// <summary>
/// Position selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class PositionSelector : Selector<Position>
{
/// <summary>
/// Position selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new PositionSelector Clone()
/// <summary>
/// Vector3 selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class Vector3Selector : Selector<Vector3>
{
/// <summary>
/// Vector3 selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new Vector3Selector Clone()
/// <summary>
/// Horizontal alignment selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class HorizontalAlignmentSelector : Selector<HorizontalAlignment?>
{
/// <summary>
/// Horizontal alignment selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new HorizontalAlignmentSelector Clone()
/// <summary>
/// Vertical alignment selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class VerticalAlignmentSelector : Selector<VerticalAlignment?>
{
/// <summary>
/// Vertical alignment selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new VerticalAlignmentSelector Clone()
/// <summary>
/// AutoScrollStopMode selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class AutoScrollStopModeSelector : Selector<AutoScrollStopMode?>
{
/// <summary>
/// AutoScrollStopMode selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new AutoScrollStopModeSelector Clone()
/// <summary>
/// ResizePolicyType selector.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
internal class ResizePolicyTypeSelector : Selector<ResizePolicyType?>
{
/// <summary>
/// ResizePolicyType selector clone function.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public new ResizePolicyTypeSelector Clone()
/// <summary>
/// Dispose
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
Interop.ActivatedSignalType.DeleteActivatedSignalType(swigCPtr);
/// Queries whether there are any connected slots.
/// </summary>
/// <returns>True if there are any slots connected to the signal</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool Empty()
{
bool ret = Interop.ActivatedSignalType.Empty(SwigCPtr);
/// Queries the number of slots.
/// </summary>
/// <returns>The number of slots connected to this signal</returns>
+ /// <since_tizen> 3 </since_tizen>
public uint GetConnectionCount()
{
uint ret = Interop.ActivatedSignalType.GetConnectionCount(SwigCPtr);
/// Connects a function.
/// </summary>
/// <param name="func">The function to connect</param>
+ /// <since_tizen> 3 </since_tizen>
public void Connect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
/// Disconnects a function.
/// </summary>
/// <param name="func">The function to disconnect</param>
+ /// <since_tizen> 3 </since_tizen>
public void Disconnect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
/// Emits the signal.
/// </summary>
/// <param name="arg">The first value to pass to callbacks</param>
+ /// <since_tizen> 5 </since_tizen>
public void Emit(InputMethodContext arg)
{
Interop.ActivatedSignalType.Emit(SwigCPtr, InputMethodContext.getCPtr(arg));
/// <summary>
/// The contructor.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ActivatedSignalType() : this(Interop.ActivatedSignalType.NewActivatedSignalType(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Interop.Alignment.DeleteAlignment(swigCPtr);
}
+ /// <since_tizen> 3 </since_tizen>
public new class Padding : Disposable
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
}
+ /// <since_tizen> 3 </since_tizen>
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
Interop.Alignment.DeleteAlignmentPadding(swigCPtr);
}
+ /// <since_tizen> 3 </since_tizen>
public Padding() : this(Interop.Alignment.NewAlignmentPadding(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <since_tizen> 3 </since_tizen>
public Padding(float l, float r, float t, float b) : this(Interop.Alignment.NewAlignmentPadding(l, r, t, b), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <since_tizen> 3 </since_tizen>
public float left
{
set
}
}
+ /// <since_tizen> 3 </since_tizen>
public float right
{
set
}
}
+ /// <since_tizen> 3 </since_tizen>
public float top
{
set
}
}
+ /// <since_tizen> 3 </since_tizen>
public float bottom
{
set
return ret;
}
+ /// <since_tizen> 3 </since_tizen>
public enum Type
{
HorizontalLeft = 1,
VerticalBottom = 32
}
+ /// <since_tizen> 3 </since_tizen>
public enum Scaling
{
ScaleNone,
return ret;
}
+ /// <since_tizen> 3 </since_tizen>
public class AnyContainerBase : Disposable
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
}
+ /// <since_tizen> 3 </since_tizen>
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
Interop.Any.DeleteAnyAnyContainerBase(swigCPtr);
}
+ /// <since_tizen> 3 </since_tizen>
public AnyContainerBase(SWIGTYPE_p_std__type_info type, SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc, SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc) : this(Interop.Any.NewAnyAnyContainerBase(SWIGTYPE_p_std__type_info.getCPtr(type), SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase.getCPtr(cloneFunc), SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void.getCPtr(deleteFunc)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <since_tizen> 3 </since_tizen>
public new SWIGTYPE_p_std__type_info GetType()
{
SWIGTYPE_p_std__type_info ret = new SWIGTYPE_p_std__type_info(Interop.Any.AnyContainerBaseGetType(SwigCPtr));
return ret;
}
+ /// <since_tizen> 3 </since_tizen>
public SWIGTYPE_p_std__type_info mType
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase mCloneFunc
{
set
}
}
+ /// <since_tizen> 3 </since_tizen>
public SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void mDeleteFunc
{
set
Interop.Application.DeleteApplication(swigCPtr);
}
+ /// <since_tizen> 4 </since_tizen>
public enum BatteryStatus
{
Normal,
PowerOff
};
+ /// <since_tizen> 4 </since_tizen>
public enum MemoryStatus
{
Normal,
CriticallyLow
};
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);
private DaliEventHandler<object, NUIApplicationInitEventArgs> _applicationInitEventHandler;
private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;
private ApplicationSignal initSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);
private DaliEventHandler<object, NUIApplicationTerminatingEventArgs> _applicationTerminateEventHandler;
private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;
private ApplicationSignal terminateSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);
private DaliEventHandler<object, NUIApplicationPausedEventArgs> _applicationPauseEventHandler;
private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;
private ApplicationSignal pauseSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);
private DaliEventHandler<object, NUIApplicationResumedEventArgs> _applicationResumeEventHandler;
private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;
private ApplicationSignal resumeSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);
private DaliEventHandler<object, NUIApplicationResetEventArgs> _applicationResetEventHandler;
private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;
private ApplicationSignal resetSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);
private DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;
private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;
private ApplicationSignal languageChangedSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);
private DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;
private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;
private ApplicationSignal regionChangedSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationBatteryLowEventCallbackDelegate(BatteryStatus status);
private DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;
private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;
private LowBatterySignalType batteryLowSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationMemoryLowEventCallbackDelegate(MemoryStatus status);
private DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;
private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;
private LowMemorySignalType memoryLowSignal;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);
private DaliEventHandler<object, NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;
private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;
{
add
{
- // Restricted to only one listener
- if (_applicationInitEventHandler == null)
+ lock (this)
{
- _applicationInitEventHandler += value;
- _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);
- initSignal = this.InitSignal();
- initSignal?.Connect(_applicationInitEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationInitEventHandler == null)
+ {
+ _applicationInitEventHandler += value;
+ _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);
+ initSignal = this.InitSignal();
+ initSignal?.Connect(_applicationInitEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationInitEventHandler != null)
+ lock (this)
{
- initSignal?.Disconnect(_applicationInitEventCallbackDelegate);
- initSignal?.Dispose();
- initSignal = null;
+ if (_applicationInitEventHandler != null)
+ {
+ initSignal?.Disconnect(_applicationInitEventCallbackDelegate);
+ initSignal?.Dispose();
+ initSignal = null;
+ }
+
+ _applicationInitEventHandler -= value;
}
-
- _applicationInitEventHandler -= value;
}
}
{
add
{
- // Restricted to only one listener
- if (_applicationTerminateEventHandler == null)
+ lock (this)
{
- _applicationTerminateEventHandler += value;
-
- _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);
- terminateSignal = this.TerminateSignal();
- terminateSignal?.Connect(_applicationTerminateEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationTerminateEventHandler == null)
+ {
+ _applicationTerminateEventHandler += value;
+
+ _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);
+ terminateSignal = this.TerminateSignal();
+ terminateSignal?.Connect(_applicationTerminateEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationTerminateEventHandler != null)
+ lock (this)
{
- terminateSignal?.Disconnect(_applicationTerminateEventCallbackDelegate);
- terminateSignal?.Dispose();
- terminateSignal = null;
+ if (_applicationTerminateEventHandler != null)
+ {
+ terminateSignal?.Disconnect(_applicationTerminateEventCallbackDelegate);
+ terminateSignal?.Dispose();
+ terminateSignal = null;
+ }
+
+ _applicationTerminateEventHandler -= value;
}
-
- _applicationTerminateEventHandler -= value;
}
}
{
add
{
- // Restricted to only one listener
- if (_applicationPauseEventHandler == null)
+ lock (this)
{
- _applicationPauseEventHandler += value;
-
- _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);
- pauseSignal = this.PauseSignal();
- pauseSignal?.Connect(_applicationPauseEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationPauseEventHandler == null)
+ {
+ _applicationPauseEventHandler += value;
+
+ _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);
+ pauseSignal = this.PauseSignal();
+ pauseSignal?.Connect(_applicationPauseEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationPauseEventHandler != null)
+ lock (this)
{
- pauseSignal?.Disconnect(_applicationPauseEventCallbackDelegate);
- pauseSignal?.Dispose();
- pauseSignal = null;
+ if (_applicationPauseEventHandler != null)
+ {
+ pauseSignal?.Disconnect(_applicationPauseEventCallbackDelegate);
+ pauseSignal?.Dispose();
+ pauseSignal = null;
+ }
+
+ _applicationPauseEventHandler -= value;
}
-
- _applicationPauseEventHandler -= value;
}
}
{
add
{
- // Restricted to only one listener
- if (_applicationResumeEventHandler == null)
+ lock (this)
{
- _applicationResumeEventHandler += value;
-
- _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);
- resumeSignal = this.ResumeSignal();
- resumeSignal?.Connect(_applicationResumeEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationResumeEventHandler == null)
+ {
+ _applicationResumeEventHandler += value;
+
+ _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);
+ resumeSignal = this.ResumeSignal();
+ resumeSignal?.Connect(_applicationResumeEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationResumeEventHandler != null)
+ lock (this)
{
- resumeSignal?.Disconnect(_applicationResumeEventCallbackDelegate);
- resumeSignal?.Dispose();
- resumeSignal = null;
+ if (_applicationResumeEventHandler != null)
+ {
+ resumeSignal?.Disconnect(_applicationResumeEventCallbackDelegate);
+ resumeSignal?.Dispose();
+ resumeSignal = null;
+ }
+
+ _applicationResumeEventHandler -= value;
}
-
- _applicationResumeEventHandler -= value;
}
}
{
add
{
- // Restricted to only one listener
- if (_applicationResetEventHandler == null)
+ lock (this)
{
- _applicationResetEventHandler += value;
-
- _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);
- resetSignal = this.ResetSignal();
- resetSignal?.Connect(_applicationResetEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationResetEventHandler == null)
+ {
+ _applicationResetEventHandler += value;
+
+ _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);
+ resetSignal = this.ResetSignal();
+ resetSignal?.Connect(_applicationResetEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationResetEventHandler != null)
+ lock (this)
{
- resetSignal?.Disconnect(_applicationResetEventCallbackDelegate);
- resetSignal?.Dispose();
- resetSignal = null;
+ if (_applicationResetEventHandler != null)
+ {
+ resetSignal?.Disconnect(_applicationResetEventCallbackDelegate);
+ resetSignal?.Dispose();
+ resetSignal = null;
+ }
+
+ _applicationResetEventHandler -= value;
}
-
- _applicationResetEventHandler -= value;
}
}
{
add
{
- // Restricted to only one listener
- if (_applicationLanguageChangedEventHandler == null)
+ lock (this)
{
- _applicationLanguageChangedEventHandler += value;
-
- _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);
- languageChangedSignal = this.LanguageChangedSignal();
- languageChangedSignal?.Connect(_applicationLanguageChangedEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationLanguageChangedEventHandler == null)
+ {
+ _applicationLanguageChangedEventHandler += value;
+
+ _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);
+ languageChangedSignal = this.LanguageChangedSignal();
+ languageChangedSignal?.Connect(_applicationLanguageChangedEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationLanguageChangedEventHandler != null)
+ lock (this)
{
- languageChangedSignal?.Disconnect(_applicationLanguageChangedEventCallbackDelegate);
- languageChangedSignal?.Dispose();
- languageChangedSignal = null;
+ if (_applicationLanguageChangedEventHandler != null)
+ {
+ languageChangedSignal?.Disconnect(_applicationLanguageChangedEventCallbackDelegate);
+ languageChangedSignal?.Dispose();
+ languageChangedSignal = null;
+ }
+
+ _applicationLanguageChangedEventHandler -= value;
}
-
- _applicationLanguageChangedEventHandler -= value;
}
}
{
add
{
- // Restricted to only one listener
- if (_applicationRegionChangedEventHandler == null)
+ lock (this)
{
- _applicationRegionChangedEventHandler += value;
-
- _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);
- regionChangedSignal = this.RegionChangedSignal();
- regionChangedSignal?.Connect(_applicationRegionChangedEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationRegionChangedEventHandler == null)
+ {
+ _applicationRegionChangedEventHandler += value;
+
+ _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);
+ regionChangedSignal = this.RegionChangedSignal();
+ regionChangedSignal?.Connect(_applicationRegionChangedEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationRegionChangedEventHandler != null)
+ lock (this)
{
- regionChangedSignal?.Disconnect(_applicationRegionChangedEventCallbackDelegate);
- regionChangedSignal?.Dispose();
- regionChangedSignal = null;
+ if (_applicationRegionChangedEventHandler != null)
+ {
+ regionChangedSignal?.Disconnect(_applicationRegionChangedEventCallbackDelegate);
+ regionChangedSignal?.Dispose();
+ regionChangedSignal = null;
+ }
+
+ _applicationRegionChangedEventHandler -= value;
}
-
- _applicationRegionChangedEventHandler -= value;
}
}
{
add
{
- // Restricted to only one listener
- if (_applicationBatteryLowEventHandler == null)
+ lock (this)
{
- _applicationBatteryLowEventHandler += value;
-
- _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);
- batteryLowSignal = this.BatteryLowSignal();
- batteryLowSignal?.Connect(_applicationBatteryLowEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationBatteryLowEventHandler == null)
+ {
+ _applicationBatteryLowEventHandler += value;
+
+ _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);
+ batteryLowSignal = this.BatteryLowSignal();
+ batteryLowSignal?.Connect(_applicationBatteryLowEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationBatteryLowEventHandler != null)
+ lock (this)
{
- batteryLowSignal?.Disconnect(_applicationBatteryLowEventCallbackDelegate);
- batteryLowSignal?.Dispose();
- batteryLowSignal = null;
+ if (_applicationBatteryLowEventHandler != null)
+ {
+ batteryLowSignal?.Disconnect(_applicationBatteryLowEventCallbackDelegate);
+ batteryLowSignal?.Dispose();
+ batteryLowSignal = null;
+ }
+
+ _applicationBatteryLowEventHandler -= value;
}
-
- _applicationBatteryLowEventHandler -= value;
}
}
// Callback for Application BatteryLowSignal
private void OnNUIApplicationBatteryLow(BatteryStatus status)
{
- NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();
+ lock (this)
+ {
+ NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();
- // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data
- e.BatteryStatus = status;
- _applicationBatteryLowEventHandler?.Invoke(this, e);
+ // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data
+ e.BatteryStatus = status;
+ _applicationBatteryLowEventHandler?.Invoke(this, e);
+ }
}
/**
{
add
{
- // Restricted to only one listener
- if (_applicationMemoryLowEventHandler == null)
+ lock (this)
{
- _applicationMemoryLowEventHandler += value;
-
- _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);
- memoryLowSignal = this.MemoryLowSignal();
- memoryLowSignal?.Connect(_applicationMemoryLowEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationMemoryLowEventHandler == null)
+ {
+ _applicationMemoryLowEventHandler += value;
+
+ _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);
+ memoryLowSignal = this.MemoryLowSignal();
+ memoryLowSignal?.Connect(_applicationMemoryLowEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationMemoryLowEventHandler != null)
+ lock (this)
{
- memoryLowSignal?.Disconnect(_applicationMemoryLowEventCallbackDelegate);
- memoryLowSignal?.Dispose();
- memoryLowSignal = null;
+ if (_applicationMemoryLowEventHandler != null)
+ {
+ memoryLowSignal?.Disconnect(_applicationMemoryLowEventCallbackDelegate);
+ memoryLowSignal?.Dispose();
+ memoryLowSignal = null;
+ }
+
+ _applicationMemoryLowEventHandler -= value;
}
-
- _applicationMemoryLowEventHandler -= value;
}
}
// Callback for Application MemoryLowSignal
private void OnNUIApplicationMemoryLow(MemoryStatus status)
{
- NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();
+ lock (this)
+ {
+ NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();
- // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data
- e.MemoryStatus = status;
- _applicationMemoryLowEventHandler?.Invoke(this, e);
+ // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data
+ e.MemoryStatus = status;
+ _applicationMemoryLowEventHandler?.Invoke(this, e);
+ }
}
/**
{
add
{
- // Restricted to only one listener
- if (_applicationAppControlEventHandler == null)
+ lock (this)
{
- _applicationAppControlEventHandler += value;
-
- _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);
- appControlSignal = this.AppControlSignal();
- appControlSignal?.Connect(_applicationAppControlEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationAppControlEventHandler == null)
+ {
+ _applicationAppControlEventHandler += value;
+
+ _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);
+ appControlSignal = this.AppControlSignal();
+ appControlSignal?.Connect(_applicationAppControlEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationAppControlEventHandler != null)
+ lock (this)
{
- appControlSignal?.Disconnect(_applicationAppControlEventCallbackDelegate);
- appControlSignal?.Dispose();
- appControlSignal = null;
+ if (_applicationAppControlEventHandler != null)
+ {
+ appControlSignal?.Disconnect(_applicationAppControlEventCallbackDelegate);
+ appControlSignal?.Dispose();
+ appControlSignal = null;
+ }
+
+ _applicationAppControlEventHandler -= value;
}
-
- _applicationAppControlEventHandler -= value;
}
}
return ret;
}
+ /// <since_tizen> 3 </since_tizen>
public enum WindowMode
{
Opaque = 0,
Interop.Builder.DeleteBuilder(swigCPtr);
}
+ /// <since_tizen> 3 </since_tizen>
public class QuitEventArgs : EventArgs
{
}
{
add
{
- // Restricted to only one listener
- if (_builderQuitEventHandler == null)
+ lock (this)
{
- _builderQuitEventHandler += value;
-
- _builderQuitEventCallbackDelegate = new QuitEventCallbackDelegate(OnQuit);
- quitSignal = this.QuitSignal();
- quitSignal?.Connect(_builderQuitEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_builderQuitEventHandler == null)
+ {
+ _builderQuitEventHandler += value;
+
+ _builderQuitEventCallbackDelegate = new QuitEventCallbackDelegate(OnQuit);
+ quitSignal = this.QuitSignal();
+ quitSignal?.Connect(_builderQuitEventCallbackDelegate);
+ }
}
}
remove
{
- if (_builderQuitEventHandler != null)
+ lock (this)
{
- quitSignal?.Disconnect(_builderQuitEventCallbackDelegate);
- }
+ if (_builderQuitEventHandler != null)
+ {
+ quitSignal?.Disconnect(_builderQuitEventCallbackDelegate);
+ }
- _builderQuitEventHandler -= value;
+ _builderQuitEventHandler -= value;
+ }
}
}
return ret;
}
+ /// <since_tizen> 3 </since_tizen>
public enum UIFormat
{
JSON
{
add
{
- // Restricted to only one listener
- if (_applicationCreateNativeEventHandler == null)
+ lock (this)
{
- _applicationCreateNativeEventHandler += value;
-
- _applicationCreateNativeEventCallbackDelegate = new NUIComponentApplicationCreatenativeEventCallbackDelegate(OnApplicationCreateNative);
- Connect(_applicationCreateNativeEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_applicationCreateNativeEventHandler == null)
+ {
+ _applicationCreateNativeEventHandler += value;
+
+ _applicationCreateNativeEventCallbackDelegate = new NUIComponentApplicationCreatenativeEventCallbackDelegate(OnApplicationCreateNative);
+ Connect(_applicationCreateNativeEventCallbackDelegate);
+ }
}
}
remove
{
- if (_applicationCreateNativeEventHandler != null)
+ lock (this)
{
- Disconnect(_applicationCreateNativeEventCallbackDelegate);
- }
+ if (_applicationCreateNativeEventHandler != null)
+ {
+ Disconnect(_applicationCreateNativeEventCallbackDelegate);
+ }
- _applicationCreateNativeEventHandler -= value;
+ _applicationCreateNativeEventHandler -= value;
+ }
}
}
/// <summary>
/// Dispose
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
Interop.ConnectionTracker.DeleteConnectionTrackerInterface(swigCPtr);
/// </summary>
/// <param name="slotObserver">The slot observer i.e. a signal. Ownership is not passed</param>
/// <param name="callback">The call back. Ownership is not passed</param>
+ /// <since_tizen> 4 </since_tizen>
public virtual void SignalConnected(SlotObserver slotObserver, SWIGTYPE_p_CallbackBase callback)
{
Interop.ConnectionTracker.ConnectionTrackerInterfaceSignalConnected(SwigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_CallbackBase.getCPtr(callback));
/// The properties used for a Tooltip.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1716: Identifiers should not match keywords")]
public struct Property
{
/// <summary>
/// [UnmanagedFunctionPointer(CallingConvention.StdCall)]
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate R DaliEventHandlerWithReturnType<T, U, R>(T source, U e);
/// <summary>
/// [UnmanagedFunctionPointer(CallingConvention.StdCall)]
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void EventCallbackDelegateType0();
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void EventCallbackDelegateType1(IntPtr arg1);
/// <summary>
/// this should be removed with EventHandler from .NET
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void DaliEventHandler<T, U>(T source, U e);
/// <summary>
/// [UnmanagedFunctionPointer(CallingConvention.StdCall)]
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate R EventHandlerWithReturnType<T, U, R>(T source, U e);
/// <summary>
{
internal class EventThreadCallback : Disposable
{
+ /// <since_tizen> 3 </since_tizen>
public delegate void CallbackDelegate();
internal EventThreadCallback(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_ImageView_IMAGE_VISUAL_ACTION_STOP_get")]
public static extern int ImageVisualActionStopGet();
-
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.New(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_New__SWIG_0")]
- public static extern global::System.IntPtr ImageView_New__SWIG_0();
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.New(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_New__SWIG_2")]
- public static extern global::System.IntPtr ImageView_New__SWIG_2(string jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.New(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_New__SWIG_3")]
- public static extern global::System.IntPtr ImageView_New__SWIG_3(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.Upcast(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_SWIGUpcast")]
- public static extern global::System.IntPtr ImageView_SWIGUpcast(global::System.IntPtr jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.SetImage(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_SetImage__SWIG_1")]
- public static extern void ImageView_SetImage__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.SetImage(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_SetImage__SWIG_2")]
- public static extern void ImageView_SetImage__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.DeleteImageView(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_ImageView")]
- public static extern void delete_ImageView(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.ImageGet(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_Property_IMAGE_get")]
- public static extern int ImageView_Property_IMAGE_get();
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.PreMultipliedAlphaGet(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_Property_PRE_MULTIPLIED_ALPHA_get")]
- public static extern int ImageView_Property_PRE_MULTIPLIED_ALPHA_get();
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.PixelAreaGet(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ImageView_Property_PIXEL_AREA_get")]
- public static extern int ImageView_Property_PIXEL_AREA_get();
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.ImageVisualActionReloadGet(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_ImageView_IMAGE_VISUAL_ACTION_RELOAD_get")]
- public static extern int ImageView_IMAGE_VISUAL_ACTION_RELOAD_get();
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.ImageVisualActionPlayGet(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_ImageView_IMAGE_VISUAL_ACTION_PLAY_get")]
- public static extern int ImageView_IMAGE_VISUAL_ACTION_PLAY_get();
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.ImageVisualActionPauseGet(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_ImageView_IMAGE_VISUAL_ACTION_PAUSE_get")]
- public static extern int ImageView_IMAGE_VISUAL_ACTION_PAUSE_get();
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageView.ImageVisualActionStopGet(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_ImageView_IMAGE_VISUAL_ACTION_STOP_get")]
- public static extern int ImageView_IMAGE_VISUAL_ACTION_STOP_get();
}
}
}
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ResourceReadySignal")]
public static extern global::System.IntPtr ResourceReadySignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use View.GetVisualResourceStatus(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_View_GetVisualResourceStatus")]
- public static extern int View_GetVisualResourceStatus(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
}
}
}
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetView_SWIGUpcast")]
public static extern global::System.IntPtr Upcast(global::System.IntPtr jarg1);
-
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetView.PauseWidget(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetView_PauseWidget")]
- public static extern bool WidgetView_PauseWidget(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetView.ResumeWidget(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetView_ResumeWidget")]
- public static extern bool WidgetView_ResumeWidget(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetView.TerminateWidget(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetView_TerminateWidget")]
- public static extern bool WidgetView_TerminateWidget(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetView.DeleteWidgetView(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_WidgetView")]
- public static extern void delete_WidgetView(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetView.Upcast(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetView_SWIGUpcast")]
- public static extern global::System.IntPtr WidgetView_SWIGUpcast(global::System.IntPtr jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetView.WidgetAddedSignal(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetView_WidgetAddedSignal")]
- public static extern global::System.IntPtr WidgetView_WidgetAddedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetView.WidgetDeletedSignal(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetView_WidgetDeletedSignal")]
- public static extern global::System.IntPtr WidgetView_WidgetDeletedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
}
}
}
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetViewManager_SWIGUpcast")]
public static extern global::System.IntPtr Upcast(global::System.IntPtr jarg1);
-
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetViewManager.New(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetViewManager_New")]
- public static extern global::System.IntPtr WidgetViewManager_New(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetViewManager.AddWidget(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetViewManager_AddWidget")]
- public static extern global::System.IntPtr WidgetViewManager_AddWidget(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5, float jarg6);
}
}
}
*
*/
-using System;
-using System.ComponentModel;
-
namespace Tizen.NUI
{
[global::System.ThreadStatic]
private static global::System.Exception pendingException = null;
private static int numExceptionsPending = 0;
- private static readonly object exceptionPendingLock = new object();
/// <since_tizen> 3 </since_tizen>
public static bool Pending
if (pendingException != null)
throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
pendingException = e;
- lock (exceptionPendingLock)
+ lock (typeof(NDalicPINVOKE))
{
numExceptionsPending++;
}
{
e = pendingException;
pendingException = null;
- lock (exceptionPendingLock)
+ lock (typeof(NDalicPINVOKE))
{
numExceptionsPending--;
}
{
SWIGRegisterStringCallbackNDalic(stringDelegate);
}
-
- [Obsolete("Please do not use! Deprecated in API9, will be removed in API11! Please delete this if currently used!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static void RegistCallback()
- {
- //do nothing!
- }
}
static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
static NDalicPINVOKE()
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Application_LowMemorySignal")]
public static extern global::System.IntPtr ApplicationLowMemorySignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use NDalicPINVOKE.DeleteBaseHandle(...) instead!")]
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_BaseHandle")]
- public static extern void delete_BaseHandle(global::System.Runtime.InteropServices.HandleRef jarg1);
}
}
/// Queries whether there are any connected slots.
/// </summary>
/// <returns>True if there are any slots connected to the signal</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool Empty()
{
bool ret = Interop.KeyboardEventSignalType.Empty(SwigCPtr);
/// Queries the number of slots.
/// </summary>
/// <returns>The number of slots connected to this signal</returns>
+ /// <since_tizen> 3 </since_tizen>
public uint GetConnectionCount()
{
uint ret = Interop.KeyboardEventSignalType.GetConnectionCount(SwigCPtr);
/// Connects a function.
/// </summary>
/// <param name="func">The function to connect</param>
+ /// <since_tizen> 3 </since_tizen>
public void Connect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
/// Disconnects a function.
/// </summary>
/// <param name="func">The function to disconnect</param>
+ /// <since_tizen> 3 </since_tizen>
public void Disconnect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
/// <param name="arg1">The first value to pass to callbacks</param>
/// <param name="arg2">The second value to pass to callbacks</param>
/// <returns>The value returned by the last callback, or a default constructed value if no callbacks are connected</returns>
+ /// <since_tizen> 5 </since_tizen>
public InputMethodContext.CallbackData Emit(InputMethodContext arg1, InputMethodContext.EventData arg2)
{
InputMethodContext.CallbackData ret = new InputMethodContext.CallbackData(Interop.KeyboardEventSignalType.Emit(SwigCPtr, InputMethodContext.getCPtr(arg1), InputMethodContext.EventData.getCPtr(arg2)), true);
/// <summary>
/// The contructor.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public KeyboardEventSignalType() : this(Interop.KeyboardEventSignalType.NewKeyboardEventSignalType(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Queries whether there are any connected slots.
/// </summary>
/// <returns>True if there are any slots connected to the signal</returns>
+ /// <since_tizen> 4 </since_tizen>
public bool Empty()
{
bool ret = Interop.KeyboardResizedSignalType.Empty(SwigCPtr);
/// Queries the number of slots.
/// </summary>
/// <returns>The number of slots connected to this signal</returns>
+ /// <since_tizen> 4 </since_tizen>
public uint GetConnectionCount()
{
uint ret = Interop.KeyboardResizedSignalType.GetConnectionCount(SwigCPtr);
/// Connects a function.
/// </summary>
/// <param name="func">The function to connect</param>
+ /// <since_tizen> 4 </since_tizen>
public void Connect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
/// Disconnects a function.
/// </summary>
/// <param name="func">The function to disconnect</param>
+ /// <since_tizen> 4 </since_tizen>
public void Disconnect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
/// Connects a member function.
/// </summary>
/// <param name="arg">The member function to connect</param>
+ /// <since_tizen> 4 </since_tizen>
public void Emit(int arg)
{
Interop.KeyboardResizedSignalType.Emit(SwigCPtr, arg);
/// <summary>
/// The contructor.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public KeyboardResizedSignalType() : this(Interop.KeyboardResizedSignalType.NewKeyboardResizedSignalType(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Queries whether there are any connected slots.
/// </summary>
/// <returns>True if there are any slots connected to the signal</returns>
+ /// <since_tizen> 4 </since_tizen>
public bool Empty()
{
bool ret = Interop.LanguageChangedSignalType.Empty(SwigCPtr);
/// Queries the number of slots.
/// </summary>
/// <returns>The number of slots connected to this signal</returns>
+ /// <since_tizen> 4 </since_tizen>
public uint GetConnectionCount()
{
uint ret = Interop.LanguageChangedSignalType.GetConnectionCount(SwigCPtr);
/// Connects a member function.
/// </summary>
/// <param name="func">The member function to connect</param>
+ /// <since_tizen> 4 </since_tizen>
public void Connect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
/// Disconnects a function.
/// </summary>
/// <param name="func">The function to disconnect</param>
+ /// <since_tizen> 4 </since_tizen>
public void Disconnect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
/// <summary>
/// Emits the signal.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public void Emit(int arg)
{
Interop.LanguageChangedSignalType.Emit(SwigCPtr, arg);
/// <summary>
/// The contructor.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public LanguageChangedSignalType() : this(Interop.LanguageChangedSignalType.NewLanguageChangedSignalType(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <since_tizen> 3 </since_tizen>
public enum IluminationTypeEnum
{
DIFFUSE,
{
get
{
- string retVal = "";
- PropertyValue geometry = GetProperty(Model3dView.Property.GeometryUrl);
- geometry?.Get(out retVal);
- geometry?.Dispose();
- return retVal;
+ string temp;
+ GetProperty(Model3dView.Property.GeometryUrl).Get(out temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(Model3dView.Property.GeometryUrl, setVal);
- setVal?.Dispose();
+ SetProperty(Model3dView.Property.GeometryUrl, new Tizen.NUI.PropertyValue(value));
}
}
public string MaterialUrl
{
get
{
- string retVal = "" ;
- PropertyValue material = GetProperty(Model3dView.Property.MaterialUrl);
- material?.Get(out retVal);
- material?.Dispose();
- return retVal;
+ string temp;
+ GetProperty(Model3dView.Property.MaterialUrl).Get(out temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(Model3dView.Property.MaterialUrl, setVal);
- setVal?.Dispose();
+ SetProperty(Model3dView.Property.MaterialUrl, new Tizen.NUI.PropertyValue(value));
}
}
public string ImagesUrl
{
get
{
- string retVal = "";
- PropertyValue images = GetProperty(Model3dView.Property.ImagesUrl);
- images?.Get(out retVal);
- images?.Dispose();
- return retVal;
+ string temp;
+ GetProperty(Model3dView.Property.ImagesUrl).Get(out temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(Model3dView.Property.ImagesUrl, setVal);
- setVal?.Dispose();
+ SetProperty(Model3dView.Property.ImagesUrl, new Tizen.NUI.PropertyValue(value));
}
}
public int IlluminationType
{
get
{
- int retVal = 0;
- PropertyValue illumination = GetProperty(Model3dView.Property.IlluminationType);
- illumination?.Get(out retVal);
- illumination?.Dispose();
- return retVal;
+ int temp = 0;
+ GetProperty(Model3dView.Property.IlluminationType).Get(out temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(Model3dView.Property.IlluminationType, setVal);
- setVal?.Dispose();
+ SetProperty(Model3dView.Property.IlluminationType, new Tizen.NUI.PropertyValue(value));
}
}
public string Texture0Url
{
get
{
- string retVal = "";
- PropertyValue texture0 = GetProperty(Model3dView.Property.Texture0Url);
- texture0?.Get(out retVal);
- texture0?.Dispose();
- return retVal;
+ string temp;
+ GetProperty(Model3dView.Property.Texture0Url).Get(out temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(Model3dView.Property.Texture0Url, setVal);
- setVal?.Dispose();
+ SetProperty(Model3dView.Property.Texture0Url, new Tizen.NUI.PropertyValue(value));
}
}
public string Texture1Url
{
get
{
- string retVal = "";
- PropertyValue texture1 = GetProperty(Model3dView.Property.Texture1Url);
- texture1?.Get(out retVal);
- texture1?.Dispose();
- return retVal;
+ string temp;
+ GetProperty(Model3dView.Property.Texture1Url).Get(out temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(Model3dView.Property.Texture1Url, setVal);
- setVal?.Dispose();
+ SetProperty(Model3dView.Property.Texture1Url, new Tizen.NUI.PropertyValue(value));
}
}
public string Texture2Url
{
get
{
- string retVal = "";
- PropertyValue texture2 = GetProperty(Model3dView.Property.Texture2Url);
- texture2?.Get(out retVal);
- texture2?.Dispose();
- return retVal;
+ string temp;
+ GetProperty(Model3dView.Property.Texture2Url).Get(out temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(Model3dView.Property.Texture2Url, setVal);
- setVal?.Dispose();
+ SetProperty(Model3dView.Property.Texture2Url, new Tizen.NUI.PropertyValue(value));
}
}
public Vector3 LightPosition
{
get
{
- Vector3 retVal = new Vector3(0.0f, 0.0f, 0.0f);
- PropertyValue lightPos = GetProperty(Model3dView.Property.LightPosition);
- lightPos?.Get(retVal);
- lightPos?.Dispose();
- return retVal;
+ Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
+ GetProperty(Model3dView.Property.LightPosition).Get(temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(Model3dView.Property.LightPosition, setVal);
- setVal?.Dispose();
+ SetProperty(Model3dView.Property.LightPosition, new Tizen.NUI.PropertyValue(value));
}
}
}
*
*/
-using System;
using Tizen.NUI.BaseComponents;
namespace Tizen.NUI
internal static readonly int TooltipTailVisibility = Interop.NDalicToolTip.TooltipTailVisibilityGet();
internal static readonly int TooltipTailAboveVisual = Interop.NDalicToolTip.TooltipTailAboveVisualGet();
internal static readonly int TooltipTailBelowVisual = Interop.NDalicToolTip.TooltipTailBelowVisualGet();
-
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageVisualUrl instead!")]
- internal static readonly int IMAGE_VISUAL_URL = Interop.NDalicImageVisual.ImageVisualUrlGet();
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageVisualAlphaMaskUrl instead!")]
- internal static readonly int IMAGE_VISUAL_ALPHA_MASK_URL = Interop.NDalicImageVisual.ImageVisualAlphaMaskUrlGet();
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ImageVisualAuxiliaryImageUrl instead!")]
- internal static readonly int IMAGE_VISUAL_AUXILIARY_IMAGE_URL = Interop.NDalicImageVisual.ImageVisualAuxiliaryImageUrlGet();
}
}
/// Initializes the NUI Window class.
/// </summary>
/// <param name="win">The window object of component.</param>
+ /// <since_tizen> 6 </since_tizen>
internal NUIWindowInfo(Window win)
{
_win = win;
/// Dispose the window resources
/// </summary>
/// <returns></returns>
+ /// <since_tizen> 6 </since_tizen>
public void Dispose()
{
Dispose(true);
Interop.ObjectRegistry.DeleteObjectRegistry(swigCPtr);
}
+ /// <since_tizen> 3 </since_tizen>
public class ObjectCreatedEventArgs : EventArgs
{
private BaseHandle _baseHandle;
+ /// <since_tizen> 3 </since_tizen>
public BaseHandle BaseHandle
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public class ObjectDestroyedEventArgs : EventArgs
{
private RefObject _refObject;
+ /// <since_tizen> 3 </since_tizen>
public RefObject RefObject
{
get
{
add
{
- // Restricted to only one listener
- if (_objectRegistryObjectCreatedEventHandler == null)
+ lock (this)
{
- _objectRegistryObjectCreatedEventHandler += value;
-
- _objectRegistryObjectCreatedEventCallbackDelegate = new ObjectCreatedEventCallbackDelegate(OnObjectCreated);
- this.ObjectCreatedSignal().Connect(_objectRegistryObjectCreatedEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_objectRegistryObjectCreatedEventHandler == null)
+ {
+ _objectRegistryObjectCreatedEventHandler += value;
+
+ _objectRegistryObjectCreatedEventCallbackDelegate = new ObjectCreatedEventCallbackDelegate(OnObjectCreated);
+ this.ObjectCreatedSignal().Connect(_objectRegistryObjectCreatedEventCallbackDelegate);
+ }
}
}
remove
{
- if (_objectRegistryObjectCreatedEventHandler != null)
+ lock (this)
{
- this.ObjectCreatedSignal().Disconnect(_objectRegistryObjectCreatedEventCallbackDelegate);
- }
+ if (_objectRegistryObjectCreatedEventHandler != null)
+ {
+ this.ObjectCreatedSignal().Disconnect(_objectRegistryObjectCreatedEventCallbackDelegate);
+ }
- _objectRegistryObjectCreatedEventHandler -= value;
+ _objectRegistryObjectCreatedEventHandler -= value;
+ }
}
}
{
add
{
- // Restricted to only one listener
- if (_objectRegistryObjectDestroyedEventHandler == null)
+ lock (this)
{
- _objectRegistryObjectDestroyedEventHandler += value;
-
- _objectRegistryObjectDestroyedEventCallbackDelegate = new ObjectDestroyedEventCallbackDelegate(OnObjectDestroyed);
- this.ObjectDestroyedSignal().Connect(_objectRegistryObjectDestroyedEventCallbackDelegate);
+ // Restricted to only one listener
+ if (_objectRegistryObjectDestroyedEventHandler == null)
+ {
+ _objectRegistryObjectDestroyedEventHandler += value;
+
+ _objectRegistryObjectDestroyedEventCallbackDelegate = new ObjectDestroyedEventCallbackDelegate(OnObjectDestroyed);
+ this.ObjectDestroyedSignal().Connect(_objectRegistryObjectDestroyedEventCallbackDelegate);
+ }
}
}
remove
{
- if (_objectRegistryObjectDestroyedEventHandler != null)
+ lock (this)
{
- this.ObjectDestroyedSignal().Disconnect(_objectRegistryObjectDestroyedEventCallbackDelegate);
- }
+ if (_objectRegistryObjectDestroyedEventHandler != null)
+ {
+ this.ObjectDestroyedSignal().Disconnect(_objectRegistryObjectDestroyedEventCallbackDelegate);
+ }
- _objectRegistryObjectDestroyedEventHandler -= value;
+ _objectRegistryObjectDestroyedEventHandler -= value;
+ }
}
}
Interop.PageTurnView.DeletePageTurnView(swigCPtr);
}
+ /// <since_tizen> 3 </since_tizen>
public class PagePanStartedEventArgs : EventArgs
{
private PageTurnView _pageTurnView;
+ /// <since_tizen> 3 </since_tizen>
public PageTurnView PageTurnView
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public class PagePanFinishedEventArgs : EventArgs
{
private PageTurnView _pageTurnView;
+ /// <since_tizen> 3 </since_tizen>
public PageTurnView PageTurnView
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public class PageTurnStartedEventArgs : EventArgs
{
private PageTurnView _pageTurnView;
private uint _pageIndex;
private bool _isTurningForward;
+ /// <since_tizen> 3 </since_tizen>
public PageTurnView PageTurnView
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public uint PageIndex
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public bool IsTurningForward
{
get
}
+ /// <since_tizen> 3 </since_tizen>
public class PageTurnFinishedEventArgs : EventArgs
{
private PageTurnView _pageTurnView;
private uint _pageIndex;
private bool _isTurningForward;
+ /// <since_tizen> 3 </since_tizen>
public PageTurnView PageTurnView
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public uint PageIndex
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public bool IsTurningForward
{
get
{
add
{
- // Restricted to only one listener
- if (_pageTurnViewPagePanStartedEventHandler == null)
+ lock (this)
{
- _pageTurnViewPagePanStartedEventHandler += value;
-
- _pageTurnViewPagePanStartedCallbackDelegate = new PagePanStartedCallbackDelegate(OnPagePanStarted);
- this.PagePanStartedSignal().Connect(_pageTurnViewPagePanStartedCallbackDelegate);
+ // Restricted to only one listener
+ if (_pageTurnViewPagePanStartedEventHandler == null)
+ {
+ _pageTurnViewPagePanStartedEventHandler += value;
+
+ _pageTurnViewPagePanStartedCallbackDelegate = new PagePanStartedCallbackDelegate(OnPagePanStarted);
+ this.PagePanStartedSignal().Connect(_pageTurnViewPagePanStartedCallbackDelegate);
+ }
}
}
remove
{
- if (_pageTurnViewPagePanStartedEventHandler != null)
+ lock (this)
{
- this.PagePanStartedSignal().Disconnect(_pageTurnViewPagePanStartedCallbackDelegate);
- }
+ if (_pageTurnViewPagePanStartedEventHandler != null)
+ {
+ this.PagePanStartedSignal().Disconnect(_pageTurnViewPagePanStartedCallbackDelegate);
+ }
- _pageTurnViewPagePanStartedEventHandler -= value;
+ _pageTurnViewPagePanStartedEventHandler -= value;
+ }
}
}
{
add
{
- // Restricted to only one listener
- if (_pageTurnViewPagePanFinishedEventHandler == null)
+ lock (this)
{
- _pageTurnViewPagePanFinishedEventHandler += value;
-
- _pageTurnViewPagePanFinishedCallbackDelegate = new PagePanFinishedCallbackDelegate(OnPagePanFinished);
- this.PagePanFinishedSignal().Connect(_pageTurnViewPagePanFinishedCallbackDelegate);
+ // Restricted to only one listener
+ if (_pageTurnViewPagePanFinishedEventHandler == null)
+ {
+ _pageTurnViewPagePanFinishedEventHandler += value;
+
+ _pageTurnViewPagePanFinishedCallbackDelegate = new PagePanFinishedCallbackDelegate(OnPagePanFinished);
+ this.PagePanFinishedSignal().Connect(_pageTurnViewPagePanFinishedCallbackDelegate);
+ }
}
}
remove
{
- if (_pageTurnViewPagePanFinishedEventHandler != null)
+ lock (this)
{
- this.PagePanFinishedSignal().Disconnect(_pageTurnViewPagePanFinishedCallbackDelegate);
- }
+ if (_pageTurnViewPagePanFinishedEventHandler != null)
+ {
+ this.PagePanFinishedSignal().Disconnect(_pageTurnViewPagePanFinishedCallbackDelegate);
+ }
- _pageTurnViewPagePanFinishedEventHandler -= value;
+ _pageTurnViewPagePanFinishedEventHandler -= value;
+ }
}
}
{
add
{
- // Restricted to only one listener
- if (_pageTurnViewPageTurnStartedEventHandler == null)
+ lock (this)
{
- _pageTurnViewPageTurnStartedEventHandler += value;
-
- _pageTurnViewPageTurnStartedCallbackDelegate = new PageTurnStartedCallbackDelegate(OnPageTurnStarted);
- this.PageTurnStartedSignal().Connect(_pageTurnViewPageTurnStartedCallbackDelegate);
+ // Restricted to only one listener
+ if (_pageTurnViewPageTurnStartedEventHandler == null)
+ {
+ _pageTurnViewPageTurnStartedEventHandler += value;
+
+ _pageTurnViewPageTurnStartedCallbackDelegate = new PageTurnStartedCallbackDelegate(OnPageTurnStarted);
+ this.PageTurnStartedSignal().Connect(_pageTurnViewPageTurnStartedCallbackDelegate);
+ }
}
}
remove
{
- if (_pageTurnViewPageTurnStartedEventHandler != null)
+ lock (this)
{
- this.PageTurnStartedSignal().Disconnect(_pageTurnViewPageTurnStartedCallbackDelegate);
- }
+ if (_pageTurnViewPageTurnStartedEventHandler != null)
+ {
+ this.PageTurnStartedSignal().Disconnect(_pageTurnViewPageTurnStartedCallbackDelegate);
+ }
- _pageTurnViewPageTurnStartedEventHandler -= value;
+ _pageTurnViewPageTurnStartedEventHandler -= value;
+ }
}
}
{
add
{
- // Restricted to only one listener
- if (_pageTurnViewPageTurnFinishedEventHandler == null)
+ lock (this)
{
- _pageTurnViewPageTurnFinishedEventHandler += value;
-
- _pageTurnViewPageTurnFinishedCallbackDelegate = new PageTurnFinishedCallbackDelegate(OnPageTurnFinished);
- this.PageTurnFinishedSignal().Connect(_pageTurnViewPageTurnFinishedCallbackDelegate);
+ // Restricted to only one listener
+ if (_pageTurnViewPageTurnFinishedEventHandler == null)
+ {
+ _pageTurnViewPageTurnFinishedEventHandler += value;
+
+ _pageTurnViewPageTurnFinishedCallbackDelegate = new PageTurnFinishedCallbackDelegate(OnPageTurnFinished);
+ this.PageTurnFinishedSignal().Connect(_pageTurnViewPageTurnFinishedCallbackDelegate);
+ }
}
}
remove
{
- if (_pageTurnViewPageTurnFinishedEventHandler != null)
+ lock (this)
{
- this.PageTurnFinishedSignal().Disconnect(_pageTurnViewPageTurnFinishedCallbackDelegate);
- }
+ if (_pageTurnViewPageTurnFinishedEventHandler != null)
+ {
+ this.PageTurnFinishedSignal().Disconnect(_pageTurnViewPageTurnFinishedCallbackDelegate);
+ }
- _pageTurnViewPageTurnFinishedEventHandler -= value;
+ _pageTurnViewPageTurnFinishedEventHandler -= value;
+ }
}
}
}
+ /// <since_tizen> 3 </since_tizen>
public struct PropertyRange
{
+ /// <since_tizen> 3 </since_tizen>
public int GetNextFreePropertyIndex(ScriptableProperty.ScriptableType type)
{
if (type == ScriptableProperty.ScriptableType.Default)
}
}
+ /// <since_tizen> 3 </since_tizen>
public int startEventIndex; // start of the property range
+ /// <since_tizen> 3 </since_tizen>
public int lastUsedEventIndex; // last used of the property index
+ /// <since_tizen> 3 </since_tizen>
public int startAnimationIndex; // start of the property range
+ /// <since_tizen> 3 </since_tizen>
public int lastUsedAnimationIndex; // last used of the property index
};
}
{
get
{
- Vector2 retVal = new Vector2(0.0f, 0.0f);
- PropertyValue viewportPos = GetProperty(RenderTask.Property.ViewportPosition);
- viewportPos?.Get(retVal);
- viewportPos?.Dispose();
- return retVal;
+ Vector2 temp = new Vector2(0.0f, 0.0f);
+ GetProperty(RenderTask.Property.ViewportPosition).Get(temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(RenderTask.Property.ViewportPosition, setVal);
- setVal?.Dispose();
+ SetProperty(RenderTask.Property.ViewportPosition, new Tizen.NUI.PropertyValue(value));
}
}
public Vector2 ViewportSize
{
get
{
- Vector2 retVal = new Vector2(0.0f, 0.0f);
- PropertyValue viewportSize = GetProperty(RenderTask.Property.ViewportSize);
- viewportSize?.Get(retVal);
- viewportSize?.Dispose();
- return retVal;
+ Vector2 temp = new Vector2(0.0f, 0.0f);
+ GetProperty(RenderTask.Property.ViewportSize).Get(temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(RenderTask.Property.ViewportSize, setVal);
- setVal?.Dispose();
+ SetProperty(RenderTask.Property.ViewportSize, new Tizen.NUI.PropertyValue(value));
}
}
public Vector4 ClearColor
{
get
{
- Vector4 retVal = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
- PropertyValue clearColor = GetProperty(RenderTask.Property.ClearColor);
- clearColor?.Get(retVal);
- clearColor?.Dispose();
- return retVal;
+ Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
+ GetProperty(RenderTask.Property.ClearColor).Get(temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(RenderTask.Property.ClearColor, setVal);
- setVal?.Dispose();
+ SetProperty(RenderTask.Property.ClearColor, new Tizen.NUI.PropertyValue(value));
}
}
public bool RequiresSync
{
get
{
- bool retVal = false;
- PropertyValue reqSync = GetProperty(RenderTask.Property.RequiresSync);
- reqSync?.Get(out retVal);
- reqSync?.Dispose();
- return retVal;
+ bool temp = false;
+ GetProperty(RenderTask.Property.RequiresSync).Get(out temp);
+ return temp;
}
set
{
- PropertyValue setVal = new Tizen.NUI.PropertyValue(value);
- SetProperty(RenderTask.Property.RequiresSync, setVal);
- setVal?.Dispose();
+ SetProperty(RenderTask.Property.RequiresSync, new Tizen.NUI.PropertyValue(value));
}
}
}
/// <summary>
/// The Constructor.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
protected SWIGTYPE_p_CallbackBase()
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
/// <summary>
/// The Constructor.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
protected SWIGTYPE_p_Dali__CallbackBase()
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
/// <summary>
/// The Constructor.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
protected SWIGTYPE_p_Dali__FunctorDelegate()
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
/// </summary>
/// <param name="slotObserver">The signal that has disconnected</param>
/// <param name="callback">The callback attached to the signal disconnected</param>
+ /// <since_tizen> 4 </since_tizen>
public virtual void SignalDisconnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback)
{
Interop.SignalObserver.SignalDisconnected(SwigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
/// This method is called when the slot is disconnecting.
/// </summary>
/// <param name="callback">The callback attached to the signal disconnected.</param>
+ /// <since_tizen> 4 </since_tizen>
public virtual void SlotDisconnected(SWIGTYPE_p_Dali__CallbackBase callback)
{
SlotObserver_SlotDisconnected(SwigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
/// Queries whether there are any connected slots.
/// </summary>
/// <returns>True if there are any slots connected to the signal</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool Empty()
{
bool ret = Interop.StatusSignalType.Empty(SwigCPtr);
/// Queries the number of slots.
/// </summary>
/// <returns>The number of slots connected to this signal</returns>
+ /// <since_tizen> 3 </since_tizen>
public uint GetConnectionCount()
{
uint ret = Interop.StatusSignalType.GetConnectionCount(SwigCPtr);
/// Connects a function.
/// </summary>
/// <param name="func">The function to connect</param>
+ /// <since_tizen> 3 </since_tizen>
public void Connect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
/// Disconnects a function.
/// </summary>
/// <param name="func">The function to disconnect</param>
+ /// <since_tizen> 3 </since_tizen>
public void Disconnect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
/// Connects a member function.
/// </summary>
/// <param name="arg">The member function to connect</param>
+ /// <since_tizen> 3 </since_tizen>
public void Emit(bool arg)
{
Interop.StatusSignalType.Emit(SwigCPtr, arg);
/// <summary>
/// The constructor.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public StatusSignalType() : this(Interop.StatusSignalType.NewStatusSignalType(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
+ /// <since_tizen> 3 </since_tizen>
public enum StateType
{
Started,
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection, but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
+ /// <since_tizen> 3 </since_tizen>
public sealed class TouchPointContainerEnumerator : global::System.Collections.IEnumerator
, global::System.Collections.Generic.IEnumerator<TouchPoint>
{
private object currentObject;
private int currentSize;
+ /// <since_tizen> 3 </since_tizen>
public TouchPointContainerEnumerator(TouchPointContainer collection)
{
collectionRef = collection;
}
// Type-safe iterator Current
+ /// <since_tizen> 3 </since_tizen>
public TouchPoint Current
{
get
}
}
+ /// <since_tizen> 3 </since_tizen>
public bool MoveNext()
{
int size = collectionRef.Count;
return moveOkay;
}
+ /// <since_tizen> 3 </since_tizen>
public void Reset()
{
currentIndex = -1;
}
}
+ /// <since_tizen> 3 </since_tizen>
public void Dispose()
{
currentIndex = -1;
/// One of these can be passed in a single 32 bit integer register on
/// common architectures.<br />
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
internal class Uint16Pair : Disposable
{
/// <param name="arg1">A reference for comparison.</param>
/// <param name="arg2">A reference for comparison</param>
/// <return>True if arg1 less than arg2</return>
+ /// <since_tizen> 3 </since_tizen>
public static bool operator <(Uint16Pair arg1, Uint16Pair arg2)
{
return arg1.LessThan(arg2);
/// <param name="arg1">A reference for comparison.</param>
/// <param name="arg2">A reference for comparison</param>
/// <return>True if arg1 > arg2</return>
+ /// <since_tizen> 3 </since_tizen>
public static bool operator >(Uint16Pair arg1, Uint16Pair arg2)
{
return arg1.GreaterThan(arg2);
/// <summary>
/// Default constructor for the(0, 0) tuple.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Uint16Pair() : this(Interop.Uint16Pair.NewUint16Pair(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="width">The width or X dimension of the tuple. Make sure it is less than 65536.</param>
/// <param name="height">The height or Y dimension of the tuple.Make sure it is less than 65536.</param>
+ /// <since_tizen> 3 </since_tizen>
public Uint16Pair(uint width, uint height) : this(Interop.Uint16Pair.NewUint16Pair(width, height), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Constructor taking separate x and y (width and height) parameters.
/// </summary>
/// <param name="rhs">A reference to assign.</param>
+ /// <since_tizen> 3 </since_tizen>
public Uint16Pair(Uint16Pair rhs) : this(Interop.Uint16Pair.NewUint16Pair(Uint16Pair.getCPtr(rhs)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Sets the width.
/// </summary>
/// <param name="width">The x dimension to be stored in this 2-tuple.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetWidth(ushort width)
{
Interop.Uint16Pair.SetWidth(SwigCPtr, width);
/// <return>
/// The x dimension stored in this 2-tuple.
/// </return>
+ /// <since_tizen> 3 </since_tizen>
public ushort GetWidth()
{
ushort ret = Interop.Uint16Pair.GetWidth(SwigCPtr);
/// Sets the height.
/// </summary>
/// <param name="height">The y dimension to be stored in this 2-tuple.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetHeight(ushort height)
{
Interop.Uint16Pair.SetHeight(SwigCPtr, height);
/// <return>
/// The y dimension stored in this 2-tuple.
/// </return>
+ /// <since_tizen> 3 </since_tizen>
public ushort GetHeight()
{
ushort ret = Interop.Uint16Pair.GetHeight(SwigCPtr);
/// Sets the x dimension.
/// </summary>
/// <param name="x">The x dimension to be stored in this 2-tuple.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetX(ushort x)
{
Interop.Uint16Pair.SetX(SwigCPtr, x);
/// <return>
/// The x dimension stored in this 2-tuple.
/// </return>
+ /// <since_tizen> 3 </since_tizen>
public ushort GetX()
{
ushort ret = Interop.Uint16Pair.GetX(SwigCPtr);
/// Sets the y dimension.
/// </summary>
/// <param name="y">The y dimension to be stored in this 2-tuple.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetY(ushort y)
{
Interop.Uint16Pair.SetY(SwigCPtr, y);
/// <return>
/// The y dimension stored in this 2-tuple.
/// </return>
+ /// <since_tizen> 3 </since_tizen>
public ushort GetY()
{
ushort ret = Interop.Uint16Pair.GetY(SwigCPtr);
/// </summary>
/// <param name="rhs">A reference to assign.</param>
/// <return>The created object.</return>
+ /// <since_tizen> 3 </since_tizen>
public Uint16Pair Assign(Uint16Pair rhs)
{
Uint16Pair ret = new Uint16Pair(Interop.Uint16Pair.Assign(SwigCPtr, Uint16Pair.getCPtr(rhs)), false);
/// [Obsolete("Please do not use! this will be deprecated")]
/// </summary>
/// Please do not use! this will be deprecated!
+ /// <since_tizen> 5 </since_tizen>
[Obsolete("Please do not use! this will be deprecated.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public void AccessibilityActivate()
/// [Obsolete("Please do not use! this will be deprecated")]
/// </summary>
/// Please do not use! this will be deprecated!
+ /// <since_tizen> 5 </since_tizen>
[Obsolete("Please do not use! this will be deprecated.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public void KeyboardEnter()
/// [Obsolete("Please do not use! this will be deprecated")]
/// </summary>
/// Please do not use! this will be deprecated!
+ /// <since_tizen> 5 </since_tizen>
[Obsolete("Please do not use! this will be deprecated.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool EmitKeyEventSignal(Key arg0)
SignalDisconnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback));
}
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_0(int depth);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_1();
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_2(global::System.IntPtr child);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_3(global::System.IntPtr child);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_4(int index, global::System.IntPtr propertyValue);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_5(global::System.IntPtr targetSize);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_6(global::System.IntPtr animation, global::System.IntPtr targetSize);
+ /// <since_tizen> 3 </since_tizen>
public delegate bool SwigDelegateViewImpl_9(global::System.IntPtr arg0);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_11(global::System.IntPtr size, global::System.IntPtr container);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_12(int policy, int dimension);
+ /// <since_tizen> 3 </since_tizen>
public delegate global::System.IntPtr SwigDelegateViewImpl_13();
+ /// <since_tizen> 3 </since_tizen>
public delegate float SwigDelegateViewImpl_14(global::System.IntPtr child, int dimension);
+ /// <since_tizen> 3 </since_tizen>
public delegate float SwigDelegateViewImpl_15(float width);
+ /// <since_tizen> 3 </since_tizen>
public delegate float SwigDelegateViewImpl_16(float height);
+ /// <since_tizen> 3 </since_tizen>
public delegate bool SwigDelegateViewImpl_17(int dimension);
+ /// <since_tizen> 3 </since_tizen>
public delegate bool SwigDelegateViewImpl_18();
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_19(int dimension);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_20(float size, int dimension);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_21();
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_22(global::System.IntPtr child);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_23(global::System.IntPtr child);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_24(global::System.IntPtr styleManager, int change);
+ /// <since_tizen> 3 </since_tizen>
public delegate bool SwigDelegateViewImpl_25();
+ /// <since_tizen> 3 </since_tizen>
public delegate bool SwigDelegateViewImpl_26(global::System.IntPtr gesture);
+ /// <since_tizen> 3 </since_tizen>
public delegate bool SwigDelegateViewImpl_28(bool isIncrease);
+ /// <since_tizen> 3 </since_tizen>
public delegate bool SwigDelegateViewImpl_29();
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_30();
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_31();
+ /// <since_tizen> 3 </since_tizen>
public delegate global::System.IntPtr SwigDelegateViewImpl_32(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_33(global::System.IntPtr commitedFocusableActor);
+ /// <since_tizen> 3 </since_tizen>
public delegate bool SwigDelegateViewImpl_34();
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_35(global::System.IntPtr pinch);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_36(global::System.IntPtr pan);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_37(global::System.IntPtr tap);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_38(global::System.IntPtr longPress);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_39(global::System.IntPtr slotObserver, global::System.IntPtr callback);
+ /// <since_tizen> 3 </since_tizen>
public delegate void SwigDelegateViewImpl_40(global::System.IntPtr slotObserver, global::System.IntPtr callback);
private SwigDelegateViewImpl_0 swigDelegate0;
/// <summary>
/// Event arguments that passed via time tick event signal.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public class TimeTickEventArgs : EventArgs
{
/// <summary>
/// Application.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public Application Application
{
get;
/// <summary>
/// WatchTime.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public WatchTime WatchTime
{
get;
/// <summary>
/// Event arguments that passed via ambient tick event signal.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public class AmbientTickEventArgs : EventArgs
{
/// <summary>
/// Application.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public Application Application
{
get;
/// <summary>
/// WatchTime.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public WatchTime WatchTime
{
get;
/// <summary>
/// Event arguments that passed via ambient tick event signal.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public class AmbientChangedEventArgs : EventArgs
{
/// <summary>
/// Application.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public Application Application
{
get;
/// <summary>
/// Changed.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public bool Changed
{
get;
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public SayFinishedState State
+ public SayFinishedStates State
{
private set;
get;
internal SayFinishedEventArgs(int result)
{
- State = (SayFinishedState)(result);
+ State = (SayFinishedStates)(result);
tlog.Fatal(tag, $"SayFinishedEventArgs Constructor! State={State}");
}
}
/// <summary>
/// Enum of Say finished event argument status
/// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Accessibility.SayFinishedState instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum SayFinishedStates
- {
- /// <summary>
- /// Invalid
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Accessibility.SayFinishedState.Invalid instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Invalid = -1,
- /// <summary>
- /// Cancelled
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Accessibility.SayFinishedState.Invalid instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Cancelled = 1,
- /// <summary>
- /// Stopped
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Accessibility.SayFinishedState.Invalid instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Stopped = 2,
- /// <summary>
- /// Skipped
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Accessibility.SayFinishedState.Invalid instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Skipped = 3
- }
-
- /// <summary>
- /// Enum of Say finished event argument status
- /// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public enum SayFinishedState
+ public enum SayFinishedStates
{
/// <summary>
/// Invalid
/// This specifies the various types of BuiltinFunctions.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names")]
public enum BuiltinFunctions
{
/// <summary>
/// This specifies which mode is set for AlphaFunction.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names")]
public enum Modes
{
/// <summary>
/// Enumeration for what to do when the animation ends, stopped, or destroyed.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names")]
public enum EndActions
{
/// <summary>
/// </summary>
/// <remarks>Calling Reset() on this class will not reset the animation. It will call the BaseHandle.Reset() which drops the object handle.</remarks>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names")]
public enum States
{
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public AnimatedImageView() : base()
{
- dirtyFlag = true;
+ mDirtyFlag = true;
}
/// <summary>
{
get
{
- return url;
+ return mUrl;
}
set
{
- dirtyFlag = true;
- url = value;
+ mDirtyFlag = true;
+ mUrl = value;
}
}
{
get
{
- return resourceURLs;
+ return mResourceURLs;
}
}
{
get
{
- return batchSize;
+ return mBatchSize;
}
set
{
- dirtyFlag = true;
- batchSize = value;
+ mDirtyFlag = true;
+ mBatchSize = value;
}
}
{
get
{
- return cacheSize;
+ return mCacheSize;
}
set
{
- dirtyFlag = true;
- cacheSize = value;
+ mDirtyFlag = true;
+ mCacheSize = value;
}
}
{
get
{
- return frameDelay;
+ return mFrameDelay;
}
set
{
- dirtyFlag = true;
- frameDelay = value;
+ mDirtyFlag = true;
+ mFrameDelay = value;
}
}
{
get
{
- return loopCount;
+ return mLoopCount;
}
set
{
- dirtyFlag = true;
- loopCount = value;
- }
- }
-
- /// <summary>
- /// Sets or gets the stop behavior.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public StopBehaviorType StopBehavior
- {
- set
- {
- stopBehavior = (StopBehaviorType)value;
- dirtyFlag = true;
- }
- get
- {
- return stopBehavior;
- }
- }
-
- /// <summary>
- /// Get the number of total frames
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TotalFrame
- {
- get
- {
- int ret = -1;
- PropertyMap map = Image;
- if (map != null)
- {
- PropertyValue val = map.Find(ImageVisualProperty.TotalFrameNumber);
- if (val != null)
- {
- if (val.Get(out ret))
- {
- return ret;
- }
- }
- }
- return ret;
- }
- }
-
- /// <summary>
- /// Set or get the current frame. When setting a specific frame, it is displayed as a still image.
- /// </summary>
- /// <remarks>
- /// Gets the value set by a user. If the setting value is out-ranged, it is reset as a minimum frame or a maximum frame.
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int CurrentFrame
- {
- set
- {
- DoAction(ImageView.Property.IMAGE, (int)ActionType.jumpTo, new PropertyValue(value));
- }
- get
- {
- int ret = -1;
- PropertyMap map = Image;
- if (map != null)
- {
- PropertyValue val = map.Find(ImageVisualProperty.CurrentFrameNumber);
- if (val != null)
- {
- if (val.Get(out ret))
- {
- return ret;
- }
- }
- }
- return ret;
+ mDirtyFlag = true;
+ mLoopCount = value;
}
}
#endregion Property
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetValues()
{
- if (dirtyFlag == false)
+ if (mDirtyFlag == false)
{
return;
}
- dirtyFlag = false;
+ mDirtyFlag = false;
PropertyMap tMap = new PropertyMap();
PropertyValue animatiedImage = new PropertyValue((int)Visual.Type.AnimatedImage);
tMap.Insert(Visual.Property.Type, animatiedImage);
- if (resourceURLs?.Count != 0)
+ if (mResourceURLs?.Count != 0)
{
- PropertyArray indexPropertyArray = new PropertyArray();
+ PropertyArray mArray = new PropertyArray();
PropertyArray returnedArr = new PropertyArray();
PropertyValue index = new PropertyValue();
- foreach (var iter in resourceURLs)
+ foreach (var iter in mResourceURLs)
{
index = new PropertyValue(iter);
- returnedArr = indexPropertyArray.Add(index);
+ returnedArr = mArray.Add(index);
}
index.Dispose();
returnedArr.Dispose();
- PropertyValue arrayProperty = new PropertyValue(indexPropertyArray);
- tMap.Insert(ImageVisualProperty.URL, arrayProperty);
- PropertyValue frameDelayProperty = new PropertyValue(frameDelay);
- tMap.Insert(ImageVisualProperty.FrameDelay, frameDelayProperty);
-
- arrayProperty.Dispose();
- indexPropertyArray.Dispose();
- frameDelayProperty.Dispose();
+ PropertyValue array = new PropertyValue(mArray);
+ tMap.Insert(ImageVisualProperty.URL, array);
+ PropertyValue batchSize = new PropertyValue(mBatchSize);
+ tMap.Insert(ImageVisualProperty.BatchSize, batchSize);
+ PropertyValue cacheSize = new PropertyValue(mCacheSize);
+ tMap.Insert(ImageVisualProperty.CacheSize, cacheSize);
+ PropertyValue frameDelay = new PropertyValue(mFrameDelay);
+ tMap.Insert(ImageVisualProperty.FrameDelay, frameDelay);
+ PropertyValue loopCount = new PropertyValue(mLoopCount);
+ tMap.Insert(ImageVisualProperty.LoopCount, loopCount);
+
+ loopCount.Dispose();
+ frameDelay.Dispose();
+ cacheSize.Dispose();
+ batchSize.Dispose();
+ mArray.Dispose();
+ array.Dispose();
}
else
{
- PropertyValue urlProperty = new PropertyValue(url);
- tMap.Insert(ImageVisualProperty.URL, urlProperty);
- urlProperty.Dispose();
+ PropertyValue url = new PropertyValue(mUrl);
+ tMap.Insert(ImageVisualProperty.URL, url);
+ url.Dispose();
}
- PropertyValue batchSizeProperty = new PropertyValue(batchSize);
- tMap.Insert(ImageVisualProperty.BatchSize, batchSizeProperty);
- PropertyValue cacheSizeProperty = new PropertyValue(cacheSize);
- tMap.Insert(ImageVisualProperty.CacheSize, cacheSizeProperty);
- PropertyValue loopCountProperty = new PropertyValue(loopCount);
- tMap.Insert(ImageVisualProperty.LoopCount, loopCountProperty);
- PropertyValue stopBehaviorProperty = new PropertyValue((int)stopBehavior);
- tMap.Insert(ImageVisualProperty.StopBehavior, stopBehaviorProperty);
-
- loopCountProperty.Dispose();
- cacheSizeProperty.Dispose();
- batchSizeProperty.Dispose();
- stopBehaviorProperty.Dispose();
-
- propertyMap = tMap;
- PropertyValue mapProperty = new PropertyValue(propertyMap);
- SetProperty(ImageView.Property.IMAGE, mapProperty);
- mapProperty.Dispose();
+ mMap = tMap;
+ PropertyValue map = new PropertyValue(mMap);
+ SetProperty(ImageView.Property.IMAGE, map);
+ map.Dispose();
tMap.Dispose();
animatiedImage.Dispose();
#region Event, Enum, Struct, ETC
-
- /// <summary>
- /// Enumeration for what to do when the animation is stopped.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum StopBehaviorType
- {
- /// <summary>
- /// When the animation is stopped, the current frame is shown.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- CurrentFrame,
- /// <summary>
- /// When the animation is stopped, the min frame (first frame) is shown.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- MinimumFrame,
- /// <summary>
- /// When the animation is stopped, the max frame (last frame) is shown.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- MaximumFrame
- }
-
- private enum ActionType
- {
- play,
- pause,
- stop,
- jumpTo,
- };
#endregion Event, Enum, Struct, ETC
#region Private
- private string url = "";
- private List<string> resourceURLs = new List<string>();
- private int batchSize = 1;
- private int cacheSize = 1;
- private int frameDelay = 0;
- private int loopCount = -1;
- private bool dirtyFlag = false;
- private StopBehaviorType stopBehavior;
- private PropertyMap propertyMap;
+ string mUrl = "";
+ List<string> mResourceURLs = new List<string>();
+ int mBatchSize = 1;
+ int mCacheSize = 1;
+ int mFrameDelay = 0;
+ int mLoopCount = -1;
+ bool mDirtyFlag = false;
+ PropertyMap mMap;
#endregion Private
}
}
}
mCurrentFrame = value;
- AnimationState = State.Paused;
+ AnimationState = AnimationStates.Paused;
base.SetMinMaxFrame(0, mTotalFrameNum - 1);
base.CurrentFrame = mCurrentFrame;
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public RepeatModeType RepeatMode
+ public RepeatModes RepeatMode
{
set
{
switch (mRepeatMode)
{
- case RepeatModeType.Restart:
+ case RepeatModes.Restart:
LoopingMode = LoopingModeType.Restart;
break;
- case RepeatModeType.Reverse:
+ case RepeatModes.Reverse:
LoopingMode = LoopingModeType.AutoReverse;
break;
default:
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public State AnimationState
+ public AnimationStates AnimationState
{
private set
{
}
get
{
- if (CurrentAnimationState == State.Playing)
+ if (CurrentAnimationState == AnimationStates.Playing)
{
if (PlayState == PlayStateType.Stopped)
{
- CurrentAnimationState = State.Stopped;
+ CurrentAnimationState = AnimationStates.Stopped;
}
}
return CurrentAnimationState;
}
/// <summary>
- /// A marker has its start frame and end frame.
+ /// A marker has its start frame and end frame.
/// Animation will play between the start frame and the end frame of the marker if one marker is specified.
/// Or animation will play between the start frame of the first marker and the end frame of the second marker if two markers are specified. *
/// </summary>
base.Margin = tmp;
base.Play();
- AnimationState = State.Playing;
+ AnimationState = AnimationStates.Playing;
tlog.Fatal(tag, $" [{GetId()}] mIsMinMaxSet={mIsMinMaxSet}) ]VAV END]");
}
}
base.Pause();
- AnimationState = State.Paused;
+ AnimationState = AnimationStates.Paused;
tlog.Fatal(tag, $" [{GetId()}] ]VAV END]");
}
/// </param>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public void Stop(EndAction endAction = EndAction.Cancel)
+ public void Stop(EndActions endAction = EndActions.Cancel)
{
tlog.Fatal(tag, $"[VAV START[ [{GetId()}] endAction:({endAction}), PlayState={PlayState}");
throw new InvalidOperationException("Resource Url not yet Set");
}
- if (AnimationState == State.Stopped)
+ if (AnimationState == AnimationStates.Stopped)
{
return;
}
mEndAction = endAction;
switch (endAction)
{
- case EndAction.Cancel:
+ case EndActions.Cancel:
StopBehavior = StopBehaviorType.CurrentFrame;
break;
- case EndAction.Discard:
+ case EndActions.Discard:
StopBehavior = StopBehaviorType.MinimumFrame;
break;
- case EndAction.StopFinal:
+ case EndActions.StopFinal:
StopBehavior = StopBehaviorType.MaximumFrame;
break;
default:
break;
}
}
- AnimationState = State.Stopped;
+ AnimationState = AnimationStates.Stopped;
base.Stop();
- if (endAction == EndAction.StopFinal)
+ if (endAction == EndActions.StopFinal)
{
switch (mIsMinMaxSet)
{
/// <summary>
/// RepeatMode of animation.
/// </summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.RepeatModeType instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum RepeatModes
- {
- /// <summary>
- /// When the animation reaches the end and RepeatCount is nonZero, the animation restarts from the beginning.
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.RepeatModeType.Restart instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Restart = LoopingModeType.Restart,
- /// <summary>
- /// When the animation reaches the end and RepeatCount nonZero, the animation reverses direction on every animation cycle.
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.RepeatModeType.Reverse instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Reverse = LoopingModeType.AutoReverse
- }
-
- /// <summary>
- /// RepeatMode type of animation.
- /// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public enum RepeatModeType
+ public enum RepeatModes
{
/// <summary>
- /// When the animation reaches the end and RepeatCount is nonZero, the animation restarts from the beginning.
+ /// When the animation reaches the end and RepeatCount is nonZero, the animation restarts from the beginning.
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
Restart = LoopingModeType.Restart,
/// <summary>
- /// When the animation reaches the end and RepeatCount nonZero, the animation reverses direction on every animation cycle.
+ /// When the animation reaches the end and RepeatCount nonZero, the animation reverses direction on every animation cycle.
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
/// <summary>
/// EndActions of animation.
/// </summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.EndAction instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum EndActions
- {
- /// <summary> End action is Cancel, Animation Stops at the Current Frame.</summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.EndAction.Cancel instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Cancel = 0,
- /// <summary> End action is Discard, Animation Stops at the Min Frame</summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.EndAction.Discard instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Discard = 1,
- /// <summary> End action is StopFinal, Animation Stops at the Max Frame</summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.EndAction.StopFinal instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- StopFinal = 2
- }
-
- /// <summary>
- /// EndAction of animation.
- /// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public enum EndAction
+ public enum EndActions
{
/// <summary> End action is Cancel, Animation Stops at the Current Frame.</summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
}
/// <summary>
- /// AnimationState of animation.
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.State instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum AnimationStates
- {
- /// <summary> The animation has stopped.</summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.State.Stopped instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Stopped = PlayStateType.Stopped,
- /// <summary> The animation is playing.</summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.State.Playing instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Playing = PlayStateType.Playing,
- /// <summary> The animation is paused.</summary>
- [Obsolete("Please do not use! This will be removed. Please use AnimatedVectorImageView.State.Paused instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Paused = PlayStateType.Paused
- }
-
- /// <summary>
- /// Animation State of animation.
+ /// AnimationStates of animation.
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public enum State
+ public enum AnimationStates
{
/// <summary> The animation has stopped.</summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
private string mResourceURL = null;
private int mRepeatCount = 0;
private int mTotalFrameNum = 0;
- private RepeatModeType mRepeatMode = RepeatModeType.Restart;
+ private RepeatModes mRepeatMode = RepeatModes.Restart;
private int mMinFrame = -1, mMaxFrame = -1;
private minMaxSetTypes mIsMinMaxSet = minMaxSetTypes.NotSetByUser;
private int mCurrentFrame = -1;
- private EndAction mEndAction = EndAction.Cancel;
+ private EndActions mEndAction = EndActions.Cancel;
private enum minMaxSetTypes
{
NotSetByUser,
}
private string tag = "NUITEST";
- private State CurrentAnimationState = State.Stopped;
+ private AnimationStates CurrentAnimationState = AnimationStates.Stopped;
#endregion Private
}
}
{
add
{
- // Restricted to only one listener
- if (_scrollableStartedEventHandler == null)
+ lock (this)
{
- _scrollableStartedEventHandler += value;
-
- _scrollableStartedCallbackDelegate = new StartedCallbackDelegate(OnStarted);
- this.ScrollStartedSignal().Connect(_scrollableStartedCallbackDelegate);
+ // Restricted to only one listener
+ if (_scrollableStartedEventHandler == null)
+ {
+ _scrollableStartedEventHandler += value;
+
+ _scrollableStartedCallbackDelegate = new StartedCallbackDelegate(OnStarted);
+ this.ScrollStartedSignal().Connect(_scrollableStartedCallbackDelegate);
+ }
}
}
remove
{
- if (_scrollableStartedEventHandler != null)
+ lock (this)
{
- this.ScrollStartedSignal().Disconnect(_scrollableStartedCallbackDelegate);
- }
+ if (_scrollableStartedEventHandler != null)
+ {
+ this.ScrollStartedSignal().Disconnect(_scrollableStartedCallbackDelegate);
+ }
- _scrollableStartedEventHandler -= value;
+ _scrollableStartedEventHandler -= value;
+ }
}
}
{
add
{
- // Restricted to only one listener
- if (_scrollableUpdatedEventHandler == null)
+ lock (this)
{
- _scrollableUpdatedEventHandler += value;
-
- _scrollableUpdatedCallbackDelegate = new UpdatedCallbackDelegate(OnUpdated);
- this.ScrollUpdatedSignal().Connect(_scrollableUpdatedCallbackDelegate);
+ // Restricted to only one listener
+ if (_scrollableUpdatedEventHandler == null)
+ {
+ _scrollableUpdatedEventHandler += value;
+
+ _scrollableUpdatedCallbackDelegate = new UpdatedCallbackDelegate(OnUpdated);
+ this.ScrollUpdatedSignal().Connect(_scrollableUpdatedCallbackDelegate);
+ }
}
}
remove
{
- if (_scrollableUpdatedEventHandler != null)
+ lock (this)
{
- this.ScrollUpdatedSignal().Disconnect(_scrollableUpdatedCallbackDelegate);
- }
+ if (_scrollableUpdatedEventHandler != null)
+ {
+ this.ScrollUpdatedSignal().Disconnect(_scrollableUpdatedCallbackDelegate);
+ }
- _scrollableUpdatedEventHandler -= value;
+ _scrollableUpdatedEventHandler -= value;
+ }
}
}
{
add
{
- // Restricted to only one listener
- if (_scrollableCompletedEventHandler == null)
+ lock (this)
{
- _scrollableCompletedEventHandler += value;
-
- _scrollableCompletedCallbackDelegate = new CompletedCallbackDelegate(OnCompleted);
- this.ScrollCompletedSignal().Connect(_scrollableCompletedCallbackDelegate);
+ // Restricted to only one listener
+ if (_scrollableCompletedEventHandler == null)
+ {
+ _scrollableCompletedEventHandler += value;
+
+ _scrollableCompletedCallbackDelegate = new CompletedCallbackDelegate(OnCompleted);
+ this.ScrollCompletedSignal().Connect(_scrollableCompletedCallbackDelegate);
+ }
}
}
remove
{
- if (_scrollableCompletedEventHandler != null)
+ lock (this)
{
- this.ScrollCompletedSignal().Disconnect(_scrollableCompletedCallbackDelegate);
- }
+ if (_scrollableCompletedEventHandler != null)
+ {
+ this.ScrollCompletedSignal().Disconnect(_scrollableCompletedCallbackDelegate);
+ }
- _scrollableCompletedEventHandler -= value;
+ _scrollableCompletedEventHandler -= value;
+ }
}
}
*
*/
-using System;
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
/// <summary>
/// Enumeration for describing the states of the view.
/// </summary>
- [FlagsAttribute]
- // Please remove this enum when 'Tizen.NUI.BaseComponents.Button.StateChangedEventArgs' and 'Tizen.NUI.BaseComponents.Slider.StateChangedArgs' are removed.
- [Obsolete("This will be removed in API10. Please use Tizen.NUI.BaseComponents.ControlState instead!")]
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public enum ControlStates
{
/// <summary>
/// The normal state.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
Normal = 0,
/// <summary>
/// The focused state.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
Focused = 1,
/// <summary>
/// The disabled state.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
Disabled = 2,
/// <summary>
/// The Selected state.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
Selected = 4,
/// <summary>
/// The Pressed state.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
Pressed = 8,
/// <summary>
/// The DisabledFocused state.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
DisabledFocused = Disabled | Focused,
/// <summary>
/// The SelectedFocused state.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
SelectedFocused = Focused | Selected,
/// <summary>
/// The DisabledSelected state.
/// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
DisabledSelected = Disabled | Selected,
}
public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create(nameof(BackgroundImage), typeof(string), typeof(View), default(string), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
{
var view = (View)bindable;
- string url = (string)newValue;
-
- if (string.IsNullOrEmpty(url))
+ if (newValue != null)
{
- // Clear background
- Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.BACKGROUND, new PropertyValue());
- return;
- }
+ string url = (string)newValue;
- if (view.backgroundExtraData == null)
- {
- Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.BACKGROUND, new PropertyValue(url));
- view.BackgroundImageSynchronosLoading = view.backgroundImageSynchronosLoading;
+ if (string.IsNullOrEmpty(url))
+ {
+ // Clear background
+ Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.BACKGROUND, new PropertyValue());
+ return;
+ }
- return;
- }
+ if (view.backgroundExtraData == null)
+ {
+ Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.BACKGROUND, new PropertyValue(url));
+ view.BackgroundImageSynchronosLoading = view.backgroundImageSynchronosLoading;
- PropertyMap map = new PropertyMap();
+ return;
+ }
- map.Add(ImageVisualProperty.URL, new PropertyValue(url))
- .Add(Visual.Property.CornerRadius, new PropertyValue(view.backgroundExtraData.CornerRadius))
- .Add(ImageVisualProperty.SynchronousLoading, new PropertyValue(view.backgroundImageSynchronosLoading));
+ PropertyMap map = new PropertyMap();
- if (view.backgroundExtraData.BackgroundImageBorder != null)
- {
- map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch))
- .Add(NpatchImageVisualProperty.Border, new PropertyValue(view.backgroundExtraData.BackgroundImageBorder));
- }
- else
- {
- map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
- }
+ map.Add(ImageVisualProperty.URL, new PropertyValue(url))
+ .Add(Visual.Property.CornerRadius, new PropertyValue(view.backgroundExtraData.CornerRadius))
+ .Add(ImageVisualProperty.SynchronousLoading, new PropertyValue(view.backgroundImageSynchronosLoading));
- Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
+ if (view.backgroundExtraData.BackgroundImageBorder != null)
+ {
+ map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch))
+ .Add(NpatchImageVisualProperty.Border, new PropertyValue(view.backgroundExtraData.BackgroundImageBorder));
+ }
+ else
+ {
+ map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
+ }
+
+ Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
+ }
}),
defaultValueCreator: (bindable) =>
{
/// Enumeration for describing the states of the view.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names")]
public enum States
{
/// <summary>
/// The Direction Bias type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1712: Do not prefix enum values with type name")]
public enum DirectionBias
{
/// <summary>
}
else
{
- if (independent)
+ if (Owner.Position != null)
{
- // If height or width specification is not explicitly defined,
- // the size of the owner view must be reset even the ExcludeLayouting is true.
- if (Owner.HeightSpecification < 0 || Owner.WidthSpecification < 0)
+ if(independent)
+ {
+ // If height or width specification is not explicitly defined,
+ // the size of the owner view must be reset even the ExcludeLayouting is true.
+ if (Owner.HeightSpecification < 0 || Owner.WidthSpecification < 0)
+ {
+ Owner.SetSize(right - left, bottom - top);
+ }
+ }
+ else
{
Owner.SetSize(right - left, bottom - top);
+ Owner.SetPosition(left, top);
}
}
- else
- {
- Owner.SetSize(right - left, bottom - top);
- Owner.SetPosition(left, top);
- }
}
// Reset condition for animation ready for next transition when required.
/// The properties that can be animated.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names")]
public enum AnimatableProperties
{
/// <summary>
}
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names")]
public enum DisposeTypes
{
/// <summary>
/// </summary>
/// <param name="arg0">A valid handle to the target object.</param>
/// <param name="propertyIndex">The index of a property.</param>
+ /// <since_tizen> 3 </since_tizen>
public Property(Animatable arg0, int propertyIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(arg0), propertyIndex), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <param name="arg0">A valid handle to the target object.</param>
/// <param name="propertyIndex">The index of a property.</param>
/// <param name="componentIndex">Index to a sub component of a property, for use with Vector2, Vector3 and Vector4. -1 for the main property (default is -1).</param>
+ /// <since_tizen> 3 </since_tizen>
public Property(Animatable arg0, int propertyIndex, int componentIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(arg0), propertyIndex, componentIndex), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="arg0">A valid handle to the target object.</param>
/// <param name="propertyName">The property name.</param>
+ /// <since_tizen> 3 </since_tizen>
public Property(Animatable arg0, string propertyName) : this(Interop.Property.NewProperty(Animatable.getCPtr(arg0), propertyName), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <param name="arg0">A valid handle to the target object.</param>
/// <param name="propertyName">The property name.</param>
/// <param name="componentIndex">Index to a sub component of a property, for use with Vector2, Vector3 and Vector4. -1 for main property (default is -1).</param>
+ /// <since_tizen> 3 </since_tizen>
public Property(Animatable arg0, string propertyName, int componentIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(arg0), propertyName, componentIndex), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// Gets or sets the index of the property.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int propertyIndex
{
set
/// <summary>
/// Gets or sets the component index of the property.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int componentIndex
{
set
{
add
{
- // Restricted to only one listener
- if (_propertyNotificationNotifyEventHandler == null)
+ lock (this)
{
- _propertyNotificationNotifyEventHandler += value;
+ // Restricted to only one listener
+ if (_propertyNotificationNotifyEventHandler == null)
+ {
+ _propertyNotificationNotifyEventHandler += value;
- _propertyNotificationNotifyEventCallbackDelegate = new NotifyEventCallbackDelegate(OnPropertyNotificationNotify);
- this.NotifySignal().Connect(_propertyNotificationNotifyEventCallbackDelegate);
+ _propertyNotificationNotifyEventCallbackDelegate = new NotifyEventCallbackDelegate(OnPropertyNotificationNotify);
+ this.NotifySignal().Connect(_propertyNotificationNotifyEventCallbackDelegate);
+ }
}
}
remove
{
- if (_propertyNotificationNotifyEventHandler != null)
+ lock (this)
{
- this.NotifySignal().Disconnect(_propertyNotificationNotifyEventCallbackDelegate);
- }
+ if (_propertyNotificationNotifyEventHandler != null)
+ {
+ this.NotifySignal().Disconnect(_propertyNotificationNotifyEventCallbackDelegate);
+ }
- _propertyNotificationNotifyEventHandler -= value;
+ _propertyNotificationNotifyEventHandler -= value;
+ }
}
}
get
{
int temp = 0;
- Tizen.NUI.PropertyValue pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.DepthIndex);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.DepthIndex).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.DepthIndex, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.DepthIndex, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.FaceCullingMode);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.FaceCullingMode).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.FaceCullingMode, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.FaceCullingMode, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendMode);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendMode).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendMode, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendMode, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendEquationRgb);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendEquationRgb).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendEquationRgb, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendEquationRgb, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendEquationAlpha);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendEquationAlpha).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendEquationAlpha, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendEquationAlpha, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendFactorSrcRgb);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendFactorSrcRgb).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendFactorSrcRgb, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendFactorSrcRgb, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendFactorDestRgb);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendFactorDestRgb).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendFactorDestRgb, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendFactorDestRgb, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendFactorSrcAlpha);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendFactorSrcAlpha).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendFactorSrcAlpha, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendFactorSrcAlpha, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendFactorDestAlpha);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendFactorDestAlpha).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendFactorDestAlpha, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendFactorDestAlpha, new Tizen.NUI.PropertyValue(value));
}
}
get
{
Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendColor);
- pValue.Get(temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendColor).Get(temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendColor, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendColor, new Tizen.NUI.PropertyValue(value));
}
}
get
{
bool temp = false;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendPreMultipliedAlpha);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.BlendPreMultipliedAlpha).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendPreMultipliedAlpha, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.BlendPreMultipliedAlpha, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.IndexRangeFirst);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.IndexRangeFirst).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.IndexRangeFirst, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.IndexRangeFirst, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.IndexRangeCount);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.IndexRangeCount).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.IndexRangeCount, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.IndexRangeCount, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.DepthWriteMode);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.DepthWriteMode).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.DepthWriteMode, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.DepthWriteMode, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.DepthFunction);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.DepthFunction).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.DepthFunction, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.DepthFunction, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.DepthTestMode);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.DepthTestMode).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.DepthTestMode, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.DepthTestMode, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.RenderMode);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.RenderMode).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.RenderMode, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.RenderMode, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilFunction);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilFunction).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilFunction, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilFunction, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilFunctionMask);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilFunctionMask).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilFunctionMask, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilFunctionMask, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilFunctionReference);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilFunctionReference).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilFunctionReference, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilFunctionReference, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilMask);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilMask).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilMask, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilMask, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilOperationOnFail);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilOperationOnFail).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilOperationOnFail, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilOperationOnFail, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilOperationOnZFail);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilOperationOnZFail).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilOperationOnZFail, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilOperationOnZFail, new Tizen.NUI.PropertyValue(value));
}
}
get
{
int temp = 0;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilOperationOnZPass);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Renderer.Property.StencilOperationOnZPass).Get(out temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilOperationOnZPass, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Renderer.Property.StencilOperationOnZPass, new Tizen.NUI.PropertyValue(value));
}
}
/// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int ForegroundEffect = Interop.Renderer.RangesForegroundEffectGet();
-
-
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ForegroundEffect instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- [SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>")]
- public static readonly int FOREGROUND_EFFECT = Interop.Renderer.RangesForegroundEffectGet();
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use BackgroundEffect instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- [SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>")]
- public static readonly int BACKGROUND_EFFECT = Interop.Renderer.RangesBackgroundEffectGet();
}
/// <summary>
using System;
using System.ComponentModel;
using Tizen.NUI.Binding;
+using System;
namespace Tizen.NUI
{
}
/// <summary>
- /// Transition animation effect.
- /// This is normally used to specify transitions for a NUIApplication.
+ /// Transition animation effect
/// </summary>
- /// <seealso cref="TransitionOptions.ForwardAnimation" />
- /// <seealso cref="TransitionOptions.BackwardAnimation" />
- /// <seealso cref="NUIApplication.TransitionOptions" />
[EditorBrowsable(EditorBrowsableState.Never)]
public class TransitionAnimation : IDisposable
{
{
/// <summary>
/// This object translates data from a property array of maps into an array of animators.
- /// This is normally used when animating visuals.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public class TransitionData : BaseHandle
{
/// <summary>
/// Setting screen transition options.
- /// This is used to describe the transition of NUIApplication.
/// </summary>
- /// <seealso cref="NUIApplication.TransitionOptions" />
[EditorBrowsable(EditorBrowsableState.Never)]
public class TransitionOptions : IDisposable
{
{
add
{
- // Restricted to only one listener
- if (_scrollViewSnapStartedEventHandler == null)
+ lock (this)
{
- _scrollViewSnapStartedEventHandler += value;
+ // Restricted to only one listener
+ if (_scrollViewSnapStartedEventHandler == null)
+ {
+ _scrollViewSnapStartedEventHandler += value;
- _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
- ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal();
- snapStarted?.Connect(_scrollViewSnapStartedCallbackDelegate);
- snapStarted?.Dispose();
+ _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
+ ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal();
+ snapStarted?.Connect(_scrollViewSnapStartedCallbackDelegate);
+ snapStarted?.Dispose();
+ }
}
}
remove
{
- if (_scrollViewSnapStartedEventHandler != null)
+ lock (this)
{
- ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal();
- snapStarted?.Disconnect(_scrollViewSnapStartedCallbackDelegate);
- snapStarted?.Dispose();
- }
+ if (_scrollViewSnapStartedEventHandler != null)
+ {
+ ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal();
+ snapStarted?.Disconnect(_scrollViewSnapStartedCallbackDelegate);
+ snapStarted?.Dispose();
+ }
- _scrollViewSnapStartedEventHandler -= value;
+ _scrollViewSnapStartedEventHandler -= value;
+ }
}
}
internal ImageShadow(PropertyMap propertyMap) : base(propertyMap)
{
Border = noBorder;
- PropertyValue pValue = propertyMap.Find(ImageVisualProperty.Border);
- pValue?.Get(Border);
- pValue?.Dispose();
+ propertyMap.Find(ImageVisualProperty.Border)?.Get(Border);
string url = null;
- pValue = propertyMap.Find(ImageVisualProperty.URL);
- pValue?.Get(out url);
- pValue?.Dispose();
+ propertyMap.Find(ImageVisualProperty.URL)?.Get(out url);
Url = url;
}
internal Shadow(PropertyMap propertyMap) : base(propertyMap)
{
Color = noColor;
- PropertyValue pValue = propertyMap.Find(ColorVisualProperty.MixColor);
- pValue?.Get(Color);
- pValue?.Dispose();
+ propertyMap.Find(ColorVisualProperty.MixColor)?.Get(Color);
float blurRadius = 0;
- pValue = propertyMap.Find(ColorVisualProperty.BlurRadius);
- pValue?.Get(out blurRadius);
- pValue?.Dispose();
+ propertyMap.Find(ColorVisualProperty.BlurRadius)?.Get(out blurRadius);
BlurRadius = blurRadius;
}
{
SetTransformMap(transformMap);
}
- transformProperty.Dispose();
- transformMap.Dispose();
}
/// <summary>
if (!noOffset.Equals(Offset))
{
- var temp = new Vector2((int)VisualTransformPolicyType.Absolute, (int)VisualTransformPolicyType.Absolute);
- transformMap[(int)VisualTransformPropertyType.OffsetPolicy] = new PropertyValue(temp);
+ transformMap[(int)VisualTransformPropertyType.OffsetPolicy] = new PropertyValue(new Vector2((int)VisualTransformPolicyType.Absolute, (int)VisualTransformPolicyType.Absolute));
transformMap[(int)VisualTransformPropertyType.Offset] = PropertyValue.CreateWithGuard(Offset);
- temp.Dispose();
}
if (!noExtents.Equals(Extents))
transformMap[(int)VisualTransformPropertyType.Origin] = new PropertyValue((int)Visual.AlignType.Center);
transformMap[(int)VisualTransformPropertyType.AnchorPoint] = new PropertyValue((int)Visual.AlignType.Center);
- var ret = new PropertyValue(transformMap);
- transformMap.Dispose();
- return ret;
+ return new PropertyValue(transformMap);
}
private void SetTransformMap(PropertyMap transformMap)
return;
}
- PropertyValue temp = transformMap.Find((int)VisualTransformPropertyType.Offset);
- temp?.Get(Offset);
- temp?.Dispose();
- temp = transformMap.Find((int)VisualTransformPropertyType.ExtraSize);
- temp?.Get(Extents);
- temp?.Dispose();
+ transformMap.Find((int)VisualTransformPropertyType.Offset)?.Get(Offset);
+ transformMap.Find((int)VisualTransformPropertyType.ExtraSize)?.Get(Extents);
}
}
}
/// This specifies visual properties.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1716: Identifiers should not match keywords")]
public struct Property
{
/// <summary>
/// <since_tizen> 3 </since_tizen>
protected PropertyMap _commonlyUsedMap = null;
- private Vector2 visualSize = null;
- private Vector2 visualOffset = null;
- private Vector2 visualOffsetPolicy = null;
- private Vector2 visualSizePolicy = null;
- private Visual.AlignType? visualOrigin = null;
- private Visual.AlignType? visualAnchorPoint = null;
+ private Vector2 _visualSize = null;
+ private Vector2 _visualOffset = null;
+ private Vector2 _visualOffsetPolicy = null;
+ private Vector2 _visualSizePolicy = null;
+ private Visual.AlignType? _visualOrigin = null;
+ private Visual.AlignType? _visualAnchorPoint = null;
- private PropertyMap visualTransformMap = null;
+ private PropertyMap _visualTransformMap = null;
- private int? depthIndex = null;
+ private int? _depthIndex = null;
/// <summary>
/// Constructor.
{
get
{
- return visualSize ?? (new Size2D(1, 1));
+ return _visualSize ?? (new Size2D(1, 1));
}
set
{
- visualSize = value;
- if (visualSizePolicy == null)
+ _visualSize = value;
+ if (_visualSizePolicy == null)
{
- visualSizePolicy = new Vector2(1.0f, 1.0f);
+ _visualSizePolicy = new Vector2(1.0f, 1.0f);
}
UpdateVisual();
}
{
get
{
- return visualOffset ?? (new Vector2(0.0f, 0.0f));
+ return _visualOffset ?? (new Vector2(0.0f, 0.0f));
}
set
{
- visualOffset = value;
- if (visualOffsetPolicy == null)
+ _visualOffset = value;
+ if (_visualOffsetPolicy == null)
{
- visualOffsetPolicy = new Vector2(1.0f, 1.0f);
+ _visualOffsetPolicy = new Vector2(1.0f, 1.0f);
}
UpdateVisual();
}
{
get
{
- return visualSize ?? (new RelativeVector2(1.0f, 1.0f));
+ return _visualSize ?? (new RelativeVector2(1.0f, 1.0f));
}
set
{
- visualSize = value;
- visualSizePolicy = new Vector2(0.0f, 0.0f);
+ _visualSize = value;
+ _visualSizePolicy = new Vector2(0.0f, 0.0f);
UpdateVisual();
}
}
{
get
{
- return visualOffset ?? (new RelativeVector2(0.0f, 0.0f));
+ return _visualOffset ?? (new RelativeVector2(0.0f, 0.0f));
}
set
{
- visualOffset = value;
- visualOffsetPolicy = new Vector2(0.0f, 0.0f);
+ _visualOffset = value;
+ _visualOffsetPolicy = new Vector2(0.0f, 0.0f);
UpdateVisual();
}
}
{
get
{
- if (visualOffsetPolicy != null && visualOffsetPolicy.X == 1.0f
- && visualOffsetPolicy.Y == 1.0f)
+ if (_visualOffsetPolicy != null && _visualOffsetPolicy.X == 1.0f
+ && _visualOffsetPolicy.Y == 1.0f)
{
return VisualTransformPolicyType.Absolute;
}
switch (value)
{
case VisualTransformPolicyType.Relative:
- visualOffsetPolicy = new Vector2(0.0f, 0.0f);
+ _visualOffsetPolicy = new Vector2(0.0f, 0.0f);
break;
case VisualTransformPolicyType.Absolute:
- visualOffsetPolicy = new Vector2(1.0f, 1.0f);
+ _visualOffsetPolicy = new Vector2(1.0f, 1.0f);
break;
default:
- visualOffsetPolicy = new Vector2(0.0f, 0.0f);
+ _visualOffsetPolicy = new Vector2(0.0f, 0.0f);
break;
}
UpdateVisual();
{
get
{
- if (visualOffsetPolicy != null && visualOffsetPolicy.X == 1.0f)
+ if (_visualOffsetPolicy != null && _visualOffsetPolicy.X == 1.0f)
{
return VisualTransformPolicyType.Absolute;
}
x = 0.0f;
break;
}
- visualOffsetPolicy = new Vector2(x, visualOffsetPolicy?.Y ?? 0);
+ _visualOffsetPolicy = new Vector2(x, _visualOffsetPolicy?.Y ?? 0);
UpdateVisual();
}
{
get
{
- if (visualOffsetPolicy != null && visualOffsetPolicy.Y == 1.0f)
+ if (_visualOffsetPolicy != null && _visualOffsetPolicy.Y == 1.0f)
{
return VisualTransformPolicyType.Absolute;
}
y = 0.0f;
break;
}
- visualOffsetPolicy = new Vector2(visualOffsetPolicy?.X ?? 0, y);
+ _visualOffsetPolicy = new Vector2(_visualOffsetPolicy?.X ?? 0, y);
UpdateVisual();
}
}
{
get
{
- if (visualSizePolicy != null && visualSizePolicy.X == 1.0f
- && visualSizePolicy.Y == 1.0f)
+ if (_visualSizePolicy != null && _visualSizePolicy.X == 1.0f
+ && _visualSizePolicy.Y == 1.0f)
{
return VisualTransformPolicyType.Absolute;
}
switch (value)
{
case VisualTransformPolicyType.Relative:
- visualSizePolicy = new Vector2(0.0f, 0.0f);
+ _visualSizePolicy = new Vector2(0.0f, 0.0f);
break;
case VisualTransformPolicyType.Absolute:
- visualSizePolicy = new Vector2(1.0f, 1.0f);
+ _visualSizePolicy = new Vector2(1.0f, 1.0f);
break;
default:
- visualSizePolicy = new Vector2(0.0f, 0.0f);
+ _visualSizePolicy = new Vector2(0.0f, 0.0f);
break;
}
UpdateVisual();
{
get
{
- if (visualSizePolicy != null && visualSizePolicy.Width == 1.0f)
+ if (_visualSizePolicy != null && _visualSizePolicy.Width == 1.0f)
{
return VisualTransformPolicyType.Absolute;
}
break;
}
- visualSizePolicy = new Vector2(width, visualSizePolicy?.Height ?? 0);
+ _visualSizePolicy = new Vector2(width, _visualSizePolicy?.Height ?? 0);
UpdateVisual();
}
}
{
get
{
- if (visualSizePolicy != null && visualSizePolicy.Height == 1.0f)
+ if (_visualSizePolicy != null && _visualSizePolicy.Height == 1.0f)
{
return VisualTransformPolicyType.Absolute;
}
height = 0.0f;
break;
}
- visualSizePolicy = new Vector2(visualSizePolicy?.Width ?? 0, height);
+ _visualSizePolicy = new Vector2(_visualSizePolicy?.Width ?? 0, height);
UpdateVisual();
}
}
{
get
{
- return visualOrigin ?? (Visual.AlignType.Center);
+ return _visualOrigin ?? (Visual.AlignType.Center);
}
set
{
- visualOrigin = value;
+ _visualOrigin = value;
UpdateVisual();
}
}
{
get
{
- return visualAnchorPoint ?? (Visual.AlignType.Center);
+ return _visualAnchorPoint ?? (Visual.AlignType.Center);
}
set
{
- visualAnchorPoint = value;
+ _visualAnchorPoint = value;
UpdateVisual();
}
}
{
get
{
- return depthIndex ?? (0);
+ return _depthIndex ?? (0);
}
set
{
- depthIndex = value;
+ _depthIndex = value;
}
}
get
{
ComposingTransformMap();
- return visualTransformMap;
+ return _visualTransformMap;
}
}
_outputVisualMap = new PropertyMap();
}
- if (_shader != null)
- {
- PropertyValue temp = new PropertyValue(_shader);
- _outputVisualMap.Add(Visual.Property.Shader, temp);
- temp.Dispose();
- }
- if (_premultipliedAlpha != null)
- {
- PropertyValue temp = new PropertyValue((bool)_premultipliedAlpha);
- _outputVisualMap.Add(Visual.Property.PremultipliedAlpha, temp);
- temp.Dispose();
- }
- if (_mixColor != null)
- {
- PropertyValue temp = new PropertyValue(_mixColor);
- _outputVisualMap.Add(Visual.Property.MixColor, temp);
- temp.Dispose();
- }
- if (_opacity != null)
- {
- PropertyValue temp = new PropertyValue((float)_opacity);
- _outputVisualMap.Add(Visual.Property.Opacity, temp);
- temp.Dispose();
- }
- if (_visualFittingMode != null)
- {
- PropertyValue temp = new PropertyValue((int)_visualFittingMode);
- _outputVisualMap.Add(Visual.Property.VisualFittingMode, temp);
- temp.Dispose();
- }
- if (cornerRadius != null)
- {
- PropertyValue temp = new PropertyValue((int)cornerRadius);
- _outputVisualMap.Add(Visual.Property.CornerRadius, temp);
- temp.Dispose();
- }
+ if (_shader != null) { _outputVisualMap.Add(Visual.Property.Shader, new PropertyValue(_shader)); }
+ if (_premultipliedAlpha != null) { _outputVisualMap.Add(Visual.Property.PremultipliedAlpha, new PropertyValue((bool)_premultipliedAlpha)); }
+ if (_mixColor != null) { _outputVisualMap.Add(Visual.Property.MixColor, new PropertyValue(_mixColor)); }
+ if (_opacity != null) { _outputVisualMap.Add(Visual.Property.Opacity, new PropertyValue((float)_opacity)); }
+ if (_visualFittingMode != null) { _outputVisualMap.Add(Visual.Property.VisualFittingMode, new PropertyValue((int)_visualFittingMode)); }
+ if (cornerRadius != null) { _outputVisualMap.Add(Visual.Property.CornerRadius, new PropertyValue((int)cornerRadius)); }
}
private void ComposingTransformMap()
{
- visualTransformMap = new PropertyMap();
- if (visualSize != null)
- {
- PropertyValue temp = new PropertyValue(visualSize);
- visualTransformMap.Add((int)VisualTransformPropertyType.Size, temp);
- temp.Dispose();
- }
- if (visualOffset != null)
- {
- PropertyValue temp = new PropertyValue(visualOffset);
- visualTransformMap.Add((int)VisualTransformPropertyType.Offset, temp);
- temp.Dispose();
- }
- if (visualOffsetPolicy != null)
- {
- PropertyValue temp = new PropertyValue(visualOffsetPolicy);
- visualTransformMap.Add((int)VisualTransformPropertyType.OffsetPolicy, temp);
- temp.Dispose();
- }
- if (visualSizePolicy != null)
- {
- PropertyValue temp = new PropertyValue(visualSizePolicy);
- visualTransformMap.Add((int)VisualTransformPropertyType.SizePolicy, temp);
- temp.Dispose();
- }
- if (visualOrigin != null)
- {
- PropertyValue temp = new PropertyValue((int)visualOrigin);
- visualTransformMap.Add((int)VisualTransformPropertyType.Origin, temp);
- temp.Dispose();
- }
- if (visualAnchorPoint != null)
- {
- PropertyValue temp = new PropertyValue((int)visualAnchorPoint);
- visualTransformMap.Add((int)VisualTransformPropertyType.AnchorPoint, temp);
- temp.Dispose();
- }
+ _visualTransformMap = new PropertyMap();
+ if (_visualSize != null) { _visualTransformMap.Add((int)VisualTransformPropertyType.Size, new PropertyValue(_visualSize)); }
+ if (_visualOffset != null) { _visualTransformMap.Add((int)VisualTransformPropertyType.Offset, new PropertyValue(_visualOffset)); }
+ if (_visualOffsetPolicy != null) { _visualTransformMap.Add((int)VisualTransformPropertyType.OffsetPolicy, new PropertyValue(_visualOffsetPolicy)); }
+ if (_visualSizePolicy != null) { _visualTransformMap.Add((int)VisualTransformPropertyType.SizePolicy, new PropertyValue(_visualSizePolicy)); }
+ if (_visualOrigin != null) { _visualTransformMap.Add((int)VisualTransformPropertyType.Origin, new PropertyValue((int)_visualOrigin)); }
+ if (_visualAnchorPoint != null) { _visualTransformMap.Add((int)VisualTransformPropertyType.AnchorPoint, new PropertyValue((int)_visualAnchorPoint)); }
}
+
+
[EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void Dispose(bool disposing)
{
_mixColor?.Dispose();
_outputVisualMap?.Dispose();
_shader?.Dispose();
- visualOffset?.Dispose();
- visualOffsetPolicy?.Dispose();
- visualSize?.Dispose();
- visualSizePolicy?.Dispose();
- visualTransformMap?.Dispose();
+ _visualOffset?.Dispose();
+ _visualOffsetPolicy?.Dispose();
+ _visualSize?.Dispose();
+ _visualSizePolicy?.Dispose();
+ _visualTransformMap?.Dispose();
}
disposed = true;
}
if (_urls != null)
{
_outputVisualMap = new PropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.AnimatedImage);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.AnimatedImage));
if (_urls.Count == 1)
{
- temp = new PropertyValue(_urls[0]);
- _outputVisualMap.Add(ImageVisualProperty.URL, temp);
- temp.Dispose();
+ _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_urls[0]));
}
else
{
{
urlArray.Add(new PropertyValue(url));
}
- temp = new PropertyValue(urlArray);
- _outputVisualMap.Add(ImageVisualProperty.URL, temp);
- temp.Dispose();
- urlArray.Dispose();
- }
- if (_batchSize != null)
- {
- temp = new PropertyValue((int)_batchSize);
- _outputVisualMap.Add(ImageVisualProperty.BatchSize, temp);
- temp.Dispose();
- }
- if (_cacheSize != null)
- {
- temp = new PropertyValue((int)_cacheSize);
- _outputVisualMap.Add(ImageVisualProperty.CacheSize, temp);
- temp.Dispose();
- }
- if (_frameDelay != null)
- {
- temp = new PropertyValue((float)_frameDelay);
- _outputVisualMap.Add(ImageVisualProperty.FrameDelay, temp);
- temp.Dispose();
- }
- if (_loopCount != null)
- {
- temp = new PropertyValue((int)_loopCount);
- _outputVisualMap.Add(ImageVisualProperty.LoopCount, temp);
- temp.Dispose();
+ _outputVisualMap.Add(ImageVisualProperty.URL, (new PropertyValue(urlArray)));
}
+ if (_batchSize != null) { _outputVisualMap.Add(ImageVisualProperty.BatchSize, new PropertyValue((int)_batchSize)); }
+ if (_cacheSize != null) { _outputVisualMap.Add(ImageVisualProperty.CacheSize, new PropertyValue((int)_cacheSize)); }
+ if (_frameDelay != null) { _outputVisualMap.Add(ImageVisualProperty.FrameDelay, new PropertyValue((float)_frameDelay)); }
+ if (_loopCount != null) { _outputVisualMap.Add(ImageVisualProperty.LoopCount, new PropertyValue((int)_loopCount)); }
base.ComposingPropertyMap();
}
}
_outputVisualMap = null;
base.ComposingPropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.Arc);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
- temp = new PropertyValue(Thickness < 0.0f ? 0.0f : Thickness);
- _outputVisualMap.Add(ArcVisualProperty.Thickness, temp);
- temp.Dispose();
-
- temp = new PropertyValue(StartAngle);
- _outputVisualMap.Add(ArcVisualProperty.StartAngle, temp);
- temp.Dispose();
-
- temp = new PropertyValue(SweepAngle);
- _outputVisualMap.Add(ArcVisualProperty.SweepAngle, temp);
- temp.Dispose();
-
- temp = new PropertyValue((int)Cap);
- _outputVisualMap.Add(ArcVisualProperty.Cap, temp);
- temp.Dispose();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Arc));
+ _outputVisualMap.Add(ArcVisualProperty.Thickness, new PropertyValue(Thickness < 0.0f ? 0.0f : Thickness));
+ _outputVisualMap.Add(ArcVisualProperty.StartAngle, new PropertyValue(StartAngle));
+ _outputVisualMap.Add(ArcVisualProperty.SweepAngle, new PropertyValue(SweepAngle));
+ _outputVisualMap.Add(ArcVisualProperty.Cap, new PropertyValue((int)Cap));
}
#endregion Methods
/// <since_tizen> 3 </since_tizen>
public class BorderVisual : VisualMap
{
- private Color color = null;
- private float? size = null;
- private bool? antiAliasing = null;
+ private Color _color = null;
+ private float? _size = null;
+ private bool? _antiAliasing = null;
/// <summary>
/// Constructor.
{
get
{
- return color;
+ return _color;
}
set
{
- color = value;
+ _color = value;
UpdateVisual();
}
}
{
get
{
- return size ?? (-1.0f);
+ return _size ?? (-1.0f);
}
set
{
- size = value;
+ _size = value;
UpdateVisual();
}
}
{
get
{
- return antiAliasing ?? (false);
+ return _antiAliasing ?? (false);
}
set
{
- antiAliasing = value;
+ _antiAliasing = value;
UpdateVisual();
}
}
/// <since_tizen> 3 </since_tizen>
protected override void ComposingPropertyMap()
{
- if (color != null && size != null)
+ if (_color != null && _size != null)
{
_outputVisualMap = new PropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.Border);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
-
- temp = new PropertyValue((float)size);
- _outputVisualMap.Add(BorderVisualProperty.Size, temp);
- temp.Dispose();
-
- temp = new PropertyValue(color);
- _outputVisualMap.Add(BorderVisualProperty.Color, temp);
- temp.Dispose();
-
- if (antiAliasing != null)
- {
- temp = new PropertyValue((bool)antiAliasing);
- _outputVisualMap.Add(BorderVisualProperty.AntiAliasing, temp);
- temp.Dispose();
- }
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Border));
+ _outputVisualMap.Add(BorderVisualProperty.Size, new PropertyValue((float)_size));
+ _outputVisualMap.Add(BorderVisualProperty.Color, new PropertyValue(_color));
+ if (_antiAliasing != null) { _outputVisualMap.Add(BorderVisualProperty.AntiAliasing, new PropertyValue((bool)_antiAliasing)); }
base.ComposingPropertyMap();
}
}
/// <since_tizen> 3 </since_tizen>
public class ColorVisual : VisualMap
{
- private Color mixColorForColorVisual = null;
- private bool? renderIfTransparent = false;
+ private Color _mixColorForColorVisual = null;
+ private bool? _renderIfTransparent = false;
/// <summary>
/// Constructor.
{
get
{
- return mixColorForColorVisual;
+ return _mixColorForColorVisual;
}
set
{
- mixColorForColorVisual = value;
+ _mixColorForColorVisual = value;
UpdateVisual();
}
}
{
get
{
- return renderIfTransparent ?? (false);
+ return _renderIfTransparent ?? (false);
}
set
{
- renderIfTransparent = value;
+ _renderIfTransparent = value;
UpdateVisual();
}
}
/// <since_tizen> 3 </since_tizen>
protected override void ComposingPropertyMap()
{
- Color color = mixColorForColorVisual ?? _mixColor;
+ Color color = _mixColorForColorVisual ?? _mixColor;
if (color != null)
{
base.ComposingPropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.Color);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
-
- temp = new PropertyValue(color);
- _outputVisualMap.Add(ColorVisualProperty.MixColor, temp);
- temp.Dispose();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color));
+ _outputVisualMap.Add(ColorVisualProperty.MixColor, new PropertyValue(color));
}
else
{
if (((_startPosition != null && _endPosition != null) || (_center != null && _radius != null)) && _stopColor != null)
{
_outputVisualMap = new PropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.Gradient);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
-
- temp = new PropertyValue(_stopColor);
- _outputVisualMap.Add(GradientVisualProperty.StopColor, temp);
- temp.Dispose();
-
- if (_startPosition != null)
- {
- temp = new PropertyValue(_startPosition);
- _outputVisualMap.Add(GradientVisualProperty.StartPosition, temp);
- temp.Dispose();
- }
-
- if (_endPosition != null)
- {
- temp = new PropertyValue(_endPosition);
- _outputVisualMap.Add(GradientVisualProperty.EndPosition, temp);
- temp.Dispose();
- }
-
- if (_center != null)
- {
- temp = new PropertyValue(_center);
- _outputVisualMap.Add(GradientVisualProperty.Center, temp);
- temp.Dispose();
- }
-
- if (_radius != null)
- {
- temp = new PropertyValue((float)_radius);
- _outputVisualMap.Add(GradientVisualProperty.Radius, temp);
- temp.Dispose();
- }
-
- if (_stopOffset != null)
- {
- temp = new PropertyValue(_stopOffset);
- _outputVisualMap.Add(GradientVisualProperty.StopOffset, temp);
- temp.Dispose();
- }
-
- if (_units != null)
- {
- temp = new PropertyValue((int)_units);
- _outputVisualMap.Add(GradientVisualProperty.Units, temp);
- temp.Dispose();
- }
-
- if (_spreadMethod != null)
- {
- temp = new PropertyValue((int)_spreadMethod);
- _outputVisualMap.Add(GradientVisualProperty.SpreadMethod, temp);
- temp.Dispose();
- }
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Gradient));
+ _outputVisualMap.Add(GradientVisualProperty.StopColor, new PropertyValue(_stopColor));
+ if (_startPosition != null) { _outputVisualMap.Add(GradientVisualProperty.StartPosition, new PropertyValue(_startPosition)); }
+ if (_endPosition != null) { _outputVisualMap.Add(GradientVisualProperty.EndPosition, new PropertyValue(_endPosition)); }
+ if (_center != null) { _outputVisualMap.Add(GradientVisualProperty.Center, new PropertyValue(_center)); }
+ if (_radius != null) { _outputVisualMap.Add(GradientVisualProperty.Radius, new PropertyValue((float)_radius)); }
+ if (_stopOffset != null) { _outputVisualMap.Add(GradientVisualProperty.StopOffset, new PropertyValue(_stopOffset)); }
+ if (_units != null) { _outputVisualMap.Add(GradientVisualProperty.Units, new PropertyValue((int)_units)); }
+ if (_spreadMethod != null) { _outputVisualMap.Add(GradientVisualProperty.SpreadMethod, new PropertyValue((int)_spreadMethod)); }
base.ComposingPropertyMap();
}
}
/// <since_tizen> 3 </since_tizen>
public class ImageVisual : VisualMap
{
- private string url = null;
- private string alphaMaskUrl = null;
- private string auxiliaryImageUrl = null;
- private FittingModeType? fittingMode = null;
- private SamplingModeType? samplingMode = null;
- private int? desiredWidth = null;
- private int? desiredHeight = null;
- private bool? synchronousLoading = false;
- private bool? borderOnly = null;
- private Vector4 pixelArea = null;
- private WrapModeType? wrapModeU = null;
- private WrapModeType? wrapModeV = null;
- private float? auxiliaryImageAlpha = null;
- private float? maskContentScale = null;
- private bool? cropToMask = null;
- private ReleasePolicyType? releasePolicy = null;
- private LoadPolicyType? loadPolicy = null;
- private bool? orientationCorrection = true;
- private bool? atlasing = false;
+ private string _url = null;
+ private string _alphaMaskUrl = null;
+ private string _auxiliaryImageUrl = null;
+ private FittingModeType? _fittingMode = null;
+ private SamplingModeType? _samplingMode = null;
+ private int? _desiredWidth = null;
+ private int? _desiredHeight = null;
+ private bool? _synchronousLoading = false;
+ private bool? _borderOnly = null;
+ private Vector4 _pixelArea = null;
+ private WrapModeType? _wrapModeU = null;
+ private WrapModeType? _wrapModeV = null;
+ private float? _auxiliaryImageAlpha = null;
+ private float? _maskContentScale = null;
+ private bool? _cropToMask = null;
+ private ReleasePolicyType? _releasePolicy = null;
+ private LoadPolicyType? _loadPolicy = null;
+ private bool? _orientationCorrection = true;
+ private bool? _atlasing = false;
/// <summary>
/// Constructor.
{
get
{
- return url;
+ return _url;
}
set
{
- url = (value == null ? "" : value);
+ _url = (value == null ? "" : value);
UpdateVisual();
}
}
{
get
{
- return alphaMaskUrl;
+ return _alphaMaskUrl;
}
set
{
- alphaMaskUrl = value;
+ _alphaMaskUrl = value;
UpdateVisual();
}
}
{
get
{
- return auxiliaryImageUrl;
+ return _auxiliaryImageUrl;
}
set
{
- auxiliaryImageUrl = value;
+ _auxiliaryImageUrl = value;
UpdateVisual();
}
}
{
get
{
- return fittingMode ?? (FittingModeType.ShrinkToFit);
+ return _fittingMode ?? (FittingModeType.ShrinkToFit);
}
set
{
- fittingMode = value;
+ _fittingMode = value;
UpdateVisual();
}
}
{
get
{
- return samplingMode ?? (SamplingModeType.Box);
+ return _samplingMode ?? (SamplingModeType.Box);
}
set
{
- samplingMode = value;
+ _samplingMode = value;
UpdateVisual();
}
}
{
get
{
- return desiredWidth ?? (-1);
+ return _desiredWidth ?? (-1);
}
set
{
- desiredWidth = value;
+ _desiredWidth = value;
UpdateVisual();
}
}
{
get
{
- return desiredHeight ?? (-1);
+ return _desiredHeight ?? (-1);
}
set
{
- desiredHeight = value;
+ _desiredHeight = value;
UpdateVisual();
}
}
{
get
{
- return synchronousLoading ?? (false);
+ return _synchronousLoading ?? (false);
}
set
{
- synchronousLoading = value;
+ _synchronousLoading = value;
UpdateVisual();
}
}
{
get
{
- return borderOnly ?? (false);
+ return _borderOnly ?? (false);
}
set
{
- borderOnly = value;
+ _borderOnly = value;
UpdateVisual();
}
}
{
get
{
- return pixelArea ?? (new Vector4(0.0f, 0.0f, 1.0f, 1.0f));
+ return _pixelArea ?? (new Vector4(0.0f, 0.0f, 1.0f, 1.0f));
}
set
{
- pixelArea = value;
+ _pixelArea = value;
UpdateVisual();
}
}
{
get
{
- return wrapModeU ?? (WrapModeType.Default);
+ return _wrapModeU ?? (WrapModeType.Default);
}
set
{
- wrapModeU = value;
+ _wrapModeU = value;
UpdateVisual();
}
}
{
get
{
- return wrapModeV ?? (WrapModeType.Default);
+ return _wrapModeV ?? (WrapModeType.Default);
}
set
{
- wrapModeV = value;
+ _wrapModeV = value;
UpdateVisual();
}
}
{
get
{
- return maskContentScale ?? 1.0f;
+ return _maskContentScale ?? 1.0f;
}
set
{
- maskContentScale = value;
+ _maskContentScale = value;
UpdateVisual();
}
}
{
get
{
- return cropToMask ?? false;
+ return _cropToMask ?? false;
}
set
{
- cropToMask = value;
+ _cropToMask = value;
UpdateVisual();
}
}
{
get
{
- return auxiliaryImageAlpha ?? 1.0f;
+ return _auxiliaryImageAlpha ?? 1.0f;
}
set
{
- auxiliaryImageAlpha = value;
+ _auxiliaryImageAlpha = value;
UpdateVisual();
}
}
{
get
{
- return releasePolicy ?? (ReleasePolicyType.Destroyed);
+ return _releasePolicy ?? (ReleasePolicyType.Destroyed);
}
set
{
- releasePolicy = value;
+ _releasePolicy = value;
UpdateVisual();
}
}
{
get
{
- return loadPolicy ?? (LoadPolicyType.Attached);
+ return _loadPolicy ?? (LoadPolicyType.Attached);
}
set
{
- loadPolicy = value;
+ _loadPolicy = value;
UpdateVisual();
}
}
{
get
{
- return orientationCorrection ?? (true);
+ return _orientationCorrection ?? (true);
}
set
{
- orientationCorrection = value;
+ _orientationCorrection = value;
UpdateVisual();
}
}
{
get
{
- return atlasing ?? (false);
+ return _atlasing ?? (false);
}
set
{
- atlasing = value;
+ _atlasing = value;
UpdateVisual();
}
}
/// <since_tizen> 3 </since_tizen>
protected override void ComposingPropertyMap()
{
- if (url != null)
+ if (_url != null)
{
_outputVisualMap = new PropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.Image);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
-
- temp = new PropertyValue(url);
- _outputVisualMap.Add(ImageVisualProperty.URL, temp);
- temp.Dispose();
-
- if (alphaMaskUrl != null)
- {
- temp = new PropertyValue(alphaMaskUrl);
- _outputVisualMap.Add(ImageVisualProperty.AlphaMaskURL, temp);
- temp.Dispose();
- }
-
- if (auxiliaryImageUrl != null)
- {
- temp = new PropertyValue(auxiliaryImageUrl);
- _outputVisualMap.Add(ImageVisualProperty.AuxiliaryImageURL, temp);
- temp.Dispose();
- }
-
- if (fittingMode != null)
- {
- temp = new PropertyValue((int)fittingMode);
- _outputVisualMap.Add(ImageVisualProperty.FittingMode, temp);
- temp.Dispose();
- }
-
- if (samplingMode != null)
- {
- temp = new PropertyValue((int)samplingMode);
- _outputVisualMap.Add(ImageVisualProperty.SamplingMode, temp);
- temp.Dispose();
- }
-
- if (desiredWidth != null)
- {
- temp = new PropertyValue((int)desiredWidth);
- _outputVisualMap.Add(ImageVisualProperty.DesiredWidth, temp);
- temp.Dispose();
- }
-
- if (desiredHeight != null)
- {
- temp = new PropertyValue((int)desiredHeight);
- _outputVisualMap.Add(ImageVisualProperty.DesiredHeight, temp);
- temp.Dispose();
- }
-
- if (synchronousLoading != null)
- {
- temp = new PropertyValue((bool)synchronousLoading);
- _outputVisualMap.Add(ImageVisualProperty.SynchronousLoading, temp);
- temp.Dispose();
- }
-
- if (borderOnly != null)
- {
- temp = new PropertyValue((bool)borderOnly);
- _outputVisualMap.Add(ImageVisualProperty.BorderOnly, temp);
- temp.Dispose();
- }
-
- if (pixelArea != null)
- {
- temp = new PropertyValue(pixelArea);
- _outputVisualMap.Add(ImageVisualProperty.PixelArea, temp);
- temp.Dispose();
- }
-
- if (wrapModeU != null)
- {
- temp = new PropertyValue((int)wrapModeU);
- _outputVisualMap.Add(ImageVisualProperty.WrapModeU, temp);
- temp.Dispose();
- }
-
- if (wrapModeV != null)
- {
- temp = new PropertyValue((int)wrapModeV);
- _outputVisualMap.Add(ImageVisualProperty.WrapModeV, temp);
- temp.Dispose();
- }
-
- if (maskContentScale != null)
- {
- temp = new PropertyValue((float)maskContentScale);
- _outputVisualMap.Add(ImageVisualProperty.MaskContentScale, temp);
- temp.Dispose();
- }
-
- if (cropToMask != null)
- {
- temp = new PropertyValue((bool)cropToMask);
- _outputVisualMap.Add(ImageVisualProperty.CropToMask, temp);
- temp.Dispose();
- }
-
- if (auxiliaryImageAlpha != null)
- {
- temp = new PropertyValue((float)auxiliaryImageAlpha);
- _outputVisualMap.Add(ImageVisualProperty.AuxiliaryImageAlpha, temp);
- temp.Dispose();
- }
-
- if (releasePolicy != null)
- {
- temp = new PropertyValue((int)releasePolicy);
- _outputVisualMap.Add(ImageVisualProperty.ReleasePolicy, temp);
- temp.Dispose();
- }
-
- if (loadPolicy != null)
- {
- temp = new PropertyValue((int)loadPolicy);
- _outputVisualMap.Add(ImageVisualProperty.LoadPolicy, temp);
- temp.Dispose();
- }
-
- if (orientationCorrection != null)
- {
- temp = new PropertyValue((bool)orientationCorrection);
- _outputVisualMap.Add(ImageVisualProperty.OrientationCorrection, temp);
- temp.Dispose();
- }
-
- if (atlasing != null)
- {
- temp = new PropertyValue((bool)atlasing);
- _outputVisualMap.Add(ImageVisualProperty.Atlasing, temp);
- temp.Dispose();
- }
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
+ _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_url));
+ if (_alphaMaskUrl != null) { _outputVisualMap.Add(ImageVisualProperty.AlphaMaskURL, new PropertyValue(_alphaMaskUrl)); }
+ if (_auxiliaryImageUrl != null) { _outputVisualMap.Add(ImageVisualProperty.AuxiliaryImageURL, new PropertyValue(_auxiliaryImageUrl)); }
+ if (_fittingMode != null) { _outputVisualMap.Add(ImageVisualProperty.FittingMode, new PropertyValue((int)_fittingMode)); }
+ if (_samplingMode != null) { _outputVisualMap.Add(ImageVisualProperty.SamplingMode, new PropertyValue((int)_samplingMode)); }
+ if (_desiredWidth != null) { _outputVisualMap.Add(ImageVisualProperty.DesiredWidth, new PropertyValue((int)_desiredWidth)); }
+ if (_desiredHeight != null) { _outputVisualMap.Add(ImageVisualProperty.DesiredHeight, new PropertyValue((int)_desiredHeight)); }
+ if (_synchronousLoading != null) { _outputVisualMap.Add(ImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading)); }
+ if (_borderOnly != null) { _outputVisualMap.Add(ImageVisualProperty.BorderOnly, new PropertyValue((bool)_borderOnly)); }
+ if (_pixelArea != null) { _outputVisualMap.Add(ImageVisualProperty.PixelArea, new PropertyValue(_pixelArea)); }
+ if (_wrapModeU != null) { _outputVisualMap.Add(ImageVisualProperty.WrapModeU, new PropertyValue((int)_wrapModeU)); }
+ if (_wrapModeV != null) { _outputVisualMap.Add(ImageVisualProperty.WrapModeV, new PropertyValue((int)_wrapModeV)); }
+ if (_maskContentScale != null) { _outputVisualMap.Add(ImageVisualProperty.MaskContentScale, new PropertyValue((float)_maskContentScale)); }
+ if (_cropToMask != null) { _outputVisualMap.Add(ImageVisualProperty.CropToMask, new PropertyValue((bool)_cropToMask)); }
+ if (_auxiliaryImageAlpha != null) { _outputVisualMap.Add(ImageVisualProperty.AuxiliaryImageAlpha, new PropertyValue((float)_auxiliaryImageAlpha)); }
+ if (_releasePolicy != null) { _outputVisualMap.Add(ImageVisualProperty.ReleasePolicy, new PropertyValue((int)_releasePolicy)); }
+ if (_loadPolicy != null) { _outputVisualMap.Add(ImageVisualProperty.LoadPolicy, new PropertyValue((int)_loadPolicy)); }
+ if (_orientationCorrection != null) { _outputVisualMap.Add(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)_orientationCorrection)); }
+ if (_atlasing != null) { _outputVisualMap.Add(ImageVisualProperty.Atlasing, new PropertyValue((bool)_atlasing)); }
base.ComposingPropertyMap();
}
}
if (_objectURL != null)
{
_outputVisualMap = new PropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.Mesh);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
-
- temp = new PropertyValue(_objectURL);
- _outputVisualMap.Add(MeshVisualProperty.ObjectURL, temp);
- temp.Dispose();
-
- if (_materialtURL != null)
- {
- temp = new PropertyValue(_materialtURL);
- _outputVisualMap.Add(MeshVisualProperty.MaterialtURL, temp);
- temp.Dispose();
- }
- if (_texturesPath != null)
- {
- temp = new PropertyValue(_texturesPath);
- _outputVisualMap.Add(MeshVisualProperty.TexturesPath, temp);
- temp.Dispose();
- }
- if (_shadingMode != null)
- {
- temp = new PropertyValue((int)_shadingMode);
- _outputVisualMap.Add(MeshVisualProperty.ShadingMode, temp);
- temp.Dispose();
- }
- if (_useMipmapping != null)
- {
- temp = new PropertyValue((bool)_useMipmapping);
- _outputVisualMap.Add(MeshVisualProperty.UseMipmapping, temp);
- temp.Dispose();
- }
- if (_useSoftNormals != null)
- {
- temp = new PropertyValue((bool)_useSoftNormals);
- _outputVisualMap.Add(MeshVisualProperty.UseSoftNormals, temp);
- temp.Dispose();
- }
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Mesh));
+ _outputVisualMap.Add(MeshVisualProperty.ObjectURL, new PropertyValue(_objectURL));
+ if (_materialtURL != null) { _outputVisualMap.Add(MeshVisualProperty.MaterialtURL, new PropertyValue(_materialtURL)); }
+ if (_texturesPath != null) { _outputVisualMap.Add(MeshVisualProperty.TexturesPath, new PropertyValue(_texturesPath)); }
+ if (_shadingMode != null) { _outputVisualMap.Add(MeshVisualProperty.ShadingMode, new PropertyValue((int)_shadingMode)); }
+ if (_useMipmapping != null) { _outputVisualMap.Add(MeshVisualProperty.UseMipmapping, new PropertyValue((bool)_useMipmapping)); }
+ if (_useSoftNormals != null) { _outputVisualMap.Add(MeshVisualProperty.UseSoftNormals, new PropertyValue((bool)_useSoftNormals)); }
base.ComposingPropertyMap();
}
}
/// <since_tizen> 3 </since_tizen>
public class NPatchVisual : VisualMap
{
- private string url = null;
- private bool? borderOnly = null;
- private Rectangle border = null;
+ private string _url = null;
+ private bool? _borderOnly = null;
+ private Rectangle _border = null;
/// <summary>
/// Constructor.
{
get
{
- return url;
+ return _url;
}
set
{
- url = value;
+ _url = value;
UpdateVisual();
}
}
{
get
{
- return borderOnly ?? false;
+ return _borderOnly ?? false;
}
set
{
- borderOnly = value;
+ _borderOnly = value;
UpdateVisual();
}
}
{
get
{
- return border;
+ return _border;
}
set
{
- border = value;
+ _border = value;
UpdateVisual();
}
}
/// <since_tizen> 3 </since_tizen>
protected override void ComposingPropertyMap()
{
- if (url != null)
+ if (_url != null)
{
_outputVisualMap = new PropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.NPatch);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
-
- temp = new PropertyValue(url);
- _outputVisualMap.Add(NpatchImageVisualProperty.URL, temp);
- temp.Dispose();
-
- if (borderOnly != null)
- {
- temp = new PropertyValue((bool)borderOnly);
- _outputVisualMap.Add(NpatchImageVisualProperty.BorderOnly, temp);
- temp.Dispose();
- }
-
- if (border != null)
- {
- temp = new PropertyValue(border);
- _outputVisualMap.Add(NpatchImageVisualProperty.Border, temp);
- temp.Dispose();
- }
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch));
+ _outputVisualMap.Add(NpatchImageVisualProperty.URL, new PropertyValue(_url));
+ if (_borderOnly != null) { _outputVisualMap.Add(NpatchImageVisualProperty.BorderOnly, new PropertyValue((bool)_borderOnly)); }
+ if (_border != null) { _outputVisualMap.Add(NpatchImageVisualProperty.Border, new PropertyValue(_border)); }
base.ComposingPropertyMap();
}
}
/// <since_tizen> 3 </since_tizen>
protected override void ComposingPropertyMap()
{
- _outputVisualMap = new PropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.Primitive);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
-
- if (_shape != null)
- {
- temp = new PropertyValue((int)_shape);
- _outputVisualMap.Add(PrimitiveVisualProperty.Shape, temp);
- temp.Dispose();
- }
-
- if (_mixColorForPrimitiveVisual != null)
- {
- temp = new PropertyValue(_mixColorForPrimitiveVisual);
- _outputVisualMap.Add(PrimitiveVisualProperty.MixColor, temp);
- temp.Dispose();
- }
-
- if (_slices != null)
- {
- temp = new PropertyValue((int)_slices);
- _outputVisualMap.Add(PrimitiveVisualProperty.Slices, temp);
- temp.Dispose();
- }
-
- if (_stacks != null)
- {
- temp = new PropertyValue((int)_stacks);
- _outputVisualMap.Add(PrimitiveVisualProperty.Stacks, temp);
- temp.Dispose();
- }
-
- if (_scaleTopRadius != null)
- {
- temp = new PropertyValue((float)_scaleTopRadius);
- _outputVisualMap.Add(PrimitiveVisualProperty.ScaleTopRadius, temp);
- temp.Dispose();
- }
-
- if (_scaleBottomRadius != null)
- {
- temp = new PropertyValue((float)_scaleBottomRadius);
- _outputVisualMap.Add(PrimitiveVisualProperty.ScaleBottomRadius, temp);
- temp.Dispose();
- }
-
- if (_scaleHeight != null)
- {
- temp = new PropertyValue((float)_scaleHeight);
- _outputVisualMap.Add(PrimitiveVisualProperty.ScaleHeight, temp);
- temp.Dispose();
- }
-
- if (_scaleRadius != null)
- {
- temp = new PropertyValue((float)_scaleRadius);
- _outputVisualMap.Add(PrimitiveVisualProperty.ScaleRadius, temp);
- temp.Dispose();
- }
-
- if (_scaleDimensions != null)
- {
- temp = new PropertyValue(_scaleDimensions);
- _outputVisualMap.Add(PrimitiveVisualProperty.ScaleDimensions, temp);
- temp.Dispose();
- }
-
- if (_bevelPercentage != null)
- {
- temp = new PropertyValue((float)_bevelPercentage);
- _outputVisualMap.Add(PrimitiveVisualProperty.BevelPercentage, temp);
- temp.Dispose();
- }
-
- if (_bevelSmoothness != null)
- {
- temp = new PropertyValue((float)_bevelSmoothness);
- _outputVisualMap.Add(PrimitiveVisualProperty.BevelSmoothness, temp);
- temp.Dispose();
- }
-
- if (_lightPosition != null)
- {
- temp = new PropertyValue(_lightPosition);
- _outputVisualMap.Add(PrimitiveVisualProperty.LightPosition, temp);
- temp.Dispose();
- }
+ _outputVisualMap = new PropertyMap(); ;
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Primitive));
+ if (_shape != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Shape, new PropertyValue((int)_shape)); }
+ if (_mixColorForPrimitiveVisual != null) { _outputVisualMap.Add(PrimitiveVisualProperty.MixColor, new PropertyValue(_mixColorForPrimitiveVisual)); }
+ if (_slices != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Slices, new PropertyValue((int)_slices)); }
+ if (_stacks != null) { _outputVisualMap.Add(PrimitiveVisualProperty.Stacks, new PropertyValue((int)_stacks)); }
+ if (_scaleTopRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleTopRadius, new PropertyValue((float)_scaleTopRadius)); }
+ if (_scaleBottomRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleBottomRadius, new PropertyValue((float)_scaleBottomRadius)); }
+ if (_scaleHeight != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleHeight, new PropertyValue((float)_scaleHeight)); }
+ if (_scaleRadius != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleRadius, new PropertyValue((float)_scaleRadius)); }
+ if (_scaleDimensions != null) { _outputVisualMap.Add(PrimitiveVisualProperty.ScaleDimensions, new PropertyValue(_scaleDimensions)); }
+ if (_bevelPercentage != null) { _outputVisualMap.Add(PrimitiveVisualProperty.BevelPercentage, new PropertyValue((float)_bevelPercentage)); }
+ if (_bevelSmoothness != null) { _outputVisualMap.Add(PrimitiveVisualProperty.BevelSmoothness, new PropertyValue((float)_bevelSmoothness)); }
+ if (_lightPosition != null) { _outputVisualMap.Add(PrimitiveVisualProperty.LightPosition, new PropertyValue(_lightPosition)); }
base.ComposingPropertyMap();
}
}
/// <since_tizen> 3 </since_tizen>
public class SVGVisual : VisualMap
{
- private string url = null;
+ private string _url = null;
/// <summary>
/// Constructor.
{
get
{
- return url;
+ return _url;
}
set
{
- url = value;
+ _url = value;
UpdateVisual();
}
}
/// <since_tizen> 3 </since_tizen>
protected override void ComposingPropertyMap()
{
- if (url != null)
+ if (_url != null)
{
_outputVisualMap = new PropertyMap();
- PropertyValue temp = new PropertyValue((int)Visual.Type.SVG);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
- temp = new PropertyValue(url);
- _outputVisualMap.Add(ImageVisualProperty.URL, temp);
- temp.Dispose();
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.SVG));
+ _outputVisualMap.Add(ImageVisualProperty.URL, new PropertyValue(_url));
base.ComposingPropertyMap();
}
}
public class TextVisual : VisualMap
{
static private float defaultPointSize = 18;
- private string text = null;
- private string fontFamily = null;
- private PropertyMap fontStyle = null;
- private float pointSize = defaultPointSize;
- private bool? multiLine = null;
- private string horizontalAlignment = null;
- private string verticalAlignment = null;
- private Color textColor = null;
- private bool? enableMarkup = null;
- private PropertyMap shadow = null;
- private PropertyMap underline = null;
- private PropertyMap outline = null;
- private PropertyMap background = null;
+ private string _text = null;
+ private string _fontFamily = null;
+ private PropertyMap _fontStyle = null;
+ private float _pointSize = defaultPointSize;
+ private bool? _multiLine = null;
+ private string _horizontalAlignment = null;
+ private string _verticalAlignment = null;
+ private Color _textColor = null;
+ private bool? _enableMarkup = null;
+ private PropertyMap _shadow = null;
+ private PropertyMap _underline = null;
+ private PropertyMap _outline = null;
+ private PropertyMap _background = null;
/// <summary>
/// Constructor.
{
get
{
- return text;
+ return _text;
}
set
{
- text = value;
+ _text = value;
UpdateVisual();
}
}
{
get
{
- return fontFamily;
+ return _fontFamily;
}
set
{
- fontFamily = value;
+ _fontFamily = value;
UpdateVisual();
}
}
{
get
{
- return fontStyle;
+ return _fontStyle;
}
set
{
- fontStyle = value;
+ _fontStyle = value;
UpdateVisual();
}
}
{
get
{
- return pointSize;
+ return _pointSize;
}
set
{
- pointSize = value;
+ _pointSize = value;
UpdateVisual();
}
}
{
get
{
- return multiLine ?? (false);
+ return _multiLine ?? (false);
}
set
{
- multiLine = value;
+ _multiLine = value;
UpdateVisual();
}
}
{
get
{
- switch (horizontalAlignment)
+ switch (_horizontalAlignment)
{
case "BEGIN":
return HorizontalAlignment.Begin;
{
case HorizontalAlignment.Begin:
{
- horizontalAlignment = "BEGIN";
+ _horizontalAlignment = "BEGIN";
break;
}
case HorizontalAlignment.Center:
{
- horizontalAlignment = "CENTER";
+ _horizontalAlignment = "CENTER";
break;
}
case HorizontalAlignment.End:
{
- horizontalAlignment = "END";
+ _horizontalAlignment = "END";
break;
}
default:
{
- horizontalAlignment = "BEGIN";
+ _horizontalAlignment = "BEGIN";
break;
}
}
{
get
{
- switch (verticalAlignment)
+ switch (_verticalAlignment)
{
case "TOP":
return VerticalAlignment.Top;
{
case VerticalAlignment.Top:
{
- verticalAlignment = "TOP";
+ _verticalAlignment = "TOP";
break;
}
case VerticalAlignment.Center:
{
- verticalAlignment = "CENTER";
+ _verticalAlignment = "CENTER";
break;
}
case VerticalAlignment.Bottom:
{
- verticalAlignment = "BOTTOM";
+ _verticalAlignment = "BOTTOM";
break;
}
default:
{
- verticalAlignment = "TOP";
+ _verticalAlignment = "TOP";
break;
}
}
{
get
{
- return textColor;
+ return _textColor;
}
set
{
- textColor = value;
+ _textColor = value;
UpdateVisual();
}
}
{
get
{
- return enableMarkup ?? (false);
+ return _enableMarkup ?? (false);
}
set
{
- enableMarkup = value;
+ _enableMarkup = value;
UpdateVisual();
}
}
{
get
{
- return shadow;
+ return _shadow;
}
set
{
- shadow = value;
+ _shadow = value;
UpdateVisual();
}
}
{
get
{
- return underline;
+ return _underline;
}
set
{
- underline = value;
+ _underline = value;
UpdateVisual();
}
}
{
get
{
- return outline;
+ return _outline;
}
set
{
- outline = value;
+ _outline = value;
UpdateVisual();
}
}
{
get
{
- return background;
+ return _background;
}
set
{
- background = value;
+ _background = value;
UpdateVisual();
}
}
{
_outputVisualMap = new PropertyMap();
- if (text != null)
+ if (_text != null)
{
- PropertyValue temp = new PropertyValue((int)Visual.Type.Text);
- _outputVisualMap.Add(Visual.Property.Type, temp);
- temp.Dispose();
-
- temp = new PropertyValue(text);
- _outputVisualMap.Add(TextVisualProperty.Text, temp);
- temp.Dispose();
-
- temp = new PropertyValue((float)pointSize);
- _outputVisualMap.Add(TextVisualProperty.PointSize, temp);
- temp.Dispose();
-
- if (fontFamily != null)
- {
- temp = new PropertyValue(fontFamily);
- _outputVisualMap.Add(TextVisualProperty.FontFamily, temp);
- temp.Dispose();
- }
- if (fontStyle != null)
- {
- temp = new PropertyValue(fontStyle);
- _outputVisualMap.Add(TextVisualProperty.FontStyle, temp);
- temp.Dispose();
- }
- if (multiLine != null)
- {
- temp = new PropertyValue((bool)multiLine);
- _outputVisualMap.Add(TextVisualProperty.MultiLine, temp);
- temp.Dispose();
- }
- if (horizontalAlignment != null)
- {
- temp = new PropertyValue(horizontalAlignment);
- _outputVisualMap.Add(TextVisualProperty.HorizontalAlignment, temp);
- temp.Dispose();
- }
- if (verticalAlignment != null)
- {
- temp = new PropertyValue(verticalAlignment);
- _outputVisualMap.Add(TextVisualProperty.VerticalAlignment, temp);
- temp.Dispose();
- }
- if (textColor != null)
- {
- temp = new PropertyValue(textColor);
- _outputVisualMap.Add(TextVisualProperty.TextColor, temp);
- temp.Dispose();
- }
- if (enableMarkup != null)
- {
- temp = new PropertyValue((bool)enableMarkup);
- _outputVisualMap.Add(TextVisualProperty.EnableMarkup, temp);
- temp.Dispose();
- }
- if (shadow != null)
- {
- temp = new PropertyValue(shadow);
- _outputVisualMap.Add(TextVisualProperty.Shadow, temp);
- temp.Dispose();
- }
- if (underline != null)
- {
- temp = new PropertyValue(underline);
- _outputVisualMap.Add(TextVisualProperty.Underline, temp);
- temp.Dispose();
- }
- if (outline != null)
- {
- temp = new PropertyValue(outline);
- _outputVisualMap.Add(TextVisualProperty.Outline, temp);
- temp.Dispose();
- }
- if (background != null)
- {
- temp = new PropertyValue(background);
- _outputVisualMap.Add(TextVisualProperty.Background, temp);
- temp.Dispose();
- }
+ _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
+ _outputVisualMap.Add(TextVisualProperty.Text, new PropertyValue(_text));
+ _outputVisualMap.Add(TextVisualProperty.PointSize, new PropertyValue((float)_pointSize));
+ if (_fontFamily != null) { _outputVisualMap.Add(TextVisualProperty.FontFamily, new PropertyValue(_fontFamily)); }
+ if (_fontStyle != null) { _outputVisualMap.Add(TextVisualProperty.FontStyle, new PropertyValue(_fontStyle)); }
+ if (_multiLine != null) { _outputVisualMap.Add(TextVisualProperty.MultiLine, new PropertyValue((bool)_multiLine)); }
+ if (_horizontalAlignment != null) { _outputVisualMap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(_horizontalAlignment)); }
+ if (_verticalAlignment != null) { _outputVisualMap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(_verticalAlignment)); }
+ if (_textColor != null) { _outputVisualMap.Add(TextVisualProperty.TextColor, new PropertyValue(_textColor)); }
+ if (_enableMarkup != null) { _outputVisualMap.Add(TextVisualProperty.EnableMarkup, new PropertyValue((bool)_enableMarkup)); }
+ if (_shadow != null) { _outputVisualMap.Add(TextVisualProperty.Shadow, new PropertyValue(_shadow)); }
+ if (_underline != null) { _outputVisualMap.Add(TextVisualProperty.Underline, new PropertyValue(_underline)); }
+ if (_outline != null) { _outputVisualMap.Add(TextVisualProperty.Outline, new PropertyValue(_outline)); }
+ if (_background != null) { _outputVisualMap.Add(TextVisualProperty.Background, new PropertyValue(_background)); }
base.ComposingPropertyMap();
}
}
/// <since_tizen> 3 </since_tizen>
public class VisualAnimator : VisualMap
{
- private string alphaFunction = null;
- private int startTime = 0;
- private int endTime = 0;
- private string target = null;
- private string propertyIndex = null;
- private object destinationValue = null;
+ private string _alphaFunction = null;
+ private int _startTime = 0;
+ private int _endTime = 0;
+ private string _target = null;
+ private string _propertyIndex = null;
+ private object _destinationValue = null;
/// <summary>
/// Create VisualAnimator object.
{
get
{
- return alphaFunction.GetValueByDescription<AlphaFunction.BuiltinFunctions>();
+ return _alphaFunction.GetValueByDescription<AlphaFunction.BuiltinFunctions>();
}
set
{
- alphaFunction = value.GetDescription();
+ _alphaFunction = value.GetDescription();
}
}
{
get
{
- return startTime;
+ return _startTime;
}
set
{
- startTime = value;
+ _startTime = value;
}
}
{
get
{
- return endTime;
+ return _endTime;
}
set
{
- endTime = value;
+ _endTime = value;
}
}
{
get
{
- return target;
+ return _target;
}
set
{
- target = value;
+ _target = value;
}
}
{
get
{
- return propertyIndex;
+ return _propertyIndex;
}
set
{
- propertyIndex = value;
+ _propertyIndex = value;
}
}
{
get
{
- return destinationValue;
+ return _destinationValue;
}
set
{
- destinationValue = value;
+ _destinationValue = value;
}
}
/// <since_tizen> 3 </since_tizen>
protected override void ComposingPropertyMap()
{
- PropertyMap animator = new PropertyMap();
- PropertyValue temp = new PropertyValue(alphaFunction);
- animator.Add("alphaFunction", temp);
- temp.Dispose();
+ PropertyMap _animator = new PropertyMap();
+ _animator.Add("alphaFunction", new PropertyValue(_alphaFunction));
- PropertyMap timePeriod = new PropertyMap();
- temp = new PropertyValue((endTime - startTime) / 1000.0f);
- timePeriod.Add("duration", temp);
- temp.Dispose();
+ PropertyMap _timePeriod = new PropertyMap();
+ _timePeriod.Add("duration", new PropertyValue((_endTime - _startTime) / 1000.0f));
+ _timePeriod.Add("delay", new PropertyValue(_startTime / 1000.0f));
+ _animator.Add("timePeriod", new PropertyValue(_timePeriod));
- temp = new PropertyValue(startTime / 1000.0f);
- timePeriod.Add("delay", temp);
- temp.Dispose();
-
- temp = new PropertyValue(timePeriod);
- animator.Add("timePeriod", temp);
- temp.Dispose();
-
- StringBuilder sb = new StringBuilder(propertyIndex);
+ StringBuilder sb = new StringBuilder(_propertyIndex);
sb[0] = (char)(sb[0] | 0x20);
- string str = sb.ToString();
-
- PropertyValue val = PropertyValue.CreateFromObject(destinationValue);
+ string _str = sb.ToString();
- PropertyMap transition = new PropertyMap();
- temp = new PropertyValue(target);
- transition.Add("target", temp);
- temp.Dispose();
+ PropertyValue val = PropertyValue.CreateFromObject(_destinationValue);
- temp = new PropertyValue(str);
- transition.Add("property", temp);
- temp.Dispose();
+ PropertyMap _transition = new PropertyMap();
+ _transition.Add("target", new PropertyValue(_target));
+ _transition.Add("property", new PropertyValue(_str));
+ _transition.Add("targetValue", val);
+ _transition.Add("animator", new PropertyValue(_animator));
- transition.Add("targetValue", val);
- temp = new PropertyValue(animator);
- transition.Add("animator", temp);
- temp.Dispose();
-
- _outputVisualMap = transition;
+ _outputVisualMap = _transition;
base.ComposingPropertyMap();
-
- animator.Dispose();
- timePeriod.Dispose();
- val.Dispose();
}
}
//temporary fix for TCT
internal static readonly int PermanentDelete = Interop.WidgetView.PermanentDeleteGet();
internal static readonly int RetryText = Interop.WidgetView.RetryTextGet();
internal static readonly int EFFECT = Interop.WidgetView.EffectGet();
-
-
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetId instead!")]
- internal static readonly int WIDGET_ID = Interop.WidgetView.WidgetIdGet();
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ContentInfo instead!")]
- internal static readonly int CONTENT_INFO = Interop.WidgetView.ContentInfoGet();
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use UpdatePeriod instead!")]
- internal static readonly int UPDATE_PERIOD = Interop.WidgetView.UpdatePeriodGet();
- [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use LoadingText instead!")]
- internal static readonly int LOADING_TEXT = Interop.WidgetView.LoadingTextGet();
}
}
/// <summary>
/// Enumeration for transition effect's state.
/// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Window.EffectState instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public enum EffectStates
{
/// <summary>
/// None state.
/// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Window.EffectState.None instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- None = 0,
- /// <summary>
- /// Transition effect is started.
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Window.EffectState.Start instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Start,
- /// <summary>
- /// Transition effect is ended.
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Window.EffectState.End instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- End,
- }
-
- /// <summary>
- /// Enumeration for transition effect's state.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum EffectState
- {
- /// <summary>
- /// None state.
- /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
None = 0,
/// <summary>
/// <summary>
/// Enumeration for transition effect's type.
/// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Window.EffectType instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public enum EffectTypes
{
/// <summary>
/// None type.
/// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Window.EffectType.None instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- None = 0,
- /// <summary>
- /// Window show effect.
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Window.EffectType.Show instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Show,
- /// <summary>
- /// Window hide effect.
- /// </summary>
- [Obsolete("Please do not use! This will be removed. Please use Window.EffectType.Hide instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- Hide,
- }
-
- /// <summary>
- /// Enumeration for transition effect's type.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum EffectType
- {
- /// <summary>
- /// None type.
- /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
None = 0,
/// <summary>
Position2D position = GetPosition();
Size2D size = GetSize();
Rectangle ret = new Rectangle(position.X, position.Y, size.Width, size.Height);
- position.Dispose();
return ret;
}
set
{
for (int i = 0; i < orientations.Count; i++)
{
- PropertyValue value = new PropertyValue((int)orientations[i]);
- orientationArray.PushBack(value);
+ orientationArray.PushBack(new PropertyValue((int)orientations[i]));
}
}
Interop.Window.SetAvailableOrientations(SwigCPtr, PropertyArray.getCPtr(orientationArray));
- for (uint i = 0; i < orientationArray.Count(); i++)
- {
- orientationArray[i].Dispose();
- }
- orientationArray.Dispose();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector2 GetSize()
{
- var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), true);
+ var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), false);
Vector2 ret = new Vector2(val.GetWidth(), val.GetHeight());
- val.Dispose();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
var val = new Uint16Pair((uint)size.Width, (uint)size.Height);
Interop.Window.SetSize(SwigCPtr, Uint16Pair.getCPtr(val));
- val.Dispose();
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
// Resetting Window size should request a relayout of the tree.
}
internal Size2D GetWindowSize()
{
- var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), true);
+ var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), false);
Size2D ret = new Size2D(val.GetWidth(), val.GetHeight());
- val.Dispose();
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
var val = new Uint16Pair((uint)position.X, (uint)position.Y);
Interop.Window.SetPosition(SwigCPtr, Uint16Pair.getCPtr(val));
- val.Dispose();
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
// Setting Position of the window should request a relayout of the tree.
}
{
var val = new Uint16Pair(Interop.Window.GetPosition(SwigCPtr), true);
Position2D ret = new Position2D(val.GetX(), val.GetY());
- val.Dispose();
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <code>
/// void MyFunction( int frameId )
/// </code>
- /// This callback will be deleted once it is called.
+ /// This callback will be deleted once it is called.
/// <remarks>
/// Ownership of the callback is passed onto this class
/// </remarks>
/// <code>
/// void MyFunction( int frameId )
/// </code>
- /// This callback will be deleted once it is called.
+ /// This callback will be deleted once it is called.
/// <remarks>
/// Ownership of the callback is passed onto this class
/// </remarks>
private WindowTransitionEffectSignal transitionEffectSignal;
private KeyboardRepeatSettingsChangedEventCallbackType keyboardRepeatSettingsChangedEventCallback;
private KeyboardRepeatSettingsChangedSignal keyboardRepeatSettingsChangedSignal;
- private WindowFocusSignalType windowFocusChangedSignal;
- private WindowFocusSignalType windowFocusChangedSignal2;
- private TouchDataSignal touchDataSignal;
- private TouchSignal touchSignal;
- private WheelSignal wheelSignal;
- private StageWheelSignal stageWheelSignal;
- private KeyEventSignal keyEventSignal;
- private VoidSignal sceneCreatedSignal;
- private ResizeSignal resizeSignal;
- private VoidSignal eventProcessingFinishedSignal;
- private VoidSignal contextLostSignal;
- private VoidSignal contextRegainedSignal;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void WindowFocusChangedEventCallbackType(IntPtr window, bool focusGained);
if (_windowFocusChangedEventHandler == null)
{
_windowFocusChangedEventCallback = OnWindowFocusedChanged;
- windowFocusChangedSignal = WindowFocusChangedSignal();
- windowFocusChangedSignal?.Connect(_windowFocusChangedEventCallback);
+ WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback);
}
_windowFocusChangedEventHandler += value;
{
_windowFocusChangedEventHandler -= value;
- if (_windowFocusChangedEventHandler == null && windowFocusChangedSignal?.Empty() == false && _windowFocusChangedEventCallback != null)
+ if (_windowFocusChangedEventHandler == null && WindowFocusChangedSignal().Empty() == false && _windowFocusChangedEventCallback != null)
{
- windowFocusChangedSignal?.Disconnect(_windowFocusChangedEventCallback);
+ WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback);
}
}
}
if (_rootLayerTouchDataEventHandler == null)
{
_rootLayerTouchDataCallback = OnWindowTouch;
- touchDataSignal = this.TouchDataSignal();
- touchDataSignal?.Connect(_rootLayerTouchDataCallback);
+ this.TouchDataSignal().Connect(_rootLayerTouchDataCallback);
}
_rootLayerTouchDataEventHandler += value;
}
remove
{
_rootLayerTouchDataEventHandler -= value;
- touchSignal = TouchSignal();
- if (_rootLayerTouchDataEventHandler == null && touchSignal?.Empty() == false && _rootLayerTouchDataCallback != null)
+ if (_rootLayerTouchDataEventHandler == null && TouchSignal().Empty() == false && _rootLayerTouchDataCallback != null)
{
- touchDataSignal?.Disconnect(_rootLayerTouchDataCallback);
+ this.TouchDataSignal().Disconnect(_rootLayerTouchDataCallback);
}
}
}
if (_stageWheelHandler == null)
{
_wheelEventCallback = OnStageWheel;
- wheelSignal = WheelEventSignal();
- wheelSignal?.Connect(_wheelEventCallback);
+ WheelEventSignal().Connect(_wheelEventCallback);
}
_stageWheelHandler += value;
if (DetentEventHandler == null)
{
DetentEventCallback = OnDetentEvent;
- stageWheelSignal = StageWheelEventSignal();
- stageWheelSignal?.Connect(DetentEventCallback);
+ StageWheelEventSignal().Connect(DetentEventCallback);
}
DetentEventHandler += value;
}
remove
{
_stageWheelHandler -= value;
- if (_stageWheelHandler == null && wheelSignal?.Empty() == false)
+ if (_stageWheelHandler == null && WheelEventSignal().Empty() == false)
{
- wheelSignal?.Disconnect(_wheelEventCallback);
+ WheelEventSignal().Disconnect(_wheelEventCallback);
}
DetentEventHandler -= value;
- if (DetentEventHandler == null && stageWheelSignal?.Empty() == false)
+ if (DetentEventHandler == null && StageWheelEventSignal().Empty() == false)
{
- stageWheelSignal?.Disconnect(DetentEventCallback);
+ StageWheelEventSignal().Disconnect(DetentEventCallback);
}
}
}
if (_stageKeyHandler == null)
{
_stageKeyCallbackDelegate = OnStageKey;
- keyEventSignal = KeyEventSignal();
- keyEventSignal?.Connect(_stageKeyCallbackDelegate);
+ KeyEventSignal().Connect(_stageKeyCallbackDelegate);
}
_stageKeyHandler += value;
}
remove
{
_stageKeyHandler -= value;
- if (_stageKeyHandler == null && keyEventSignal?.Empty() == false)
+ if (_stageKeyHandler == null && KeyEventSignal().Empty() == false)
{
- keyEventSignal?.Disconnect(_stageKeyCallbackDelegate);
+ KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
}
}
}
if (_windowResizeEventHandler == null)
{
_windowResizeEventCallback = OnResized;
- resizeSignal = ResizeSignal();
- resizeSignal?.Connect(_windowResizeEventCallback);
+ ResizeSignal().Connect(_windowResizeEventCallback);
}
_windowResizeEventHandler += value;
{
_windowResizeEventHandler -= value;
- if (_windowResizeEventHandler == null && resizeSignal?.Empty() == false && _windowResizeEventCallback != null)
+ if (_windowResizeEventHandler == null && ResizeSignal().Empty() == false && _windowResizeEventCallback != null)
{
- resizeSignal?.Disconnect(_windowResizeEventCallback);
+ ResizeSignal().Disconnect(_windowResizeEventCallback);
}
}
}
if (_windowFocusChangedEventHandler2 == null)
{
_windowFocusChangedEventCallback2 = OnWindowFocusedChanged2;
- windowFocusChangedSignal2 = WindowFocusChangedSignal();
- windowFocusChangedSignal2?.Connect(_windowFocusChangedEventCallback2);
+ WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback2);
}
_windowFocusChangedEventHandler2 += value;
{
_windowFocusChangedEventHandler2 -= value;
- if (_windowFocusChangedEventHandler2 == null && windowFocusChangedSignal2?.Empty() == false && _windowFocusChangedEventCallback2 != null)
+ if (_windowFocusChangedEventHandler2 == null && WindowFocusChangedSignal().Empty() == false && _windowFocusChangedEventCallback2 != null)
{
- windowFocusChangedSignal2?.Disconnect(_windowFocusChangedEventCallback2);
+ WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback2);
}
}
}
if (_stageEventProcessingFinishedEventHandler == null)
{
_stageEventProcessingFinishedEventCallbackDelegate = OnEventProcessingFinished;
- eventProcessingFinishedSignal = EventProcessingFinishedSignal();
- eventProcessingFinishedSignal?.Connect(_stageEventProcessingFinishedEventCallbackDelegate);
+ EventProcessingFinishedSignal().Connect(_stageEventProcessingFinishedEventCallbackDelegate);
}
_stageEventProcessingFinishedEventHandler += value;
remove
{
_stageEventProcessingFinishedEventHandler -= value;
- if (_stageEventProcessingFinishedEventHandler == null && eventProcessingFinishedSignal?.Empty() == false)
+ if (_stageEventProcessingFinishedEventHandler == null && EventProcessingFinishedSignal().Empty() == false)
{
- eventProcessingFinishedSignal?.Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
+ EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
}
}
}
if (_stageContextLostEventHandler == null)
{
_stageContextLostEventCallbackDelegate = OnContextLost;
- contextLostSignal = ContextLostSignal();
- contextLostSignal?.Connect(_stageContextLostEventCallbackDelegate);
+ ContextLostSignal().Connect(_stageContextLostEventCallbackDelegate);
}
_stageContextLostEventHandler += value;
}
remove
{
_stageContextLostEventHandler -= value;
- if (_stageContextLostEventHandler == null && contextLostSignal?.Empty() == false)
+ if (_stageContextLostEventHandler == null && ContextLostSignal().Empty() == false)
{
- contextLostSignal?.Disconnect(_stageContextLostEventCallbackDelegate);
+ ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
}
}
}
if (_stageContextRegainedEventHandler == null)
{
_stageContextRegainedEventCallbackDelegate = OnContextRegained;
- contextRegainedSignal = ContextRegainedSignal();
- contextRegainedSignal?.Connect(_stageContextRegainedEventCallbackDelegate);
+ ContextRegainedSignal().Connect(_stageContextRegainedEventCallbackDelegate);
}
_stageContextRegainedEventHandler += value;
}
remove
{
_stageContextRegainedEventHandler -= value;
- if (_stageContextRegainedEventHandler == null && contextRegainedSignal?.Empty() == false)
+ if (_stageContextRegainedEventHandler == null && ContextRegainedSignal().Empty() == false)
{
- contextRegainedSignal?.Disconnect(_stageContextRegainedEventCallbackDelegate);
+ this.ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
}
}
}
if (_stageSceneCreatedEventHandler == null)
{
_stageSceneCreatedEventCallbackDelegate = OnSceneCreated;
- sceneCreatedSignal = SceneCreatedSignal();
- sceneCreatedSignal?.Connect(_stageSceneCreatedEventCallbackDelegate);
+ SceneCreatedSignal().Connect(_stageSceneCreatedEventCallbackDelegate);
}
_stageSceneCreatedEventHandler += value;
}
remove
{
_stageSceneCreatedEventHandler -= value;
- if (_stageSceneCreatedEventHandler == null && sceneCreatedSignal?.Empty() == false)
+ if (_stageSceneCreatedEventHandler == null && SceneCreatedSignal().Empty() == false)
{
- sceneCreatedSignal?.Disconnect(_stageSceneCreatedEventCallbackDelegate);
+ SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
}
}
}
{
if (_windowFocusChangedEventCallback != null)
{
- windowFocusChangedSignal?.Disconnect(_windowFocusChangedEventCallback);
+ WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback);
}
if (_rootLayerTouchDataCallback != null)
{
- touchDataSignal?.Disconnect(_rootLayerTouchDataCallback);
+ TouchDataSignal().Disconnect(_rootLayerTouchDataCallback);
}
if (_wheelEventCallback != null)
{
- wheelSignal?.Disconnect(_wheelEventCallback);
+ WheelEventSignal().Disconnect(_wheelEventCallback);
}
if (DetentEventCallback != null)
{
- stageWheelSignal?.Disconnect(DetentEventCallback);
+ StageWheelEventSignal().Disconnect(DetentEventCallback);
}
if (_stageKeyCallbackDelegate != null)
{
- keyEventSignal?.Disconnect(_stageKeyCallbackDelegate);
+ KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
}
if (_stageEventProcessingFinishedEventCallbackDelegate != null)
{
- eventProcessingFinishedSignal?.Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
+ EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
}
if (_stageContextLostEventCallbackDelegate != null)
{
- contextLostSignal?.Disconnect(_stageContextLostEventCallbackDelegate);
+ ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
}
if (_stageContextRegainedEventCallbackDelegate != null)
{
- contextRegainedSignal?.Disconnect(_stageContextRegainedEventCallbackDelegate);
+ ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
}
if (_stageSceneCreatedEventCallbackDelegate != null)
{
- sceneCreatedSignal?.Disconnect(_stageSceneCreatedEventCallbackDelegate);
+ SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
}
if (_windowResizeEventCallback != null)
{
- resizeSignal?.Disconnect(_windowResizeEventCallback);
+ ResizeSignal().Disconnect(_windowResizeEventCallback);
}
if (_windowFocusChangedEventCallback2 != null)
{
- windowFocusChangedSignal2?.Disconnect(_windowFocusChangedEventCallback2);
+ WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback2);
}
if (transitionEffectSignal != null)
// e.WindowSize = new Size2D(val.GetWidth(), val.GetHeight());
// val.Dispose();
- // Workaround : windowSize should be valid pointer from dali,
+ // Workaround : windowSize should be valid pointer from dali,
// but currenlty it is fixed and is not Uint16Pair class.
// will be fixed later.
e.WindowSize = this.WindowSize;
TransitionEffectEventArgs e = new TransitionEffectEventArgs();
- e.State = (EffectState)state;
+ e.State = (EffectStates)state;
- e.Type = (EffectType)type;
+ e.Type = (EffectTypes)type;
if (transitionEffectHandler != null)
{
[EditorBrowsable(EditorBrowsableState.Never)]
public class TransitionEffectEventArgs : EventArgs
{
- private EffectState state;
- private EffectType type;
+ private EffectStates state;
+ private EffectTypes type;
/// <summary>
/// State
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public EffectState State
+ public EffectStates State
{
get
{
/// Type
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public EffectType Type
+ public EffectTypes Type
{
get
{
{
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- void SetDynamicResource(BindableProperty targetProperty, string key);
+ void SetDynamicResource(BindableProperty property, string key);
}
}
{
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- [ProvideCompiledAttribute("Tizen.NUI.Xaml.Core.XamlC.SizeTypeConverter")]
+ [ProvideCompiledAttribute("Tizen.NUI.Xaml.Core.XamlC.Size2DTypeConverter")]
public class SizeTypeConverter : TypeConverter
{
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI.Wearable", "..\..\src\Tizen.NUI.Wearable\Tizen.NUI.Wearable.csproj", "{A2B607F9-5B9B-43AC-A8CA-E0FDF2A6694E}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.System.Feedback", "..\..\src\Tizen.System.Feedback\Tizen.System.Feedback.csproj", "{D422D03E-7E32-4230-8306-B16DFE27E95A}"
-EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
{A2B607F9-5B9B-43AC-A8CA-E0FDF2A6694E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A2B607F9-5B9B-43AC-A8CA-E0FDF2A6694E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A2B607F9-5B9B-43AC-A8CA-E0FDF2A6694E}.Release|Any CPU.Build.0 = Release|Any CPU
- {D422D03E-7E32-4230-8306-B16DFE27E95A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D422D03E-7E32-4230-8306-B16DFE27E95A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D422D03E-7E32-4230-8306-B16DFE27E95A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D422D03E-7E32-4230-8306-B16DFE27E95A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
const int mColumn = 3;
const int mContents = mRow * mColumn;
- Size2D windowSize;
-
public void Activate()
{
Window window = NUIApplication.GetDefaultWindow();
window.BackgroundColor = Color.White;
- windowSize = window.Size;
+ Size2D windowSize = window.WindowSize;
// Create Table
TableView table = new TableView(mRow, mColumn)
{
TextLabel content = CreateText();
content.Name = "TextLabel" + exampleCount;
- content.Text = "R" + row + " - C" + column;
+ content.Text = "Row" + row + " - Column" + column;
///////////////////////////////////////////////////////////////////////////////////////////////
/// How to set Accessibility attribute to components ///
TextLabel CreateText()
{
TextLabel label = new TextLabel();
+ label.PositionUsesPivotPoint = true;
+ label.PivotPoint = PivotPoint.Center;
+ label.ParentOrigin = ParentOrigin.Center;
label.MultiLine = true;
label.HorizontalAlignment = HorizontalAlignment.Center;
label.VerticalAlignment = VerticalAlignment.Center;
+ label.HeightResizePolicy = ResizePolicyType.FillToParent;
label.Focusable = true;
return label;
}
+++ /dev/null
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Components;
-
-namespace Tizen.NUI.Samples
-{
- public class AppBarSample : IExample
- {
- private Page firstPage, secondPage;
- private AppBar firstAppBar, secondAppBar;
- private Button firstActionButton, secondActionButton;
- private Button firstButton, secondButton;
-
- public void Activate()
- {
- CreateFirstPage();
- }
-
- private void CreateFirstPage()
- {
- firstActionButton = new Button()
- {
- Text = "2",
- Size = new Size(72.0f, 72.0f)
- };
- firstActionButton.Clicked += (object sender, ClickedEventArgs e) =>
- {
- CreateSecondPage();
- };
-
- firstAppBar = new AppBar("First Page", firstActionButton)
- {
- AutoNavigationContent = false
- };
-
- firstButton = new Button()
- {
- Text = "Click to next",
- WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = LayoutParamPolicies.MatchParent,
- };
- firstButton.Clicked += (object sender, ClickedEventArgs e) =>
- {
- CreateSecondPage();
- };
-
- firstPage = new Page(firstAppBar, firstButton);
-
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(firstPage);
- }
-
- private void CreateSecondPage()
- {
- secondActionButton = new Button()
- {
- Text = "1",
- Size = new Size(72.0f, 72.0f)
- };
- secondActionButton.Clicked += (object sender, ClickedEventArgs e) =>
- {
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Pop();
- };
-
- secondAppBar = new AppBar("Second Page", secondActionButton);
-
- secondButton = new Button()
- {
- Text = "Click to prev",
- WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = LayoutParamPolicies.MatchParent,
- };
- secondButton.Clicked += (object sender, ClickedEventArgs e) =>
- {
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Pop();
- };
-
- secondPage = new Page(secondAppBar, secondButton);
-
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(secondPage);
- }
-
- public void Deactivate()
- {
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Remove(secondPage);
-
- secondPage = null;
- secondAppBar = null;
- secondActionButton = null;
- secondButton = null;
-
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Remove(firstPage);
-
- firstPage = null;
- firstAppBar = null;
- firstActionButton = null;
- firstButton = null;
- }
- }
-}
namespace Tizen.NUI.Samples
{
- using tlog = Tizen.Log;
-
public class Example
{
public Example(string name, string title)
public class DaliTableView
{
- static readonly string tag = "NUITEST";
-
static private uint mCurPage = 0;
static public string DEMO_IMAGE_DIR = CommonResource.GetDaliResourcePath() + "DaliDemo/";
mAnimationTimer.Tick += PauseBackgroundAnimation;
mAnimationTimer.Start();
mBackgroundAnimsPlaying = true;
-
- tlog.Debug(tag, $"Initialize() end!");
}
private bool PauseBackgroundAnimation(object source, Timer.TickEventArgs e)
label.Text = title;
label.HorizontalAlignment = HorizontalAlignment.Center;
label.VerticalAlignment = VerticalAlignment.Center;
- label.WidthResizePolicy = ResizePolicyType.FillToParent;
label.HeightResizePolicy = ResizePolicyType.FillToParent;
-
- var fit = new PropertyMap();
- fit.Add("enable", new PropertyValue(true)).Add("minSize", new PropertyValue(5.0f)).Add("maxSize", new PropertyValue(50.0f));
- label.TextFit = fit;
+ //var fit = new PropertyMap();
+ //fit.Add("enable", new PropertyValue(true)).Add("minSize", new PropertyValue(3.0f)).Add("maxSize", new PropertyValue(50.0f));
+ //label.TextFit = fit;
+ label.PointSize = 11.0f * (float)(NUIApplication.GetDefaultWindow().Size.Height) / 1080.0f;
// Pad around the label as its size is the same as the 9-patch border. It will overlap it without padding.
label.SetPadding(new PaddingType((int)TILE_LABEL_PADDING, (int)TILE_LABEL_PADDING, (int)TILE_LABEL_PADDING, (int)TILE_LABEL_PADDING));
-
focusableTile.Add(label);
// Connect to the touch events
{
NUIApplication.GetDefaultWindow().Remove(navigator);
- navigator.Dispose();
- navigator = null;
+ firstButton.Dispose();
firstButton = null;
- firstPage = null;
+
+ secondButton.Dispose();
secondButton = null;
+
+ firstPage.Dispose();
+ firstPage = null;
+
+ secondPage.Dispose();
secondPage = null;
+
+ navigator.Dispose();
+ navigator = null;
}
}
}
</ItemGroup>
<ItemGroup>
+ <PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="Tizen.NET.Sdk" Version="1.0.9" />
<ProjectReference Include="../../../src/Tizen/Tizen.csproj" />
<ProjectReference Include="../../../src/Tizen.Applications.Common/Tizen.Applications.Common.csproj" />