/// <summary>Get the color of color class. /// This function gets the color values for a color class. If no explicit object color is set, then global values will be used. /// /// The first color is the object, the second is the text outline, and the third is the text shadow. (Note that the second two only apply to text parts). /// /// Note: These color values are expected to be premultiplied by <c>a</c>.</summary> /// <param name="color_class">The name of color class</param> /// <param name="layer">The layer to set the color</param> /// <param name="r">The intensity of the red color</param> /// <param name="g">The intensity of the green color</param> /// <param name="b">The intensity of the blue color</param> /// <param name="a">The alpha value</param> /// <returns><c>true</c> if getting the color succeeded, <c>false</c> otherwise</returns> public bool GetColorClass(System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) { var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_get_ptr.Value.Delegate(this.NativeHandle, color_class, layer, out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
/// <summary>Set the hex color string of color class. /// This function sets the color values for a color class. This will cause all edje parts in the specified object that have the specified color class to have their colors multiplied by these values. /// /// The first color is the object, the second is the text outline, and the third is the text shadow. (Note that the second two only apply to text parts). /// /// Setting color emits a signal "color_class,set" with source being the given color. /// /// Note: These color values are expected to be premultiplied by the alpha.</summary> /// <param name="color_class">The name of color class</param> /// <param name="layer">The layer to set the color</param> /// <param name="colorcode">the hex color code.</param> /// <returns><c>true</c> if setting the color succeeded, <c>false</c> otherwise</returns> public bool SetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) { var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_code_set_ptr.Value.Delegate(this.NativeHandle, color_class, layer, colorcode); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
/// <summary>Get the hex color string of color class. /// This function gets the color values for a color class. If no explicit object color is set, then global values will be used. /// /// The first color is the object, the second is the text outline, and the third is the text shadow. (Note that the second two only apply to text parts). /// /// Returns NULL if the color class cannot be fetched. /// /// Note: These color values are expected to be premultiplied by <c>a</c>.</summary> /// <param name="color_class">The name of color class</param> /// <param name="layer">The layer to set the color</param> /// <returns>the hex color code.</returns> public System.String GetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer) { var _ret_var = Efl.Gfx.ColorClassNativeInherit.efl_gfx_color_class_code_get_ptr.Value.Delegate(this.NativeHandle, color_class, layer); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
/// <summary>Set the color of color class. /// This function sets the color values for a color class. This will cause all edje parts in the specified object that have the specified color class to have their colors multiplied by these values. /// /// The first color is the object, the second is the text outline, and the third is the text shadow. (Note that the second two only apply to text parts). /// /// Setting color emits a signal "color_class,set" with source being the given color. /// /// Note: These color values are expected to be premultiplied by <c>a</c>.</summary> /// <param name="color_class">The name of color class</param> /// <param name="layer">The layer to set the color</param> /// <param name="r">The intensity of the red color</param> /// <param name="g">The intensity of the green color</param> /// <param name="b">The intensity of the blue color</param> /// <param name="a">The alpha value</param> /// <returns><c>true</c> if setting the color succeeded, <c>false</c> otherwise</returns> public bool SetColorClass(System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) { var _ret_var = Efl.Gfx.ColorClassNativeInherit.efl_gfx_color_class_set_ptr.Value.Delegate(this.NativeHandle, color_class, layer, r, g, b, a); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
private static bool color_class_code_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) { Eina.Log.Debug("function efl_gfx_color_class_code_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IColorClassConcrete)ws.Target).SetColorClassCode(color_class, layer, colorcode); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_gfx_color_class_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, colorcode)); } }
public void SetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) { //This function will be removed after interface work is done return; }
public System.String GetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer) { //Not Implemented return(null); }
private static System.String color_class_code_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer) { Eina.Log.Debug("function efl_gfx_color_class_code_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { System.String _ret_var = default(System.String); try { _ret_var = ((IColorClassConcrete)wrapper).GetColorClassCode(color_class, layer); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_gfx_color_class_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer)); } }
private static bool color_class_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) { Eina.Log.Debug("function efl_gfx_color_class_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd); if (wrapper != null) { r = default(int); g = default(int); b = default(int); a = default(int); bool _ret_var = default(bool); try { _ret_var = ((ColorClassConcrete)wrapper).GetColorClass(color_class, layer, out r, out g, out b, out a); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_gfx_color_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, out r, out g, out b, out a)); } }
public void SetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) { //Not Implemented return; }