Package io.github.libsdl4j.api.rect
Class SDL_Rect
- java.lang.Object
-
- com.sun.jna.Structure
-
- io.github.libsdl4j.api.rect.SDL_Rect
-
@FieldOrder({"x","y","w","h"}) public final class SDL_Rect extends com.sun.jna.Structure
SDL_Rect
is a simple structure that contains only four int values:x
,y
which hold the position andw
,h
which hold width and height.It's important to note that 0, 0 is the upper-left corner. So a higher y-value means lower, and the bottom-right corner will have the coordinate x + w, y + h.
- See Also:
SdlRect.SDL_RectEmpty(SDL_Rect)
,SdlRect.SDL_RectEquals(SDL_Rect, SDL_Rect)
,SdlRect.SDL_HasIntersection(SDL_Rect, SDL_Rect)
,SdlRect.SDL_IntersectRect(SDL_Rect, SDL_Rect, SDL_Rect)
,SdlRect.SDL_IntersectRectAndLine(SDL_Rect, IntRef, IntRef, IntRef, IntRef)
,SdlRect.SDL_UnionRect(SDL_Rect, SDL_Rect, SDL_Rect)
,SdlRect.SDL_EnclosePoints(List, SDL_Rect, SDL_Rect)
-
-
Method Summary
-
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
-