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 RectangleRectangle.allocateArray(long elementCount) Allocate an array of Rectanglestatic RectangleRectangle.allocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of RectangleRectangle.getArrayElement(int index) static RectangleRaylib.getCollisionRec(Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic RectangleRaylib.getCollisionRec(Arena arena, Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic RectangleRaylib.getGlyphAtlasRec(Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic RectangleRaylib.getGlyphAtlasRec(Arena arena, Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic RectangleRaylib.getImageAlphaBorder(Image image, float threshold) Get image alpha border rectanglestatic RectangleRaylib.getImageAlphaBorder(Arena arena, Image image, float threshold) Get image alpha border rectangleFont.getRecs()Rectangles in texture for the glyphsstatic RectangleRaylib.getShapesTextureRectangle()Get texture source rectangle that is used for shapes drawingstatic RectangleRaylib.getShapesTextureRectangle(Arena arena) Get texture source rectangle that is used for shapes drawingNPatchInfo.getSource()Texture source rectangleRectangle.height(float value) Rectangle heightFont.recs()Rectangles in texture for the glyphsNPatchInfo.source()Texture source rectangleRectangle.width(float value) Rectangle widthRectangle.x(float value) Rectangle top-left corner position xRectangle.y(float value) Rectangle top-left corner position yMethods in com.raylib with parameters of type RectangleModifier and TypeMethodDescriptionstatic booleanRaylib.checkCollisionCircleRec(Vector2 center, float radius, Rectangle rec) Check collision between circle and rectanglestatic booleanRaylib.checkCollisionPointRec(Vector2 point, Rectangle rec) Check if point is inside rectanglestatic booleanRaylib.checkCollisionRecs(Rectangle rec1, Rectangle rec2) Check collision between two rectanglesstatic voidRaylib.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 voidRaylib.drawBillboardRec(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint) Draw a billboard texture defined by sourcestatic voidRaylib.drawRectangleGradientEx(Rectangle rec, Color topLeft, Color bottomLeft, Color topRight, Color bottomRight) Draw a gradient-filled rectangle with custom vertex colorsstatic voidRaylib.drawRectangleLinesEx(Rectangle rec, float lineThick, Color color) Draw rectangle outline with extended parametersstatic voidRaylib.drawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) Draw a color-filled rectangle with pro parametersstatic voidRaylib.drawRectangleRec(Rectangle rec, Color color) Draw a color-filled rectanglestatic voidRaylib.drawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) Draw rectangle with rounded edgesstatic voidRaylib.drawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) Draw rectangle lines with rounded edgesstatic voidRaylib.drawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) Draw rectangle with rounded edges outlinestatic voidRaylib.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 voidRaylib.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 voidRaylib.drawTextureRec(Texture texture, Rectangle source, Vector2 position, Color tint) Draw a part of a texture defined by a rectanglestatic RectangleRaylib.getCollisionRec(Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic RectangleRaylib.getCollisionRec(Arena arena, Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic voidCrop an image to a defined rectanglestatic voidDraw a source image within a destination image (tint applied to source)static voidRaylib.imageDrawRectangleLines(Image dst, Rectangle rec, int thick, Color color) Draw rectangle lines within an imagestatic voidRaylib.imageDrawRectangleRec(Image dst, Rectangle rec, Color color) Draw rectangle within an imagestatic ImageRaylib.imageFromImage(Image image, Rectangle rec) Create an image from another image piecestatic ImageRaylib.imageFromImage(Arena arena, Image image, Rectangle rec) Create an image from another image pieceRectangles in texture for the glyphsvoidRectangles in texture for the glyphsstatic voidRaylib.setShapesTexture(Texture texture, Rectangle source) Set texture and rectangle to be used on shapes drawingvoidTexture source rectangleTexture source rectanglestatic voidRaylib.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