ratatui_toolkit/primitives/button/methods/
area.rs

1use ratatui::layout::Rect;
2
3use crate::primitives::button::Button;
4
5impl Button {
6    /// Returns the area where the button was rendered, if rendered.
7    ///
8    /// # Returns
9    ///
10    /// `Some(area)` if the button has been rendered, `None` otherwise
11    #[inline]
12    pub fn area(&self) -> Option<Rect> {
13        self.area
14    }
15}