public CefSettings()
 {
     BackgroundColor = new CefColor(255, 255, 255, 255);
     if (!String.IsNullOrEmpty(CefRuntime.LoadPath))
     {
         ResourcesDirPath = CefRuntime.LoadPath;
         LocalesDirPath   = Path.Combine(CefRuntime.LoadPath, "locales");
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Parses |string| which represents a CSS color value. If |strict| is true
        /// strict parsing rules will be applied. Returns true on success or false on
        /// error. If parsing succeeds |color| will be set to the color value otherwise
        /// |color| will remain unchanged.
        /// </summary>
        public static bool ParseCssColor(string value, bool strict, out CefColor color)
        {
            fixed(char *value_str = value)
            {
                var n_value = new cef_string_t(value_str, value != null ? value.Length : 0);

                uint n_color = 0;
                var  result  = libcef.parse_csscolor(&n_value, strict ? 1 : 0, &n_color) != 0;

                color = new CefColor(n_color);
                return(result);
            }
        }
Ejemplo n.º 3
0
 public CefSettings()
 {
     BackgroundColor = new CefColor(255, 255, 255, 255);
 }
Ejemplo n.º 4
0
 public CefSettings()
 {
     BackgroundColor = new CefColor(255, 255, 255, 255);
 }