/// <summary> /// Returns in |color| the color that was explicitly set for |commandId| and /// |colorType|. Specify an |index| value of -1 to return the default color in /// |color|. If a color was not set then 0 will be returned in |color|. Returns /// true (1) on success. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_menu_model_capi.h">cef/include/capi/cef_menu_model_capi.h</see>. /// </remarks> public bool GetColorAt(int index, CfxMenuColorType colorType, ref CfxColor color) { return(0 != CfxApi.MenuModel.cfx_menu_model_get_color_at(NativePtr, index, (int)colorType, ref color.color)); }
/// <summary> /// Set the explicit color for |commandId| and |index| to |color|. Specify a /// |color| value of 0 to remove the explicit color. Specify an |index| value /// of -1 to set the default color for items that do not have an explicit color /// set. If no explicit color or default color is set for |colorType| then the /// system color will be used. Returns true (1) on success. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_menu_model_capi.h">cef/include/capi/cef_menu_model_capi.h</see>. /// </remarks> public bool SetColorAt(int index, CfxMenuColorType colorType, CfxColor color) { return(0 != CfxApi.MenuModel.cfx_menu_model_set_color_at(NativePtr, index, (int)colorType, CfxColor.Unwrap(color))); }
/// <summary> /// Returns in |color| the color that was explicitly set for |commandId| and /// |colorType|. If a color was not set then 0 will be returned in |color|. /// Returns true (1) on success. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_menu_model_capi.h">cef/include/capi/cef_menu_model_capi.h</see>. /// </remarks> public bool GetColor(int commandId, CfxMenuColorType colorType, ref CfxColor color) { return(0 != CfxApi.MenuModel.cfx_menu_model_get_color(NativePtr, commandId, (int)colorType, ref color.color)); }
/// <summary> /// Set the explicit color for |commandId| and |colorType| to |color|. /// Specify a |color| value of 0 to remove the explicit color. If no explicit /// color or default color is set for |colorType| then the system color will /// be used. Returns true (1) on success. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_menu_model_capi.h">cef/include/capi/cef_menu_model_capi.h</see>. /// </remarks> public bool SetColor(int commandId, CfxMenuColorType colorType, CfxColor color) { return(0 != CfxApi.MenuModel.cfx_menu_model_set_color(NativePtr, commandId, (int)colorType, CfxColor.Unwrap(color))); }