Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Rectangle.union()


    Rectangle rect = getDecorationRectangle(control.getShell());
    // If this update is happening due to an image reset, we need to make
    // sure we clear the area from the old image.
    // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=212501
    if (previousDecorationRectangle != null) {
      rect = rect.union(previousDecorationRectangle);
    }
    // Redraw this rectangle in all children
    control.getShell()
        .redraw(rect.x, rect.y, rect.width, rect.height, true);
    control.getShell().update();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.