Show
Ignore:
Timestamp:
05/17/08 11:34:28 (8 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Update to SWT 3.4M7

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/graphics/Region.d

    r212 r213  
    3939 
    4040public final class Region : Resource { 
     41    alias Resource.init_ init_; 
    4142 
    4243    /** 
     
    8384 */ 
    8485public this (Device device) { 
    85     if (device is null) device = Device.getDevice(); 
    86     if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); 
    87     this.device = device; 
     86    super(device); 
    8887    handle = OS.CreateRectRgn (0, 0, 0, 0); 
    8988    if (handle is null) DWT.error(DWT.ERROR_NO_HANDLES); 
    90     if (device.tracking) device.new_Object(this); 
     89    init_(); 
    9190} 
    9291 
     
    9897 */ 
    9998this(Device device, HRGN handle) { 
    100     this.device = device
     99    super(device)
    101100    this.handle = handle; 
    102101} 
     
    234233} 
    235234 
    236 /** 
    237  * Disposes of the operating system resources associated with 
    238  * the region. Applications must dispose of all regions which 
    239  * they allocate. 
    240  */ 
    241 override public void dispose () { 
    242     if (handle is null) return; 
    243     if (device.isDisposed()) return; 
     235void destroy () { 
    244236    OS.DeleteObject(handle); 
    245237    handle = null; 
    246     if (device.tracking) device.dispose_Object(this); 
    247     device = null; 
    248238} 
    249239