/// </remark>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- internal class SlidingSwitchExtension : SwitchExtension, IDisposable
+ internal class SlidingSwitchExtension : SwitchExtension
{
private Animation slidingAnimation;
}
}
- [EditorBrowsable(EditorBrowsableState.Never)]
public override void OnDispose(Button button)
{
if (slidingAnimation != null)
slidingAnimation = null;
}
}
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- slidingAnimation?.Dispose();
- }
- // Free native resources.
- }
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
}
}
namespace Tizen.NUI
{
- internal class DisposeQueue : IDisposable
+ internal class DisposeQueue
{
private static readonly DisposeQueue _disposableQueue = new DisposeQueue();
private List<IDisposable> _disposables = new List<IDisposable>();
_disposables.Clear();
}
}
-
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- _disposableQueue?.Dispose();
- }
- // Free native resources.
- }
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
}
}
// 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 : IDisposable
+ public class Accessibility
{
#region Constructor, Distructor, Dispose
private Accessibility()
private static string tag = "NUITEST";
#endregion Private
-
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- dummy?.Dispose();
- }
- // Free native resources.
- }
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
}
}
/// </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 partial class ViewStyle : BindableObject, IDisposable
+ public partial class ViewStyle : BindableObject
{
private string styleName;
private View.States? state;
{
Margin = new Extents(start, end, top, bottom);
}
-
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- padding?.Dispose();
- }
- // Free native resources.
- }
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
}
}
*/
using System;
-using System.ComponentModel;
using Tizen.NUI.Binding;
namespace Tizen.NUI
/// <summary>
/// KeyValue class.
/// </summary>
- public class KeyValue : IDisposable
+ public class KeyValue
{
/// <summary>
/// Int key.
KeyString = Key;
}
}
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- TrueValue?.Dispose();
- }
- // Free native resources.
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
}
}
/// [Draft] Base class for layouts. It is used to layout a View
/// It can be laid out by a LayoutGroup.
/// </summary>
- public class LayoutItem : IDisposable
+ public class LayoutItem
{
static bool LayoutDebugFrameData = false; // Debug flag
private MeasureSpecification OldWidthMeasureSpec; // Store measure specification to compare against later
return changed;
}
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- _padding?.Dispose();
- _margin?.Dispose();
- }
- // Free native resources.
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
}
}
using System.Collections.Generic;
using System;
-using System.ComponentModel;
namespace Tizen.NUI
{
/// Parts of the transition that can be configured to provide a custom effect.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- public class TransitionComponents : IDisposable
+ public class TransitionComponents
{
/// <summary>
/// TransitionComponents default constructor.
/// </summary>
/// <since_tizen> 6 </since_tizen>
public AlphaFunction AlphaFunction;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- AlphaFunction?.Dispose();
- }
- // Free native resources.
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
}
/// <summary>
using Tizen.NUI.BaseComponents;
using System.Collections.Generic;
using System.Linq;
-using System.ComponentModel;
namespace Tizen.NUI
{
}
}
}
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- _cellPadding?.Dispose();
- }
- // Free native resources.
- base.Dispose(disposing);
- }
-
} //LinearLayout
} // namespace
/// Transition animation effect
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public class TransitionAnimation : IDisposable
+ public class TransitionAnimation
{
private ImageViewStyle defaultImageStyle;
private List<TransitionAnimationData> animationDataList;
defaultImageStyle = value;
}
}
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- defaultImageStyle?.Dispose();
- }
- // Free native resources.
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
}
/// <summary>
*
*/
-using System;
-
namespace Tizen.NUI
{
/// <summary>
/// The class storing Background extra properties such as CornerRadius, ImageBorder.
/// </summary>
- internal class BackgroundExtraData : IDisposable
+ internal class BackgroundExtraData
{
internal BackgroundExtraData()
{
{
return CornerRadius == 0 && Rectangle.IsNullOrZero(BackgroundImageBorder);
}
-
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- backgroundImageBorder?.Dispose();
- }
- // Free native resources.
- }
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
}
}
/// The Text Shadow for TextLabel.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public class TextShadow : ICloneable, IDisposable
+ public class TextShadow : ICloneable
{
private readonly PropertyMap propertyMap = null;
return new PropertyValue(instance.propertyMap);
}
-
- protected virtual void Dispose(bool disposing)
- {
- if (disposing)
- {
- // Dispose managed resources.
- propertyMap?.Dispose();
- }
- // Free native resources.
- }
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
}
}
* limitations under the License.
*
*/
-using System;
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
/// A class encapsulating the transform map of the visual.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public class VisualMap : IDisposable
+ public class VisualMap
{
/// <summary>
/// outputVisualMap.
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)
- {
- if (disposing)
- {
- // Dispose managed resources.
- _outputVisualMap?.Dispose();
- _shader?.Dispose();
- _mixColor?.Dispose();
- _visualSize?.Dispose();
- _visualOffset?.Dispose();
- _visualOffsetPolicy?.Dispose();
- _visualSizePolicy?.Dispose();
- _visualTransformMap?.Dispose();
- }
- // Free native resources.
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
}
}