org.rococoa.cocoa.foundation
Class NSRect

java.lang.Object
  extended by com.sun.jna.Structure
      extended by org.rococoa.cocoa.foundation.NSRect
All Implemented Interfaces:
com.sun.jna.Structure.ByValue

public class NSRect
extends com.sun.jna.Structure
implements com.sun.jna.Structure.ByValue

Author:
Harald Kuhr

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue
 
Field Summary
 NSPoint origin
           
 NSSize size
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
NSRect()
           
NSRect(double w, double h)
           
NSRect(NSPoint origin, NSSize size)
           
NSRect(java.awt.geom.Point2D origin, java.awt.geom.Dimension2D size)
           
NSRect(java.awt.geom.Rectangle2D rect)
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
           
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

origin

public final NSPoint origin

size

public final NSSize size
Constructor Detail

NSRect

public NSRect()

NSRect

public NSRect(NSPoint origin,
              NSSize size)

NSRect

public NSRect(java.awt.geom.Point2D origin,
              java.awt.geom.Dimension2D size)

NSRect

public NSRect(java.awt.geom.Rectangle2D rect)

NSRect

public NSRect(double w,
              double h)
Method Detail

getBounds

public java.awt.geom.Rectangle2D getBounds()


Copyright © 2009. All Rights Reserved.