pub enum ComponentKind {
Switch,
Button,
Slider,
Progress,
Image,
Glass,
Container,
TabBar,
}Expand description
Kind of native overlay component.
Variants§
Switch
UISwitch / NSSwitch — emits change with on.
Button
UIButton (glass configuration on iOS 26) / NSButton — emits click.
Slider
UISlider / NSSlider — emits change with value.
Progress
UIProgressView / NSProgressIndicator — display only.
Image
UIImageView / NSImageView — display only (avatars, thumbnails).
Glass
A bare glass panel (UIGlassEffect / NSGlassEffectView, blur
fallback) — pair with below: true + absolute placement to back
DOM elements with real glass (see attachGlassCard in the JS API).
Container
A layout container (UIStackView / NSStackView) that arranges its
children along props.axis — the building block consumers compose
their own nav (bar or sidebar) from. Imposes no specific layout.
TabBar
The system tab bar (UITabBar / NSSegmentedControl) as a composable
component: props.items are the tabs; selection arrives as a
select component event whose detail is the chosen tab id.
Trait Implementations§
Source§impl Clone for ComponentKind
impl Clone for ComponentKind
Source§fn clone(&self) -> ComponentKind
fn clone(&self) -> ComponentKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ComponentKind
Source§impl Debug for ComponentKind
impl Debug for ComponentKind
Source§impl<'de> Deserialize<'de> for ComponentKind
impl<'de> Deserialize<'de> for ComponentKind
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>,
impl Eq for ComponentKind
Source§impl PartialEq for ComponentKind
impl PartialEq for ComponentKind
Source§fn eq(&self, other: &ComponentKind) -> bool
fn eq(&self, other: &ComponentKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ComponentKind
impl Serialize for ComponentKind
impl StructuralPartialEq for ComponentKind
Auto Trait Implementations§
impl Freeze for ComponentKind
impl RefUnwindSafe for ComponentKind
impl Send for ComponentKind
impl Sync for ComponentKind
impl Unpin for ComponentKind
impl UnsafeUnpin for ComponentKind
impl UnwindSafe for ComponentKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.