Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Region.dispose()


      data = ((ImageSkin) Window.this.getSkin(IContainer.BORDER_NE)).getImage()
          .getImageData();
      opaqueRegion = ImageRegion.calculateOpaquePath(data, data.transparentPixel,
          rect.width - data.width, 0);
      region.subtract(opaqueRegion);
      opaqueRegion.dispose();
      data = ((ImageSkin) Window.this.getSkin(IContainer.BORDER_SW)).getImage()
          .getImageData();
      opaqueRegion = ImageRegion.calculateOpaquePath(data, data.transparentPixel, 0,
          rect.height - data.height);
      region.subtract(opaqueRegion);
View Full Code Here


      data = ((ImageSkin) Window.this.getSkin(IContainer.BORDER_SW)).getImage()
          .getImageData();
      opaqueRegion = ImageRegion.calculateOpaquePath(data, data.transparentPixel, 0,
          rect.height - data.height);
      region.subtract(opaqueRegion);
      opaqueRegion.dispose();

      data = ((ImageSkin) Window.this.getSkin(IContainer.BORDER_SE)).getImage()
          .getImageData();
      opaqueRegion = ImageRegion.calculateOpaquePath(data, data.transparentPixel,
          rect.width - data.width, rect.height - data.height);
View Full Code Here

      data = ((ImageSkin) Window.this.getSkin(IContainer.BORDER_SE)).getImage()
          .getImageData();
      opaqueRegion = ImageRegion.calculateOpaquePath(data, data.transparentPixel,
          rect.width - data.width, rect.height - data.height);
      region.subtract(opaqueRegion);
      opaqueRegion.dispose();
    }

    int hRegion = 0;
    hRegion = Extension.CreateRectRgn(0, 0, 0, 0);
    Extension.CombineRgn(hRegion, region.handle, hRegion, Win32.RGN_OR);
View Full Code Here

    shell.setRegion(region);
    shell.addListener(SWT.Dispose, new Listener()
    {
      public void handleEvent(Event event)
      {
        region.dispose();
      }
    });

    final int[] outline = createOutline(shellSize, anchor, false);
    shell.addListener(SWT.Paint, new Listener()
View Full Code Here

    shell.setRegion(region);
    shell.addListener(SWT.Dispose, new Listener()
    {
      public void handleEvent(Event event)
      {
        region.dispose();
      }
    });

    final int[] outline = createOutline(shellSize, anchor, false);
    shell.addListener(SWT.Paint, new Listener()
View Full Code Here

    gc.getClipping(clipping);
    region.intersect(clipping);
    gc.setClipping(region);
    gc.fillRectangle(region.getBounds());
    gc.setClipping(clipping);
    clipping.dispose();
  }
 
  public void addCTabFolder2Listener(CTabFolder2Listener listener) {
    checkWidget();
    if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
View Full Code Here

        gc.fillRectangle(x, y, width, height);
      }
    }
    gc.setClipping(clipping);
    clipping.dispose();
    region.dispose();
  }
  void drawBody(Event event) {
    GC gc = event.gc;
    Point size = getSize();
   
View Full Code Here

    Region r = new Region();
    r.add(new Rectangle(x, y, width + 1, height + 1));
    r.subtract(shape);
    gc.setBackground(getParent().getBackground());
    fillRegion(gc, r);
    r.dispose();
   
    // Draw the unselected tabs.
    if (!single) {
      for (int i=0; i < items.length; i++) {
        if (i != selectedIndex && event.getBounds().intersects(items[i].getBounds())) {
View Full Code Here

            gc.setClipping(reg);
           
            getGroup().drawBackground(gc, 0, 0, getGroup().getSize().x,5);
           
            gc.setClipping((Region)null);
            reg.dispose();
        }
       
        Point imagePoint = new Point(0, 0);

        if (getGroup().getToggleRenderer() != null)
View Full Code Here

       
        gc.setForeground(borderColor);
        GraphicUtils.drawRoundRectangle(gc, 0, 0, getGroup().getSize().x - 1, titleHeight, null,
                                        true, false);
       
        reg.dispose();
        gc.setClipping((Region)null);

        gc.setForeground(getGroup().getParent().getBackground());

//        if (getGroup().getExpanded())
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.