pub struct Kbd {
pub key: String,
pub font_size: f32,
pub background_color: String,
pub border_color: String,
pub text_color: String,
pub timing: TimingConfig,
pub style: CssStyle,
pub timeline: Vec<TimelineStep>,
pub stagger: Option<f32>,
}kbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Fields§
§key: Stringkbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
font_size: f32kbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
background_color: Stringkbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
border_color: Stringkbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
text_color: Stringkbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timing: TimingConfigkbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
style: CssStylekbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
align-self defaults to flex-start (not the flex container’s
stretch) — a keycap is an atomic chip that must keep its natural
intrinsic width even inside a flex/card column; without this,
the default cross-axis stretch wins over KbdIntrinsic and the
key renders as a full-width slab. An author-specified align-self
in JSON is always respected (this only fills the gap when absent).
timeline: Vec<TimelineStep>kbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
stagger: Option<f32>kbd is a frozen composition (issue #333). Compose a keycap from a small card (border + shadow) with a text label instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Trait Implementations§
Source§impl Animatable for Kbd
impl Animatable for Kbd
fn animation_effects(&self) -> &[AnimationEffect]
fn timeline_steps(&self) -> &[TimelineStep]
Source§impl<'de> Deserialize<'de> for Kbd
impl<'de> Deserialize<'de> for Kbd
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Kbd
impl JsonSchema for Kbd
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl Painter for Kbd
impl Painter for Kbd
fn paint_content( &self, canvas: &Canvas, layout: &BoxLayout, _props: &AnimatedProperties, ctx: &PaintCtx, )
fn intrinsic_size( &self, _available: AvailableSize, _ctx: &MeasureCtx, ) -> Option<(f32, f32)>
Auto Trait Implementations§
impl Freeze for Kbd
impl RefUnwindSafe for Kbd
impl Send for Kbd
impl Sync for Kbd
impl Unpin for Kbd
impl UnsafeUnpin for Kbd
impl UnwindSafe for Kbd
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more