pub struct Badge {
pub text: String,
pub anchor: Anchor,
pub bg: Color,
pub fg: Color,
pub size: f32,
}Expand description
图片角标:圆角底板 + 短文字,贴在图的一角。
Fields§
§text: String标签文字(宜短,如「动图」)。
anchor: Anchor停靠角。
bg: Color底板色(默认黑 72%)。
fg: Color文字色(默认白)。
size: f32相对基准字号的倍率(默认 0.75)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Badge
impl RefUnwindSafe for Badge
impl Send for Badge
impl Sync for Badge
impl Unpin for Badge
impl UnsafeUnpin for Badge
impl UnwindSafe for Badge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more