{
if (display == null)
{
- return CameraDisplay.SetTarget(GetHandle(), DisplayType.None, IntPtr.Zero);
+ return CameraDisplay.SetDisplay(GetHandle(), DisplayType.None, IntPtr.Zero);
}
return display.ApplyTo(this);
Debug.Assert(_disposed == false);
ValidationUtil.ValidateEnum(typeof(DisplayType), type, nameof(type));
- return CameraDisplay.SetTarget(GetHandle(), type, evasObject);
+ return CameraDisplay.SetDisplay(GetHandle(), type, evasObject);
}
CameraError IDisplayable<CameraError>.ApplyEcoreWindow(IntPtr windowHandle)
{
- throw new NotSupportedException("Camera does not support NUI.Window display.");
+ Debug.Assert(_disposed == false);
+
+ return CameraDisplay.SetEcoreDisplay(GetHandle(), windowHandle);
}
/// <summary>
internal static extern CameraError SetRoiArea(IntPtr handle, int x, int y, int width, int height);
[DllImport(Libraries.Camera, EntryPoint = "camera_set_display")]
- internal static extern CameraError SetTarget(IntPtr handle, DisplayType displayType, IntPtr displayHandle);
+ internal static extern CameraError SetDisplay(IntPtr handle, DisplayType displayType, IntPtr displayHandle);
+
+ [DllImport(Libraries.Camera, EntryPoint = "camera_set_ecore_wl_display")]
+ internal static extern CameraError SetEcoreDisplay(IntPtr handle, IntPtr ecoreWindow);
}
}