};
string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e)
{
var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
}
/// <summary>Called when scene got focus
/// (Since EFL 1.22)</summary>
- public event EventHandler<Efl.Canvas.ISceneSceneFocusInEvt_Args> SceneFocusInEvt
+ public event EventHandler SceneFocusInEvt
{
add
{
var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
if (obj != null)
{
- Efl.Canvas.ISceneSceneFocusInEvt_Args args = new Efl.Canvas.ISceneSceneFocusInEvt_Args();
- args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus);
+ EventArgs args = EventArgs.Empty;
try
{
value?.Invoke(obj, args);
};
string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
///<summary>Method to raise event SceneFocusInEvt.</summary>
- public void OnSceneFocusInEvt(Efl.Canvas.ISceneSceneFocusInEvt_Args e)
+ public void OnSceneFocusInEvt(EventArgs e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
return;
}
- IntPtr info = e.arg.NativeHandle;
- Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
+ Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
}
/// <summary>Called when scene lost focus
/// (Since EFL 1.22)</summary>
- public event EventHandler<Efl.Canvas.ISceneSceneFocusOutEvt_Args> SceneFocusOutEvt
+ public event EventHandler SceneFocusOutEvt
{
add
{
var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
if (obj != null)
{
- Efl.Canvas.ISceneSceneFocusOutEvt_Args args = new Efl.Canvas.ISceneSceneFocusOutEvt_Args();
- args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus);
+ EventArgs args = EventArgs.Empty;
try
{
value?.Invoke(obj, args);
};
string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
///<summary>Method to raise event SceneFocusOutEvt.</summary>
- public void OnSceneFocusOutEvt(Efl.Canvas.ISceneSceneFocusOutEvt_Args e)
+ public void OnSceneFocusOutEvt(EventArgs e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
return;
}
- IntPtr info = e.arg.NativeHandle;
- Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
+ Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
}
/// <summary>Called when object got focus
/// (Since EFL 1.22)</summary>
};
string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
public void OnObjectFocusInEvt(Efl.Canvas.ISceneObjectFocusInEvt_Args e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
};
string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
public void OnObjectFocusOutEvt(Efl.Canvas.ISceneObjectFocusOutEvt_Args e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
};
string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
public void OnRenderPreEvt(EventArgs e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
};
string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
public void OnRenderPostEvt(Efl.Canvas.ISceneRenderPostEvt_Args e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
};
string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
public void OnDeviceChangedEvt(Efl.Canvas.ISceneDeviceChangedEvt_Args e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
};
string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
public void OnDeviceAddedEvt(Efl.Canvas.ISceneDeviceAddedEvt_Args e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
};
string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED";
- AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
+ AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
lock (eventLock)
{
string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED";
- RemoveNativeEventHandler(efl.Libs.Efl, key, value);
+ RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
public void OnDeviceRemovedEvt(Efl.Canvas.ISceneDeviceRemovedEvt_Args e)
{
var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED";
- IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
+ IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
Eina.Log.Error($"Failed to get native event {key}");
/// <summary>Returns an iterator over the current known pointer positions.
/// This is used to iterate over the current known multi-touch positions, including the first finger. Each pointer position is represented by an object of type <see cref="Efl.Input.Pointer"/>.
///
- /// Each finger in a multi touch environment can then be identified by the <see cref="Efl.Input.Pointer.Tool"/> property. The order of the pointers in this iterator is not defined.
+ /// Each finger in a multi touch environment can then be identified by the <see cref="Efl.Input.Pointer.TouchId"/> property. The order of the pointers in this iterator is not defined.
///
/// Note: If the input surface supports hovering input, some pointers may not be in a "down" state. To retrieve the list of such pointers, set the <c>hover</c> value to <c>true</c>. Remember though that most devices currently don't support this.
/// (Since EFL 1.22)</summary>