public static void set_orientation(cef_print_settings_t *self, int landscape)
        {
            set_orientation_delegate d;
            var p = self->_set_orientation;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (set_orientation_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_orientation_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            d(self, landscape);
        }
Esempio n. 2
0
 public static void set_orientation(cef_print_settings_t* self, int landscape)
 {
     set_orientation_delegate d;
     var p = self->_set_orientation;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (set_orientation_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_orientation_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     d(self, landscape);
 }