pub struct CardDesc<'a> {
pub title: &'a str,
pub icon: u32,
pub text: &'a str,
pub one_line: bool,
pub badge: Option<(u32, &'a str)>,
pub aside: &'a str,
pub picture_h: i32,
pub draw: Option<DrawRef>,
pub draw_ver: u32,
}Expand description
what an action card shows (ui.action_card); ..Default::default() for the parts it has not
Fields§
§title: &'a str§icon: u32beside the title; with a picture area and no drawing, large in that area (0: none)
text: &'a strbelow the title (“”: none)
one_line: booltitle and text stay on one line, cut with “…” (lists); else they wrap
badge: Option<(u32, &'a str)>a BADGE_* kind and its label, beside the title
aside: &'a stra caption at the far end (“”: none)
picture_h: i32the height of the picture area above the texts (DIP; 0: none)
draw: Option<DrawRef>what it shows and the version of that drawing (render time, as cmd_custom)
draw_ver: u32Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CardDesc<'a>
impl<'a> !Send for CardDesc<'a>
impl<'a> !Sync for CardDesc<'a>
impl<'a> !UnwindSafe for CardDesc<'a>
impl<'a> Forget for CardDesc<'a>
impl<'a> Freeze for CardDesc<'a>
impl<'a> Unpin for CardDesc<'a>
impl<'a> UnsafeUnpin for CardDesc<'a>
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