oop
begin_frame(ctx)

if begin_window(ctx, &quot;My Window&quot;, Rect(10, 10, 300, 200)) != 0
    if button(ctx, &quot;Click me!&quot;) != 0
        println(&quot;Button clicked!&quot;)
    end
    
    checkbox_state = Ref(false)
    checkbox!(ctx, &quot;Enable feature&quot;, checkbox_state)
    
    slider_value = Ref(50.0f0)
    slider!(ctx, slider_value, 0.0f0, 100.0f0)
    
    end_window(ctx)
end

end_frame(ctx)</code></pre><h3 id="Macro-DSL"><a class="docs-heading-anchor" href="#Macro-DSL">Macro DSL