com.moesol.bindings.platform_sdk.windows_api
Class RECT

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

public class RECT
extends NativeStructure

RECT structure.


Nested Class Summary
static class RECT.Array
          Represent a native array of these structures
 
Field Summary
static int OFFSET_bottom
           
static int OFFSET_left
           
static int OFFSET_right
           
static int OFFSET_top
           
 
Constructor Summary
RECT()
          Create a new instance.
RECT(ByteBuffer bb)
          Create a new instance on a byte buffer.
 
Method Summary
 int get_bottom()
           
 int get_left()
           
 int get_right()
           
 int get_top()
           
 int getDynamicSize()
          Get dynamic size in bytes.
 int getHeight()
           
 int getWidth()
           
 void set_bottom(int v)
           
 void set_left(int v)
           
 void set_right(int v)
           
 void set_top(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_left

public static final int OFFSET_left
See Also:
Constant Field Values

OFFSET_top

public static final int OFFSET_top
See Also:
Constant Field Values

OFFSET_right

public static final int OFFSET_right
See Also:
Constant Field Values

OFFSET_bottom

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

RECT

public RECT()
Create a new instance.


RECT

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

Method Detail

sizeof

public static int sizeof()

set_left

public void set_left(int v)
Parameters:
v - new left value

get_left

public int get_left()
Returns:
left value

set_top

public void set_top(int v)
Parameters:
v - new top value

get_top

public int get_top()
Returns:
top value

set_right

public void set_right(int v)
Parameters:
v - new right value

get_right

public int get_right()
Returns:
right value

set_bottom

public void set_bottom(int v)
Parameters:
v - new bottom value

get_bottom

public int get_bottom()
Returns:
bottom 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

getWidth

public int getWidth()
Returns:
width of this rectangle

getHeight

public int getHeight()
Returns:
height of this rectangle


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