/// <summary> /// Returns in |color| the color that was explicitly set for |command_id| and /// |color_type|. 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> public unsafe virtual bool GetColorAt(int index, CefMenuColorType colorType, ref CefColor color) { fixed(CefColor *p2 = &color) { return(SafeCall(NativeInstance->GetColorAt(index, colorType, (cef_color_t *)p2) != 0)); } }
/// <summary> /// Initializes a new instance of the <see cref="CefCompositionUnderline"/> struct. /// </summary> /// <param name="range">The underline character range.</param> /// <param name="color">The text color.</param> /// <param name="backgroundColor">The background color.</param> /// <param name="thick">The thick underline.</param> public CefCompositionUnderline(CefRange range, CefColor color, CefColor backgroundColor, bool thick) { _instance = new cef_composition_underline_t { range = range, color = color, background_color = backgroundColor, thick = thick ? 1 : 0, }; }
/// <summary> /// Set the explicit color for |command_id| 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 |color_type| then the /// system color will be used. Returns true (1) on success. /// </summary> public unsafe virtual bool SetColorAt(int index, CefMenuColorType colorType, CefColor color) { return(SafeCall(NativeInstance->SetColorAt(index, colorType, color) != 0)); }
/// <summary> /// Set the explicit color for |command_id| and |color_type| to |color|. /// Specify a |color| value of 0 to remove the explicit color. If no explicit /// color or default color is set for |color_type| then the system color will /// be used. Returns true (1) on success. /// </summary> public unsafe virtual bool SetColor(int commandId, CefMenuColorType colorType, CefColor color) { return(SafeCall(NativeInstance->SetColor(commandId, colorType, color) != 0)); }