Exemple #1
0
        public CefDirtyRect Combine(CefDirtyRect other)
        {
            if ((width == 0)||(height==0))
                return other;
            if ((other.width == 0)||(other.height == 0))
                return this;
            var lx = (x < other.x) ? x : other.X;
            var hx = ((x + width) > (other.x + other.width)) ? (x + width) : (other.x + other.width);

            var ly = (y < other.y) ? y : other.y;
            var hy = ((y + height) > (other.y + other.height)) ? (y + height) : (other.y + other.height);

            return new CefDirtyRect(lx, ly, hx - lx, hy - ly);
        }
Exemple #2
0
 public virtual void DirectUpdate(CefDirtyRect rect, IntPtr buffer)
 {
 }
Exemple #3
0
 public virtual void DirectUpdate(CefDirtyRect rect, IntPtr buffer)
 {
 }