raygui icon indicating copy to clipboard operation
raygui copied to clipboard

Added GuiButtonRounded & GuiDrawRectangleRounded

Open astrogames06 opened this issue 10 months ago • 0 comments

This merge request adds support for rounded GUI elements by introducing two new functions:

  • GuiDrawRectangleRounded
    Draws a filled and bordered rounded rectangle using Raylib’s DrawRectangleRounded and DrawRectangleRoundedLines.

    • Parameters include roundness and segments for customization.
    • Maintains GUI alpha fading and debug bounds support.
  • GuiButtonRounded
    A rounded-corner version of GuiButton with identical behavior and styling logic.

    • Uses GuiDrawRectangleRounded for rendering.
    • Supports states: normal, focused, pressed, and disabled.

These additions enhance GUI design flexibility while preserving Raygui’s lightweight and modular style.

astrogames06 avatar Apr 08 '25 23:04 astrogames06