Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.computeTrim()


     */
    private void computeHintOffset(Control control) {
        if (control instanceof Composite) {
            // For composites, subtract off the trim size
            Composite composite = (Composite) control;
            Rectangle trim = composite.computeTrim(0, 0, 0, 0);

            widthAdjustment = trim.width;
            heightAdjustment = trim.height;
        } else {
            // For non-composites, subtract off 2 * the border size
View Full Code Here


        if (parentBounds.y + parentBounds.height < clientArea.y + clientArea.height) {
          parentBounds.height += insets;
          viewMinimumSize.y += insets;
        }
       
        Rectangle parentTrim = parent.computeTrim(0, 0, 0, 0);
        viewMinimumSize.x += parentTrim.width;
        viewMinimumSize.y += parentTrim.height;
       
        float curXFactor = ((float )parentBounds.width) / ((float )viewMinimumSize.x);
        float curYFactor = ((float )parentBounds.height) / ((float )viewMinimumSize.y);
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.