[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void DetectedCallbackType(IntPtr actor, IntPtr longPressGesture);
private DetectedCallbackType _detectedCallback;
- private LongPressGestureDetectedSignal detectedSignal;
/// <summary>
/// This signal is emitted when the specified long press is detected on the attached view.
if (_detectedEventHandler == null)
{
_detectedCallback = OnLongPressGestureDetected;
- detectedSignal = DetectedSignal();
- detectedSignal.Connect(_detectedCallback);
+ DetectedSignal().Connect(_detectedCallback);
}
_detectedEventHandler += value;
{
_detectedEventHandler -= value;
- if (_detectedEventHandler == null && detectedSignal?.Empty() == false)
+ if (_detectedEventHandler == null && DetectedSignal().Empty() == false)
{
- detectedSignal.Disconnect(_detectedCallback);
- detectedSignal.Dispose();
- detectedSignal = null;
+ DetectedSignal().Disconnect(_detectedCallback);
}
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
- if (_detectedEventHandler == null && detectedSignal?.Empty() == false)
+ if (_detectedEventHandler == null && DetectedSignal().Empty() == false)
{
- detectedSignal.Disconnect(_detectedCallback);
- detectedSignal.Dispose();
- detectedSignal = null;
+ DetectedSignal().Disconnect(_detectedCallback);
}
Interop.LongPressGestureDetector.DeleteLongPressGestureDetector(swigCPtr);
}
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void DetectedCallbackType(IntPtr actor, IntPtr panGesture);
private DetectedCallbackType _detectedCallback;
- private PanGestureDetectedSignal detectedSignal;
/// <summary>
/// This signal is emitted when the specified pan is detected on the attached view.
if (_detectedEventHandler == null)
{
_detectedCallback = OnPanGestureDetected;
- detectedSignal = DetectedSignal();
- detectedSignal.Connect(_detectedCallback);
+ DetectedSignal().Connect(_detectedCallback);
}
_detectedEventHandler += value;
{
_detectedEventHandler -= value;
- if (_detectedEventHandler == null && detectedSignal?.Empty() == false)
+ if (_detectedEventHandler == null && DetectedSignal().Empty() == false)
{
- detectedSignal.Disconnect(_detectedCallback);
- detectedSignal.Dispose();
- detectedSignal = null;
+ DetectedSignal().Disconnect(_detectedCallback);
}
}
}
get
{
Vector2 temp = new Vector2(0.0f, 0.0f);
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.ScreenDisplacement);
- pValue.Get(temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.ScreenDisplacement).Get(temp);
return temp;
}
}
get
{
Vector2 temp = new Vector2(0.0f, 0.0f);
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.ScreenVelocity);
- pValue.Get(temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.ScreenVelocity).Get(temp);
return temp;
}
}
get
{
Vector2 temp = new Vector2(0.0f, 0.0f);
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.LocalPosition);
- pValue.Get(temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.LocalPosition).Get(temp);
return temp;
}
}
get
{
Vector2 temp = new Vector2(0.0f, 0.0f);
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.LocalDisplacement);
- pValue.Get(temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.LocalDisplacement).Get(temp);
return temp;
}
}
get
{
Vector2 temp = new Vector2(0.0f, 0.0f);
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.LocalVelocity);
- pValue.Get(temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.LocalVelocity).Get(temp);
return temp;
}
}
get
{
bool temp = false;
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.PANNING);
- pValue.Get(out temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, PanGestureDetector.Property.PANNING).Get(out temp);
return temp;
}
}
{
if (_detectedCallback != null)
{
- detectedSignal?.Disconnect(_detectedCallback);
- detectedSignal?.Dispose();
+ DetectedSignal().Disconnect(_detectedCallback);
}
Interop.PanGestureDetector.DeletePanGestureDetector(swigCPtr);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void DetectedCallbackType(IntPtr actor, IntPtr pinchGesture);
private DetectedCallbackType _detectedCallback;
- private PinchGestureDetectedSignal detectedSignal;
/// <summary>
/// This signal is emitted when the specified pinch is detected on the attached view.
if (_detectedEventHandler == null)
{
_detectedCallback = OnPinchGestureDetected;
- detectedSignal = DetectedSignal();
- detectedSignal.Connect(_detectedCallback);
+ DetectedSignal().Connect(_detectedCallback);
}
_detectedEventHandler += value;
{
_detectedEventHandler -= value;
- if (_detectedEventHandler == null && detectedSignal?.Empty() == false)
+ if (_detectedEventHandler == null && DetectedSignal().Empty() == false)
{
- detectedSignal.Disconnect(_detectedCallback);
- detectedSignal.Dispose();
- detectedSignal = null;
+ DetectedSignal().Disconnect(_detectedCallback);
}
}
}
{
if (_detectedCallback != null)
{
- detectedSignal?.Disconnect(_detectedCallback);
- detectedSignal?.Dispose();
+ DetectedSignal().Disconnect(_detectedCallback);
}
Interop.PinchGesture.DeletePinchGestureDetector(swigCPtr);
private DaliEventHandler<object, NotifyEventArgs> _propertyNotificationNotifyEventHandler;
private NotifyEventCallbackDelegate _propertyNotificationNotifyEventCallbackDelegate;
- private PropertyNotifySignal notifySignal;
/// <summary>
/// Create a instance of PropertyNotification.
_propertyNotificationNotifyEventHandler += value;
_propertyNotificationNotifyEventCallbackDelegate = new NotifyEventCallbackDelegate(OnPropertyNotificationNotify);
- notifySignal = this.NotifySignal();
- notifySignal.Connect(_propertyNotificationNotifyEventCallbackDelegate);
+ this.NotifySignal().Connect(_propertyNotificationNotifyEventCallbackDelegate);
}
}
{
if (_propertyNotificationNotifyEventHandler != null)
{
- notifySignal?.Disconnect(_propertyNotificationNotifyEventCallbackDelegate);
- notifySignal?.Dispose();
- notifySignal = null;
+ this.NotifySignal().Disconnect(_propertyNotificationNotifyEventCallbackDelegate);
}
_propertyNotificationNotifyEventHandler -= value;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void DetectedCallbackType(IntPtr actor, IntPtr rotationGesture);
private DetectedCallbackType _detectedCallback;
- private RotationGestureDetectedSignal detectedSignal;
/// <summary>
/// This signal is emitted when the specified rotation is detected on the attached view.
if (_detectedEventHandler == null)
{
_detectedCallback = OnRotationGestureDetected;
- detectedSignal = DetectedSignal();
- detectedSignal.Connect(_detectedCallback);
+ DetectedSignal().Connect(_detectedCallback);
}
_detectedEventHandler += value;
{
_detectedEventHandler -= value;
- if (_detectedEventHandler == null && detectedSignal?.Empty() == false)
+ if (_detectedEventHandler == null && DetectedSignal().Empty() == false)
{
- detectedSignal.Disconnect(_detectedCallback);
- detectedSignal.Dispose();
- detectedSignal = null;
+ DetectedSignal().Disconnect(_detectedCallback);
}
}
}
{
if (_detectedCallback != null)
{
- detectedSignal?.Disconnect(_detectedCallback);
- detectedSignal?.Dispose();
+ DetectedSignal().Disconnect(_detectedCallback);
}
Interop.RotationGesture.DeleteRotationGestureDetector(swigCPtr);
get
{
Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
- var pValue = Tizen.NUI.Object.GetProperty(SwigCPtr, Shader.Property.PROGRAM);
- pValue.Get(temp);
- pValue.Dispose();
+ Tizen.NUI.Object.GetProperty(SwigCPtr, Shader.Property.PROGRAM).Get(temp);
return temp;
}
set
{
- var temp = new Tizen.NUI.PropertyValue(value);
- Tizen.NUI.Object.SetProperty(SwigCPtr, Shader.Property.PROGRAM, temp);
- temp.Dispose();
+ Tizen.NUI.Object.SetProperty(SwigCPtr, Shader.Property.PROGRAM, new Tizen.NUI.PropertyValue(value));
}
}
private static readonly StyleManager instance = StyleManager.Get();
private EventHandler<StyleChangedEventArgs> _styleManagerStyleChangedEventHandler;
private StyleChangedCallbackDelegate _styleManagerStyleChangedCallbackDelegate;
- private StyleChangedSignal styleChangedSignal;
/// <summary>
/// Creates a StyleManager handle.<br />
if (_styleManagerStyleChangedEventHandler == null)
{
_styleManagerStyleChangedCallbackDelegate = (OnStyleChanged);
- styleChangedSignal = StyleChangedSignal();
- styleChangedSignal.Connect(_styleManagerStyleChangedCallbackDelegate);
+ StyleChangedSignal().Connect(_styleManagerStyleChangedCallbackDelegate);
}
_styleManagerStyleChangedEventHandler += value;
}
remove
{
_styleManagerStyleChangedEventHandler -= value;
- if (_styleManagerStyleChangedEventHandler == null && styleChangedSignal?.Empty() == false)
+ if (_styleManagerStyleChangedEventHandler == null && StyleChangedSignal().Empty() == false)
{
- styleChangedSignal.Disconnect(_styleManagerStyleChangedCallbackDelegate);
- styleChangedSignal.Dispose();
- styleChangedSignal = null;
+ StyleChangedSignal().Disconnect(_styleManagerStyleChangedCallbackDelegate);
}
}
}
{
private static readonly TTSPlayer instance = TTSPlayer.Get();
private StateChangedEventCallbackType _stateChangedEventCallback;
- private StateChangedSignalType stateChangedSignal;
internal TTSPlayer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.TtsPlayer.Upcast(cPtr), cMemoryOwn)
{
if (_stateChangedEventHandler == null)
{
_stateChangedEventCallback = OnStateChanged;
- stateChangedSignal = StateChangedSignal();
- stateChangedSignal.Connect(_stateChangedEventCallback);
+ StateChangedSignal().Connect(_stateChangedEventCallback);
}
_stateChangedEventHandler += value;
{
_stateChangedEventHandler -= value;
- if (_stateChangedEventHandler == null && stateChangedSignal?.Empty() == false && _stateChangedEventCallback != null)
+ if (_stateChangedEventHandler == null && StateChangedSignal().Empty() == false && _stateChangedEventCallback != null)
{
- stateChangedSignal.Disconnect(_stateChangedEventCallback);
- stateChangedSignal.Dispose();
- stateChangedSignal = null;
+ StateChangedSignal().Disconnect(_stateChangedEventCallback);
}
}
}
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void DetectedCallbackType(IntPtr actor, IntPtr TapGesture);
private DetectedCallbackType _detectedCallback;
- private TapGestureDetectedSignal detectedSignal;
/// <summary>
/// This signal is emitted when the specified tap is detected on the attached view.
if (_detectedEventHandler == null)
{
_detectedCallback = OnTapGestureDetected;
- detectedSignal = DetectedSignal();
- detectedSignal.Connect(_detectedCallback);
+ DetectedSignal().Connect(_detectedCallback);
}
_detectedEventHandler += value;
{
_detectedEventHandler -= value;
- if (_detectedEventHandler == null && detectedSignal?.Empty() == false)
+ if (_detectedEventHandler == null && DetectedSignal().Empty() == false)
{
- detectedSignal.Disconnect(_detectedCallback);
- detectedSignal.Dispose();
- detectedSignal = null;
+ DetectedSignal().Disconnect(_detectedCallback);
}
}
}
{
if (_detectedCallback != null)
{
- detectedSignal?.Disconnect(_detectedCallback);
- detectedSignal?.Dispose();
+ DetectedSignal().Disconnect(_detectedCallback);
}
Interop.TapGestureDetector.DeleteTapGestureDetector(swigCPtr);
private bool played = false;
private EventHandlerWithReturnType<object, TickEventArgs, bool> _timerTickEventHandler;
private TickCallbackDelegate _timerTickCallbackDelegate;
- private TimerSignalType tickSignal;
+
private System.IntPtr _timerTickCallbackOfNative;
/// <summary>
{
if (_timerTickEventHandler == null && disposed == false)
{
- tickSignal = TickSignal();
- tickSignal.Connect(_timerTickCallbackOfNative);
+ TickSignal().Connect(_timerTickCallbackOfNative);
}
_timerTickEventHandler += value;
}
remove
{
_timerTickEventHandler -= value;
- if (_timerTickEventHandler == null && tickSignal?.Empty() == false)
+ if (_timerTickEventHandler == null && TickSignal().Empty() == false)
{
- tickSignal.Disconnect(_timerTickCallbackOfNative);
- tickSignal.Dispose();
- tickSignal = null;
+ TickSignal().Disconnect(_timerTickCallbackOfNative);
}
}
}
if (this != null && _timerTickCallbackDelegate != null)
{
- tickSignal?.Disconnect(_timerTickCallbackOfNative);
- tickSignal?.Dispose();
+ TickSignal().Disconnect(_timerTickCallbackOfNative);
}
if (disposed)
uint count = cutOffIndexArray.Count();
for (uint i = 0; i < count; i++)
{
- PropertyValue temp = cutOffIndexArray.GetElementAt(i);
- temp.Get(out cutOffIndex); // Gets the last index of text shown on the actual screen.
- temp.Dispose();
+ cutOffIndexArray.GetElementAt(i).Get(out cutOffIndex); // Gets the last index of text shown on the actual screen.
// If markup is enabled, It should parse markup
if (label.EnableMarkup)