1 unstable release
Uses new Rust 2024
new 0.1.1 | Apr 2, 2025 |
---|
#5 in #slider
37 downloads per month
Used in 68 crates
(14 directly)
3MB
23K
SLoC
Aloe Slider
Aloe Slider is a versatile and extensible slider component built in Rust for graphical user interfaces. Designed to cater to various styling needs, the component accommodates multiple slider types, including linear, rotary, and inc-dec buttons, along with customizable text box positions for displaying slider values.
Key Features
- Multiple Slider Styles: From linear to rotary and inc-dec buttons, customize your slider to suit horizontal, vertical, or dynamic application paths.
- Text Box Entries: Position the slider's text entry box flexibly around or within the slider itself, providing ease of interaction for numeric value adjustments.
- Listener Support: Register listeners for real-time updates on slider movements and value changes.
- Custom Look and Feel: Implement custom rendering for enhanced visual distinction while relying on predefined
LookAndFeel
interfaces or crafting your own. - Color Customization: Change the color of various slider components, including track, thumb, and text boxes, ensuring a coherent user experience.
Usage Example
Here's a basic usage example to implement a linear slider:
use aloe_slider::{Slider, SliderStyle, SliderTextEntryBoxPosition};
fn main() {
let mut slider = Slider::default();
slider.set_slider_style(SliderStyle::LinearHorizontal);
slider.set_text_box_style(SliderTextEntryBoxPosition::TextBoxBelow, false, 100, 20);
}
Contribution
Contributions are welcome! Please check the repository for issues or initiate a discussion for potential feature proposals.
Note: This README.md file was generated by an AI model and may not be 100% accurate; however, it should be pretty good.
This crate is a translation of the JUCE module.
JUCE is a c++ software framework for developing high performance audio applications.
Usage falls under the GPLv3 as well as the JUCE commercial license.
See github.com/juce-framework/JUCE and the JUCE license page for details.
This crate is in the process of being translated from c++ to rust. For progress updates, please see the workspacer rust project. designed specifically for rust projects.
Dependencies
~25–39MB
~594K SLoC