|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.cldc.jna.Structure
edu.wpi.first.wpilibj.image.NIVision.Rect
public static class NIVision.Rect
Field Summary |
---|
Fields inherited from class com.sun.cldc.jna.Structure |
---|
backingNativeMemory, NULL |
Constructor Summary | |
---|---|
NIVision.Rect(int top,
int left,
int height,
int width)
Create a new Rect with the specified dimensions |
Method Summary | |
---|---|
void |
free()
Free the memory used by this range |
int |
getHeight()
Get the height of the rectangle |
int |
getLeft()
Get the left edge of the rectangle |
int |
getTop()
Get the top of the rectangle |
int |
getWidth()
Get the width of the rectangle |
void |
read()
Copy the fields of the struct from native memory to the Java fields |
void |
set(int top,
int left,
int height,
int width)
Set the Rect dimensions |
int |
size()
|
void |
write()
Copy the java fields of the struct to native memory from the Java fields |
Methods inherited from class com.sun.cldc.jna.Structure |
---|
allocateMemory, allocateMemory, clear, freeMemory, getPointer, release, toString, useMemory |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NIVision.Rect(int top, int left, int height, int width)
top
- The top of the rectangleleft
- The left edge of the rectangleheight
- The height of the rectanglewidth
- The width of the rectangleMethod Detail |
---|
public void read()
Structure
read
in class Structure
public void write()
Structure
write
in class Structure
public int size()
size
in class Structure
public void free()
public void set(int top, int left, int height, int width)
top
- The top of the rectangleleft
- The left edge of the rectangleheight
- The height of the rectanglewidth
- The width of the rectanglepublic int getTop()
public int getLeft()
public int getWidth()
public int getHeight()
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |