Uses of Class
com.raylib.Rectangle
Packages that use Rectangle
-
Uses of Rectangle in com.raylib
Methods in com.raylib that return RectangleModifier and TypeMethodDescriptionstatic Rectangle
Rectangle.allocateArray
(long elementCount) Allocate an array of Rectanglestatic Rectangle
Rectangle.allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of RectangleRectangle.getArrayElement
(int index) static Rectangle
Raylib.getCollisionRec
(Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic Rectangle
Raylib.getCollisionRec
(Arena arena, Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic Rectangle
Raylib.getGlyphAtlasRec
(Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic Rectangle
Raylib.getGlyphAtlasRec
(Arena arena, Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic Rectangle
Raylib.getImageAlphaBorder
(Image image, float threshold) Get image alpha border rectanglestatic Rectangle
Raylib.getImageAlphaBorder
(Arena arena, Image image, float threshold) Get image alpha border rectangleFont.getRecs()
Rectangles in texture for the glyphsNPatchInfo.getSource()
Texture source rectangleRectangle.setHeight
(float value) Rectangle heightRectangle.setWidth
(float value) Rectangle widthRectangle.setX
(float value) Rectangle top-left corner position xRectangle.setY
(float value) Rectangle top-left corner position yMethods in com.raylib with parameters of type RectangleModifier and TypeMethodDescriptionstatic boolean
Raylib.checkCollisionCircleRec
(Vector2 center, float radius, Rectangle rec) Check collision between circle and rectanglestatic boolean
Raylib.checkCollisionPointRec
(Vector2 point, Rectangle rec) Check if point is inside rectanglestatic boolean
Raylib.checkCollisionRecs
(Rectangle rec1, Rectangle rec2) Check collision between two rectanglesstatic void
Raylib.drawBillboardPro
(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) Draw a billboard texture defined by source and rotationstatic void
Raylib.drawBillboardRec
(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint) Draw a billboard texture defined by sourcestatic void
Draw a gradient-filled rectangle with custom vertex colorsstatic void
Raylib.drawRectangleLinesEx
(Rectangle rec, float lineThick, Color color) Draw rectangle outline with extended parametersstatic void
Raylib.drawRectanglePro
(Rectangle rec, Vector2 origin, float rotation, Color color) Draw a color-filled rectangle with pro parametersstatic void
Raylib.drawRectangleRec
(Rectangle rec, Color color) Draw a color-filled rectanglestatic void
Raylib.drawRectangleRounded
(Rectangle rec, float roundness, int segments, Color color) Draw rectangle with rounded edgesstatic void
Raylib.drawRectangleRoundedLines
(Rectangle rec, float roundness, int segments, float lineThick, Color color) Draw rectangle with rounded edges outlinestatic void
Raylib.drawTextureNPatch
(Texture texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) Draws a texture (or part of it) that stretches or shrinks nicelystatic void
Raylib.drawTexturePro
(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) Draw a part of a texture defined by a rectangle with 'pro' parametersstatic void
Raylib.drawTextureRec
(Texture texture, Rectangle source, Vector2 position, Color tint) Draw a part of a texture defined by a rectanglestatic Rectangle
Raylib.getCollisionRec
(Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic Rectangle
Raylib.getCollisionRec
(Arena arena, Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic void
Crop an image to a defined rectanglestatic void
Draw a source image within a destination image (tint applied to source)static void
Raylib.imageDrawRectangleLines
(Image dst, Rectangle rec, int thick, Color color) Draw rectangle lines within an imagestatic void
Raylib.imageDrawRectangleRec
(Image dst, Rectangle rec, Color color) Draw rectangle within an imagestatic Image
Raylib.imageFromImage
(Image image, Rectangle rec) Create an image from another image piecestatic Image
Raylib.imageFromImage
(Arena arena, Image image, Rectangle rec) Create an image from another image pieceRectangles in texture for the glyphsstatic void
Raylib.setShapesTexture
(Texture texture, Rectangle source) Set texture and rectangle to be used on shapes drawingTexture source rectanglestatic void
Raylib.updateTextureRec
(Texture texture, Rectangle rec, MemorySegment pixels) Update GPU texture rectangle with new dataConstructors in com.raylib with parameters of type RectangleModifierConstructorDescriptionFont
(int baseSize, int glyphCount, int glyphPadding, Texture texture, Rectangle recs, GlyphInfo glyphs) Construct with auto memory allocator and fields initialized as specifiedFont
(SegmentAllocator arena, int baseSize, int glyphCount, int glyphPadding, Texture texture, Rectangle recs, GlyphInfo glyphs) Construct with your own memory allocator and fields initialized as specifiedNPatchInfo
(Rectangle source, int left, int top, int right, int bottom, int layout) Construct with auto memory allocator and fields initialized as specifiedNPatchInfo
(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