com.jniwrapper.win32
Class Rect
java.lang.Object
com.jniwrapper.Parameter
com.jniwrapper.Structure
com.jniwrapper.win32.Rect
- All Implemented Interfaces:
- com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter
public class Rect
- extends com.jniwrapper.Structure
This class represents RECT
structure.
Fields inherited from class com.jniwrapper.Structure |
i |
Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
Constructor Summary |
Rect()
|
Rect(long left,
long top,
long right,
long bottom)
|
Rect(Rect that)
|
Rect(java.awt.Rectangle rectangle)
|
Methods inherited from class com.jniwrapper.Structure |
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write |
Methods inherited from class com.jniwrapper.Parameter |
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Rect
public Rect()
Rect
public Rect(Rect that)
Rect
public Rect(long left,
long top,
long right,
long bottom)
Rect
public Rect(java.awt.Rectangle rectangle)
setLeft
public void setLeft(long value)
getLeft
public long getLeft()
setTop
public void setTop(long value)
getTop
public long getTop()
setRight
public void setRight(long value)
getRight
public long getRight()
setBottom
public void setBottom(long value)
getBottom
public long getBottom()
moveTo
public void moveTo(long left,
long top)
moveBy
public void moveBy(int deltaX,
int deltaY)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()
- Overrides:
clone
in class com.jniwrapper.Structure
assign
public void assign(Rect anotherRect)
setBounds
public void setBounds(int left,
int top,
int right,
int bottom)
setBounds
public void setBounds(java.awt.Rectangle rectangle)
getWidth
public int getWidth()
getHeight
public int getHeight()
getLeftAsInt
public int getLeftAsInt()
getTopAsInt
public int getTopAsInt()
getBottomAsInt
public int getBottomAsInt()
getRightAsInt
public int getRightAsInt()
centerRect
public Rect centerRect(Size innerRect)