> home > Custom Layer Boundary API

draw_rectangle_outline

September 8th 2024
Directly render a rectangle outline

Signature

C++
void
draw_rectangle_outline(Application_Links* app,
                       Rect_f32 rect,
                       f32 roundness,
                       f32 thickness,
                       ARGB_Color color);

Parameters

app

the standard custom layer context pointer

rect

the rectangle coordinates, in pixels relative to the top left corner of the screen

roundness

the roundness of the pixels, set as a radius of a circular curve measured in pixels

thickness

the thickness, in pixels, of the rectangle outline

color

the color of the rectangle

Details

As a render function, this only takes effect during a call to the render hook.