com.moesol.bindings.platform_sdk.windows_api
Class SIZE

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

public class SIZE
extends NativeStructure

SIZE structure


Nested Class Summary
static class SIZE.Array
          Represent a native array of these structures
 
Field Summary
static int OFFSET_cx
           
static int OFFSET_cy
           
 
Constructor Summary
SIZE()
          Create a new instance.
SIZE(ByteBuffer bb)
          Create a new instance on a byte buffer.
 
Method Summary
 int get_cx()
           
 int get_cy()
           
 int getDynamicSize()
          Get dynamic size in bytes.
 void set_cx(int v)
           
 void set_cy(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_cx

public static final int OFFSET_cx
See Also:
Constant Field Values

OFFSET_cy

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

SIZE

public SIZE()
Create a new instance.


SIZE

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

Method Detail

sizeof

public static int sizeof()

set_cx

public void set_cx(int v)
Parameters:
v - new cx value

get_cx

public int get_cx()
Returns:
cx value

set_cy

public void set_cy(int v)
Parameters:
v - new cy value

get_cy

public int get_cy()
Returns:
cy 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.