ratatui_toolkit/primitives/button/methods/
hovered.rs

1use crate::primitives::button::Button;
2
3impl Button {
4    /// Returns whether the button is currently hovered.
5    ///
6    /// # Returns
7    ///
8    /// `true` if the button is being hovered, `false` otherwise
9    #[inline]
10    pub fn hovered(&self) -> bool {
11        self.hovered
12    }
13}