pub enum Cap {
Show 17 variants
ListRecycling,
ListReorder,
Lottie,
NativeSymbols,
Snapshot,
NavSplit,
NavHeader,
Appearance,
Dialogs,
FileDialogs,
Animation,
Cover,
TextEditable,
TextSelectable,
TextSpellCheck,
MultiWindow,
Toolbar,
}Variants§
ListRecycling
ListReorder
The toolkit realizes ListProps::reorderable as drag-to-reorder rows — Native when the
platform’s own mechanism drives it (NSTableView drag/drop, UITableView drag delegates,
ItemTouchHelper, …), Emulated for a pointer-tracked fake (web-dom). Unsupported ⇒ the
list renders normally but rows cannot be dragged (docs/list.md).
Lottie
NativeSymbols
Snapshot
The toolkit presents nav() as sidebar+detail split panes (desktop). Mobile
stacks answer Unsupported and get push/pop presentation instead.
The toolkit shows the current destination’s title in a NATIVE header/bar — so a page
needn’t repeat it in its own content. Native on XAML (the NavigationView header),
UIKit (UINavigationBar), Android (MaterialToolbar), and ArkUI (NavDestination
title bars). The desktop custom back-headers (AppKit/Qt/web) show a title only in
stack mode, so those backends stay Unsupported (docs/navigation.md).
Appearance
The toolkit applies a runtime appearance override (set_appearance): native widgets
restyle in place and dark_mode answers the override. Probe before showing a theme
picker — on Unsupported backends the call is ignored.
Dialogs
The toolkit can present native alert/confirm/sheet/prompt modals (docs/dialogs.md).
FileDialogs
The toolkit can present native open/save file pickers (docs/files.md).
Animation
The toolkit runs backend-executed animation for AnimSpec intents on
update/set_frame/set_opacity/set_transform (§8.4). Unsupported ⇒ animated calls
apply instantly (still correct, just not animated).
Cover
The toolkit presents a kinds::COVER node as a native fullscreen modal surface
(docs/cover.md). Unsupported ⇒ the cover piece’s content never shows.
TextEditable
The toolkit’s text_area can be made read-only (TextAreaProps::editable = false).
TextSelectable
The toolkit’s text_area selectability can be toggled (TextAreaProps::selectable).
Unsupported where selection is always on (GTK) or the editor isn’t wired (ArkUI).
TextSpellCheck
The toolkit’s text_area has built-in spell-check/autocorrect (TextAreaProps::spellcheck).
Unsupported where the toolkit ships none (GTK, Qt, ArkUI).
MultiWindow
The toolkit can open additional native OS windows (Toolkit::open_window,
docs/windows.md). Native on the desktop backends and on mobile backends whose
platform has a real secondary-window surface (iPad scenes, Android document
activities, OHOS multiton abilities). On Unsupported backends
day_core::open_window still works — the content presents as a fullscreen cover in
the primary window instead. Probe it to adapt chrome: an Unsupported tier has no
native title bar or close button, so window content should carry its own close
affordance.
Toolbar
The toolkit gives a window a native toolbar (Toolkit::set_toolbar, docs/toolbars.md):
Native on the desktop backends, Unsupported elsewhere — a phone has no toolbar, and
day does not draw a fake one. Probe it to decide where a command lives: an app puts its
refresh button on the toolbar where there is one and in the content where there is not.
Trait Implementations§
impl Copy for Cap
impl Eq for Cap
impl StructuralPartialEq for Cap
Auto Trait Implementations§
impl Freeze for Cap
impl RefUnwindSafe for Cap
impl Send for Cap
impl Sync for Cap
impl Unpin for Cap
impl UnsafeUnpin for Cap
impl UnwindSafe for Cap
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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