Path: blob/main/crates/bevy_feathers/src/controls/mod.rs
6596 views
//! Meta-module containing all feathers controls (widgets that are interactive).1use bevy_app::Plugin;23mod button;4mod checkbox;5mod color_slider;6mod color_swatch;7mod radio;8mod slider;9mod toggle_switch;10mod virtual_keyboard;1112pub use button::{button, ButtonPlugin, ButtonProps, ButtonVariant};13pub use checkbox::{checkbox, CheckboxPlugin, CheckboxProps};14pub use color_slider::{15color_slider, ColorChannel, ColorSlider, ColorSliderPlugin, ColorSliderProps, SliderBaseColor,16};17pub use color_swatch::{color_swatch, ColorSwatch, ColorSwatchFg};18pub use radio::{radio, RadioPlugin};19pub use slider::{slider, SliderPlugin, SliderProps};20pub use toggle_switch::{toggle_switch, ToggleSwitchPlugin, ToggleSwitchProps};21pub use virtual_keyboard::virtual_keyboard;2223use crate::alpha_pattern::AlphaPatternPlugin;2425/// Plugin which registers all `bevy_feathers` controls.26pub struct ControlsPlugin;2728impl Plugin for ControlsPlugin {29fn build(&self, app: &mut bevy_app::App) {30app.add_plugins((31AlphaPatternPlugin,32ButtonPlugin,33CheckboxPlugin,34ColorSliderPlugin,35RadioPlugin,36SliderPlugin,37ToggleSwitchPlugin,38));39}40}414243