Example #1
0
 public unsafe void SetColorModel(CefColorModel model)
 {
     fixed(cef_print_settings_t *self = &this)
     {
         ((delegate * unmanaged[Stdcall] < cef_print_settings_t *, CefColorModel, void >)set_color_model)(self, model);
     }
 }
        public static void set_color_model(cef_print_settings_t *self, CefColorModel model)
        {
            set_color_model_delegate d;
            var p = self->_set_color_model;

            if (p == _p14)
            {
                d = _d14;
            }
            else
            {
                d = (set_color_model_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_color_model_delegate));
                if (_p14 == IntPtr.Zero)
                {
                    _d14 = d; _p14 = p;
                }
            }
            d(self, model);
        }
Example #3
0
 /// <summary>
 /// Set the color model.
 /// </summary>
 public void SetColorModel(CefColorModel colorModel)
 {
     cef_print_settings_t.set_color_model(_self, colorModel);
 }
Example #4
0
 /// <summary>
 /// Set the color model.
 /// </summary>
 public void SetColorModel(CefColorModel colorModel)
 {
     cef_print_settings_t.set_color_model(_self, colorModel);
 }
Example #5
0
 public unsafe extern void SetColorModel(CefColorModel model);
Example #6
0
 /// <summary>
 /// Set the color model.
 /// </summary>
 public void SetColorModel(CefColorModel model)
 {
     throw new NotImplementedException(); // TODO: CefPrintSettings.SetColorModel
 }
Example #7
0
 public static void set_color_model(cef_print_settings_t* self, CefColorModel model)
 {
     set_color_model_delegate d;
     var p = self->_set_color_model;
     if (p == _p14) { d = _d14; }
     else
     {
         d = (set_color_model_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_color_model_delegate));
         if (_p14 == IntPtr.Zero) { _d14 = d; _p14 = p; }
     }
     d(self, model);
 }