Package com.raylib
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 NPatchInfoboolean
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()
setBottom
(int value) Bottom border offsetsetLayout
(int value) Layout of the n-patch: 3x3, 1x3 or 3x1setLeft
(int value) Left border offsetsetRight
(int value) Right border offsetTexture source rectanglesetTop
(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 -
getLeft
public int getLeft()Left border offset -
setLeft
Left border offset -
getTop
public int getTop()Top border offset -
setTop
Top border offset -
getRight
public int getRight()Right border offset -
setRight
Right border offset -
getBottom
public int getBottom()Bottom border offset -
setBottom
Bottom border offset -
getLayout
public int getLayout()Layout of the n-patch: 3x3, 1x3 or 3x1 -
setLayout
Layout of the n-patch: 3x3, 1x3 or 3x1
-