diff options
| author | 2025-02-02 20:45:29 +0100 | |
|---|---|---|
| committer | 2025-02-02 20:45:29 +0100 | |
| commit | ae10adda74320e8098bfeb401f12a278e1e7b3e2 (patch) | |
| tree | 1827aabad023b06a6cb9dd6ec50093af969ecf0c /core/src/text | |
| parent | d5ee9c27955e6dfeb645e2641f3d24b006685484 (diff) | |
| download | iced-ae10adda74320e8098bfeb401f12a278e1e7b3e2.tar.gz iced-ae10adda74320e8098bfeb401f12a278e1e7b3e2.tar.bz2 iced-ae10adda74320e8098bfeb401f12a278e1e7b3e2.zip  | |
Refactor and simplify `input_method` API
Diffstat (limited to 'core/src/text')
| -rw-r--r-- | core/src/text/paragraph.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/text/paragraph.rs b/core/src/text/paragraph.rs index 924276c3..700c2c75 100644 --- a/core/src/text/paragraph.rs +++ b/core/src/text/paragraph.rs @@ -129,6 +129,12 @@ impl<P: Paragraph> Plain<P> {          self.raw.min_width()      } +    /// Returns the minimum height that can fit the contents of the +    /// [`Paragraph`]. +    pub fn min_height(&self) -> f32 { +        self.raw.min_height() +    } +      /// Returns the cached [`Paragraph`].      pub fn raw(&self) -> &P {          &self.raw  | 
