Expand description
Interactive UI controls rendered via AGG’s rendering pipeline.
Port of ctrl/agg_slider_ctrl.h, ctrl/agg_cbox_ctrl.h, ctrl/agg_rbox_ctrl.h.
Controls are vertex sources with multiple colored paths. Use render_ctrl()
to render them into a renderer_base, which iterates paths and colors.
In the original C++ library, controls handle mouse interaction directly. In our WASM demos, the JS sidebar handles interaction and passes values as params; these controls render the visual representation on the canvas.
Structs§
- Cbox
Ctrl - Checkbox control rendered via AGG.
- Gamma
Ctrl - Interactive gamma correction curve control.
- Rbox
Ctrl - Radio button box control rendered via AGG.
- Scale
Ctrl - Two-handle range slider (min/max selector).
- Slider
Ctrl - Horizontal slider control rendered via AGG.
- Spline
Ctrl - Spline control rendered via AGG.
Traits§
- Ctrl
- Trait for AGG controls that can be rendered as multi-path vertex sources.
Functions§
- render_
ctrl - Render a control by iterating its paths and rendering each with its color.