Class NPatchInfo
java.lang.Object
com.raylib.NPatchInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The 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 NPatchInfo
allocateArray
(long elementCount) Allocate an array of NPatchInfostatic NPatchInfo
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of NPatchInfoint
bottom()
Bottom border offsetbottom
(int value) Bottom border offsetboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) int
Bottom border offsetint
Layout of the n-patch: 3x3, 1x3 or 3x1int
getLeft()
Left border offsetint
getRight()
Right border offsetTexture source rectangleint
getTop()
Top border offsetint
hashCode()
int
layout()
Layout of the n-patch: 3x3, 1x3 or 3x1layout
(int value) Layout of the n-patch: 3x3, 1x3 or 3x1int
left()
Left border offsetleft
(int value) Left border offsetint
right()
Right border offsetright
(int value) Right border offsetvoid
setBottom
(int value) Bottom border offsetvoid
setLayout
(int value) Layout of the n-patch: 3x3, 1x3 or 3x1void
setLeft
(int value) Left border offsetvoid
setRight
(int value) Right border offsetvoid
Texture source rectanglevoid
setTop
(int value) Top border offsetsource()
Texture source rectangleTexture source rectangleint
top()
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
-