/// <param name="cycle">If <c>true</c> the focus will cycle in the layer, if <c>false</c></param>
void SetBehaviour(bool enable_on_visible, bool cycle);
/// <summary>Enable property</summary>
-/// <value><c>true</c> to set enable the layer <c>false</c> to disable it</value>
+ /// <value><c>true</c> to set enable the layer <c>false</c> to disable it</value>
bool Enable {
get ;
set ;
/// A focus layer is the uppermost one which received input and handles all focus related events for as long as it exists and is visible. It's NOT possible to escape this layer with focus movement.
///
/// Once the object is hidden or destroyed the focus will go back to the mainwindow, where it was before.</summary>
-sealed public class ILayerConcrete :
-
-ILayer
+sealed public class ILayerConcrete :
+ Efl.Eo.EoWrapper
+ , ILayer
, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager
{
///<summary>Pointer to the native class description.</summary>
- public System.IntPtr NativeClass
+ public override System.IntPtr NativeClass
{
get
{
}
}
- private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>();
- private readonly object eventLock = new object();
- private System.IntPtr handle;
- ///<summary>Pointer to the native instance.</summary>
- public System.IntPtr NativeHandle
- {
- get { return handle; }
- }
-
[System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
efl_ui_focus_layer_mixin_get();
/// <summary>Initializes a new instance of the <see cref="ILayer"/> class.
/// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
- private ILayerConcrete(System.IntPtr raw)
- {
- handle = raw;
- }
- ///<summary>Destructor.</summary>
- ~ILayerConcrete()
- {
- Dispose(false);
- }
-
- ///<summary>Releases the underlying native instance.</summary>
- private void Dispose(bool disposing)
- {
- if (handle != System.IntPtr.Zero)
- {
- IntPtr h = handle;
- handle = IntPtr.Zero;
-
- IntPtr gcHandlePtr = IntPtr.Zero;
- if (eoEvents.Count != 0)
- {
- GCHandle gcHandle = GCHandle.Alloc(eoEvents);
- gcHandlePtr = GCHandle.ToIntPtr(gcHandle);
- }
-
- if (disposing)
- {
- Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr);
- }
- else
- {
- Monitor.Enter(Efl.All.InitLock);
- if (Efl.All.MainLoopInitialized)
- {
- Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr);
- }
-
- Monitor.Exit(Efl.All.InitLock);
- }
- }
-
- }
-
- ///<summary>Releases the underlying native instance.</summary>
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- /// <summary>Verifies if the given object is equal to this one.</summary>
- /// <param name="instance">The object to compare to.</param>
- /// <returns>True if both objects point to the same native object.</returns>
- public override bool Equals(object instance)
+ private ILayerConcrete(System.IntPtr raw) : base(raw)
{
- var other = instance as Efl.Object;
- if (other == null)
- {
- return false;
- }
- return this.NativeHandle == other.NativeHandle;
- }
-
- /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
- /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
- public override int GetHashCode()
- {
- return this.NativeHandle.ToInt32();
- }
-
- /// <summary>Turns the native pointer into a string representation.</summary>
- /// <returns>A string with the type and the native pointer for this object.</returns>
- public override String ToString()
- {
- return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
- }
-
- ///<summary>Adds a new event handler, registering it to the native event. For internal use only.</summary>
- ///<param name="lib">The name of the native library definining the event.</param>
- ///<param name="key">The name of the native event.</param>
- ///<param name="evtCaller">Delegate to be called by native code on event raising.</param>
- ///<param name="evtDelegate">Managed delegate that will be called by evtCaller on event raising.</param>
- private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate)
- {
- IntPtr desc = Efl.EventDescription.GetNative(lib, key);
- if (desc == IntPtr.Zero)
- {
- Eina.Log.Error($"Failed to get native event {key}");
- }
-
- if (eoEvents.ContainsKey((desc, evtDelegate)))
- {
- Eina.Log.Warning($"Event proxy for event {key} already registered!");
- return;
- }
-
- IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller);
- if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero))
- {
- Eina.Log.Error($"Failed to add event proxy for event {key}");
- return;
- }
-
- eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller);
- Eina.Error.RaiseIfUnhandledException();
- }
-
- ///<summary>Removes the given event handler for the given event. For internal use only.</summary>
- ///<param name="lib">The name of the native library definining the event.</param>
- ///<param name="key">The name of the native event.</param>
- ///<param name="evtDelegate">The delegate to be removed.</param>
- private void RemoveNativeEventHandler(string lib, string key, object evtDelegate)
- {
- IntPtr desc = Efl.EventDescription.GetNative(lib, key);
- if (desc == IntPtr.Zero)
- {
- Eina.Log.Error($"Failed to get native event {key}");
- return;
- }
-
- var evtPair = (desc, evtDelegate);
- if (eoEvents.TryGetValue(evtPair, out var caller))
- {
- if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero))
- {
- Eina.Log.Error($"Failed to remove event proxy for event {key}");
- return;
- }
-
- eoEvents.Remove(evtPair);
- Eina.Error.RaiseIfUnhandledException();
- }
- else
- {
- Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered.");
- }
}
/// <summary>Redirect object has changed, the old manager is passed as an event argument.
{
lock (eventLock)
{
- var wRef = new WeakReference(this);
Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
{
- var obj = wRef.Target as Efl.Eo.IWrapper;
+ var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
if (obj != null)
{
- Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args();
+ Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args();
args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete);
try
{
{
lock (eventLock)
{
- var wRef = new WeakReference(this);
Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
{
- var obj = wRef.Target as Efl.Eo.IWrapper;
+ var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
if (obj != null)
{
EventArgs args = EventArgs.Empty;
{
lock (eventLock)
{
- var wRef = new WeakReference(this);
Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
{
- var obj = wRef.Target as Efl.Eo.IWrapper;
+ var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
if (obj != null)
{
EventArgs args = EventArgs.Empty;
{
lock (eventLock)
{
- var wRef = new WeakReference(this);
Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
{
- var obj = wRef.Target as Efl.Eo.IWrapper;
+ var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
if (obj != null)
{
- Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args();
+ Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args();
args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete);
try
{
{
lock (eventLock)
{
- var wRef = new WeakReference(this);
Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
{
- var obj = wRef.Target as Efl.Eo.IWrapper;
+ var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
if (obj != null)
{
- Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args();
- args.arg = evt.Info != IntPtr.Zero;
+ Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args();
+ args.arg = Marshal.ReadByte(evt.Info) != 0;
try
{
value?.Invoke(obj, args);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Enable property</summary>
-/// <value><c>true</c> to set enable the layer <c>false</c> to disable it</value>
+ /// <value><c>true</c> to set enable the layer <c>false</c> to disable it</value>
public bool Enable {
get { return GetEnable(); }
set { SetEnable(value); }
}
/// <summary>The element which is currently focused by this manager
-/// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When <c>focus</c> is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change.
-/// (Since EFL 1.22)</summary>
-/// <value>Currently focused element.</value>
+ /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When <c>focus</c> is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change.
+ /// (Since EFL 1.22)</summary>
+ /// <value>Currently focused element.</value>
public Efl.Ui.Focus.IObject ManagerFocus {
get { return GetManagerFocus(); }
set { SetManagerFocus(value); }
}
/// <summary>Add another manager to serve the move requests.
-/// If this value is set, all move requests are redirected to this manager object. Set it to <c>null</c> once nothing should be redirected anymore.
-/// (Since EFL 1.22)</summary>
-/// <value>The redirect manager.</value>
+ /// If this value is set, all move requests are redirected to this manager object. Set it to <c>null</c> once nothing should be redirected anymore.
+ /// (Since EFL 1.22)</summary>
+ /// <value>The redirect manager.</value>
public Efl.Ui.Focus.IManager Redirect {
get { return GetRedirect(); }
set { SetRedirect(value); }
}
/// <summary>The list of elements which are at the border of the graph.
-/// This means one of the relations right,left or down,up are not set. This call flushes all changes. See <see cref="Efl.Ui.Focus.IManager.Move"/>
-/// (Since EFL 1.22)</summary>
-/// <value>An iterator over the border objects.</value>
+ /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See <see cref="Efl.Ui.Focus.IManager.Move"/>
+ /// (Since EFL 1.22)</summary>
+ /// <value>An iterator over the border objects.</value>
public Eina.Iterator<Efl.Ui.Focus.IObject> BorderElements {
get { return GetBorderElements(); }
}
/// <summary>Root node for all logical subtrees.
-/// This property can only be set once.
-/// (Since EFL 1.22)</summary>
-/// <value>Will be registered into this manager object.</value>
+ /// This property can only be set once.
+ /// (Since EFL 1.22)</summary>
+ /// <value>Will be registered into this manager object.</value>
public Efl.Ui.Focus.IObject Root {
get { return GetRoot(); }
set { SetRoot(value); }
return Efl.Ui.Focus.ILayerConcrete.efl_ui_focus_layer_mixin_get();
}
- #pragma warning disable CA1707, SA1300, SA1600
+ #pragma warning disable CA1707, CS1591, SA1300, SA1600
[return: MarshalAs(UnmanagedType.U1)]
private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd);
private static bool enable_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
bool _ret_var = default(bool);
try
{
- _ret_var = ((ILayerConcrete)wrapper).GetEnable();
+ _ret_var = ((ILayer)ws.Target).GetEnable();
}
catch (Exception e)
{
private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v)
{
Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).SetEnable(v);
+ ((ILayer)ws.Target).SetEnable(v);
}
catch (Exception e)
{
private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle)
{
Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
enable_on_visible = default(bool); cycle = default(bool);
try
{
- ((ILayerConcrete)wrapper).GetBehaviour(out enable_on_visible, out cycle);
+ ((ILayer)ws.Target).GetBehaviour(out enable_on_visible, out cycle);
}
catch (Exception e)
{
private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle)
{
Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).SetBehaviour(enable_on_visible, cycle);
+ ((ILayer)ws.Target).SetBehaviour(enable_on_visible, cycle);
}
catch (Exception e)
{
private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root)
{
Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager);
try
{
- _ret_var = ((ILayerConcrete)wrapper).FocusManagerCreate(root);
+ _ret_var = ((ILayer)ws.Target).FocusManagerCreate(root);
}
catch (Exception e)
{
private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
try
{
- _ret_var = ((ILayerConcrete)wrapper).GetManagerFocus();
+ _ret_var = ((ILayer)ws.Target).GetManagerFocus();
}
catch (Exception e)
{
private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus)
{
Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).SetManagerFocus(focus);
+ ((ILayer)ws.Target).SetManagerFocus(focus);
}
catch (Exception e)
{
private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager);
try
{
- _ret_var = ((ILayerConcrete)wrapper).GetRedirect();
+ _ret_var = ((ILayer)ws.Target).GetRedirect();
}
catch (Exception e)
{
private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect)
{
Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).SetRedirect(redirect);
+ ((ILayer)ws.Target).SetRedirect(redirect);
}
catch (Exception e)
{
private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Eina.Iterator<Efl.Ui.Focus.IObject> _ret_var = default(Eina.Iterator<Efl.Ui.Focus.IObject>);
try
{
- _ret_var = ((ILayerConcrete)wrapper).GetBorderElements();
+ _ret_var = ((ILayer)ws.Target).GetBorderElements();
}
catch (Exception e)
{
private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport)
{
Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Eina.Rect _in_viewport = viewport;
Eina.Iterator<Efl.Ui.Focus.IObject> _ret_var = default(Eina.Iterator<Efl.Ui.Focus.IObject>);
try
{
- _ret_var = ((ILayerConcrete)wrapper).GetViewportElements(_in_viewport);
+ _ret_var = ((ILayer)ws.Target).GetViewportElements(_in_viewport);
}
catch (Exception e)
{
private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_root_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
try
{
- _ret_var = ((ILayerConcrete)wrapper).GetRoot();
+ _ret_var = ((ILayer)ws.Target).GetRoot();
}
catch (Exception e)
{
private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root)
{
Eina.Log.Debug("function efl_ui_focus_manager_root_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
bool _ret_var = default(bool);
try
{
- _ret_var = ((ILayerConcrete)wrapper).SetRoot(root);
+ _ret_var = ((ILayer)ws.Target).SetRoot(root);
}
catch (Exception e)
{
private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction)
{
Eina.Log.Debug("function efl_ui_focus_manager_move was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
try
{
- _ret_var = ((ILayerConcrete)wrapper).Move(direction);
+ _ret_var = ((ILayer)ws.Target).Move(direction);
}
catch (Exception e)
{
private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical)
{
Eina.Log.Debug("function efl_ui_focus_manager_request_move was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
try
{
- _ret_var = ((ILayerConcrete)wrapper).MoveRequest(direction, child, logical);
+ _ret_var = ((ILayer)ws.Target).MoveRequest(direction, child, logical);
}
catch (Exception e)
{
private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root)
{
Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
try
{
- _ret_var = ((ILayerConcrete)wrapper).RequestSubchild(root);
+ _ret_var = ((ILayer)ws.Target).RequestSubchild(root);
}
catch (Exception e)
{
private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child)
{
Eina.Log.Debug("function efl_ui_focus_manager_fetch was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations);
try
{
- _ret_var = ((ILayerConcrete)wrapper).Fetch(child);
+ _ret_var = ((ILayer)ws.Target).Fetch(child);
}
catch (Exception e)
{
private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail);
try
{
- _ret_var = ((ILayerConcrete)wrapper).LogicalEnd();
+ _ret_var = ((ILayer)ws.Target).LogicalEnd();
}
catch (Exception e)
{
private static void reset_history(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).ResetHistory();
+ ((ILayer)ws.Target).ResetHistory();
}
catch (Exception e)
{
private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).PopHistoryStack();
+ ((ILayer)ws.Target).PopHistoryStack();
}
catch (Exception e)
{
private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry)
{
Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).SetupOnFirstTouch(direction, entry);
+ ((ILayer)ws.Target).SetupOnFirstTouch(direction, entry);
}
catch (Exception e)
{
private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).FreezeDirtyLogic();
+ ((ILayer)ws.Target).FreezeDirtyLogic();
}
catch (Exception e)
{
private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((ILayerConcrete)wrapper).DirtyLogicUnfreeze();
+ ((ILayer)ws.Target).DirtyLogicUnfreeze();
}
catch (Exception e)
{
private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate;
- #pragma warning restore CA1707, SA1300, SA1600
+ #pragma warning restore CA1707, CS1591, SA1300, SA1600
}
}