euv-ui 0.28.3

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

impl EuvRatingSize {
    /// Returns the star glyph edge length in pixels for this size.
    ///
    /// # Returns
    ///
    /// - `i32` - The edge length in pixels: 14 for `Sm`, 18 for `Md`, 24 for
    ///   `Lg`.
    pub fn px(&self) -> i32 {
        match self {
            EuvRatingSize::Sm => 14,
            EuvRatingSize::Md => 18,
            EuvRatingSize::Lg => 24,
        }
    }
}