Struct fui_controls::ScrollBar
source · pub struct ScrollBar {
pub orientation: Orientation,
pub min_value: Property<f32>,
pub max_value: Property<f32>,
pub value: Property<f32>,
pub viewport_size: Property<f32>,
pub single_step_size: Property<f32>,
}
Fields§
§orientation: Orientation
§min_value: Property<f32>
§max_value: Property<f32>
§value: Property<f32>
§viewport_size: Property<f32>
How much of the range of value is visible on the screen (affects the length of thumb)
single_step_size: Property<f32>
How much to modify the value on mouse wheel
Implementations§
source§impl ScrollBar
impl ScrollBar
sourcepub fn builder() -> ScrollBarBuilder<((), (), (), (), (), ())>
pub fn builder() -> ScrollBarBuilder<((), (), (), (), (), ())>
Create a builder for building ScrollBar
.
On the builder, call .orientation(...)
(optional), .min_value(...)
(optional), .max_value(...)
(optional), .value(...)
(optional), .viewport_size(...)
(optional), .single_step_size(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ScrollBar
.