Class NPatchInfo
java.lang.Object
com.raylib.NPatchInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegmentThe native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with auto memory allocator and fields initialized to zero.NPatchInfo(Rectangle source, int left, int top, int right, int bottom, int layout) Construct with auto memory allocator and fields initialized as specifiedNPatchInfo(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectNPatchInfo(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedNPatchInfo(SegmentAllocator arena, Rectangle source, int left, int top, int right, int bottom, int layout) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic NPatchInfoallocateArray(long elementCount) Allocate an array of NPatchInfostatic NPatchInfoallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of NPatchInfointbottom()Bottom border offsetbottom(int value) Bottom border offsetbooleanEquality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement(int index) intBottom border offsetintLayout of the n-patch: 3x3, 1x3 or 3x1intgetLeft()Left border offsetintgetRight()Right border offsetTexture source rectangleintgetTop()Top border offsetinthashCode()intlayout()Layout of the n-patch: 3x3, 1x3 or 3x1layout(int value) Layout of the n-patch: 3x3, 1x3 or 3x1intleft()Left border offsetleft(int value) Left border offsetintright()Right border offsetright(int value) Right border offsetvoidsetBottom(int value) Bottom border offsetvoidsetLayout(int value) Layout of the n-patch: 3x3, 1x3 or 3x1voidsetLeft(int value) Left border offsetvoidsetRight(int value) Right border offsetvoidTexture source rectanglevoidsetTop(int value) Top border offsetsource()Texture source rectangleTexture source rectangleinttop()Top border offsettop(int value) Top border offset
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
NPatchInfo
public NPatchInfo()Construct with auto memory allocator and fields initialized to zero. -
NPatchInfo
Construct with your owm memory allocator and fields not initialized -
NPatchInfo
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
NPatchInfo
Construct with auto memory allocator and fields initialized as specified- Parameters:
source- Texture source rectangleleft- Left border offsettop- Top border offsetright- Right border offsetbottom- Bottom border offsetlayout- Layout of the n-patch: 3x3, 1x3 or 3x1
-
NPatchInfo
public NPatchInfo(SegmentAllocator arena, Rectangle source, int left, int top, int right, int bottom, int layout) Construct with your own memory allocator and fields initialized as specified- Parameters:
source- Texture source rectangleleft- Left border offsettop- Top border offsetright- Right border offsetbottom- Bottom border offsetlayout- Layout of the n-patch: 3x3, 1x3 or 3x1
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of NPatchInfo -
allocateArray
Allocate an array of NPatchInfo -
getSource
Texture source rectangle -
setSource
Texture source rectangle -
source
Texture source rectangle -
source
Texture source rectangle -
getLeft
public int getLeft()Left border offset -
setLeft
public void setLeft(int value) Left border offset -
left
public int left()Left border offset -
left
Left border offset -
getTop
public int getTop()Top border offset -
setTop
public void setTop(int value) Top border offset -
top
public int top()Top border offset -
top
Top border offset -
getRight
public int getRight()Right border offset -
setRight
public void setRight(int value) Right border offset -
right
public int right()Right border offset -
right
Right border offset -
getBottom
public int getBottom()Bottom border offset -
setBottom
public void setBottom(int value) Bottom border offset -
bottom
public int bottom()Bottom border offset -
bottom
Bottom border offset -
getLayout
public int getLayout()Layout of the n-patch: 3x3, 1x3 or 3x1 -
setLayout
public void setLayout(int value) Layout of the n-patch: 3x3, 1x3 or 3x1 -
layout
public int layout()Layout of the n-patch: 3x3, 1x3 or 3x1 -
layout
Layout of the n-patch: 3x3, 1x3 or 3x1
-