ratatui_toolkit/widgets/code_diff/widget/methods/
is_sidebar_hovering.rs

1//! Method to check if mouse is hovering over sidebar divider.
2
3use crate::widgets::code_diff::code_diff::CodeDiff;
4
5impl CodeDiff {
6    /// Returns whether the mouse is hovering over the sidebar divider.
7    ///
8    /// This can be used to change the cursor style.
9    pub fn is_sidebar_hovering(&self) -> bool {
10        self.sidebar_split.is_hovering
11    }
12}