pub struct Input(/* private fields */);Expand description
A text field (<input>), made by input: one line, or several
with Input::multiline. Its text style comes from its styles.
Implementations§
Source§impl Input
impl Input
Sourcepub fn value(self, text: impl IntoReactive<String>) -> Self
pub fn value(self, text: impl IntoReactive<String>) -> Self
The text, when the component controls it (update it from
Self::on_change).
Sourcepub fn default_value(self, text: impl IntoReactive<String>) -> Self
pub fn default_value(self, text: impl IntoReactive<String>) -> Self
The first text, when the input keeps its own.
Sourcepub fn placeholder(self, text: impl IntoReactive<String>) -> Self
pub fn placeholder(self, text: impl IntoReactive<String>) -> Self
Shown while it is empty.
Sourcepub fn placeholder_color(self, color: impl IntoReactive<Hsla>) -> Self
pub fn placeholder_color(self, color: impl IntoReactive<Hsla>) -> Self
The placeholder’s color (cx.color(theme.muted_foreground)).
Sourcepub fn selection_color(self, color: impl IntoReactive<Hsla>) -> Self
pub fn selection_color(self, color: impl IntoReactive<Hsla>) -> Self
The selection highlight’s color (on iOS also the caret’s, unless
Self::caret_color is set: UIKit tints both with one).
Sourcepub fn caret_color(self, color: impl IntoReactive<Hsla>) -> Self
pub fn caret_color(self, color: impl IntoReactive<Hsla>) -> Self
The caret’s color.
Sourcepub fn masked(self, secure: impl IntoReactive<bool>) -> Self
pub fn masked(self, secure: impl IntoReactive<bool>) -> Self
Hides what is typed (passwords; TS: masked).
Sourcepub fn keyboard_type(self, kind: impl IntoReactive<KeyboardType>) -> Self
pub fn keyboard_type(self, kind: impl IntoReactive<KeyboardType>) -> Self
The software keyboard’s layout.
Sourcepub fn keyboard_appearance(
self,
appearance: impl IntoReactive<KeyboardAppearance>,
) -> Self
pub fn keyboard_appearance( self, appearance: impl IntoReactive<KeyboardAppearance>, ) -> Self
The software keyboard’s light or dark look (iOS; TS:
ios={{ keyboardAppearance }}).
Sourcepub fn return_key_type(self, kind: impl IntoReactive<ReturnKeyType>) -> Self
pub fn return_key_type(self, kind: impl IntoReactive<ReturnKeyType>) -> Self
The return key’s label.
Sourcepub fn auto_capitalize(self, mode: impl IntoReactive<AutoCapitalize>) -> Self
pub fn auto_capitalize(self, mode: impl IntoReactive<AutoCapitalize>) -> Self
Automatic capitals.
Sourcepub fn auto_correct(self, on: impl IntoReactive<bool>) -> Self
pub fn auto_correct(self, on: impl IntoReactive<bool>) -> Self
The system’s corrections (default on): spelling and, on iOS and macOS, smart quotes, dashes and text replacement.
Sourcepub fn auto_fill(self, kind: impl IntoReactive<AutoFill>) -> Self
pub fn auto_fill(self, kind: impl IntoReactive<AutoFill>) -> Self
What it holds, for autofill and suggestions.
Sourcepub fn multiline(self, multiline: impl IntoReactive<bool>) -> Self
pub fn multiline(self, multiline: impl IntoReactive<bool>) -> Self
Several lines, growing with the text (return adds a line).
Sourcepub fn scrollbar(self, setting: impl IntoReactive<ScrollbarSetting>) -> Self
pub fn scrollbar(self, setting: impl IntoReactive<ScrollbarSetting>) -> Self
Whether a multiline input’s scroll bar shows (default yes): the
platform’s indicator, or the app’s built-in bar once it set one; or
a built-in bar of this input’s own theme (TS scrollbar={theme}:
nsh_base::ScrollbarTheme converts into a setting). The built-in
bar lies over the input’s frame, padding included, while the text
stays in the content box.
Sourcepub fn max_length(self, length: impl IntoReactive<u32>) -> Self
pub fn max_length(self, length: impl IntoReactive<u32>) -> Self
At most length characters, counted as Unicode scalar values
(Rust’s char; an emoji such as 😀 is one) on every platform. A
longer paste goes in cut to what fits, between user-perceived
characters.
Sourcepub fn readonly(self, readonly: impl IntoReactive<bool>) -> Self
pub fn readonly(self, readonly: impl IntoReactive<bool>) -> Self
The text can be selected and copied but not changed.
Sourcepub fn submit_behavior(
self,
behavior: impl IntoReactive<SubmitBehavior>,
) -> Self
pub fn submit_behavior( self, behavior: impl IntoReactive<SubmitBehavior>, ) -> Self
What return does (submitBehavior; default: submit and unfocus for
one line, a line break for several).
Sourcepub fn paste_behavior(self, behavior: impl IntoReactive<PasteBehavior>) -> Self
pub fn paste_behavior(self, behavior: impl IntoReactive<PasteBehavior>) -> Self
What a paste does (pasteBehavior; default: insert its text).
Self::on_paste hears what was pasted either way.
Sourcepub fn paste_max_size(self, bytes: impl IntoReactive<u64>) -> Self
pub fn paste_max_size(self, bytes: impl IntoReactive<u64>) -> Self
Reads pasted files of at most bytes bytes (pasteMaxSize); a
larger one reaches Self::on_paste in
PasteEvent::too_large, its name, type and size only. Default:
every file is read.
Sourcepub fn on_paste<M>(self, listener: impl IntoListener<PasteEvent, M>) -> Self
pub fn on_paste<M>(self, listener: impl IntoListener<PasteEvent, M>) -> Self
The user pasted: the text, the files with their bytes (a screenshot) and local files’ URLs, before the text it inserts is reported.
Sourcepub fn auto_focus(self, focus: impl IntoReactive<bool>) -> Self
pub fn auto_focus(self, focus: impl IntoReactive<bool>) -> Self
Focused when it appears.
Sourcepub fn select_text_on_focus(self, select: impl IntoReactive<bool>) -> Self
pub fn select_text_on_focus(self, select: impl IntoReactive<bool>) -> Self
Selects the whole text when the input takes the focus (TS:
selectTextOnFocus); a click that drags or extends a selection keeps
the user’s.
Sourcepub fn caret(self, caret: impl IntoReactive<bool>) -> Self
pub fn caret(self, caret: impl IntoReactive<bool>) -> Self
The caret is drawn (default yes; TS: caret).
Sourcepub fn input_accessory(self, native_id: impl IntoReactive<String>) -> Self
pub fn input_accessory(self, native_id: impl IntoReactive<String>) -> Self
Shows the input accessory with this nativeID over the keyboard
(input_accessory_view; iOS).
Sourcepub fn selected_range(self, range: impl IntoReactive<(u32, u32)>) -> Self
pub fn selected_range(self, range: impl IntoReactive<(u32, u32)>) -> Self
Selects (start, end) (UTF-16 units; a caret when equal) when the
input is made and whenever the value changes (TS: the controlled
selectedRange); the user moves it on from there
(Self::on_selection_change).
Sourcepub fn on_change<M>(self, listener: impl IntoListener<str, M>) -> Self
pub fn on_change<M>(self, listener: impl IntoListener<str, M>) -> Self
The text changed (the new text).
Sourcepub fn on_submit<M>(self, listener: impl IntoListener<str, M>) -> Self
pub fn on_submit<M>(self, listener: impl IntoListener<str, M>) -> Self
The return (enter) key was pressed (the text).
Sourcepub fn on_selection_change<M>(
self,
listener: impl IntoListener<Selection, M>,
) -> Self
pub fn on_selection_change<M>( self, listener: impl IntoListener<Selection, M>, ) -> Self
The selection or caret moved.
Sourcepub fn on_caret_move<M>(
self,
listener: impl IntoListener<CaretEvent, M>,
) -> Self
pub fn on_caret_move<M>( self, listener: impl IntoListener<CaretEvent, M>, ) -> Self
The caret moved: with the selection, or as the text scrolled or
wrapped again (CaretEvent: where it is, in the input and in the
root view).
Sourcepub fn on_key_press<M>(self, listener: impl IntoListener<str, M>) -> Self
pub fn on_key_press<M>(self, listener: impl IntoListener<str, M>) -> Self
A key was pressed: the character, Backspace, Enter, Escape,
ArrowUp or ArrowDown.
Sourcepub fn on_composition_change<M>(
self,
listener: impl IntoListener<Composition, M>,
) -> Self
pub fn on_composition_change<M>( self, listener: impl IntoListener<Composition, M>, ) -> Self
An input method’s composition started, changed or ended (the text
being composed, empty once it ends): the text is the input’s only
once committed, reported by Self::on_change first.
Sourcepub fn on_content_size_change<M>(
self,
listener: impl IntoListener<Size<Points>, M>,
) -> Self
pub fn on_content_size_change<M>( self, listener: impl IntoListener<Size<Points>, M>, ) -> Self
The text’s size changed (multiline inputs growing).
Trait Implementations§
Source§impl Accessible for Input
impl Accessible for Input
Source§fn accessible(self, accessible: impl IntoReactive<bool>) -> Self
fn accessible(self, accessible: impl IntoReactive<bool>) -> Self
Source§fn label(self, label: impl IntoReactive<SharedString>) -> Self
fn label(self, label: impl IntoReactive<SharedString>) -> Self
Source§fn optional_label(self, label: impl IntoReactive<Option<SharedString>>) -> Self
fn optional_label(self, label: impl IntoReactive<Option<SharedString>>) -> Self
None: what its
content says).Source§fn hint(self, hint: impl IntoReactive<SharedString>) -> Self
fn hint(self, hint: impl IntoReactive<SharedString>) -> Self
Source§fn optional_hint(self, hint: impl IntoReactive<Option<SharedString>>) -> Self
fn optional_hint(self, hint: impl IntoReactive<Option<SharedString>>) -> Self
Accessible::hint while it is set (None: none), for a
component that hands the app’s optional hint on to its element.Source§fn accessibility_description(
self,
description: impl IntoReactive<SharedString>,
) -> Self
fn accessibility_description( self, description: impl IntoReactive<SharedString>, ) -> Self
accessibilityDescription; gpui-base’s aria_description):
a dialog’s message, what a field expects.Source§fn optional_accessibility_description(
self,
description: impl IntoReactive<Option<SharedString>>,
) -> Self
fn optional_accessibility_description( self, description: impl IntoReactive<Option<SharedString>>, ) -> Self
Accessible::accessibility_description while it is set (None:
none), for a component that hands the app’s optional description
on to its element.Source§fn role(self, role: impl IntoReactive<AccessibilityRole>) -> Self
fn role(self, role: impl IntoReactive<AccessibilityRole>) -> Self
Source§fn accessibility_state(
self,
state: impl IntoReactive<AccessibilityState>,
) -> Self
fn accessibility_state( self, state: impl IntoReactive<AccessibilityState>, ) -> Self
disabled follows
Interactive::disabled).Source§fn accessibility_level(self, level: impl IntoReactive<u32>) -> Self
fn accessibility_level(self, level: impl IntoReactive<u32>) -> Self
accessibilityLevel): a
heading’s (1 the top; gpui-base’s aria_level), a tree item’s
depth (1 at the top); 0 has none.Source§fn accessibility_orientation(
self,
orientation: impl IntoReactive<Option<Axis>>,
) -> Self
fn accessibility_orientation( self, orientation: impl IntoReactive<Option<Axis>>, ) -> Self
aria-orientation, reported on the web): "horizontal" or
"vertical", for a tab list or toolbar laid out along that axis;
None has none.Source§fn accessibility_live_region(
self,
region: impl IntoReactive<LiveRegion>,
) -> Self
fn accessibility_live_region( self, region: impl IntoReactive<LiveRegion>, ) -> Self
accessibilityLiveRegion): TalkBack on Android, VoiceOver on macOS,
the web’s aria-live, a live region on Windows; "polite" when the
user is idle, "assertive" right away.Source§fn accessibility_active_descendant(
self,
target: impl IntoReactive<Option<ElementRef>>,
) -> Self
fn accessibility_active_descendant( self, target: impl IntoReactive<Option<ElementRef>>, ) -> Self
accessibilityActiveDescendant; ARIA’s aria-activedescendant):
a combo box field’s highlighted option, the cursor row of a list
that is one stop of Tab. The element may be rendered after this
one (a virtualized list’s row); None, or a ref no rendered
element carries, names none.Source§fn accessibility_controls(
self,
target: impl IntoReactive<Option<ElementRef>>,
) -> Self
fn accessibility_controls( self, target: impl IntoReactive<Option<ElementRef>>, ) -> Self
accessibilityControls; ARIA’s aria-controls): a combo
box field’s listbox. None names none.Source§fn accessibility_described_by(
self,
target: impl IntoReactive<Option<ElementRef>>,
) -> Self
fn accessibility_described_by( self, target: impl IntoReactive<Option<ElementRef>>, ) -> Self
accessibilityDescribedBy; ARIA’s aria-describedby): a
field’s error or help line, which the app places apart from it.
Screen readers read that text after the name, as they read
Accessible::accessibility_description, whose place it takes
while it names a rendered element with text. None names none.Source§fn accessibility_value(
self,
value: impl IntoReactive<Option<AccessibilityValue>>,
) -> Self
fn accessibility_value( self, value: impl IntoReactive<Option<AccessibilityValue>>, ) -> Self
min, max and now) or as a text; None has none (an
indeterminate progress bar keeps its range and leaves out now).hidden holds (TS: accessibilityElementsHidden): what a
control shows of a value that another element of it tells screen
readers already (a one-time-code input’s cells, whose text field
says the code).Source§fn accessibility_actions(
self,
actions: impl IntoReactive<Vec<AccessibilityActionDef>>,
) -> Self
fn accessibility_actions( self, actions: impl IntoReactive<Vec<AccessibilityActionDef>>, ) -> Self
accessibilityActions): increment and decrement for an
adjustable element, activate, longpress, or the app’s own with
a label; Interactive::on_accessibility_action hears them.
Bound to signals, the labels follow them in place (the interface’s
language): the element and the screen reader’s focus on it stay,
and the names its handler hears do not change.Source§impl Element for Input
impl Element for Input
Source§fn key(self, key: impl Into<SharedString>) -> Self
fn key(self, key: impl Into<SharedString>) -> Self
Source§fn bind_opacity(self, value: &impl Animated) -> Self
fn bind_opacity(self, value: &impl Animated) -> Self
opacity to an animated value (it moves natively).Source§fn bind_background(self, value: &impl Animated) -> Self
fn bind_background(self, value: &impl Animated) -> Self
super::AnimatedNode::interpolate_colors).Source§fn bind_border_color(self, value: &impl Animated) -> Self
fn bind_border_color(self, value: &impl Animated) -> Self
Source§fn bind_color(self, value: &impl Animated) -> Self
fn bind_color(self, value: &impl Animated) -> Self
Source§fn bind(self, prop: AnimationProp, value: &impl Animated) -> Self
fn bind(self, prop: AnimationProp, value: &impl Animated) -> Self
prop (anything but a transform step or a canvas argument)
to an animated value (nothing once the value’s owner is gone).Source§fn bind_sticky_top(self, value: &impl Animated) -> Self
fn bind_sticky_top(self, value: &impl Animated) -> Self
super::Styled::sticky) sticks this animated value
from the top of the scroll view’s viewport, following it (below a
header that moves: header.add(8.0); TS: top set to an animated
value).Source§fn bind_sticky_left(self, value: &impl Animated) -> Self
fn bind_sticky_left(self, value: &impl Animated) -> Self
Self::bind_sticky_top in a horizontal scroll view.Source§fn bind_transform(self, kind: TransformKind, value: &impl Animated) -> Self
fn bind_transform(self, kind: TransformKind, value: &impl Animated) -> Self
Source§fn bind_motion(self, motion: &Motion) -> Self
fn bind_motion(self, motion: &Motion) -> Self
scale folded into scale_x and scale_y).Source§fn bind_translate_x(self, value: &impl Animated) -> Self
fn bind_translate_x(self, value: &impl Animated) -> Self
Source§fn bind_translate_y(self, value: &impl Animated) -> Self
fn bind_translate_y(self, value: &impl Animated) -> Self
Source§fn bind_scale(self, value: &impl Animated) -> Self
fn bind_scale(self, value: &impl Animated) -> Self
Source§fn bind_rotate(self, value: &impl Animated) -> Self
fn bind_rotate(self, value: &impl Animated) -> Self
Source§fn element_ref(self, handle: &ElementRef) -> Self
fn element_ref(self, handle: &ElementRef) -> Self
handle on this element: its commands (focus, scroll_to)
go here (nothing once the ref’s owner is gone).Source§fn inset_padding(self, insets: impl IntoReactive<EdgeInsets>) -> Self
fn inset_padding(self, insets: impl IntoReactive<EdgeInsets>) -> Self
Source§fn inset_margin(self, insets: impl IntoReactive<EdgeInsets>) -> Self
fn inset_margin(self, insets: impl IntoReactive<EdgeInsets>) -> Self
Source§fn inline_style(self, style: impl IntoReactive<Style>) -> Self
fn inline_style(self, style: impl IntoReactive<Style>) -> Self
Style, React
Native’s names), over the element’s styles.Source§fn state_inline_style(self, style: impl Fn() -> Style + 'static) -> Self
fn state_inline_style(self, style: impl Fn() -> Style + 'static) -> Self
Self::inline_style for a style that changes with the
component’s own state (a popup’s popupEndingStyle over its
popupStyle, Style::then): the typed styles it has at any time
apply, also those it has only later.Source§fn selectable(self, area: impl IntoReactive<bool>) -> Self
fn selectable(self, area: impl IntoReactive<bool>) -> Self
<View selectable>): a selection runs from text to text,
across views and TextViews; texts that are not selectable stay
out of it (crate::selection).Source§fn selection_color(self, color: impl IntoReactive<Hsla>) -> Self
fn selection_color(self, color: impl IntoReactive<Hsla>) -> Self
selection:bg-* class
(Tailwind’s & *::selection): the nearest view around a text that
sets one decides, a text’s or an input’s own color wins. Android
tints the selection handles of a selectable view
(Self::selectable) and of an input in it too.Self::selectable; TSX selectionMenu): shown after the
system’s own (Copy, Select All, Look Up, Share…), which stay, in
iOS’s edit menu (iOS 16 and later), Android’s floating text actions
and the desktops’ secondary-click menu; the web shows the browser’s
menu alone. Each item’s
MenuItem::on_select runs
when it is chosen; the selected text is the one
Interactive::on_text_selection_change last reported. Plain items
and separators only: submenus, roles, shortcuts and check marks are
left out. The outermost selectable view’s items are the selection’s. Read moreSource§fn continues_text(self, continues: impl IntoReactive<bool>) -> Self
fn continues_text(self, continues: impl IntoReactive<bool>) -> Self
DiffView’s soft wrap). In a selectable view
(Self::selectable) a copy joins the parts with nothing between
them, as the one line they are, and a double or triple click
selects a word or the whole line across them
(crate::selection::SelectionTexts::continues). Off by default.Source§fn copy_text(self, text: impl IntoReactive<SharedString>) -> Self
fn copy_text(self, text: impl IntoReactive<SharedString>) -> Self
copyText): an inline formula’s source
($x^2$), an emoji image’s character. Selecting across the view
and copying puts this where it is, as a browser copies an inline
image’s alt. Unset, the view adds nothing to the copy; a view
outside a text and a nested text span (whose characters are copied
themselves) ignore it. Screen readers keep reading the view’s
Accessible::label. Read moreSource§fn app_class(self, class: impl IntoReactive<Option<SharedString>>) -> Self
fn app_class(self, class: impl IntoReactive<Option<SharedString>>) -> Self
classes={{ heading: "text-2xl" }}),
after the element’s own styles, as the app’s class on a
component’s root is: at equal rank they win.Source§impl Interactive for Input
impl Interactive for Input
Source§fn tooltip(self, tooltip: impl IntoTooltip) -> Self
fn tooltip(self, tooltip: impl IntoTooltip) -> Self
nsh_base’s Tooltip is the tooltip
itself, with its own placement, delay and reports.Source§fn on_file_drag_enter<M>(
self,
listener: impl IntoListener<FileDragEvent, M>,
) -> Self
fn on_file_drag_enter<M>( self, listener: impl IntoListener<FileDragEvent, M>, ) -> Self
Source§fn on_file_drag_leave<M>(self, listener: impl IntoListener<(), M>) -> Self
fn on_file_drag_leave<M>(self, listener: impl IntoListener<(), M>) -> Self
Source§fn on_file_drop<M>(self, listener: impl IntoListener<FileDropEvent, M>) -> Self
fn on_file_drop<M>(self, listener: impl IntoListener<FileDropEvent, M>) -> Self
Source§fn on_mouse_enter<M>(self, listener: impl IntoListener<MouseEvent, M>) -> Self
fn on_mouse_enter<M>(self, listener: impl IntoListener<MouseEvent, M>) -> Self
mouseenter).Source§fn on_mouse_leave<M>(self, listener: impl IntoListener<MouseEvent, M>) -> Self
fn on_mouse_leave<M>(self, listener: impl IntoListener<MouseEvent, M>) -> Self
mouseleave).Source§fn on_mouse_move<M>(self, listener: impl IntoListener<MouseEvent, M>) -> Self
fn on_mouse_move<M>(self, listener: impl IntoListener<MouseEvent, M>) -> Self
MouseEvent::pressed_button), or a modifier key
changed while it rests there with none down: where, in it and in its
root view, at most once per frame.Source§fn on_wheel<M>(self, listener: impl IntoListener<WheelEvent, M>) -> Self
fn on_wheel<M>(self, listener: impl IntoListener<WheelEvent, M>) -> Self
WheelEvent::delta, lines or points), where and
with which modifier keys. The nearest element that listens hears it;
when it is nearer than any scroll view under the pointer it takes
the wheel and nothing scrolls natively (a canvas zooming on
Control + wheel and panning otherwise); a scroll view listening, or
an element around one, only observes it.Source§fn on_pinch<M>(self, listener: impl IntoListener<PinchEvent, M>) -> Self
fn on_pinch<M>(self, listener: impl IntoListener<PinchEvent, M>) -> Self
on_pinch: by how much the scale changed since the last event
(PinchEvent::delta), in which phase, where and with which
modifier keys (macOS, Linux, GPUI and Safari; Windows and the other
browsers report a touchpad pinch as Control + wheel, which
Self::on_wheel hears). The nearest element that listens hears
it; when it is nearer than any view that pinches natively it takes
the pinch and nothing zooms natively; a pinch stays on the element
its start went to. A pinch of fingers on a touchscreen is
Self::on_pinch_start’s.Source§fn on_mouse_up<M>(self, listener: impl IntoListener<MouseEvent, M>) -> Self
fn on_mouse_up<M>(self, listener: impl IntoListener<MouseEvent, M>) -> Self
button), where, and with the modifier keys. The primary
button’s release also reports Self::on_press_up (the DOM’s
mouseup).Source§fn on_key_down<M>(self, listener: impl IntoListener<KeyEvent, M>) -> Self
fn on_key_down<M>(self, listener: impl IntoListener<KeyEvent, M>) -> Self
code and
the modifiers and repeat state; returning from a listener cannot
change handling. KeyEvent::default_prevented reports the
decision made from Self::capture_keys. Notifications bubble to
enabled listening ancestors within the native window; named
shortcuts keep their priority.Source§fn on_key_up<M>(self, listener: impl IntoListener<KeyEvent, M>) -> Self
fn on_key_up<M>(self, listener: impl IntoListener<KeyEvent, M>) -> Self
Self::on_key_down
does. A real release the source reports reaches the focused view
even when its press went elsewhere; a window that loses the focus
invents no releases.Source§fn capture_keys(self, capture: impl IntoReactive<KeyCapture>) -> Self
fn capture_keys(self, capture: impl IntoReactive<KeyCapture>) -> Self
crate::keymap::Keystrokes, matched against
the transition’s canonical shortcut stroke (the backend’s own
matcher, not KeyEvent’s key or code); eligible app
shortcuts and focused native inputs keep priority. Defaults to
KeyCapture::None; removing the prop restores it.page_x, page_y). The nearest element that listens hears it;
a text input or selectable text nearer shows its own menu instead.Source§fn on_text_selection_change<M>(
self,
listener: impl IntoListener<TextSelectionEvent, M>,
) -> Self
fn on_text_selection_change<M>( self, listener: impl IntoListener<TextSelectionEvent, M>, ) -> Self
Self::selectable]) changed: the selected text, as a copy gives
it, empty once nothing is selected, where it starts in the view’s
whole text, the box around it in the view and in its root view, and
the list items its ends are in (TSX onSelectionChange of a
<View selectable>, { text, start, bounds, pageBounds, anchor, focus }). Only the outermost selectable view of an area
reports it; an Input’s own selection is its
on_selection_change.Source§fn on_focus<M>(self, listener: impl IntoListener<(), M>) -> Self
fn on_focus<M>(self, listener: impl IntoListener<(), M>) -> Self
focus()) on the platforms that move the focus
between pressables.Source§fn on_blur<M>(self, listener: impl IntoListener<(), M>) -> Self
fn on_blur<M>(self, listener: impl IntoListener<(), M>) -> Self
Source§fn on_press<M>(self, listener: impl IntoListener<PressEvent, M>) -> Self
fn on_press<M>(self, listener: impl IntoListener<PressEvent, M>) -> Self
move || .., or move |e: &PressEvent| .. for
where the pointer was, the modifier keys held and the click count
(e.modifiers.shift for a Shift-click). A press from the keyboard or
an assistive technology, and backends that do not report one, give
PressEvent::default.Source§fn on_long_press<M>(self, listener: impl IntoListener<PressEvent, M>) -> Self
fn on_long_press<M>(self, listener: impl IntoListener<PressEvent, M>) -> Self
Source§fn on_press_down<M>(self, listener: impl IntoListener<PressEvent, M>) -> Self
fn on_press_down<M>(self, listener: impl IntoListener<PressEvent, M>) -> Self
Source§fn on_press_up<M>(self, listener: impl IntoListener<PressEvent, M>) -> Self
fn on_press_up<M>(self, listener: impl IntoListener<PressEvent, M>) -> Self
Source§fn on_layout<M>(self, listener: impl IntoListener<Bounds<Points>, M>) -> Self
fn on_layout<M>(self, listener: impl IntoListener<Bounds<Points>, M>) -> Self
Source§fn on_touch<M>(self, listener: impl IntoListener<TouchEvent, M>) -> Self
fn on_touch<M>(self, listener: impl IntoListener<TouchEvent, M>) -> Self
Interactive::claim_touches).Source§fn claim_touches(self, claim: TouchClaim) -> Self
fn claim_touches(self, claim: TouchClaim) -> Self
claim says (TS:
onStartShouldSetResponder, PanResponder): as the responder it
hears them alone (on_responder_*), and native scroll views around
it stop taking them over. Several claims may be given.Source§fn pan_activation(self, activation: PanActivation) -> Self
fn pan_activation(self, activation: PanActivation) -> Self
panActivation), decided on the main
thread as the finger moves: its native pan (pan_values,
on_pan_start) starts then, and only then, so a drawer’s pan that
opens it to the right leaves the drags to the left to its content
(PanActivation::default().direction(PanDirection::Right)), and
one from the screen’s edge takes only those
(PanActivation::default().edge(PanEdge::Left)). A claim on the pan
(TouchClaim::on_pan) sets it too.Source§fn keep_touches(self, keep: bool) -> Self
fn keep_touches(self, keep: bool) -> Self
onResponderTerminationRequest
returning false); a native scroll view that started dragging first
still takes them.Source§fn on_responder_grant<M>(
self,
listener: impl IntoListener<ResponderEvent, M>,
) -> Self
fn on_responder_grant<M>( self, listener: impl IntoListener<ResponderEvent, M>, ) -> Self
onResponderGrant).Source§fn on_responder_reject<M>(
self,
listener: impl IntoListener<ResponderEvent, M>,
) -> Self
fn on_responder_reject<M>( self, listener: impl IntoListener<ResponderEvent, M>, ) -> Self
onResponderReject).Source§fn on_responder_start<M>(
self,
listener: impl IntoListener<ResponderEvent, M>,
) -> Self
fn on_responder_start<M>( self, listener: impl IntoListener<ResponderEvent, M>, ) -> Self
onResponderStart).Source§fn on_responder_move<M>(
self,
listener: impl IntoListener<ResponderEvent, M>,
) -> Self
fn on_responder_move<M>( self, listener: impl IntoListener<ResponderEvent, M>, ) -> Self
onResponderMove).Source§fn on_responder_end<M>(
self,
listener: impl IntoListener<ResponderEvent, M>,
) -> Self
fn on_responder_end<M>( self, listener: impl IntoListener<ResponderEvent, M>, ) -> Self
onResponderEnd).Source§fn on_responder_release<M>(
self,
listener: impl IntoListener<ResponderEvent, M>,
) -> Self
fn on_responder_release<M>( self, listener: impl IntoListener<ResponderEvent, M>, ) -> Self
onResponderRelease).Source§fn on_responder_terminate<M>(
self,
listener: impl IntoListener<ResponderEvent, M>,
) -> Self
fn on_responder_terminate<M>( self, listener: impl IntoListener<ResponderEvent, M>, ) -> Self
onResponderTerminate).Source§fn pan_values(
self,
x: Option<&AnimatedValue>,
y: Option<&AnimatedValue>,
) -> Self
fn pan_values( self, x: Option<&AnimatedValue>, y: Option<&AnimatedValue>, ) -> Self
on_pan_end reports where they
ended, to spring them on.Source§fn pan_enabled(self, enabled: impl IntoReactive<bool>) -> Self
fn pan_enabled(self, enabled: impl IntoReactive<bool>) -> Self
Source§fn pan_scroll_handoff(self, enabled: impl IntoReactive<bool>) -> Self
fn pan_scroll_handoff(self, enabled: impl IntoReactive<bool>) -> Self
on_pan_start waits until that distance moves its values.
Other platforms keep their normal pan and scroll arbitration.Source§fn pinch_value(self, scale: &AnimatedValue) -> Self
fn pinch_value(self, scale: &AnimatedValue) -> Self
scale natively (multiplying the value it
has when the pinch starts; TS: pinch={{ scale }}); bind it to its
transform (Element::bind_scale). on_pinch_start /
on_pinch_end report the pinches.Source§fn rotation_value(self, angle: &AnimatedValue) -> Self
fn rotation_value(self, angle: &AnimatedValue) -> Self
angle natively, in degrees (added to
the value it has when the rotation starts; TS: rotation={{ angle }}); bind it to its transform (Element::bind_rotate).Source§fn on_pan_start<M>(self, listener: impl IntoListener<PanEvent, M>) -> Self
fn on_pan_start<M>(self, listener: impl IntoListener<PanEvent, M>) -> Self
Source§fn on_pan_end<M>(self, listener: impl IntoListener<PanEvent, M>) -> Self
fn on_pan_end<M>(self, listener: impl IntoListener<PanEvent, M>) -> Self
Source§fn on_pinch_start<M>(self, listener: impl IntoListener<GestureEvent, M>) -> Self
fn on_pinch_start<M>(self, listener: impl IntoListener<GestureEvent, M>) -> Self
Source§fn on_pinch_end<M>(self, listener: impl IntoListener<GestureEvent, M>) -> Self
fn on_pinch_end<M>(self, listener: impl IntoListener<GestureEvent, M>) -> Self
Source§fn on_rotation_start<M>(
self,
listener: impl IntoListener<GestureEvent<Radians>, M>,
) -> Self
fn on_rotation_start<M>( self, listener: impl IntoListener<GestureEvent<Radians>, M>, ) -> Self
Source§fn on_rotation_end<M>(
self,
listener: impl IntoListener<GestureEvent<Radians>, M>,
) -> Self
fn on_rotation_end<M>( self, listener: impl IntoListener<GestureEvent<Radians>, M>, ) -> Self
Source§fn on_accessibility_action<M>(self, listener: impl IntoListener<str, M>) -> Self
fn on_accessibility_action<M>(self, listener: impl IntoListener<str, M>) -> Self
Source§fn on<M>(
self,
kind: EventKind,
listener: impl IntoListener<EventPayload, M>,
) -> Self
fn on<M>( self, kind: EventKind, listener: impl IntoListener<EventPayload, M>, ) -> Self
kind with its raw payload (the element
listens to it).Source§fn hit_slop(self, insets: impl IntoReactive<EdgeInsets>) -> Self
fn hit_slop(self, insets: impl IntoReactive<EdgeInsets>) -> Self
Source§fn long_press_delay(self, ms: f32) -> Self
fn long_press_delay(self, ms: f32) -> Self
Source§fn backdrop_material(self, material: BackdropMaterial) -> Self
fn backdrop_material(self, material: BackdropMaterial) -> Self
Source§fn scroll_edge_element(
self,
scroll_view: impl IntoReactive<Option<ElementRef>>,
edge: ScrollEdge,
) -> Self
fn scroll_edge_element( self, scroll_view: impl IntoReactive<Option<ElementRef>>, edge: ScrollEdge, ) -> Self
ios={{ scrollEdgeElement }}): a bottom toolbar, a floating button
placed over a list. From iOS 26 the scroll edge effect of that
scroll view takes its shape from what the view shows, as it does
from a bar, so the content scrolled under it fades out instead of
being cut by it. Elsewhere a fade the app draws under the view
gives the same separation. None names none.Source§fn macos_backdrop(
self,
backdrop: impl IntoReactive<Option<MacOsBackdrop>>,
) -> Self
fn macos_backdrop( self, backdrop: impl IntoReactive<Option<MacOsBackdrop>>, ) -> Self
macos={{ backdrop }}): an NSVisualEffectView, or none.Source§fn windows_backdrop(
self,
backdrop: impl IntoReactive<Option<WindowsBackdrop>>,
) -> Self
fn windows_backdrop( self, backdrop: impl IntoReactive<Option<WindowsBackdrop>>, ) -> Self
windows={{ backdrop }}), or none.Source§fn web_element(self, element: WebElement) -> Self
fn web_element(self, element: WebElement) -> Self
role cannot say it: headings are
role(AccessibilityRole::Header) with a level, links Links. The
other platforms ignore it.Source§fn window_drag(self, enabled: impl IntoReactive<bool>) -> Self
fn window_drag(self, enabled: impl IntoReactive<bool>) -> Self
Source§fn window_control(self, control: WindowControl) -> Self
fn window_control(self, control: WindowControl) -> Self
desktop={{ windowControl }}): the platform hit-tests
it as that button (the snap layouts over a maximize button on
Windows) and carries out its press.Source§fn window_resize(self, edge: ResizeEdge) -> Self
fn window_resize(self, edge: ResizeEdge) -> Self
edge (TS:
desktop={{ windowResize }}).Source§fn focusable(self, focusable: impl IntoReactive<bool>) -> Self
fn focusable(self, focusable: impl IntoReactive<bool>) -> Self
on_focus / on_blur and the
keymap, without taking the presses of a pressable around it); false
leaves a view that takes presses to the pointer, as a backdrop that
closes a popover is. Unset, the views that take presses are stops
(crate::ViewProps::focus_stop).Source§fn native_id(self, id: &str) -> Self
fn native_id(self, id: &str) -> Self
nativeID: names the view for others: inputs find an input accessory
by it, and the embedding app a scroll view it watches (watchScroll).Source§fn active(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn active(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
Source§fn hover(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn hover(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
Source§fn focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
Source§fn focus_visible(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn focus_visible( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
focus-visible:;
TS: focusVisibleStyle): the keyboard moved the focus there, or it
is an input that edits. Focus a press gave shows Self::focus’s
styles only: the ring for keyboard users goes here.Source§fn focus_within(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn focus_within( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
focus-within:; TS: focusWithinStyle): a field’s frame ringed
while the input in it edits. An overlay’s content is inside the
element the overlay is in.Source§fn disabled_style(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn disabled_style( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
Interactive::disabled (Tailwind’s disabled:).Source§fn disabled(self, disabled: impl IntoReactive<bool>) -> Self
fn disabled(self, disabled: impl IntoReactive<bool>) -> Self
Source§fn selected_style(self, style: impl IntoReactive<Style>) -> Self
fn selected_style(self, style: impl IntoReactive<Style>) -> Self
accessibility_state selected;
TS: a Button’s selectedStyle), as selected: classes apply.Source§fn checked_style(self, style: impl IntoReactive<Style>) -> Self
fn checked_style(self, style: impl IntoReactive<Style>) -> Self
accessibility_state checked, not
mixed: a checkbox’s, a switch’s, a radio’s), as checked: classes
apply.Source§fn indeterminate_style(self, style: impl IntoReactive<Style>) -> Self
fn indeterminate_style(self, style: impl IntoReactive<Style>) -> Self
accessibility_state checked
mixed: a checkbox’s indeterminate), as indeterminate: classes
apply.Source§fn expanded_style(self, style: impl IntoReactive<Style>) -> Self
fn expanded_style(self, style: impl IntoReactive<Style>) -> Self
accessibility_state expanded: a
Popover’s or Menu’s trigger while its popup is open), as
aria-expanded: classes apply.Source§fn pressed_style(self, style: impl IntoReactive<Style>) -> Self
fn pressed_style(self, style: impl IntoReactive<Style>) -> Self
accessibility_state
pressed, not mixed), as aria-pressed: classes apply. Not
.active(..), a press in progress.Source§fn project_checked(self, checked: impl IntoReactive<bool>) -> Self
fn project_checked(self, checked: impl IntoReactive<bool>) -> Self
checked holds (its checked: classes
and Self::checked_style), as a part of a control that is: a
switch’s track and thumb, a checkbox’s mark (gpui-base’s
SwitchThumb::new(checked)). Screen readers hear it from the
control alone, so the part is no second checkable element.Source§fn project_indeterminate(self, indeterminate: impl IntoReactive<bool>) -> Self
fn project_indeterminate(self, indeterminate: impl IntoReactive<bool>) -> Self
indeterminate holds (its
indeterminate: classes and Self::indeterminate_style), as a
part of a control that is: a checkbox’s indicator (gpui-base’s
CheckboxIndicator::state(CheckboxState::Indeterminate)). Screen
readers hear it from the control alone.Source§fn project_disabled(self, disabled: impl IntoReactive<bool>) -> Self
fn project_disabled(self, disabled: impl IntoReactive<bool>) -> Self
disabled holds (its disabled:
classes and Self::disabled_style), as a part of a disabled
control (gpui-base’s SwitchThumb::disabled). The control takes
no presses and tells screen readers; the part keeps its own.Source§fn project_hovered(self, hovered: impl IntoReactive<bool>) -> Self
fn project_hovered(self, hovered: impl IntoReactive<bool>) -> Self
hovered holds (its hover: classes,
and the group-hover: classes inside it when it is a group), as a
part whose hovers a component’s hit layer over it takes: a table’s
row while the pointer is over it anywhere. Its mouse events stay the
hit layer’s.Source§fn project_focused(self, focused: impl IntoReactive<bool>) -> Self
fn project_focused(self, focused: impl IntoReactive<bool>) -> Self
focused holds (its focus: classes
and focus styles), as the part the keyboard is on inside a control
that keeps the focus itself: the cell of a one-time-code input that
takes the next character, the highlighted option of a list (NSH
has no active descendant). The platform’s focus stays where it is.
While the focus shows (the control’s focus-visible:) the part
shows it too, so focus-visible: on it is the cursor the keyboard
moves and stays off after a press.Source§fn project_group_active(self, group: &'static str) -> Self
fn project_group_active(self, group: &'static str) -> Self
group around it is (its
active: classes and Self::active styles), as a part of a
control held down: a switch’s thumb that stretches while the switch
is held. The press is the group’s as the platform reports it, the
one the group’s own active: follows: it holds while the pointer is
down and ends on release or cancel. Its styles change as for any
other state: transition-* animates what it animates (a transform,
colors, opacity), and layout (a width) changes at once. Screen
readers hear nothing of it; the control takes the presses.Source§fn project_data(self, name: &'static str, on: impl IntoReactive<bool>) -> Self
fn project_data(self, name: &'static str, on: impl IntoReactive<bool>) -> Self
data-* attribute name (without data-)
while on holds, as Tailwind’s data-<name>: variant reads it: its
data-<name>: classes apply, and with group the
group-data-<name>: classes inside it (a calendar’s day at the
start of a range: project_data("range-start", ..)). For what a
component’s part shows beyond the states screen readers hear; the
attribute tells them nothing. A view whose classes read none of its
attributes sends nothing when they change.Source§impl IntoElement for Input
impl IntoElement for Input
Source§fn into_element(self) -> AnyElement
fn into_element(self) -> AnyElement
impl IntoTooltip for Input
Auto Trait Implementations§
impl !RefUnwindSafe for Input
impl !Send for Input
impl !Sync for Input
impl !UnwindSafe for Input
impl Forget for Input
impl Freeze for Inputwhere
&'static str: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const RcInner<StylePatch> is !null: Freeze,
PhantomData<RcInner<StylePatch>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Prop>: Freeze,
*const RareAttrs is !null: Freeze,
PhantomData<RareAttrs>: Freeze,
*const RcInner<Vec<(Variant, Declaration)>> is !null: Freeze,
PhantomData<RcInner<Vec<(Variant, Declaration)>>>: Freeze,
PhantomData<&'static str>: Freeze,
PhantomData<Rc<dyn Fn(&mut StyleRefinement)>>: Freeze,
PhantomData<(EventKind, Listener<EventPayload>)>: Freeze,
*const RcInner<ResponderEl> is !null: Freeze,
PhantomData<RcInner<ResponderEl>>: Freeze,
PhantomData<ElNode>: Freeze,
*const RcInner<dyn Fn(Child, Position) -> AnyElement> is !null: Freeze,
PhantomData<RcInner<dyn Fn(Child, Position) -> AnyElement>>: Freeze,
*const ListEl is !null: Freeze,
PhantomData<ListEl>: Freeze,
*const VirtualListEl is !null: Freeze,
PhantomData<VirtualListEl>: Freeze,
*const dyn AnyProps is !null: Freeze,
PhantomData<dyn AnyProps>: Freeze,
PhantomData<Listener<dyn Any>>: Freeze,
*const (): Freeze,
*const RcInner<dyn Fn() -> Vec<AnyElement>> is !null: Freeze,
PhantomData<RcInner<dyn Fn() -> Vec<AnyElement>>>: Freeze,
*const RcInner<dyn Fn() -> bool> is !null: Freeze,
PhantomData<RcInner<dyn Fn() -> bool>>: Freeze,
*const RcInner<dyn EachRows> is !null: Freeze,
PhantomData<RcInner<dyn EachRows>>: Freeze,
*const RcInner<dyn Fn(ComponentError, Reset) -> Vec<AnyElement>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(ComponentError, Reset) -> Vec<AnyElement>>>: Freeze,
*const RcInner<dyn Fn() -> SharedString> is !null: Freeze,
PhantomData<RcInner<dyn Fn() -> SharedString>>: Freeze,
PhantomData<Rc<dyn Fn(&mut Attrs)>>: Freeze,
PhantomData<Rc<dyn Fn(&mut ListConfig)>>: Freeze,
impl Move for Input
impl Unpin for Inputwhere
&'static str: Unpin,
Arc<str>: Unpin,
Rc<StylePatch>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Rc<dyn Any>: Unpin,
Arc<Program>: Unpin,
Arc<dyn Any + Sync + Send>: Unpin,
Rc<Target>: Unpin,
Arc<dyn AsRef<[u8]> + Sync + Send>: Unpin,
Arc<Rgba>: Unpin,
Arc<Value>: Unpin,
Rc<ListDiff>: Unpin,
Box<str>: Unpin,
Box<[&'static str]>: Unpin,
Rc<ClassList>: Unpin,
Arc<Keymap>: Unpin,
Arc<[Keystroke]>: Unpin,
Arc<dyn Fn(WebResourceRequest) + Sync + Send>: Unpin,
Box<RareAttrs>: Unpin,
Rc<Vec<(Variant, Declaration)>>: Unpin,
Rc<dyn Fn(&mut StyleRefinement)>: Unpin,
Rc<dyn Fn(&EventPayload)>: Unpin,
Rc<ResponderEl>: Unpin,
Rc<dyn Fn(Child, Position) -> AnyElement>: Unpin,
Box<ListEl>: Unpin,
Box<VirtualListEl>: Unpin,
Box<dyn AnyProps>: Unpin,
Rc<dyn Fn(&(dyn Any + 'static))>: Unpin,
*const (): Unpin,
Rc<dyn Fn() -> Vec<AnyElement>>: Unpin,
Rc<dyn Fn() -> bool>: Unpin,
Rc<dyn EachRows>: Unpin,
Rc<dyn Fn(ComponentError, Reset) -> Vec<AnyElement>>: Unpin,
Rc<dyn Fn() -> SharedString>: Unpin,
Rc<dyn Fn(&mut Attrs)>: Unpin,
Rc<dyn Fn(&mut ListConfig)>: Unpin,
impl UnsafeUnpin for Inputwhere
&'static str: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const RcInner<StylePatch> is !null: UnsafeUnpin,
PhantomData<RcInner<StylePatch>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Prop>: UnsafeUnpin,
*const RareAttrs is !null: UnsafeUnpin,
PhantomData<RareAttrs>: UnsafeUnpin,
*const RcInner<Vec<(Variant, Declaration)>> is !null: UnsafeUnpin,
PhantomData<RcInner<Vec<(Variant, Declaration)>>>: UnsafeUnpin,
PhantomData<&'static str>: UnsafeUnpin,
PhantomData<Rc<dyn Fn(&mut StyleRefinement)>>: UnsafeUnpin,
PhantomData<(EventKind, Listener<EventPayload>)>: UnsafeUnpin,
*const RcInner<ResponderEl> is !null: UnsafeUnpin,
PhantomData<RcInner<ResponderEl>>: UnsafeUnpin,
PhantomData<ElNode>: UnsafeUnpin,
*const RcInner<dyn Fn(Child, Position) -> AnyElement> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(Child, Position) -> AnyElement>>: UnsafeUnpin,
*const ListEl is !null: UnsafeUnpin,
PhantomData<ListEl>: UnsafeUnpin,
*const VirtualListEl is !null: UnsafeUnpin,
PhantomData<VirtualListEl>: UnsafeUnpin,
*const dyn AnyProps is !null: UnsafeUnpin,
PhantomData<dyn AnyProps>: UnsafeUnpin,
PhantomData<Listener<dyn Any>>: UnsafeUnpin,
*const (): UnsafeUnpin,
*const RcInner<dyn Fn() -> Vec<AnyElement>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn() -> Vec<AnyElement>>>: UnsafeUnpin,
*const RcInner<dyn Fn() -> bool> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn() -> bool>>: UnsafeUnpin,
*const RcInner<dyn EachRows> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn EachRows>>: UnsafeUnpin,
*const RcInner<dyn Fn(ComponentError, Reset) -> Vec<AnyElement>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(ComponentError, Reset) -> Vec<AnyElement>>>: UnsafeUnpin,
*const RcInner<dyn Fn() -> SharedString> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn() -> SharedString>>: UnsafeUnpin,
PhantomData<Rc<dyn Fn(&mut Attrs)>>: UnsafeUnpin,
PhantomData<Rc<dyn Fn(&mut ListConfig)>>: UnsafeUnpin,
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<T> FluentBuilder for Twhere
T: Element,
impl<T> FluentBuilder for Twhere
T: Element,
Source§impl<T> IntoElements for Twhere
T: IntoElement,
impl<T> IntoElements for Twhere
T: IntoElement,
Source§fn into_elements(self) -> Vec<AnyElement>
fn into_elements(self) -> Vec<AnyElement>
Source§impl<T> Styled for Twhere
T: Element,
impl<T> Styled for Twhere
T: Element,
Source§fn style(&mut self) -> &mut StyleRefinement
fn style(&mut self) -> &mut StyleRefinement
Source§fn p(self, length: impl IntoReactive<Length>) -> Self
fn p(self, length: impl IntoReactive<Length>) -> Self
Source§fn px(self, length: impl IntoReactive<Length>) -> Self
fn px(self, length: impl IntoReactive<Length>) -> Self
Source§fn py(self, length: impl IntoReactive<Length>) -> Self
fn py(self, length: impl IntoReactive<Length>) -> Self
Source§fn pt(self, length: impl IntoReactive<Length>) -> Self
fn pt(self, length: impl IntoReactive<Length>) -> Self
Source§fn pr(self, length: impl IntoReactive<Length>) -> Self
fn pr(self, length: impl IntoReactive<Length>) -> Self
Source§fn pb(self, length: impl IntoReactive<Length>) -> Self
fn pb(self, length: impl IntoReactive<Length>) -> Self
Source§fn pl(self, length: impl IntoReactive<Length>) -> Self
fn pl(self, length: impl IntoReactive<Length>) -> Self
Source§fn ps(self, length: impl IntoReactive<Length>) -> Self
fn ps(self, length: impl IntoReactive<Length>) -> Self
Source§fn pe(self, length: impl IntoReactive<Length>) -> Self
fn pe(self, length: impl IntoReactive<Length>) -> Self
Source§fn m(self, length: impl IntoReactive<Length>) -> Self
fn m(self, length: impl IntoReactive<Length>) -> Self
Source§fn mx(self, length: impl IntoReactive<Length>) -> Self
fn mx(self, length: impl IntoReactive<Length>) -> Self
Source§fn my(self, length: impl IntoReactive<Length>) -> Self
fn my(self, length: impl IntoReactive<Length>) -> Self
Source§fn mt(self, length: impl IntoReactive<Length>) -> Self
fn mt(self, length: impl IntoReactive<Length>) -> Self
Source§fn mr(self, length: impl IntoReactive<Length>) -> Self
fn mr(self, length: impl IntoReactive<Length>) -> Self
Source§fn mb(self, length: impl IntoReactive<Length>) -> Self
fn mb(self, length: impl IntoReactive<Length>) -> Self
Source§fn ml(self, length: impl IntoReactive<Length>) -> Self
fn ml(self, length: impl IntoReactive<Length>) -> Self
Source§fn ms(self, length: impl IntoReactive<Length>) -> Self
fn ms(self, length: impl IntoReactive<Length>) -> Self
Source§fn me(self, length: impl IntoReactive<Length>) -> Self
fn me(self, length: impl IntoReactive<Length>) -> Self
Source§fn gap(self, length: impl IntoReactive<Length>) -> Self
fn gap(self, length: impl IntoReactive<Length>) -> Self
Source§fn gap_x(self, length: impl IntoReactive<Length>) -> Self
fn gap_x(self, length: impl IntoReactive<Length>) -> Self
Source§fn gap_y(self, length: impl IntoReactive<Length>) -> Self
fn gap_y(self, length: impl IntoReactive<Length>) -> Self
Source§fn w(self, length: impl IntoReactive<Length>) -> Self
fn w(self, length: impl IntoReactive<Length>) -> Self
Source§fn h(self, length: impl IntoReactive<Length>) -> Self
fn h(self, length: impl IntoReactive<Length>) -> Self
Source§fn size(self, length: impl IntoReactive<Length>) -> Self
fn size(self, length: impl IntoReactive<Length>) -> Self
Source§fn min_w(self, length: impl IntoReactive<Length>) -> Self
fn min_w(self, length: impl IntoReactive<Length>) -> Self
Source§fn min_h(self, length: impl IntoReactive<Length>) -> Self
fn min_h(self, length: impl IntoReactive<Length>) -> Self
Source§fn max_w(self, length: impl IntoReactive<Length>) -> Self
fn max_w(self, length: impl IntoReactive<Length>) -> Self
Source§fn max_h(self, length: impl IntoReactive<Length>) -> Self
fn max_h(self, length: impl IntoReactive<Length>) -> Self
Source§fn top(self, length: impl IntoReactive<Length>) -> Self
fn top(self, length: impl IntoReactive<Length>) -> Self
Source§fn right(self, length: impl IntoReactive<Length>) -> Self
fn right(self, length: impl IntoReactive<Length>) -> Self
Source§fn bottom(self, length: impl IntoReactive<Length>) -> Self
fn bottom(self, length: impl IntoReactive<Length>) -> Self
Source§fn bottom_0p5(self) -> Self
fn bottom_0p5(self) -> Self
Source§fn bottom_1p5(self) -> Self
fn bottom_1p5(self) -> Self
Source§fn bottom_2p5(self) -> Self
fn bottom_2p5(self) -> Self
Source§fn bottom_3p5(self) -> Self
fn bottom_3p5(self) -> Self
Source§fn left(self, length: impl IntoReactive<Length>) -> Self
fn left(self, length: impl IntoReactive<Length>) -> Self
Source§fn inset(self, length: impl IntoReactive<Length>) -> Self
fn inset(self, length: impl IntoReactive<Length>) -> Self
Source§fn basis(self, length: impl IntoReactive<Length>) -> Self
fn basis(self, length: impl IntoReactive<Length>) -> Self
Source§fn p_safe_area(self) -> Self
fn p_safe_area(self) -> Self
padding: env(safe-area-inset-*)): the insets of its root
view (the surface’s safe area, a dialog’s, or a page’s below its
header).Source§fn px_safe_area(self) -> Self
fn px_safe_area(self) -> Self
Styled::p_safe_area).Source§fn py_safe_area(self) -> Self
fn py_safe_area(self) -> Self
Styled::p_safe_area).Source§fn pt_safe_area(self) -> Self
fn pt_safe_area(self) -> Self
padding-top: env(safe-area-inset-top), Styled::p_safe_area).Source§fn pt_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pt_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-top: calc(env(safe-area-inset-top) + <extra>)); extra is not negative.Source§fn pr_safe_area(self) -> Self
fn pr_safe_area(self) -> Self
padding-right: env(safe-area-inset-right), Styled::p_safe_area).Source§fn pr_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pr_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-right: calc(env(safe-area-inset-right) + <extra>)); extra is not negative.Source§fn pb_safe_area(self) -> Self
fn pb_safe_area(self) -> Self
padding-bottom: env(safe-area-inset-bottom), Styled::p_safe_area).Source§fn pb_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pb_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-bottom: calc(env(safe-area-inset-bottom) + <extra>)); extra is not negative.Source§fn pl_safe_area(self) -> Self
fn pl_safe_area(self) -> Self
padding-left: env(safe-area-inset-left), Styled::p_safe_area).Source§fn pl_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pl_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-left: calc(env(safe-area-inset-left) + <extra>)); extra is not negative.Source§fn pb_keyboard(self) -> Self
fn pb_keyboard(self) -> Self
padding-bottom: env(keyboard-inset-height)):
content kept above the keyboard, moving with it natively. For a
view that reaches the bottom of the surface.Source§fn pb_keyboard_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pb_keyboard_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-bottom: calc(env(keyboard-inset-height) + <extra>),
Styled::pb_keyboard); extra is not negative.Source§fn m_safe_area(self) -> Self
fn m_safe_area(self) -> Self
margin: env(safe-area-inset-*)): the insets of its root
view (the surface’s safe area, a dialog’s, or a page’s below its
header).Source§fn mx_safe_area(self) -> Self
fn mx_safe_area(self) -> Self
Styled::m_safe_area).Source§fn my_safe_area(self) -> Self
fn my_safe_area(self) -> Self
Styled::m_safe_area).Source§fn mt_safe_area(self) -> Self
fn mt_safe_area(self) -> Self
margin-top: env(safe-area-inset-top), Styled::m_safe_area).Source§fn mt_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn mt_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-top: calc(env(safe-area-inset-top) + <extra>)).Source§fn mr_safe_area(self) -> Self
fn mr_safe_area(self) -> Self
margin-right: env(safe-area-inset-right), Styled::m_safe_area).Source§fn mr_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn mr_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-right: calc(env(safe-area-inset-right) + <extra>)).Source§fn mb_safe_area(self) -> Self
fn mb_safe_area(self) -> Self
margin-bottom: env(safe-area-inset-bottom), Styled::m_safe_area).Source§fn mb_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn mb_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-bottom: calc(env(safe-area-inset-bottom) + <extra>)).Source§fn ml_safe_area(self) -> Self
fn ml_safe_area(self) -> Self
margin-left: env(safe-area-inset-left), Styled::m_safe_area).Source§fn ml_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn ml_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-left: calc(env(safe-area-inset-left) + <extra>)).Source§fn mb_keyboard(self) -> Self
fn mb_keyboard(self) -> Self
margin-bottom: env(keyboard-inset-height)):
content kept above the keyboard, moving with it natively. For a
view that reaches the bottom of the surface.Source§fn mb_keyboard_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn mb_keyboard_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-bottom: calc(env(keyboard-inset-height) + <extra>),
Styled::mb_keyboard).Source§fn flex(self) -> Self
fn flex(self) -> Self
display: flex, Tailwind’s flex). A view that sets no display
lays its children out in a column.Source§fn grid_cols(self, count: impl IntoReactive<u16>) -> Self
fn grid_cols(self, count: impl IntoReactive<u16>) -> Self
count equal grid columns (Tailwind’s grid-cols-3).Source§fn grid_rows(self, count: impl IntoReactive<u16>) -> Self
fn grid_rows(self, count: impl IntoReactive<u16>) -> Self
count equal grid rows.Source§fn grid_template_columns(self, tracks: impl IntoReactive<SharedString>) -> Self
fn grid_template_columns(self, tracks: impl IntoReactive<SharedString>) -> Self
"200px 1fr", "repeat(auto-fill, minmax(80px, 1fr))", line names).Source§fn grid_template_rows(self, tracks: impl IntoReactive<SharedString>) -> Self
fn grid_template_rows(self, tracks: impl IntoReactive<SharedString>) -> Self
Source§fn grid_flow_col(self) -> Self
fn grid_flow_col(self) -> Self
Source§fn grid_flow_dense(self) -> Self
fn grid_flow_dense(self) -> Self
Source§fn col_span(self, count: impl IntoReactive<u16>) -> Self
fn col_span(self, count: impl IntoReactive<u16>) -> Self
count columns wide.Source§fn row_span(self, count: impl IntoReactive<u16>) -> Self
fn row_span(self, count: impl IntoReactive<u16>) -> Self
count rows high.Source§fn col_span_full(self) -> Self
fn col_span_full(self) -> Self
Source§fn row_span_full(self) -> Self
fn row_span_full(self) -> Self
Source§fn col_start(self, line: impl IntoReactive<i16>) -> Self
fn col_start(self, line: impl IntoReactive<i16>) -> Self
line (1 is the first; negative from the
end).Source§fn col_end(self, line: impl IntoReactive<i16>) -> Self
fn col_end(self, line: impl IntoReactive<i16>) -> Self
line.Source§fn row_start(self, line: impl IntoReactive<i16>) -> Self
fn row_start(self, line: impl IntoReactive<i16>) -> Self
line.Source§fn row_end(self, line: impl IntoReactive<i16>) -> Self
fn row_end(self, line: impl IntoReactive<i16>) -> Self
line.Source§fn invisible(self) -> Self
fn invisible(self) -> Self
visibility: hidden, Tailwind’s invisible, GPUI’s Styled::invisible): it
keeps its place and frame, and takes no presses or keyboard focus.
On a text nested in another (a span), its characters keep their
place in the lines and are left out of copies and screen readers.Source§fn flex_row_reverse(self) -> Self
fn flex_row_reverse(self) -> Self
Source§fn flex_col_reverse(self) -> Self
fn flex_col_reverse(self) -> Self
Source§fn flex_grow(self, factor: impl IntoReactive<f32>) -> Self
fn flex_grow(self, factor: impl IntoReactive<f32>) -> Self
factor times as much as a sibling growing by 1
(flex-grow; Tailwind’s grow-*).Source§fn flex_shrink(self, factor: impl IntoReactive<f32>) -> Self
fn flex_shrink(self, factor: impl IntoReactive<f32>) -> Self
factor times as much as
a sibling shrinking by 1 (flex-shrink).Source§fn flex_shrink_0(self) -> Self
fn flex_shrink_0(self) -> Self
Source§fn items_start(self) -> Self
fn items_start(self) -> Self
Source§fn items_center(self) -> Self
fn items_center(self) -> Self
Source§fn items_stretch(self) -> Self
fn items_stretch(self) -> Self
Source§fn items_baseline(self) -> Self
fn items_baseline(self) -> Self
Source§fn justify_start(self) -> Self
fn justify_start(self) -> Self
Source§fn justify_center(self) -> Self
fn justify_center(self) -> Self
Source§fn justify_end(self) -> Self
fn justify_end(self) -> Self
Source§fn justify_between(self) -> Self
fn justify_between(self) -> Self
Source§fn justify_around(self) -> Self
fn justify_around(self) -> Self
Source§fn justify_evenly(self) -> Self
fn justify_evenly(self) -> Self
Source§fn content_start(self) -> Self
fn content_start(self) -> Self
alignContent, the default; Tailwind’s content-start).Source§fn content_center(self) -> Self
fn content_center(self) -> Self
content-center).Source§fn content_end(self) -> Self
fn content_end(self) -> Self
content-end).Source§fn content_between(self) -> Self
fn content_between(self) -> Self
content-between).Source§fn content_around(self) -> Self
fn content_around(self) -> Self
content-around).Source§fn content_evenly(self) -> Self
fn content_evenly(self) -> Self
content-evenly).Source§fn content_stretch(self) -> Self
fn content_stretch(self) -> Self
content-stretch).Source§fn self_start(self) -> Self
fn self_start(self) -> Self
Source§fn self_center(self) -> Self
fn self_center(self) -> Self
Source§fn self_stretch(self) -> Self
fn self_stretch(self) -> Self
Source§fn aspect_ratio(self, ratio: impl IntoReactive<f32>) -> Self
fn aspect_ratio(self, ratio: impl IntoReactive<f32>) -> Self
Source§fn aspect_square(self) -> Self
fn aspect_square(self) -> Self
Source§fn sticky(self) -> Self
fn sticky(self) -> Self
top (in a
horizontal scroll view left) from the start of the viewport of the
scroll view around it, as far as the end of its parent’s content box
(CSS position: sticky; .top(..) / .bind_sticky_top(..) say
where).Source§fn z_index(self, z: impl IntoReactive<i32>) -> Self
fn z_index(self, z: impl IntoReactive<i32>) -> Self
Source§fn bg(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn bg(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn opacity(self, opacity: impl IntoReactive<f32>) -> Self
fn opacity(self, opacity: impl IntoReactive<f32>) -> Self
Source§fn rounded(self, radius: impl IntoReactive<Length>) -> Self
fn rounded(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_none(self) -> Self
fn rounded_none(self) -> Self
Source§fn rounded_xs(self) -> Self
fn rounded_xs(self) -> Self
Source§fn rounded_sm(self) -> Self
fn rounded_sm(self) -> Self
Source§fn rounded_md(self) -> Self
fn rounded_md(self) -> Self
Source§fn rounded_lg(self) -> Self
fn rounded_lg(self) -> Self
Source§fn rounded_xl(self) -> Self
fn rounded_xl(self) -> Self
Source§fn rounded_2xl(self) -> Self
fn rounded_2xl(self) -> Self
Source§fn rounded_3xl(self) -> Self
fn rounded_3xl(self) -> Self
Source§fn rounded_full(self) -> Self
fn rounded_full(self) -> Self
Source§fn rounded_t(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_t(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_b(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_b(self, radius: impl IntoReactive<Length>) -> Self
Source§fn border(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_t_1(self) -> Self
fn border_t_1(self) -> Self
Source§fn border_b_1(self) -> Self
fn border_b_1(self) -> Self
Source§fn border_l_1(self) -> Self
fn border_l_1(self) -> Self
Source§fn border_r_1(self) -> Self
fn border_r_1(self) -> Self
Source§fn border_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_t(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_t(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_r(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_r(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_b(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_b(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_l(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_l(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_x(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_x(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_y(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_y(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_s(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_s(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_e(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_e(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_t_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_t_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_r_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_r_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_b_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_b_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_l_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_l_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_x_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_x_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_y_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_y_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_s_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_s_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_e_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_e_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_solid(self) -> Self
fn border_solid(self) -> Self
Source§fn border_dashed(self) -> Self
fn border_dashed(self) -> Self
Source§fn border_dotted(self) -> Self
fn border_dotted(self) -> Self
Source§fn border_none(self) -> Self
fn border_none(self) -> Self
Styled::border_solid and the other styles show it again.Source§fn border_curve(self, curve: BorderCurve) -> Self
fn border_curve(self, curve: BorderCurve) -> Self
Source§fn rounded_tl(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_tl(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_tr(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_tr(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_br(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_br(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_bl(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_bl(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_l(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_l(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_r(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_r(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_ss(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_ss(self, radius: impl IntoReactive<Length>) -> Self
rounded-ss).Source§fn rounded_se(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_se(self, radius: impl IntoReactive<Length>) -> Self
rounded-se).Source§fn rounded_ee(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_ee(self, radius: impl IntoReactive<Length>) -> Self
rounded-ee).Source§fn rounded_es(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_es(self, radius: impl IntoReactive<Length>) -> Self
rounded-es).Source§fn rounded_s(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_s(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_e(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_e(self, radius: impl IntoReactive<Length>) -> Self
Source§fn outline(self, width: impl Into<AbsoluteLength>) -> Self
fn outline(self, width: impl Into<AbsoluteLength>) -> Self
width wide, outside the border; it takes no space.
Solid unless a style method says otherwise, before or after it.Source§fn outline_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn outline_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn outline_offset(self, offset: impl IntoReactive<AbsoluteLength>) -> Self
fn outline_offset(self, offset: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn outline_dashed(self) -> Self
fn outline_dashed(self) -> Self
Styled::outline sets a
width, as CSS’s medium).Source§fn outline_dotted(self) -> Self
fn outline_dotted(self) -> Self
Styled::outline sets a
width).Source§fn outline_none(self) -> Self
fn outline_none(self) -> Self
Source§fn shadow_none(self) -> Self
fn shadow_none(self) -> Self
Source§fn shadow_2xs(self) -> Self
fn shadow_2xs(self) -> Self
shadow-2xs.Source§fn shadow_2xl(self) -> Self
fn shadow_2xl(self) -> Self
shadow-2xl.Source§fn shadow(self, layers: impl IntoIterator<Item = BoxShadow>) -> Self
fn shadow(self, layers: impl IntoIterator<Item = BoxShadow>) -> Self
box-shadow: offsets, blur, spread,
color, inset), instead of a preset’s.Source§fn shadow_color(self, color: impl Into<AdaptiveColor>) -> Self
fn shadow_color(self, color: impl Into<AdaptiveColor>) -> Self
shadow-sky-500; one with an alpha sets it,
shadow-sky-500/50).Source§fn inset_shadow_2xs(self) -> Self
fn inset_shadow_2xs(self) -> Self
inset-shadow-2xs.Source§fn inset_shadow_xs(self) -> Self
fn inset_shadow_xs(self) -> Self
inset-shadow-xs.Source§fn inset_shadow_sm(self) -> Self
fn inset_shadow_sm(self) -> Self
inset-shadow-sm.Source§fn inset_shadow_none(self) -> Self
fn inset_shadow_none(self) -> Self
Source§fn inset_shadow_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn inset_shadow_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Styled::shadow_color for the
presets).Source§fn ring(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn ring(self, width: impl IntoReactive<AbsoluteLength>) -> Self
width wide around the border (a solid shadow; it takes no
space), in the text color unless Styled::ring_color.Source§fn ring_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn ring_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn ring_offset(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn ring_offset(self, width: impl IntoReactive<AbsoluteLength>) -> Self
width between the border and the ring.Source§fn ring_offset_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn ring_offset_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn ring_inset(self) -> Self
fn ring_inset(self) -> Self
Source§fn inset_ring(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn inset_ring(self, width: impl IntoReactive<AbsoluteLength>) -> Self
width wide, inside the border.Source§fn inset_ring_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn inset_ring_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn bg_linear(self, angle: impl IntoReactive<Radians>) -> Self
fn bg_linear(self, angle: impl IntoReactive<Radians>) -> Self
angle (0 up,
deg(90.0) right), from Styled::gradient_from through
Styled::gradient_via to Styled::gradient_to.Source§fn bg_linear_to_t(self) -> Self
fn bg_linear_to_t(self) -> Self
Source§fn bg_linear_to_r(self) -> Self
fn bg_linear_to_r(self) -> Self
Source§fn bg_linear_to_b(self) -> Self
fn bg_linear_to_b(self) -> Self
Source§fn bg_linear_to_l(self) -> Self
fn bg_linear_to_l(self) -> Self
Source§fn bg_linear_to_tr(self) -> Self
fn bg_linear_to_tr(self) -> Self
Source§fn bg_linear_to_br(self) -> Self
fn bg_linear_to_br(self) -> Self
Source§fn bg_linear_to_bl(self) -> Self
fn bg_linear_to_bl(self) -> Self
Source§fn bg_linear_to_tl(self) -> Self
fn bg_linear_to_tl(self) -> Self
Source§fn bg_conic(self, angle: impl IntoReactive<Radians>) -> Self
fn bg_conic(self, angle: impl IntoReactive<Radians>) -> Self
angle (0 up).Source§fn bg_gradient_none(self) -> Self
fn bg_gradient_none(self) -> Self
Source§fn gradient_from(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn gradient_from(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn gradient_via(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn gradient_via(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn gradient_to(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn gradient_to(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn gradient_from_position(self, at: impl IntoReactive<Percentage>) -> Self
fn gradient_from_position(self, at: impl IntoReactive<Percentage>) -> Self
Source§fn gradient_via_position(self, at: impl IntoReactive<Percentage>) -> Self
fn gradient_via_position(self, at: impl IntoReactive<Percentage>) -> Self
Source§fn gradient_to_position(self, at: impl IntoReactive<Percentage>) -> Self
fn gradient_to_position(self, at: impl IntoReactive<Percentage>) -> Self
Source§fn mask_linear(
self,
angle: impl IntoReactive<Radians>,
stops: impl IntoReactive<Vec<ColorStop>>,
) -> Self
fn mask_linear( self, angle: impl IntoReactive<Radians>, stops: impl IntoReactive<Vec<ColorStop>>, ) -> Self
deg(90.0) right). Stops accept colors or
(color, position) pairs, with typed fractions or lengths. Both arguments
accept signals and closures (Vec<ColorStop> for reactive stops); static
values create no binding.
.mask_linear(deg(90.0), [transparent_black(), black(), transparent_black()]).
An empty stop vector clears the mask reactively. Includes backdrop filters.
Not drawn on Windows and GPUI.Source§fn mask_radial(self, stops: impl IntoReactive<Vec<ColorStop>>) -> Self
fn mask_radial(self, stops: impl IntoReactive<Vec<ColorStop>>) -> Self
Styled::mask_linear. Use a
Vec<ColorStop> for signal/closure results, or an array of colors/pairs
for static stops. An empty vector clears the mask reactively.Source§fn clip_path(self, clip: impl IntoReactive<ClipInset>) -> Self
fn clip_path(self, clip: impl IntoReactive<ClipInset>) -> Self
clip
(CSS’s clip-path: inset(..)): a rectangle inset from its box with
rounded corners, outside which presses reach neither it nor what is
in it. Its changes animate with Styled::transition_clip_path
(or Styled::transition_all), so a panel opens out of a corner:
.clip_path(ClipInset::new().bottom(percentage(1.0)).left(percentage(1.0)).rounded(px(12.0)))
while closed, .clip_path(ClipInset::new().rounded(px(12.0))) open.Source§fn clip_path_none(self) -> Self
fn clip_path_none(self) -> Self
Source§fn blur(self, radius: impl Into<Points>) -> Self
fn blur(self, radius: impl Into<Points>) -> Self
radius (Tailwind’s blur-sm is 8
points).Source§fn brightness(self, amount: f32) -> Self
fn brightness(self, amount: f32) -> Self
Source§fn hue_rotate(self, angle: impl Into<Radians>) -> Self
fn hue_rotate(self, angle: impl Into<Radians>) -> Self
angle.Source§fn filter_none(self) -> Self
fn filter_none(self) -> Self
Source§fn backdrop_blur(self, radius: impl Into<Points>) -> Self
fn backdrop_blur(self, radius: impl Into<Points>) -> Self
radius (frosted glass; give it a
translucent background).Source§fn backdrop_brightness(self, amount: f32) -> Self
fn backdrop_brightness(self, amount: f32) -> Self
Source§fn backdrop_contrast(self, amount: f32) -> Self
fn backdrop_contrast(self, amount: f32) -> Self
Source§fn backdrop_grayscale(self, amount: f32) -> Self
fn backdrop_grayscale(self, amount: f32) -> Self
Source§fn backdrop_hue_rotate(self, angle: impl Into<Radians>) -> Self
fn backdrop_hue_rotate(self, angle: impl Into<Radians>) -> Self
Source§fn backdrop_invert(self, amount: f32) -> Self
fn backdrop_invert(self, amount: f32) -> Self
Source§fn backdrop_opacity(self, amount: f32) -> Self
fn backdrop_opacity(self, amount: f32) -> Self
Source§fn backdrop_saturate(self, amount: f32) -> Self
fn backdrop_saturate(self, amount: f32) -> Self
Source§fn backdrop_sepia(self, amount: f32) -> Self
fn backdrop_sepia(self, amount: f32) -> Self
Source§fn backdrop_filter_none(self) -> Self
fn backdrop_filter_none(self) -> Self
Source§fn mix_blend_mode(self, mode: BlendMode) -> Self
fn mix_blend_mode(self, mode: BlendMode) -> Self
Source§fn pointer_events(
self,
pointer_events: impl IntoReactive<PointerEvents>,
) -> Self
fn pointer_events( self, pointer_events: impl IntoReactive<PointerEvents>, ) -> Self
pointerEvents):
PointerEvents::None none, for the views in it too unless one says
Auto; BoxNone none on itself; BoxOnly none on the views in it.Source§fn select_text(self) -> Self
fn select_text(self) -> Self
userSelect: "text",
Tailwind’s select-text).Source§fn select_none(self) -> Self
fn select_none(self) -> Self
userSelect: "none", Tailwind’s
select-none).Source§fn glass_effect(self, glass: GlassEffect) -> Self
fn glass_effect(self, glass: GlassEffect) -> Self
glassEffect; iOS 26 and
macOS 26), its backdropFilter elsewhere.Source§fn glass_tint_color(
self,
color: impl IntoReactive<Option<AdaptiveColor>>,
) -> Self
fn glass_tint_color( self, color: impl IntoReactive<Option<AdaptiveColor>>, ) -> Self
glassTintColor). A color tints the
native glass; None restores its default. Bind an optional adaptive
color to set and clear the tint; static colors can be passed directly.
Has no effect without glassEffect.Source§fn cursor(self, cursor: Cursor) -> Self
fn cursor(self, cursor: Cursor) -> Self
cursor; desktops, and iPad
and Android with a mouse).Source§fn cursor_pointer(self) -> Self
fn cursor_pointer(self) -> Self
cursor-pointer).Source§fn transition(self) -> Self
fn transition(self) -> Self
transition: 150ms, ease-in-out by default).Source§fn transition_all(self) -> Self
fn transition_all(self) -> Self
Source§fn transition_colors(self) -> Self
fn transition_colors(self) -> Self
Source§fn transition_opacity(self) -> Self
fn transition_opacity(self) -> Self
Source§fn transition_shadow(self) -> Self
fn transition_shadow(self) -> Self
Source§fn transition_transform(self) -> Self
fn transition_transform(self) -> Self
Source§fn transition_clip_path(self) -> Self
fn transition_clip_path(self) -> Self
transition-property: clip-path).Source§fn transition_mask(self) -> Self
fn transition_mask(self) -> Self
transition-property: mask-image): gradients of the same shape and stop count move stop
by stop; any other change applies at once.Source§fn transition_none(self) -> Self
fn transition_none(self) -> Self
Source§fn duration(self, ms: impl IntoReactive<f32>) -> Self
fn duration(self, ms: impl IntoReactive<f32>) -> Self
ms milliseconds.Source§fn delay(self, ms: impl IntoReactive<f32>) -> Self
fn delay(self, ms: impl IntoReactive<f32>) -> Self
ms milliseconds.Source§fn ease_linear(self) -> Self
fn ease_linear(self) -> Self
Source§fn ease_in_out(self) -> Self
fn ease_in_out(self) -> Self
Source§fn ease_bezier(self, x1: f32, y1: f32, x2: f32, y2: f32) -> Self
fn ease_bezier(self, x1: f32, y1: f32, x2: f32, y2: f32) -> Self
x1, y1, x2, y2 (a y
outside 0..1 overshoots).Source§fn ease_spring(self, spring: Spring) -> Self
fn ease_spring(self, spring: Spring) -> Self
ease-spring-[620,36]): they time themselves,
lasting until the spring settles (Spring::settle_ms), so
Self::duration is not used. A spring that cannot settle (a
stiffness, damping or mass that is not positive) sets nothing.Source§fn animate_spin(self) -> Self
fn animate_spin(self) -> Self
animate-spin: a loader).Source§fn animate_ping(self) -> Self
fn animate_ping(self) -> Self
animate-ping: a badge’s pulse).Source§fn animate_pulse(self) -> Self
fn animate_pulse(self) -> Self
animate-pulse: a skeleton).Source§fn animate_bounce(self) -> Self
fn animate_bounce(self) -> Self
animate-bounce).Source§fn animation(self, animation: KeyframeAnimation) -> Self
fn animation(self, animation: KeyframeAnimation) -> Self
animationName
with animationDuration, animationDelay,
animationTimingFunction, animationIterationCount,
animationFrameRate):
.animation(KeyframeAnimation::new(Keyframes::Spin).duration(800.0)).Source§fn animate_none(self) -> Self
fn animate_none(self) -> Self
Source§fn scale(self, scale: impl IntoReactive<f32>) -> Self
fn scale(self, scale: impl IntoReactive<f32>) -> Self
Source§fn scale_x(self, scale: impl IntoReactive<f32>) -> Self
fn scale_x(self, scale: impl IntoReactive<f32>) -> Self
Source§fn scale_y(self, scale: impl IntoReactive<f32>) -> Self
fn scale_y(self, scale: impl IntoReactive<f32>) -> Self
Source§fn translate_x(self, offset: impl IntoReactive<DefiniteLength>) -> Self
fn translate_x(self, offset: impl IntoReactive<DefiniteLength>) -> Self
offset (after layout): points, or a
fraction of its own width (relative(-0.5)).Source§fn translate_y(self, offset: impl IntoReactive<DefiniteLength>) -> Self
fn translate_y(self, offset: impl IntoReactive<DefiniteLength>) -> Self
offset (after layout): points, or a fraction
of its own height.Source§fn rotate(self, angle: impl IntoReactive<Radians>) -> Self
fn rotate(self, angle: impl IntoReactive<Radians>) -> Self
angle, clockwise.Source§fn rotate_x(self, angle: impl IntoReactive<Radians>) -> Self
fn rotate_x(self, angle: impl IntoReactive<Radians>) -> Self
angle around the horizontal axis (3D; in a view with
Styled::perspective it tilts towards the viewer).Source§fn rotate_y(self, angle: impl IntoReactive<Radians>) -> Self
fn rotate_y(self, angle: impl IntoReactive<Radians>) -> Self
angle around the vertical axis (3D).Source§fn skew_x(self, angle: impl IntoReactive<Radians>) -> Self
fn skew_x(self, angle: impl IntoReactive<Radians>) -> Self
angle (iOS; Android has no skew).Source§fn skew_y(self, angle: impl IntoReactive<Radians>) -> Self
fn skew_y(self, angle: impl IntoReactive<Radians>) -> Self
angle (iOS).Source§fn perspective(self, distance: impl IntoReactive<AbsoluteLength>) -> Self
fn perspective(self, distance: impl IntoReactive<AbsoluteLength>) -> Self
distance away (smaller: stronger), from its center (CSS’s
perspective, perspective-*).Source§fn transform_step(
self,
kind: TransformKind,
amount: impl IntoReactive<f32>,
) -> Self
fn transform_step( self, kind: TransformKind, amount: impl IntoReactive<f32>, ) -> Self
kind of its transform, by amount. The steps compose in
CSS’s order, whatever the order of the calls: translate, rotate,
scale, then the 3D rotations and the skews.
TransformKind::Perspective is Styled::perspective, its
children’s depth.Source§fn transform_none(self) -> Self
fn transform_none(self) -> Self
transform: none; the
translation, rotation and scale are properties of their own, which
Styled::translate_none, Styled::rotate_none and
Styled::scale_none remove).Source§fn translate_none(self) -> Self
fn translate_none(self) -> Self
Source§fn scale_none(self) -> Self
fn scale_none(self) -> Self
Source§fn rotate_none(self) -> Self
fn rotate_none(self) -> Self
Source§fn transform_origin(self, origin: TransformOrigin) -> Self
fn transform_origin(self, origin: TransformOrigin) -> Self
Source§fn origin_top_left(self) -> Self
fn origin_top_left(self) -> Self
Source§fn origin_top(self) -> Self
fn origin_top(self) -> Self
Source§fn origin_top_right(self) -> Self
fn origin_top_right(self) -> Self
Source§fn origin_left(self) -> Self
fn origin_left(self) -> Self
Source§fn origin_center(self) -> Self
fn origin_center(self) -> Self
Source§fn origin_right(self) -> Self
fn origin_right(self) -> Self
Source§fn origin_bottom_left(self) -> Self
fn origin_bottom_left(self) -> Self
Source§fn origin_bottom(self) -> Self
fn origin_bottom(self) -> Self
Source§fn origin_bottom_right(self) -> Self
fn origin_bottom_right(self) -> Self
Source§fn object_fit(self, fit: impl IntoReactive<ResizeMode>) -> Self
fn object_fit(self, fit: impl IntoReactive<ResizeMode>) -> Self
objectFit): Cover (an
image’s default), Contain (a video’s), Stretch (CSS’s fill),
Center (none) or ScaleDown.Source§fn object_position(self, position: ObjectPosition) -> Self
fn object_position(self, position: ObjectPosition) -> Self
object-position; the center by default): a covering image
is cropped around it.Source§fn object_top_left(self) -> Self
fn object_top_left(self) -> Self
object-top-left).Source§fn object_top(self) -> Self
fn object_top(self) -> Self
object-top): a tall image
covering its box is cropped at the bottom.Source§fn object_top_right(self) -> Self
fn object_top_right(self) -> Self
object-top-right).Source§fn object_left(self) -> Self
fn object_left(self) -> Self
object-left).Source§fn object_center(self) -> Self
fn object_center(self) -> Self
object-center, the
default).Source§fn object_right(self) -> Self
fn object_right(self) -> Self
object-right).Source§fn object_bottom_left(self) -> Self
fn object_bottom_left(self) -> Self
object-bottom-left).Source§fn object_bottom(self) -> Self
fn object_bottom(self) -> Self
object-bottom).Source§fn object_bottom_right(self) -> Self
fn object_bottom_right(self) -> Self
object-bottom-right).Source§fn backface_visible(self) -> Self
fn backface_visible(self) -> Self
Source§fn text_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn text_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn tint_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn tint_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
tint-*): of template images, and of a
page header’s buttons in super::Screen::header_style_with.Source§fn accent_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn accent_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
accentColor, CSS’s
accent-color, Tailwind’s accent-*), which a native component gets
as its accentColor prop, such as the track of a system switch when
on. Set on the control itself; it is not inherited.Source§fn fill_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn fill_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fill,
Tailwind’s fill-<color>; the elements inside inherit it, as in
CSS): the areas of nsh_base::plot.Source§fn fill_current(self) -> Self
fn fill_current(self) -> Self
fill-current, currentColor).Source§fn stroke_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn stroke_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
stroke, Tailwind’s stroke-<color>; inherited, as in CSS): the
lines and grids of nsh_base::plot.Source§fn stroke_none(self) -> Self
fn stroke_none(self) -> Self
stroke-none).Source§fn stroke_current(self) -> Self
fn stroke_current(self) -> Self
stroke-current, currentColor).Source§fn stroke_width(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn stroke_width(self, width: impl IntoReactive<AbsoluteLength>) -> Self
strokeWidth, Tailwind’s
stroke-<number>; 1 by default, inherited).Source§fn text_size(self, size: impl IntoReactive<Length>) -> Self
fn text_size(self, size: impl IntoReactive<Length>) -> Self
Source§fn line_height(self, height: impl IntoReactive<LineHeight>) -> Self
fn line_height(self, height: impl IntoReactive<LineHeight>) -> Self
px(20.0)), or a multiple of the font
size (LineHeight::Multiple(1.5)).Source§fn font_weight(self, weight: FontWeight) -> Self
fn font_weight(self, weight: FontWeight) -> Self
Source§fn font_family(self, family: impl IntoReactive<SharedString>) -> Self
fn font_family(self, family: impl IntoReactive<SharedString>) -> Self
None style: the system font is the default).Source§fn underline(self) -> Self
fn underline(self) -> Self
Styled::line_through, both lines).Source§fn line_through(self) -> Self
fn line_through(self) -> Self
Styled::underline, both lines).Source§fn no_underline(self) -> Self
fn no_underline(self) -> Self
Source§fn text_decoration_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn text_decoration_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn text_decoration_solid(self) -> Self
fn text_decoration_solid(self) -> Self
Source§fn text_decoration_double(self) -> Self
fn text_decoration_double(self) -> Self
Source§fn text_decoration_dotted(self) -> Self
fn text_decoration_dotted(self) -> Self
Source§fn text_decoration_dashed(self) -> Self
fn text_decoration_dashed(self) -> Self
Source§fn text_decoration_wavy(self) -> Self
fn text_decoration_wavy(self) -> Self
Source§fn text_decoration_thickness(self, thickness: impl IntoReactive<Points>) -> Self
fn text_decoration_thickness(self, thickness: impl IntoReactive<Points>) -> Self
Source§fn underline_offset(self, offset: impl IntoReactive<Points>) -> Self
fn underline_offset(self, offset: impl IntoReactive<Points>) -> Self
Source§fn capitalize(self) -> Self
fn capitalize(self) -> Self
Source§fn normal_case(self) -> Self
fn normal_case(self) -> Self
Source§fn tabular_nums(self) -> Self
fn tabular_nums(self) -> Self
Source§fn proportional_nums(self) -> Self
fn proportional_nums(self) -> Self
Source§fn oldstyle_nums(self) -> Self
fn oldstyle_nums(self) -> Self
Source§fn lining_nums(self) -> Self
fn lining_nums(self) -> Self
Source§fn small_caps(self) -> Self
fn small_caps(self) -> Self
Source§fn normal_nums(self) -> Self
fn normal_nums(self) -> Self
small_caps stays).Source§fn direction(self, direction: impl IntoReactive<LayoutDirection>) -> Self
fn direction(self, direction: impl IntoReactive<LayoutDirection>) -> Self
Source§fn number_of_lines(self, lines: impl IntoReactive<u32>) -> Self
fn number_of_lines(self, lines: impl IntoReactive<u32>) -> Self
Source§fn text_overflow(self, mode: impl IntoReactive<EllipsizeMode>) -> Self
fn text_overflow(self, mode: impl IntoReactive<EllipsizeMode>) -> Self
textOverflow): its end with an
ellipsis (Tail, the default), its start or middle, or clipped.Source§fn whitespace_nowrap(self) -> Self
fn whitespace_nowrap(self) -> Self
whitespace-nowrap). A
view’s reaches the texts in it, as CSS’s white-space does.Source§fn whitespace_normal(self) -> Self
fn whitespace_normal(self) -> Self
whitespace-normal): undoes a
view’s whitespace_nowrap or text_pretty around them.Source§fn text_pretty(self) -> Self
fn text_pretty(self) -> Self
text-pretty): a last line shorter than a
quarter of the box takes words from the lines above, without adding
a line. A view’s reaches the texts in it.Source§fn writing_direction(self, direction: WritingDirection) -> Self
fn writing_direction(self, direction: WritingDirection) -> Self
Source§fn text_justify(self) -> Self
fn text_justify(self) -> Self
Source§fn text_shadow_2xs(self) -> Self
fn text_shadow_2xs(self) -> Self
text-shadow-2xs.Source§fn text_shadow_xs(self) -> Self
fn text_shadow_xs(self) -> Self
text-shadow-xs.Source§fn text_shadow_sm(self) -> Self
fn text_shadow_sm(self) -> Self
text-shadow-sm.Source§fn text_shadow_md(self) -> Self
fn text_shadow_md(self) -> Self
text-shadow-md.Source§fn text_shadow_lg(self) -> Self
fn text_shadow_lg(self) -> Self
text-shadow-lg.Source§fn text_shadow_none(self) -> Self
fn text_shadow_none(self) -> Self
Source§fn text_shadow_color(self, color: impl Into<AdaptiveColor>) -> Self
fn text_shadow_color(self, color: impl Into<AdaptiveColor>) -> Self
Styled::text_shadow’s
layers (an opaque color keeps their alpha).Source§fn text_shadow(self, layers: impl IntoIterator<Item = TextShadow>) -> Self
fn text_shadow(self, layers: impl IntoIterator<Item = TextShadow>) -> Self
text-shadow: offsets, blur and
color), instead of a preset’s; drawn as the widest one.Source§fn text_center(self) -> Self
fn text_center(self) -> Self
Source§fn text_right(self) -> Self
fn text_right(self) -> Self
Source§fn text_indent(self, indent: impl IntoReactive<AbsoluteLength>) -> Self
fn text_indent(self, indent: impl IntoReactive<AbsoluteLength>) -> Self
indent from the
leading edge (CSS’s text-indent); a negative value is 0, the first
line not hanging into the margin.Source§fn align_baseline(self) -> Self
fn align_baseline(self) -> Self
align-baseline).Source§fn align_text_top(self) -> Self
fn align_text_top(self) -> Self
align-text-top).Source§fn align_text_bottom(self) -> Self
fn align_text_bottom(self) -> Self
align-text-bottom).Source§fn align_middle(self) -> Self
fn align_middle(self) -> Self
align-middle).Source§fn letter_spacing(self, spacing: impl IntoReactive<AbsoluteLength>) -> Self
fn letter_spacing(self, spacing: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn style_when(
self,
when: impl IntoReactive<bool>,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn style_when( self, when: impl IntoReactive<bool>, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
f’s styles while when holds: a value decides once, a signal or a
closure switches them as it changes (Tailwind’s classes made
conditional; native states such as .active need none).Source§fn style_with(
self,
f: impl Fn(StyleRefinement) -> StyleRefinement + 'static,
) -> Self
fn style_with( self, f: impl Fn(StyleRefinement) -> StyleRefinement + 'static, ) -> Self
f makes, made again when what it reads changes (any
style that depends on the app’s state; a value that changes alone
is better given to its method: .w(move || px(width.get()))).Source§fn dark(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn dark(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
dark:), for what is not a
color: theme colors switch by themselves.Source§fn selected(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn selected(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
selected:): the element’s
accessibility state says so (a Button’s selected, a tab’s).Source§fn checked(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn checked(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
checked:): the element’s
accessibility state says so, not mixed (a checkbox’s, a switch’s, a
radio’s), or the control it is a part of is
(Interactive::project_checked: a switch’s thumb).Source§fn indeterminate(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn indeterminate( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
indeterminate:): the
element’s accessibility state says checked is mixed (a checkbox
that is neither), or the control it is a part of is
(Interactive::project_indeterminate: a checkbox’s indicator).Source§fn expanded(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn expanded(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
aria-expanded:): the element’s
accessibility state says so (a Popover’s or Menu’s trigger
while its popup is open, a collapsible’s header).Source§fn aria_pressed(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn aria_pressed( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
aria-pressed:):
the element’s accessibility state says it is pressed, not mixed
(gpui-base’s Toggle styled pressed). Not .active(..), a
press in progress.Source§fn group(self) -> Self
fn group(self) -> Self
group_* styles of the elements inside follow
its press, hover and focus (Tailwind’s group).Source§fn group_named(self, name: &'static str) -> Self
fn group_named(self, name: &'static str) -> Self
name (group/name), for group_*_named
styles inside it that skip nearer groups.Source§fn group_active(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_active( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
Styled::group around it is pressed
(group-active:).Source§fn group_hover(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn group_hover(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
Source§fn group_focus_within(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_focus_within( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
group-focus-within:).Source§fn group_focus_visible(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_focus_visible( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
group-focus-visible:).Source§fn group_active_named(
self,
name: &'static str,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_active_named( self, name: &'static str, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
name around it is pressed
(group-active/name:).Source§fn group_hover_named(
self,
name: &'static str,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_hover_named( self, name: &'static str, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
name around it is hovered.Source§fn group_focus_within_named(
self,
name: &'static str,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_focus_within_named( self, name: &'static str, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
name around it has focus.Source§fn group_focus_visible_named(
self,
name: &'static str,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_focus_visible_named( self, name: &'static str, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
name around it has the keyboard focus and
shows it (group-focus-visible/name:).