eo_class_get and eo_class_name_get are modified to efl_class_get and efl_class_name_get in efl 1.2.0
Additionally, added elm_object_color_class_del and used this api instead of edje_object_color_class_del in Layout
{
get
{
- return Interop.Eo.eo_class_name_get(Interop.Eo.eo_class_get(RealHandle));
+ return Interop.Eo.efl_class_name_get(Interop.Eo.efl_class_get(RealHandle));
}
}
{
set
{
- if (value.IsDefault && ClassName != null)
+ if (value.IsDefault)
{
- string part = ClassName.ToLower().Replace("elm_", "") + "/" + "bg";
- EdjeObject.DeleteColorClass(part);
+ Interop.Elementary.elm_object_color_class_del(RealHandle, "bg");
}
else
{
internal static extern void elm_object_color_class_color_set(IntPtr obj, string colorClass, int r, int g, int b, int a);
[DllImport(Libraries.Elementary)]
+ internal static extern void elm_object_color_class_del(IntPtr obj, string colorClass);
+
+ [DllImport(Libraries.Elementary)]
internal static extern void elm_object_part_text_set(IntPtr obj, string part, string text);
[DllImport(Libraries.Elementary)]
internal static partial class Eo
{
[DllImport(Libraries.Eo)]
- internal static extern IntPtr eo_class_get(IntPtr obj);
+ internal static extern IntPtr efl_class_get(IntPtr obj);
- [DllImport(Libraries.Eo, EntryPoint = "eo_class_name_get", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, CharSet = CharSet.Ansi)]
- internal static extern IntPtr _eo_class_name_get(IntPtr klass);
+ [DllImport(Libraries.Eo, EntryPoint = "efl_class_name_get", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, CharSet = CharSet.Ansi)]
+ internal static extern IntPtr _efl_class_name_get(IntPtr klass);
- internal static string eo_class_name_get(IntPtr obj)
+ internal static string efl_class_name_get(IntPtr obj)
{
- var name = _eo_class_name_get(obj);
+ var name = _efl_class_name_get(obj);
return Marshal.PtrToStringAnsi(name);
}
button.Clicked += (s, e) =>
{
Log.Debug($"{button.Text} Clicked! : {button.BackgroundColor}");
- Log.Debug($"{button.Text} Clicked! : {button.ClassName}");
- Log.Debug($"{button.Text} Clicked! : {button.ClassName.ToLower()}");
- Log.Debug($"{button.Text} Clicked! : {button.ClassName.ToLower().Replace("elm_", "")}");
- Log.Debug($"{button.Text} Clicked! : {button.ClassName.ToLower().Replace("elm_", "") + "/" + "bg"}");
};
button.Pressed += (s, e) =>