com.moesol.bindings.platform_sdk.windows_api
Class POINT

java.lang.Object
  extended by com.moesol.bindings.NativeStructure
      extended by com.moesol.bindings.platform_sdk.windows_api.POINT
All Implemented Interfaces:
Comparable

public class POINT
extends NativeStructure

POINT structure.


Nested Class Summary
static class POINT.Array
          Represent a native array of these structures
 
Field Summary
static int OFFSET_x
           
static int OFFSET_y
           
 
Constructor Summary
POINT()
          Create a new instance.
POINT(ByteBuffer bb)
          Create a new instance on a byte buffer.
 
Method Summary
 int get_x()
           
 int get_y()
           
 int getDynamicSize()
          Get dynamic size in bytes.
 void set_x(int v)
           
 void set_y(int v)
           
static int sizeof()
           
 String toString()
           
 
Methods inherited from class com.moesol.bindings.NativeStructure
_getByteBuffer, _getStructureBytes, clearRecord, compareTo, equals, freeLpwstr, getArray, getBool, getBOOLArray, getBstr, getBSTRArray, getBstrArray, getByte, getBYTEArray, getByteArray, getByteBuffer, getByteSize, getByteString, getDate, getDouble, getDOUBLEArray, getDoubleArray, getDoubleSize, getFloat, getFLOATArray, getFloatArray, getFloatSize, getInt, getINTArray, getIntArray, getInterface, getIntSize, getLong, getLONGArray, getLongSize, getLpwstr, getPtrInt, getPtrShort, getPtrShortString, getPtrStruct, getPtrUnsignedByte, getPtrUnsignedShort, getPtrVariant, getPtrvoid, getRemaining, getSCODE, getShort, getSHORTArray, getShortArray, getShortSize, getSlice, getSlice, getString, getStruct, getStruct, getStructArray, getUINTArray, getUnsignedByte, getUnsignedByteArray, getUnsignedByteSize, getUnsignedInt, getUnsignedIntArray, getUnsignedIntSize, getUnsignedLongLong, getUnsignedLongSize, getUnsignedShort, getUnsignedShortArray, getUnsignedShortSize, getUSHORTArray, getVariant, getVARIANTArray, hashCode, order, order, putArray, putBool, putBOOLArray, putBstr, putBstrArray, putBSTRArray, putByte, putByteArray, putBYTEArray, putByteString, putDate, putDouble, putDOUBLEArray, putDoubleArray, putFloat, putFLOATArray, putFloatArray, putInt, putINTArray, putIntArray, putInterface, putLong, putLONGArray, putLpwstr, putPtrInt, putPtrShort, putPtrShortString, putPtrStruct, putPtrUnsignedByte, putPtrUnsignedShort, putPtrVariant, putPtrvoid, putSCODE, putShort, putShortArray, putSHORTArray, putString, putStruct, putStruct, putStructArray, putUINTArray, putUnsignedByte, putUnsignedByteArray, putUnsignedInt, putUnsignedIntArray, putUnsignedLongLong, putUnsignedShort, putUnsignedShortArray, putUSHORTArray, putVariant, putVARIANTArray, stringFromC, stringFromC, zero
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OFFSET_x

public static final int OFFSET_x
See Also:
Constant Field Values

OFFSET_y

public static final int OFFSET_y
See Also:
Constant Field Values
Constructor Detail

POINT

public POINT()
Create a new instance.


POINT

public POINT(ByteBuffer bb)
Create a new instance on a byte buffer.

Method Detail

sizeof

public static int sizeof()

set_x

public void set_x(int v)
Parameters:
v - new x value

get_x

public int get_x()
Returns:
x value

set_y

public void set_y(int v)
Parameters:
v - new y value

get_y

public int get_y()
Returns:
y value

getDynamicSize

public int getDynamicSize()
Get dynamic size in bytes. If this structure contains a variable size array, return the number of bytes needed to hold the fixed part and the variable sized array based on the [length_is()] attribute. Note that the sizeof method on returns the size of the fixed part plus the size of one array entry.

Returns:
dynamic size in bytes.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.