ErrorCode err = Interop.AppCommon.AppEventGetDeviceOrientation(infoHandle, out orientation);
if (err != ErrorCode.None)
{
- Log.Error(LogTag, "Failed to get deivce orientation. Err = " + err);
+ Log.Error(LogTag, "Failed to get device orientation. Err = " + err);
}
if (Handlers.ContainsKey(EventType.DeviceOrientationChanged))
{
ErrorCode err = Interop.AppCommon.AppEventGetSuspendedState(infoHandle, out state);
if (err != ErrorCode.None)
{
- Log.Error(LogTag, "Failed to get deivce orientation. Err = " + err);
+ Log.Error(LogTag, "Failed to get device orientation. Err = " + err);
}
if (Handlers.ContainsKey(EventType.SuspendedStateChanged))
{
/// <summary>
/// Sets action button in the action content of AlertDialog.
/// </summary>
- /// <param name="type">The type of action buttion.</param>
+ /// <param name="type">The type of action button.</param>
/// <param name="text">The text of action button in the action content of AlertDialog.</param>
/// <param name="clickedHandler">The clicked callback of the action button in the action content of AlertDialog.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
}
/// <summary>
- /// Initilizes AT-SPI object.
+ /// Initializes AT-SPI object.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnInitialize()
}
/// <summary>
- /// Translateable text string selector in Button.
+ /// Translatable text string selector in Button.
/// Getter returns copied selector value if exist, null otherwise.
/// </summary>
/// <exception cref="NullReferenceException">Thrown when setting null value.</exception>
namespace Tizen.NUI.Components
{
/// <summary>
- /// The control component is base class of tv nui components. It's abstract class, so cann't instantiate and can only be inherited.
+ /// The control component is base class of tv nui components. It's abstract class, so can't instantiate and can only be inherited.
/// </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.
}
/// <summary>
- /// ecycles children between given indices..
+ /// Recycles children between given indices..
/// </summary>
/// <param name="recycler">Recycler to recycle views into</param>
/// <param name="startIndex">inclusive</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public Page(AppBar appBar, View content = null) : base()
{
- //AppBar and Content are located verically.
+ //AppBar and Content are located vertically.
var linearLayout = new LinearLayout();
linearLayout.LinearOrientation = LinearLayout.Orientation.Vertical;
Layout = linearLayout;
}
/// <summary>
- /// Seperator devider of DefaultLinearItem. it will place at the end of item.
+ /// Seperator divider of DefaultLinearItem. it will place at the end of item.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public View Seperator
}
/// <summary>
- /// Seperator devider of DefaultTitleItem. it will place at the end of item.
+ /// Seperator divider of DefaultTitleItem. it will place at the end of item.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public View Seperator
[EditorBrowsable(EditorBrowsableState.Never)]
None,
/// <summary>
- /// Single selection. select item exculsively so previous selected item will be unselected.
+ /// Single selection. select item exclusively so previous selected item will be unselected.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
SingleSelection,
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
-//using AndroidX.RecyclerView.Widget; ??? need to find whot it needs? adapter?
namespace Tizen.NUI.Components
{
if (groupHeader == null) throw new Exception("[" + firstIndex + "] Group Header failed to realize!");
- // Need to Set proper hieght or width on scroll direciton.
+ // Need to Set proper height or width on scroll direction.
if (groupHeader.Layout == null)
{
width = groupHeader.WidthSpecification;
RecyclerViewItem groupFooter = colView.RealizeItem(firstFooter);
if (groupFooter == null) throw new Exception("[" + firstFooter + "] Group Footer failed to realize!");
- // Need to Set proper hieght or width on scroll direciton.
+ // Need to Set proper height or width on scroll direction.
if (groupFooter.Layout == null)
{
width = groupFooter.WidthSpecification;
}
sizeDeligate.BindingContext = colView.InternalItemSource.GetItem(firstIndex);
- // Need to Set proper hieght or width on scroll direciton.
+ // Need to Set proper height or width on scroll direction.
if (sizeDeligate.Layout == null)
{
width = sizeDeligate.WidthSpecification;
}
/// <summary>
- /// Measure the size of chlid ViewItem manually.
+ /// Measure the size of child ViewItem manually.
/// </summary>
/// <param name="parent">Parent ItemsView.</param>
/// <param name="child">Child ViewItem to Measure()</param>
if (groupHeader == null) throw new Exception("[" + firstIndex + "] Group Header failed to realize!");
- // Need to Set proper hieght or width on scroll direciton.
+ // Need to Set proper height or width on scroll direction.
if (groupHeader.Layout == null)
{
width = groupHeader.WidthSpecification;
RecyclerViewItem groupFooter = colView.RealizeItem(firstFooter);
if (groupFooter == null) throw new Exception("[" + firstFooter + "] Group Footer failed to realize!");
- // Need to Set proper hieght or width on scroll direciton.
+ // Need to Set proper height or width on scroll direction.
if (groupFooter.Layout == null)
{
width = groupFooter.WidthSpecification;
sizeDeligate.BindingContext = colView.InternalItemSource.GetItem(firstIndex);
- // Need to Set proper hieght or width on scroll direciton.
+ // Need to Set proper height or width on scroll direction.
if (sizeDeligate.Layout == null)
{
width = sizeDeligate.WidthSpecification;
[EditorBrowsable(EditorBrowsableState.Never)]
public override void RequestLayout(float scrollPosition, bool force = false)
{
- // Layouting is only possible after once it intialized.
+ // Layouting is only possible after once it initialized.
if (!IsInitialized) return;
int LastIndex = colView.InternalItemSource.Count - 1;
{
if (i == (gInfo.Count - 1))
{
- //Sould be groupFooter!
+ //Should be groupFooter!
found.end = gInfo.StartIndex + i + adds;
failed = false;
break;
/// <summary>
/// Default constructor.
/// </summary>
- /// <param name="position">Current contianer position</param>
+ /// <param name="position">Current container position</param>
/// <since_tizen> 8 </since_tizen>
public ScrollEventArgs(Position position)
{
}
/// <summary>
- /// Threashold not to go infinit at the end of scrolling animation.
+ /// Threshold not to go infinite at the end of scrolling animation.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public float DecelerationThreshold { get; set; } = 0.1f;
/// <summary>
/// Page will be changed when velocity of panning is over threshold.
- /// The unit of threshold is pixel per milisec.
+ /// The unit of threshold is pixel per millisecond.
/// </summary>
/// <since_tizen> 8 </since_tizen>
public float PageFlickThreshold
if (animate)
{
- // Calculate scroll animaton duration
+ // Calculate scroll animation duration
float scrollDistance = Math.Abs(displacement);
readyToNotice = true;
{
// Decelerating using deceleration equation ===========
//
- // V : velocity (pixel per milisecond)
+ // V : velocity (pixel per millisecond)
// V0 : initial velocity
// d : deceleration rate,
// t : time
//
// V(t) = V0 * d pow t;
// X(t) = V0 * (d pow t - 1) / log d; <-- Integrate the velocity function
- // X(∞) = V0 * d / (1 - d); <-- Result using inifit T can be final position because T is tending to infinity.
+ // X(∞) = V0 * d / (1 - d); <-- Result using infinite T can be final position because T is tending to infinity.
//
- // Because of final T is tending to inifity, we should use threshold value to finish.
+ // Because of final T is tending to infinity, we should use threshold value to finish.
// Final T = log(-threshold * log d / |V0| ) / log d;
velocityOfLastPan = Math.Abs(velocity);
return;
}
- // TODO Support non built-in alpha function for visual trainsition in DALi.
+ // TODO Support non built-in alpha function for visual transition in DALi.
AlphaFunction.BuiltinFunctions builtinAlphaFunction = alphaFunction?.GetBuiltinFunction() ?? AlphaFunction.BuiltinFunctions.Default;
thumbPositionAnimation?.Stop();
return;
}
- // TODO Support non built-in alpha function for visual trainsition in DALi.
+ // TODO Support non built-in alpha function for visual transition in DALi.
AlphaFunction.BuiltinFunctions builtinAlphaFunction = alphaFunction?.GetBuiltinFunction() ?? AlphaFunction.BuiltinFunctions.Default;
thumbPositionAnimation?.Stop();
}
/// <summary>
- /// Initliaze AT-SPI object.
+ /// Initialize AT-SPI object.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnInitialize()
public class ValueChangedArgs : EventArgs
{
/// <summary>
- /// Curren value
+ /// Current value
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// It will be removed in API10
public class SlidingFinishedArgs : EventArgs
{
/// <summary>
- /// Curren value
+ /// Current value
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// It will be removed in API10
public class StateChangedArgs : EventArgs
{
/// <summary>
- /// Curent state
+ /// Current state
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// It will be removed in API10
}
/// <summary>
- /// Initilize AT-SPI object.
+ /// Initialize AT-SPI object.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnInitialize()
/**
* @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
- * provided by the user. Initialized signal is emitted when application is initialised
+ * provided by the user. Initialized signal is emitted when application is initialized
*/
public event DaliEventHandler<object, NUIApplicationInitEventArgs> Initialized
{
}
catch (Exception exception)
{
- Tizen.Log.Fatal("NUI", "[Error] got exception during Application New(), this should not occur, msg : " + exception.Message);
+ Tizen.Log.Fatal("NUI", "[Error] got exception during Application New(), this should not occur, message : " + exception.Message);
Tizen.Log.Fatal("NUI", "[Error] error line number : " + new StackTrace(exception, true).GetFrame(0).GetFileLineNumber());
Tizen.Log.Fatal("NUI", "[Error] Stack Trace : " + exception.StackTrace);
throw;
}
catch (Exception exception)
{
- Tizen.Log.Fatal("NUI", "[Error] got exception during Application New(), this should not occur, msg : " + exception.Message);
+ Tizen.Log.Fatal("NUI", "[Error] got exception during Application New(), this should not occur, message : " + exception.Message);
Tizen.Log.Fatal("NUI", "[Error] error line number : " + new StackTrace(exception, true).GetFrame(0).GetFileLineNumber());
Tizen.Log.Fatal("NUI", "[Error] Stack Trace : " + exception.StackTrace);
throw;
/**
* @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
- * provided by the user. Initialized signal is emitted when application is initialised
+ * provided by the user. Initialized signal is emitted when application is initialized
*/
public event CreateNativeEventHandler CreateNative
{
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
public ActivatedSignalType() : this(Interop.ActivatedSignalType.NewActivatedSignalType(), true)
{
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
public ContentReceivedSignalType() : this(Interop.ContentReceivedSignalType.NewContentReceivedSignalType(), true)
{
}
/// <summary>
- /// ToolTip
+ /// Tooltip
/// </summary>
/// <since_tizen> 3 </since_tizen>
public struct Tooltip
// TODO: dispose managed state (managed objects).
// Explicit call. user calls Dispose()
- //Throw excpetion if Dispose() is called in separate thread.
+ //Throw exception if Dispose() is called in separate thread.
if (!Window.IsInstalled())
{
throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
public KeyboardEventSignalType() : this(Interop.KeyboardEventSignalType.NewKeyboardEventSignalType(), true)
{
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
public KeyboardResizedSignalType() : this(Interop.KeyboardResizedSignalType.NewKeyboardResizedSignalType(), true)
{
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
internal KeyboardTypeSignalType() : this(Interop.KeyboardTypeSignalType.NewKeyboardTypeSignalType(), true)
{
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
public LanguageChangedSignalType() : this(Interop.LanguageChangedSignalType.NewLanguageChangedSignalType(), true)
{
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
/// </summary>
private void GetPropertyStartRange(System.Type viewType, ref PropertyRange range)
{
- const int maxCountPerDerivation = 1000; // For child and animtable properties we use a gap of 1000 between each
- // views property range in the heirachy
+ const int maxCountPerDerivation = 1000; // For child and animatable properties we use a gap of 1000 between each
+ // views property range in the hierarchy
// custom views start there property index, at view_PROPERTY_END_INDEX
// we add 1000, just incase View class (our C# custom view base) starts using scriptable properties
{
IntPtr refObjectPtr = Interop.BaseHandle.GetObjectPtr(baseHandle.GetBaseHandleCPtrHandleRef);
- // we store a dictionary of ref-obects (C++ land) to managed obects (C# land)
+ // we store a dictionary of ref-objects (C++ land) to managed objects (C# land)
return GetManagedBaseHandleFromRefObject(refObjectPtr);
}
{
IntPtr refObjectPtr = Interop.RefObject.GetRefObjectPtr(cPtr);
- // we store a dictionary of ref-obects (C++ land) to managed obects (C# land)
+ // we store a dictionary of ref-objects (C++ land) to managed objects (C# land)
return GetManagedBaseHandleFromRefObject(refObjectPtr);
}
RegistryCurrentThreadCheck();
- // we store a dictionary of ref-obects (C++ land) to managed obects (C# land)
+ // we store a dictionary of ref-objects (C++ land) to managed objects (C# land)
WeakReference weakReference;
if (Instance._controlMap.TryGetValue(refObjectPtr, out weakReference))
}
catch (global::System.Exception ex)
{
- Tizen.Log.Fatal("NUI", $"[ERROR] excpetion! {ex}: {ex.Message}");
+ Tizen.Log.Fatal("NUI", $"[ERROR] exception! {ex}: {ex.Message}");
Tizen.Log.Fatal("NUI", $"[ERROR] current threadID : {Thread.CurrentThread.ManagedThreadId}");
Tizen.Log.Fatal("NUI", $"[ERROR] back trace!");
global::System.Diagnostics.StackTrace st = new global::System.Diagnostics.StackTrace(true);
/// <exception cref="ArgumentException">Thrown when failed because of an invalid parameter.</exception>
/// <exception cref="Applications.Exceptions.OutOfMemoryException">Thrown when the memory is insufficient.</exception>
/// <exception cref="InvalidOperationException">Thrown when failed to create the frame broker handle.</exception>
- /// <remarks>This class is only avaliable for platform level signed applications.</remarks>
+ /// <remarks>This class is only available for platform level signed applications.</remarks>
internal FrameBrokerBase(Window window)
{
Interop.FrameBroker.ErrorCode err;
public enum FrameError
{
/// <summary>
- /// Succsssful.
+ /// Successful.
/// </summary>
None = Interop.FrameBroker.FrameContextErrorCode.None,
/// <summary>
/// Disqualified.
/// </summary>
- /// <remarks>After this error is occured, the FrameBroker instance has to be destroyed.</remarks>
+ /// <remarks>After this error is occurred, the FrameBroker instance has to be destroyed.</remarks>
Disqualified = Interop.FrameBroker.FrameContextErrorCode.Disqualified,
/// <summary>
/// <exception cref="ArgumentException">Thrown when failed because of an invalid parameter.</exception>
/// <exception cref="OutOfMemoryException">Thrown when the memory is insufficient.</exception>
/// <exception cref="InvalidOperationException">Thrown when failed to create the frame broker handle.</exception>
- /// <remarks>This class is only avaliable for platform level signed applications.</remarks>
+ /// <remarks>This class is only available for platform level signed applications.</remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
internal FrameProvider(Window window)
{
float minExpandedSize = 0;
float newChildrenSize = locations[maxIndex] - locations[0] - space;
- // No available sapce
+ // No available space
if (newChildrenSize > parentDecimalSize)
return;
}
}
- /// <summary> Initialize the edge list sorted by start vetex. </summary>
+ /// <summary> Initialize the edge list sorted by start vertex. </summary>
private void InitEdgeList(ref Node[] edgeList)
{
bool isHorizontal = (edgeList == hEdgeList);
}
/// <summary>
- /// Locations are longest path from zero-vertex. that means 'locations[MAX] - locations[0]' is maximun size of children.
+ /// Locations are longest path from zero-vertex. that means 'locations[MAX] - locations[0]' is maximum size of children.
/// Since GridLayout is Directed Acyclic Graph(DAG) which have no negative cycles, longest path can be found in linear time.
/// </summary>
private void InitLocations(ref float[] locations)
}
/// <summary>
- /// Dispose Explict or Implicit
+ /// Dispose Explicit or Implicit
/// </summary>
protected override void Dispose(DisposeTypes type)
{
// Note, Transitions set on View rather than LayoutItem so if the Layout changes the transition persist.
// Check if item to animate has it's own Transitions for this condition.
- // If a key exists then a List of atleast 1 transition exists.
+ // If a key exists then a List of at least 1 transition exists.
if (layoutPositionData.Item.Owner.LayoutTransitions.ContainsKey(conditionForAnimators))
{
// Child has transitions for the condition
width = region.Width; height = region.Height; i = region.X; j = region.Y;
}
- Tizen.Log.Info("Palette", "Get pixels rawdata from (" + i + " " + j + " " + width + " " + height + ")" + "\n");
+ Tizen.Log.Info("Palette", "Get pixels raw data from (" + i + " " + j + " " + width + " " + height + ")" + "\n");
pixels = new int[width * height];
PixelFormat format = pixelBuffer.GetPixelFormat();
return 4;
}
default:
- Tizen.Log.Error("Palette", "Invalied PixelFormat(" + pixelFormat + ") has been givien \n");
+ Tizen.Log.Error("Palette", "Invalided PixelFormat(" + pixelFormat + ") has been given \n");
return 0;
}
}
/// <summary>
- /// return luma value according to to XYZ color space in the range 0.0 - 1.0
+ /// return luma value according to XYZ color space in the range 0.0 - 1.0
/// </summary>
private static int CompositeAlpha(int foregroundAlpha, int backgroundAlpha)
{
}
/// <summary>
- /// The postion of scroll.
+ /// The position of scroll.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Position ScrollPosition
}
/// <summary>
- /// Gets fav icon.
+ /// Gets favicon.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public ImageView Favicon
}
/// <summary>
- /// Reply for promp popup.
+ /// Reply for prompt popup.
/// <param name="result">text in prompt input field.</param>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
}
/// <summary>
- /// The contructor.
+ /// The constructor.
/// </summary>
internal WidgetViewSignal() : this(Interop.WidgetView.NewWidgetViewSignal(), true)
{
{
if (subscriber.Equals(delegateSource))
{
- // The target is the subscriber; we can use a weakreference
+ // The target is the subscriber; we can use a weak reference
DelegateWeakReference = new WeakReference(delegateSource);
isStrongReference = false;
}
{
// public Rotation(Radian radian(float), Vector3 vector3)
// Default: <View Orientation="45.0,12,13,0" />
- // Oritation="D:23, 0, 0, 1"
- // Oritation="R:23, 0, 0, 1"
+ // Orientation="D:23, 0, 0, 1"
+ // Orientation="R:23, 0, 0, 1"
if (value != null)
{
string[] parts = value.Split(',');
string radianOrDegree = head[0].Trim().ToUpperInvariant();
if (radianOrDegree == "D" || radianOrDegree == "DEGREE")
{
- // Oritation="D:23, 0, 0, 1"
+ // Orientation="D:23, 0, 0, 1"
radian = new Radian(new Degree(Single.Parse(head[1].Trim(), CultureInfo.InvariantCulture)));
}
else if (radianOrDegree == "R" || radianOrDegree == "RADIAN")
{
- // Oritation="R:23, 0, 0, 1"
+ // Orientation="R:23, 0, 0, 1"
radian = new Radian(Single.Parse(head[1].Trim(), CultureInfo.InvariantCulture));
}
else
}
};
timer = new System.Threading.Timer(onTimeout, null, Timeout.Infinite, Timeout.Infinite);
- // set interval separarately to prevent calling onTimeout before `timer' is assigned
+ // set interval separately to prevent calling onTimeout before `timer' is assigned
timer.Change(interval, interval);
}
namespace Tizen.NUI.Accessibility
{
/// <summary>
- /// Accessibility provides Dali-ATSPI interface which has funtionality of Screen-Reader and general accessibility
+ /// Accessibility provides Dali-ATSPI interface which has functionality of Screen-Reader and general accessibility
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[SuppressMessage("Microsoft.Design", "CA1724: Type names should not match namespaces")]
[EditorBrowsable(EditorBrowsableState.Never)]
public class Accessibility
{
- #region Constructor, Distructor, Dispose
+ #region Constructor, Destructor, Dispose
private Accessibility()
{
dummy = new View();
{
Tizen.Log.Debug("NUI", $"Accessibility is destroyed\n");
}
- #endregion Constructor, Distructor, Dispose
+ #endregion Constructor, Destructor, Dispose
#region Property
/// The constructor.<br />
/// Creates an alpha function object with the user-defined alpha function.<br />
/// </summary>
- /// <param name="func">User defined fuction. It must be a method formatted as float alphafunction(float progress)</param>
+ /// <param name="func">User defined function. It must be a method formatted as float alphafunction(float progress)</param>
/// <since_tizen> 3 </since_tizen>
public AlphaFunction(global::System.Delegate func) : this(Interop.AlphaFunction.NewAlphaFunction(SWIGTYPE_p_f_float__float.getCPtr(new SWIGTYPE_p_f_float__float(System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func)))), true)
{
}
/// <summary>
- /// Retrives the control points of the alpha function.<br />
+ /// Retrieves the control points of the alpha function.<br />
/// </summary>
/// <param name="controlPoint0">A Vector2 which will be used as the first control point of the curve.</param>
/// <param name="controlPoint1">A Vector2 which will be used as the second control point of the curve.</param>
}
/// <summary>
- /// Gets or sets specificifications of a speed factor for the animation.<br />
+ /// Gets or sets specifications of a speed factor for the animation.<br />
/// The speed factor is a multiplier of the normal velocity of the animation.<br />
/// Values between [0, 1] will slow down the animation and values above one will speed up the animation.<br />
/// It is also possible to specify a negative multiplier to play the animation in reverse.<br />
/// <summary>
/// returns the count of the individual property transitions stored within this handle.
/// </summary>
- /// <returns>A handle to the image at the the specified position.</returns>
+ /// <returns>A handle to the image at the specified position.</returns>
/// <since_tizen> 3 </since_tizen>
public uint Count()
{
/// <param name="windowSize"></param>
/// <param name="windowPosition"></param>
/// <param name="styleSheet"></param>
- /// InhouseAPI, this could be opend in NextTizen
+ /// InhouseAPI, this could be opened in NextTizen
[Obsolete("Please do not use! This will be deprecated!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(Graphics.BackendType backend, WindowMode windowMode = WindowMode.Opaque, Size2D windowSize = null, Position2D windowPosition = null, string styleSheet = "") : base(new NUICoreBackend(styleSheet, windowMode, windowSize, windowPosition))
{
- //windowMode and styleSheet will be added later. currenlty it's not working as expected.
+ //windowMode and styleSheet will be added later. currently it's not working as expected.
Graphics.Backend = backend;
Tizen.Log.Error("NUI", "Plaese DO NOT set graphical backend type with this constructor! This will give no effect!");
ExternalThemeManager.Initialize();
[EditorBrowsable(EditorBrowsableState.Never)]
public class AnimatedImageView : ImageView
{
- #region Constructor, Distructor, Dispose
+ #region Constructor, Destructor, Dispose
/// <summary>
/// Construct AnimatedImageView
/// </summary>
//because the execution order of Finalizes is non-deterministic.
base.Dispose(type);
}
- #endregion Constructor, Distructor, Dispose
+ #endregion Constructor, Destructor, Dispose
#region Property
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public class AnimatedVectorImageView : LottieAnimationView
{
- #region Constructor, Distructor, Dispose
+ #region Constructor, Destructor, Dispose
/// <summary>
/// Construct VectorAnimationView.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public AnimatedVectorImageView() : base()
{
- tlog.Fatal(tag, $"[AnimatedVectorImageView START[ constuctor objId={GetId()} ] END]");
+ tlog.Fatal(tag, $"[AnimatedVectorImageView START[ constructor objId={GetId()} ] END]");
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public AnimatedVectorImageView(float scale) : base(scale)
{
- tlog.Fatal(tag, $"[AnimatedVectorImageView START[ constuctor scale={scale}) objId={GetId()} ] END]");
+ tlog.Fatal(tag, $"[AnimatedVectorImageView START[ constructor scale={scale}) objId={GetId()} ] END]");
}
/// <summary>
tlog.Fatal(tag, $"]AnimatedVectorImageView END]");
}
- #endregion Constructor, Distructor, Dispose
+ #endregion Constructor, Destructor, Dispose
#region Property
}
/// <summary>
- /// Gets or sets whether to synchronos loading the resourceurl of image.<br />
+ /// Gets or sets whether to synchronous loading the resourceurl of image.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
public bool SynchronosLoading
}
/// <summary>
- /// Get attribues, it is abstract function and must be override.
+ /// Get attributes, it is abstract function and must be override.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
protected override ViewStyle CreateViewStyle()
/// <since_tizen> 7 </since_tizen>
public class LottieAnimationView : ImageView
{
- #region Constructor, Distructor, Dispose
+ #region Constructor, Destructor, Dispose
/// <summary>
/// LottieAnimationView constructor
/// </summary>
base.Dispose(type);
tlog.Fatal(tag, $"[{GetId()}]>");
}
- #endregion Constructor, Distructor, Dispose
+ #endregion Constructor, Destructor, Dispose
#region Property
namespace Tizen.NUI.BaseComponents
{
/// <summary>
- /// Base class for derived Scrollables that contains actors that can be scrolled manually
+ /// Base class for derived Scrollable that contains actors that can be scrolled manually
/// (via touch) or automatically.
/// </summary>
/// <since_tizen> 3 </since_tizen>
return new Selector<T>(value);
}
- /// Default Contructor
+ /// Default constructor
[EditorBrowsable(EditorBrowsableState.Never)]
public Selector()
{
}
- /// Contructor with T
+ /// Constructor with T
[EditorBrowsable(EditorBrowsableState.Never)]
public Selector(T value) : this()
{
}
/// <summary>
- /// Get attribues, it is abstract function and must be override.
+ /// Get attributes, it is abstract function and must be override.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
protected override ViewStyle CreateViewStyle()
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Creates an initialized VideoView.
/// If the string is empty, VideoView will not display anything.
/// </summary>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Creates an initialized VideoView.
/// If the string is empty, VideoView will not display anything.
/// </summary>
public class SafeNativePlayerHandle : SafeHandle
{
/// <summary>
- /// Contructor, null handle is set.
+ /// Constructor, null handle is set.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public SafeNativePlayerHandle() : base(global::System.IntPtr.Zero, false)
}
/// <summary>
- /// Contructor, Native player handle is set to handle.
+ /// Constructor, Native player handle is set to handle.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public SafeNativePlayerHandle(VideoView videoView) : base(global::System.IntPtr.Zero, false)
/// It is null by default.
/// </summary>
/// <remarks>
- /// Gettter returns copied instance of current shadow.
+ /// Getter returns copied instance of current shadow.
/// </remarks>
/// <remarks>
/// The mutually exclusive with "ImageShadow".
/// <summary>
/// The Child property of FlexContainer.<br />
- /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
+ /// The alignment of the flex item along the cross axis, which, if set, overrides the default alignment for all items in the container.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
[Obsolete("Deprecated in API8, will be removed in API10.")]
}
/// <summary>
- /// Retrieves the screen postion of the view.<br />
+ /// Retrieves the screen position of the view.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
public Vector2 ScreenPosition
/// <summary>
/// Gets the view's ID.
- /// Readonly
+ /// Read-only
/// </summary>
/// <since_tizen> 3 </since_tizen>
public uint ID
public partial class View
{
///////////////////////////////////////////////////////////////////
- // ****************** Accessiblity Attributes ****************** //
+ // ****************** Accessibility Attributes ****************** //
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
}
///////////////////////////////////////////////////////////////////
- // ****************** Accessiblity Relations ******************* //
+ // ****************** Accessibility Relations ******************* //
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
}
///////////////////////////////////////////////////////////////////
- // ****************** Accessiblity Relations ******************* //
+ // ****************** Accessibility Relations ******************* //
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
/// parent.InterceptTouchEvent += OnInterceptTouchEvent;
/// View view = child.GetParent() as View;
/// view.DisallowInterceptTouchEvent = true;
- /// This prevents the parent from interceping touch.
+ /// This prevents the parent from intercepting touch.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool DisallowInterceptTouchEvent { get; set; }
}
else
{
- Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
+ Tizen.Log.Error("NUI", "swigCPtr of view is already disposed.");
}
return ret;
}
// static constructor registers the control type (for user can add kinds of visuals to it)
static VisualView()
{
- // ViewRegistry registers control type with DALi type registery
+ // ViewRegistry registers control type with DALi type registry
// also uses introspection to find any properties that need to be registered with type registry
CustomViewRegistry.Instance.Register(CreateInstance, typeof(VisualView));
}
}
/// <summary>
- /// Gets the the hash code of this baseHandle.
+ /// Gets the hash code of this baseHandle.
/// </summary>
/// <returns>The hash code.</returns>
/// <since_tizen> 5 </since_tizen>
// TODO: dispose managed state (managed objects).
// Explicit call. user calls Dispose()
- //Throw excpetion if Dispose() is called in separate thread.
+ //Throw exception if Dispose() is called in separate thread.
if (!Window.IsInstalled())
{
throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
/// </summary>
None = -1,
/// <summary>
- /// The base nofitication level.
+ /// The base notification level.
/// </summary>
Base = 10,
/// <summary>
}
/// <summary>
- /// An enum of the scroll state of the text eidtor.
+ /// An enum of the scroll state of the text editor.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum ScrollState
}
/// <summary>
- /// Gets the the hash code of this Position.
+ /// Gets the hash code of this Position.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Constructor a Position2D from a stirng.
+ /// Constructor a Position2D from a string.
/// </summary>
public static implicit operator Position2D(System.String value)
{
}
/// <summary>
- /// Gets the the hash code of this Position2D.
+ /// Gets the hash code of this Position2D.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Gets the the hash code of this RelativeVector2.
+ /// Gets the hash code of this RelativeVector2.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Gets the the hash code of this RelativeVector3.
+ /// Gets the hash code of this RelativeVector3.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Gets the the hash code of this RelativeVector4.
+ /// Gets the hash code of this RelativeVector4.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// The linear iterpolation (using a straight line between the two rotations).
+ /// The linear interpolation (using a straight line between the two rotations).
/// </summary>
/// <param name="q1">The start rotation.</param>
/// <param name="q2">The end rotation.</param>
/// <summary>
/// Converts the quaternion to an axis or angle pair.
/// </summary>
- /// <param name="axis">The result of an an axis.</param>
+ /// <param name="axis">The result of an axis.</param>
/// <param name="angle">The result of angle in radians.</param>
/// <returns>True if converted correctly.</returns>
/// <since_tizen> 3 </since_tizen>
}
/// <summary>
- /// Gets the the hash code of this Size.
+ /// Gets the hash code of this Size.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Gets the the hash code of this Size2D.
+ /// Gets the hash code of this Size2D.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
/// <summary>
/// Gets type name count.
/// </summary>
- /// <returns>The counte.</returns>
+ /// <returns>The count.</returns>
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public uint GetTypeNameCount()
}
/// <summary>
- /// Gets the the hash code of this Vector2.
+ /// Gets the hash code of this Vector2.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Gets the the hash code of this Vector3.
+ /// Gets the hash code of this Vector3.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Gets the the hash code of this Vector4.
+ /// Gets the hash code of this Vector4.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Rhe enum of ScriptableType
+ /// The enum of ScriptableType
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum ScriptableType
/// Example of a Spin view registering itself:
/// static Spin()
/// {
- /// ViewRegistry registers control type with DALi type registery
+ /// ViewRegistry registers control type with DALi type registry
/// also uses introspection to find any properties that need to be registered with type registry
/// ViewRegistry.Instance.Register(CreateInstance, typeof(Spin) );
/// }
// first get the attribute type, ( default, or animatable)
ScriptableProperty scriptableProp = attr as ScriptableProperty;
- // we get the start property index, based on the type and it's heirachy, e.g. DateView (70,000)-> Spin (60,000) -> View (50,000)
+ // we get the start property index, based on the type and it's hierarchy, e.g. DateView (70,000)-> Spin (60,000) -> View (50,000)
int propertyIndex = propertyRangeManager.GetPropertyIndex(viewType.ToString(), viewType, scriptableProp.type);
// get the enum for the property type... E.g. registering a string property returns Tizen.NUI.PropertyType.String
}
else
{
- throw new global::System.InvalidOperationException("C# View not registererd with ViewRegistry" + controlName);
+ throw new global::System.InvalidOperationException("C# View not registered with ViewRegistry" + controlName);
}
}
using System;
using Tizen.NUI.BaseComponents;
-// A spin control (for continously changing values when users can easily predict a set of values)
+// A spin control (for continuously changing values when users can easily predict a set of values)
namespace Tizen.NUI
{
///<summary>
// static constructor registers the control type (only runs once)
static Spin()
{
- // ViewRegistry registers control type with DALi type registery
+ // ViewRegistry registers control type with DALi type registry
// also uses introspection to find any properties that need to be registered with type registry
CustomViewRegistry.Instance.Register(CreateInstance, typeof(Spin));
}
}
/// <summary>
- /// Maximum text lengh of the spin value.
+ /// Maximum text length of the spin value.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[ScriptableProperty()]
namespace Tizen.NUI
{
/// <summary>
- /// GestureDetectors analyse a stream of touch events and attempt to determine the intention of the user.<br />
+ /// GestureDetectors analyses a stream of touch events and attempt to determine the intention of the user.<br />
/// An view is attached to a gesture detector and if the detector recognises a pattern in its analysis, it will
/// trigger a detected event to the application.<br />
/// This is the base class for different gesture detectors available and provides functionality that is common to all the gesture detectors.<br />
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from local file.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from local file.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from local file.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from local file.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from local file.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from a remote resource.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from a remote resource.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from a remote resource.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from a remote resource.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// <summary>
/// Hidden API (Inhouse API).
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// Load an image synchronously from a remote resource.
/// </summary>
/// <param name="uri">The URI of the image file to load.</param>
/// the PixelData object will release it automatically when the reference count falls to zero.
/// </summary>
/// Please DO NOT use! This will be deprecated!
- /// PixelData class requires externally allocated pixel memory buffer and this buffer loses its ownershop by native DALi.
+ /// PixelData class requires externally allocated pixel memory buffer and this buffer loses its ownership by native DALi.
/// And this would make some problem, because dotnet runtime would change the address of memory allocated.
/// So this is required to be removed.
/// currently no use. will be added later
/// </summary>
Normal,
/// <summary>
- /// Filename layout. sysbols such as '/' should be disabled.
+ /// Filename layout. symbols such as '/' should be disabled.
/// </summary>
WithFilename,
/// <summary>
/// <summary>
/// Int key.
/// </summary>
- /// When deleting the field, change it to prperty.
+ /// When deleting the field, change it to property.
[Obsolete("Deprecated in API9, Will be removed in API11. Please use IntegerKey instead.")]
[SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
public int? KeyInt = null;
/// <summary>
/// String key.
/// </summary>
- /// When deleting the field, change it to prperty.
+ /// When deleting the field, change it to property.
[Obsolete("Deprecated in API9, Will be removed in API11. Please use StringKey instead.")]
[SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
public string KeyString = null;
/// <summary>
/// True value.
/// </summary>
- /// When deleting the field, change it to prperty.
+ /// When deleting the field, change it to property.
[Obsolete("Deprecated in API9, Will be removed in API11. Please use PropertyValue instead.")]
[SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
public PropertyValue TrueValue = null;
/// <summary>
/// Int key.
/// </summary>
- /// When deleting the field, change it to prperty.
+ /// When deleting the field, change it to property.
[EditorBrowsable(EditorBrowsableState.Never)]
public int? IntegerKey
{
private MeasureSpecification parentMeasureSpecificationWidth;
private MeasureSpecification parentMeasureSpecificationHeight;
- private IntPtr _rootFlex; // Pointer to the unmanged flex layout class.
+ private IntPtr _rootFlex; // Pointer to the unmanaged flex layout class.
internal const float FlexUndefined = 10E20F; // Auto setting which is equivalent to WrapContent.
// TODO: dispose managed state (managed objects).
// Explicit call. user calls Dispose()
- //Throw excpetion if Dispose() is called in separate thread.
+ //Throw exception if Dispose() is called in separate thread.
if (!Window.IsInstalled())
{
throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
public enum StretchFlags
{
/// <summary>
- /// Respect mesured size of the child.
+ /// Respect measured size of the child.
/// </summary>
/// <since_tizen> 8 </since_tizen>
None = 0,
/// Get, Set the time transition should execute for . Milliseconds.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// When deleting the field, change it to prperty.
+ /// When deleting the field, change it to property.
[Obsolete("Deprecated in API9, Will be removed in API11. Please use GetDuration, SetDuration instead!")]
[SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
public int Duration;
/// Get, Set the delay before the transition executes. Milliseconds.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// When deleting the field, change it to prperty.
+ /// When deleting the field, change it to property.
[Obsolete("Deprecated in API9, Will be removed in API11. Please use GetDelay, SetDelay instead!")]
[SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
public int Delay;
/// Get, Set the function to alter the transition path over time.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// When deleting the field, change it to prperty.
[Obsolete("Deprecated in API9, Will be removed in API11. Please use GetAlphaFunction, SetAlphaFunction instead!")]
[SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
public AlphaFunction AlphaFunction;
}
/// <summary>
- /// LayoutTransition stores the animation setting for a transition conidition.
+ /// LayoutTransition stores the animation setting for a transition condition.
/// </summary>
public class LayoutTransition
{
}
/// <summary>
- /// Retreive the transition list for the given condition.
+ /// Retrieve the transition list for the given condition.
/// </summary>
/// <param name="sourceTransitionCollection">The source collection of transition lists to retrieve.</param>
/// <param name="condition">Condition for the transition.</param>
targetTransitionList.Clear();
foreach (LayoutTransition transitionToApply in sourceTransitionList)
{
- // Overwite existing transitions
+ // Overwrite existing transitions
targetTransitionList.Add(transitionToApply);
}
}
{
if (useExcessSpace)
{
- // Parent is not defiend!!!
+ // Parent is not defined!!!
// The widthMode is either Unspecified or AtMost, and
// this child is only laid out using excess space. Measure
// using WrapContent so that we can find out the view's
/// MeasureSpecification Size value.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// When deleting the field, change it to prperty.
+ /// When deleting the field, change it to property.
[Obsolete("Deprecated in API9, Will be removed in API11. Please use GetSize,SetSize instead!")]
[SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
public LayoutLength Size;
/// MeasureSpecification Mode.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// When deleting the field, change it to prperty.
+ /// When deleting the field, change it to property.
[Obsolete("Deprecated in API9, Will be removed in API11. Please use GetMode,SetMode instead!")]
[SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
public MeasureSpecification.ModeType Mode;
}
/// <summary>
- /// Gets the the hash code of this baseHandle.
+ /// Gets the hash code of this baseHandle.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 4 </since_tizen>
/// Gets the image at position "index".
/// </summary>
/// <param name="index">The position in the texture set of the image.</param>
- /// <returns>A handle to the image at the the specified position.</returns>
+ /// <returns>A handle to the image at the specified position.</returns>
/// <since_tizen> 3 </since_tizen>
public Texture GetTexture(uint index)
{
namespace Tizen.NUI
{
- [SuppressMessage("Microsoft.Design", "CA1031: Do not catch general exception types", Justification = "This method is to handle external resources that may throw an exception but ignorable. This method should not interupt the main stream.")]
+ [SuppressMessage("Microsoft.Design", "CA1031: Do not catch general exception types", Justification = "This method is to handle external resources that may throw an exception but ignorable. This method should not interrupt the main stream.")]
internal static class ExternalThemeManager
{
private static Tizen.Applications.ThemeManager.ThemeLoader themeLoader = InitializeThemeLoader();
}
catch (ArgumentException e)
{
- Tizen.Log.Error("NUI", $"{e.GetType().Name} occured while getting theme application info.");
+ Tizen.Log.Error("NUI", $"{e.GetType().Name} occurred while getting theme application info.");
throw;
}
catch (InvalidOperationException e)
{
- Tizen.Log.Error("NUI", $"{e.GetType().Name} occured while getting theme application info.");
+ Tizen.Log.Error("NUI", $"{e.GetType().Name} occurred while getting theme application info.");
throw;
}
}
catch (Exception e)
{
- Tizen.Log.Info("NUI", $"[Ignorable] {e.GetType().Name} occured while getting current theme using {themeLoader.GetType().FullName}: {e.Message}");
+ Tizen.Log.Info("NUI", $"[Ignorable] {e.GetType().Name} occurred while getting current theme using {themeLoader.GetType().FullName}: {e.Message}");
}
if (tizenTheme == null || string.IsNullOrEmpty(tizenTheme.Id) || string.IsNullOrEmpty(tizenTheme.Version))
}
catch (Exception e)
{
- Tizen.Log.Info("NUI", $"[Ignorable] {e.GetType().Name} occured while getting load theme using {themeLoader.GetType().FullName}: {e.Message}");
+ Tizen.Log.Info("NUI", $"[Ignorable] {e.GetType().Name} occurred while getting load theme using {themeLoader.GetType().FullName}: {e.Message}");
}
return tizenTheme == null ? null : new TizenExternalTheme(tizenTheme);
}
catch (Exception e)
{
- Tizen.Log.Info("NUI", $"[Ignorable] {e.GetType().Name} occured while setting Tizen.Applications.ThemeManager: {e.Message}");
+ Tizen.Log.Info("NUI", $"[Ignorable] {e.GetType().Name} occurred while setting Tizen.Applications.ThemeManager: {e.Message}");
}
return null;
/// <summary>
/// Apply theme to the NUI.
- /// This will change the appreance of the existing components with property <seealso cref="View.ThemeChangeSensitive"/> on.
+ /// This will change the appearance of the existing components with property <seealso cref="View.ThemeChangeSensitive"/> on.
/// This also affects all components created afterwards.
/// </summary>
/// <param name="theme">The theme instance to be applied.</param>
get => theme.Version;
}
- [SuppressMessage("Microsoft.Design", "CA1031: Do not catch general exception types", Justification = "This method is to handle external resources that may throw an exception but ignorable. This method should not interupt the main stream.")]
+ [SuppressMessage("Microsoft.Design", "CA1031: Do not catch general exception types", Justification = "This method is to handle external resources that may throw an exception but ignorable. This method should not interrupt the main stream.")]
public string GetValue(string key)
{
string themeKey = prefix + key;
}
catch (Exception e)
{
- Tizen.Log.Error("NUI", $"{e.GetType().Name} occured while getting value from {theme.GetType().FullName}: {e.Message}");
+ Tizen.Log.Error("NUI", $"{e.GetType().Name} occurred while getting value from {theme.GetType().FullName}: {e.Message}");
}
return extracted;
// Now try and generate any missing colors
GenerateEmptyswatches();
- // To get swatch infomation as string.
+ // To get swatch information as string.
String[] swatchInfo = new String[6];
if (vibrantSwatch != null) swatchInfo[0] = vibrantSwatch.ToString();
}
// This is nested class for use by other internal classes(Color*), but is declared public.
- // Futher confirmantion need of this architect.
+ // Further confirmation need of this architect.
/// <summary>
/// Represents a color swatch generated from an image's palette. The RGB color can be retrieved calling getRgb()
timerTickCallbackDelegate = OnTick;
timerTickCallbackOfNative = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(timerTickCallbackDelegate);
- NUILog.Debug($"(0x{SwigCPtr.Handle:X})Timer() contructor!");
+ NUILog.Debug($"(0x{SwigCPtr.Handle:X})Timer() constructor!");
}
/// <summary>
/// </summary>
~Timer()
{
- Tizen.Log.Debug("NUI", $"(0x{SwigCPtr.Handle:X})Timer() distructor!, disposed={disposed}");
+ Tizen.Log.Debug("NUI", $"(0x{SwigCPtr.Handle:X})Timer() destructor!, disposed={disposed}");
}
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
if (played == false)
{
Tizen.Log.Fatal("NUI", $"(0x{SwigCPtr.Handle:X}) OnTick() is called even played is false!");
- //throw new System.InvalidOperationException($"OnTick() excpetion!");
+ //throw new System.InvalidOperationException($"OnTick() exception!");
}
if (timerTickEventHandler != null && played == true)
/// <summary>
/// Hidden API (Inhouse API).
/// Constructor.
- /// Using Uri class to provide safe sevice and secure API.
+ /// Using Uri class to provide safe service and secure API.
/// </summary>
/// <param name="uri">uri.</param>
/// <param name="border">border.</param>
namespace Tizen.NUI
{
/// <summary>
- /// A class encapsulating the property map of the primetive visual.
+ /// A class encapsulating the property map of the primitive visual.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public class PrimitiveVisual : VisualMap
/// </summary>
Fill,
/// <summary>
- /// The visual should be scaled to fit, preserving aspect ratio. The visual will be fillled without empty area, and outside is cropped away.
+ /// The visual should be scaled to fit, preserving aspect ratio. The visual will be filled without empty area, and outside is cropped away.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
OverFitKeepAspectRatio,
/// <summary>
- /// The visual should keep original size of image. it is not scaled and not strecthed.
+ /// The visual should keep original size of image. it is not scaled and not stretched.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
Center,
}
/// <summary>
- /// This specifies visaul align types.
+ /// This specifies visual align types.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum AlignType
/// The map for visual.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [Obsolete("Deprecated in API9, Will be removed in API11, Plese not use _comonlyUsedMap")]
+ [Obsolete("Deprecated in API9, Will be removed in API11, Please not use _comonlyUsedMap")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1051:Do not declare visible instance fields", Justification = "<Pending>")]
protected PropertyMap _commonlyUsedMap = null;
}
/// <summary>
- /// Gets the update peroid.
+ /// Gets the update period.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public float UpdatePeriod
private WidgetView _widgetView;
/// <summary>
- /// The widet view.
+ /// The widget view.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public WidgetView WidgetView
/// <summary>
/// The GLWindow class is to draw with native GLES.<br />
/// This class is the special window. It is for native GLES application.<br />
- /// So, some special funtions and type are supported.<br />
+ /// So, some special functions and type are supported.<br />
/// In addition, basic window's functions are supported, too.<br />
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
/// <summary>
/// Creates an initialized handle to a new GLWindow.<br />
- /// This API can create GLWindow with specifc option.<br />
+ /// This API can create GLWindow with specific option.<br />
/// </summary>
/// <param name="name">The name for GL window. </param>
/// <param name="windowPosition">The position and size of the Window.</param>
// val.Dispose();
// Workaround : windowSize should be valid pointer from dali,
- // but currenlty it is fixed and is not Uint16Pair class.
+ // but currently it is fixed and is not Uint16Pair class.
// will be fixed later.
e.WindowSize = this.WindowSize;
windowResizedEventHandler(this, e);
// val.Dispose();
// Workaround : windowSize should be valid pointer from dali,
- // but currenlty it is fixed and is not Uint16Pair class.
+ // but currently it is fixed and is not Uint16Pair class.
// will be fixed later.
e.WindowSize = this.WindowSize;
windowResizeEventHandler(this, e);
public class SafeNativeWindowHandle : SafeHandle
{
/// <summary>
- /// Contructor, Native window handle is set to handle.
+ ///Constructor, Native window handle is set to handle.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public SafeNativeWindowHandle() : base(IntPtr.Zero, false)
}
/// <summary>
- /// Returns a Boolean indicating if the Command can be exectued with the given parameter.
+ /// Returns a Boolean indicating if the Command can be executed with the given parameter.
/// </summary>
/// <param name="parameter">An Object used as parameter to determine if the Command can be executed.</param>
/// <returns>true if the Command can be executed, false otherwise.</returns>
}
catch (Exception)
{
- Console.WriteLine($"EventTrigger", "Can not attach EventTrigger to {binding.GetType()}.{Evnet}. Check if the handler exists and if the signature is right.");
+ Console.WriteLine($"EventTrigger", "Can not attach EventTrigger to {binding.GetType()}.{Event}. Check if the handler exists and if the signature is right.");
}
if (eventinfo != null && handlerdelegate != null)
eventinfo.AddEventHandler(bindable, handlerdelegate);
/// <summary>
/// For internal use. Return the handler of the object.
/// </summary>
- /// <typeparam name="TOut">Thetype</typeparam>
+ /// <typeparam name="TOut">The type</typeparam>
/// <param name="obj">The object instance.</param>
/// <returns>The handle of the obj.</returns>
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
}
/// <summary>
- /// For inetrnal use. Return the handler of the object.
+ /// For internal use. Return the handler of the object.
/// </summary>
/// <typeparam name="TOut">The type</typeparam>
/// <param name="obj">The object instance</param>
}
}
- Register(viewType, type); // Register this so we don't have to look for the RenderWith Attibute again in the future
+ Register(viewType, type); // Register this so we don't have to look for the RenderWith Attribute again in the future
return type;
}
if (_isReadOnly == value)
return;
if (!value)
- throw new InvalidOperationException("Can't change this back to non readonly");
+ throw new InvalidOperationException("Can't change this back to non read-only");
_isReadOnly = value;
}
}
namespace Tizen.NUI.Binding.Internals
{
- //FIXME: need a better name for this, and share with Binding, so we can share more unittests
+ //FIXME: need a better name for this, and share with Binding, so we can share more unit tests
/// 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 abstract class TypedBindingBase : BindingBase