//! Temporary context stored in egui data during `ButtonGroup` rendering.
/// Context stored in egui temp data while a `ButtonGroup` is being rendered.
/// Buttons check the `active` flag to adjust their corner radii and borders.
#[derive(Clone, Default)]pubstructButtonGroupContext{/// Whether a button group is currently being rendered.
pubactive:bool,
/// Right-edge x positions of each button in the group.
pubboundaries:Vec<f32>,
/// How many buttons were in the group last frame (for first/last detection).
pubcached_count:usize,
/// Current button index, incremented by each button.
pubcurrent_index:usize,
/// The group's corner radius.
pubcorner_radius:f32,
/// Union rect of all buttons in the group so far.
pubgroup_rect:Option<egui::Rect>,
}