pub struct SplitterStyleConfig {
pub orientation: Orientation,
pub is_hovered: Signal<bool>,
pub is_dragging: Signal<bool>,
pub is_disabled: Signal<bool>,
pub focus_origin: Signal<Option<FocusOrigin>>,
pub hover_progress: Signal<f32>,
}Expand description
Reactive inputs handed to a SplitterStyle when it builds one
divider handle’s visual body. Every field a default impl repaints on
is a Signal, so the body re-renders without a rebuild.
Fields§
§orientation: OrientationOrientation of the parent Splitter. Note: a horizontal
splitter (panes side-by-side) draws a vertical handle bar, and
vice versa — the recipe accounts for this when painting the line.
is_hovered: Signal<bool>§is_dragging: Signal<bool>true while the user is drag-pressing this handle.
is_disabled: Signal<bool>§focus_origin: Signal<Option<FocusOrigin>>Some(FocusOrigin::Keyboard) while the handle has keyboard
focus; the IntUI default uses this to gate the full-strength
focus indicator. Some(Pointer) and None fall back to the
hover-dwell ramp.
hover_progress: Signal<f32>Hover-dwell progress 0.0..=1.0 driving the focus-indicator
fade-in (animated by the handle; the style maps it to alpha).
Trait Implementations§
Source§impl Clone for SplitterStyleConfig
impl Clone for SplitterStyleConfig
Source§fn clone(&self) -> SplitterStyleConfig
fn clone(&self) -> SplitterStyleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SplitterStyleConfig
impl !Send for SplitterStyleConfig
impl !Sync for SplitterStyleConfig
impl !UnwindSafe for SplitterStyleConfig
impl Freeze for SplitterStyleConfig
impl Unpin for SplitterStyleConfig
impl UnsafeUnpin for SplitterStyleConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more