pub struct Stateful<E> { /* private fields */ }Expand description
An element with an ElementId, which lets it keep state between frames.
You get a Stateful by calling InteractiveElement::id. It implements the same traits as the element it wraps,
plus StatefulInteractiveElement, which adds clicks, scrolling, starting a drag, and tooltips.
Trait Implementations§
Source§impl<E> Element for Stateful<E>where
E: Element,
impl<E> Element for Stateful<E>where
E: Element,
Source§type RequestLayoutState = <E as Element>::RequestLayoutState
type RequestLayoutState = <E as Element>::RequestLayoutState
The state that
Element::request_layout returns for the later phases. Read moreSource§type PrepaintState = <E as Element>::PrepaintState
type PrepaintState = <E as Element>::PrepaintState
Source§fn id(&self) -> Option<ElementId>
fn id(&self) -> Option<ElementId>
Returns the element’s identity, or
None if it has none. Read moreSource§fn source_location(&self) -> Option<&'static Location<'static>>
fn source_location(&self) -> Option<&'static Location<'static>>
Returns where this element was created, for the inspector and debug output. Read more
Source§fn a11y_role(&self) -> Option<Role>
fn a11y_role(&self) -> Option<Role>
Returns the accessible role for this element, if any.
Elements that return
None have no accessibility node unless
Element::is_a11y_hidden returns true. Read moreWhether assistive technology should ignore this element and its
descendants. Read more
Source§fn write_a11y_info(&self, node: &mut Node)
fn write_a11y_info(&self, node: &mut Node)
Write accessibility properties to the given node.
GPUI calls this only when
Element::a11y_role returns Some or
Element::is_a11y_hidden returns true. Read moreSource§fn a11y_synthetic_children(
&mut self,
prepaint: &mut Self::PrepaintState,
builder: &mut A11ySubtreeBuilder<'_>,
)
fn a11y_synthetic_children( &mut self, prepaint: &mut Self::PrepaintState, builder: &mut A11ySubtreeBuilder<'_>, )
Add synthetic child nodes to an
Element. The element must have an
.id(). It must also have a
.role() or return true from
Element::is_a11y_hidden. Read moreSource§fn request_layout(
&mut self,
id: Option<&GlobalElementId>,
inspector_id: Option<&InspectorElementId>,
window: &mut Window,
cx: &mut App,
) -> (LayoutId, Self::RequestLayoutState)
fn request_layout( &mut self, id: Option<&GlobalElementId>, inspector_id: Option<&InspectorElementId>, window: &mut Window, cx: &mut App, ) -> (LayoutId, Self::RequestLayoutState)
Requests a layout node from Taffy, and returns it with the state the later phases need. Read more
Source§fn prepaint(
&mut self,
id: Option<&GlobalElementId>,
inspector_id: Option<&InspectorElementId>,
bounds: Bounds<Pixels>,
state: &mut Self::RequestLayoutState,
window: &mut Window,
cx: &mut App,
) -> E::PrepaintState
fn prepaint( &mut self, id: Option<&GlobalElementId>, inspector_id: Option<&InspectorElementId>, bounds: Bounds<Pixels>, state: &mut Self::RequestLayoutState, window: &mut Window, cx: &mut App, ) -> E::PrepaintState
Runs once the element’s bounds are known, and returns the state that
paint needs. Read moreSource§fn paint(
&mut self,
id: Option<&GlobalElementId>,
inspector_id: Option<&InspectorElementId>,
bounds: Bounds<Pixels>,
request_layout: &mut Self::RequestLayoutState,
prepaint: &mut Self::PrepaintState,
window: &mut Window,
cx: &mut App,
)
fn paint( &mut self, id: Option<&GlobalElementId>, inspector_id: Option<&InspectorElementId>, bounds: Bounds<Pixels>, request_layout: &mut Self::RequestLayoutState, prepaint: &mut Self::PrepaintState, window: &mut Window, cx: &mut App, )
Draws the element. Runs after
prepaint, once per frame. Read moreSource§fn into_any(self) -> AnyElement
fn into_any(self) -> AnyElement
Convert this element into a dynamically-typed
AnyElement.Source§impl<E> InteractiveElement for Stateful<E>where
E: InteractiveElement,
impl<E> InteractiveElement for Stateful<E>where
E: InteractiveElement,
Source§fn interactivity(&mut self) -> &mut Interactivity
fn interactivity(&mut self) -> &mut Interactivity
Returns the
Interactivity that stores this element’s listeners, styles and state. Read moreSource§fn on_file_drop_exit(
self,
listener: impl Fn(&FileDropEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_file_drop_exit( self, listener: impl Fn(&FileDropEvent, &mut Window, &mut App) + 'static, ) -> Self
Bind the given callback to
FileDropEvent::Exited when a platform file drag
leaves this element’s window while the element is hovered. Read moreSource§fn transitions(
self,
build: impl FnOnce(StyleTransitions) -> StyleTransitions,
) -> Self
fn transitions( self, build: impl FnOnce(StyleTransitions) -> StyleTransitions, ) -> Self
Animates changes to this element’s style properties over time. Read more
Source§fn group(self, group: impl Into<SharedString>) -> Self
fn group(self, group: impl Into<SharedString>) -> Self
Adds this element to a named group, so that group-level styles can react to any member. Read more
Source§fn track_focus(self, focus_handle: &FocusHandle) -> Self
fn track_focus(self, focus_handle: &FocusHandle) -> Self
Makes this element focusable with the given
FocusHandle, and styles it with the focus styles when focused. Read moreSource§fn tab_stop(self, tab_stop: bool) -> Self
fn tab_stop(self, tab_stop: bool) -> Self
Sets whether this element is reached by Tab navigation. Read more
Source§fn tab_index(self, index: isize) -> Self
fn tab_index(self, index: isize) -> Self
Sets this element’s position in the tab order and makes it a tab stop. Read more
Source§fn tab_group(self) -> Self
fn tab_group(self) -> Self
Makes this element a tab group, so that its children are ordered within the group. Read more
Source§fn key_context<C, E>(self, key_context: C) -> Self
fn key_context<C, E>(self, key_context: C) -> Self
Sets the key context for this element, which selects the keybindings that apply inside it. Read more
Source§fn hover(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn hover(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
Applies
f’s style to this element while the pointer is over it. Read moreSource§fn group_hover(
self,
group_name: impl Into<SharedString>,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_hover( self, group_name: impl Into<SharedString>, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
Source§fn on_mouse_down(
self,
button: MouseButton,
listener: impl Fn(&MouseDownEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_down( self, button: MouseButton, listener: impl Fn(&MouseDownEvent, &mut Window, &mut App) + 'static, ) -> Self
Source§fn debug_selector(self, f: impl FnOnce() -> String) -> Self
fn debug_selector(self, f: impl FnOnce() -> String) -> Self
Sets a name for this element that tests can use to find its bounds. Read more
Source§fn capture_any_mouse_down(
self,
listener: impl Fn(&MouseDownEvent, &mut Window, &mut App) + 'static,
) -> Self
fn capture_any_mouse_down( self, listener: impl Fn(&MouseDownEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for a press of any button over this element, during the capture phase. Read moreSource§fn on_any_mouse_down(
self,
listener: impl Fn(&MouseDownEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_any_mouse_down( self, listener: impl Fn(&MouseDownEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for a press of any button over this element, during the bubble phase. Read moreSource§fn on_mouse_up(
self,
button: MouseButton,
listener: impl Fn(&MouseUpEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_up( self, button: MouseButton, listener: impl Fn(&MouseUpEvent, &mut Window, &mut App) + 'static, ) -> Self
Source§fn capture_any_mouse_up(
self,
listener: impl Fn(&MouseUpEvent, &mut Window, &mut App) + 'static,
) -> Self
fn capture_any_mouse_up( self, listener: impl Fn(&MouseUpEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for a release of any button over this element, during the capture phase. Read moreSource§fn on_mouse_pressure(
self,
listener: impl Fn(&MousePressureEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_pressure( self, listener: impl Fn(&MousePressureEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for pressure changes over this element, during the bubble phase. Read moreSource§fn capture_mouse_pressure(
self,
listener: impl Fn(&MousePressureEvent, &mut Window, &mut App) + 'static,
) -> Self
fn capture_mouse_pressure( self, listener: impl Fn(&MousePressureEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for pressure changes over this element, during the capture phase. Read moreSource§fn on_mouse_down_out(
self,
listener: impl Fn(&MouseDownEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_down_out( self, listener: impl Fn(&MouseDownEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for a press of any button outside this element, during the capture phase. Read moreSource§fn on_mouse_down_all(
self,
listener: impl Fn(&MouseDownEvent, DispatchPhase, &Hitbox, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_down_all( self, listener: impl Fn(&MouseDownEvent, DispatchPhase, &Hitbox, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for every mouse press, in both phases, whether or not the pointer is over the element. Read moreSource§fn on_mouse_up_out(
self,
button: MouseButton,
listener: impl Fn(&MouseUpEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_up_out( self, button: MouseButton, listener: impl Fn(&MouseUpEvent, &mut Window, &mut App) + 'static, ) -> Self
Source§fn on_mouse_up_all(
self,
listener: impl Fn(&MouseUpEvent, DispatchPhase, &Hitbox, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_up_all( self, listener: impl Fn(&MouseUpEvent, DispatchPhase, &Hitbox, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for every mouse release, in both phases, whether or not the pointer is over the element. Read moreSource§fn on_mouse_move(
self,
listener: impl Fn(&MouseMoveEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_move( self, listener: impl Fn(&MouseMoveEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener when the pointer moves over this element, during the bubble phase. Read moreSource§fn on_mouse_move_all(
self,
listener: impl Fn(&MouseMoveEvent, DispatchPhase, &Hitbox, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_move_all( self, listener: impl Fn(&MouseMoveEvent, DispatchPhase, &Hitbox, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for every mouse move, whether or not the pointer is over the element. Read moreSource§fn on_mouse_exit(
self,
listener: impl Fn(&MouseExitEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_mouse_exit( self, listener: impl Fn(&MouseExitEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener when the pointer leaves the window while it is over this element. Read moreSource§fn on_drag_move<T: 'static>(
self,
listener: impl Fn(&DragMoveEvent<T>, &mut Window, &mut App) + 'static,
) -> Self
fn on_drag_move<T: 'static>( self, listener: impl Fn(&DragMoveEvent<T>, &mut Window, &mut App) + 'static, ) -> Self
Source§fn on_scroll_wheel(
self,
listener: impl Fn(&ScrollWheelEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_scroll_wheel( self, listener: impl Fn(&ScrollWheelEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for scroll wheel events that this element should handle, during the bubble phase. Read moreSource§fn on_pinch(
self,
listener: impl Fn(&PinchEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_pinch( self, listener: impl Fn(&PinchEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for pinch gestures over this element, during the bubble phase. Read moreSource§fn capture_pinch(
self,
listener: impl Fn(&PinchEvent, &mut Window, &mut App) + 'static,
) -> Self
fn capture_pinch( self, listener: impl Fn(&PinchEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for pinch gestures during the capture phase. Read moreSource§fn capture_action<A: Action>(
self,
listener: impl Fn(&A, &mut Window, &mut App) + 'static,
) -> Self
fn capture_action<A: Action>( self, listener: impl Fn(&A, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener when an action of type A is dispatched to this element, during the capture phase. Read moreSource§fn on_action<A: Action>(
self,
listener: impl Fn(&A, &mut Window, &mut App) + 'static,
) -> Self
fn on_action<A: Action>( self, listener: impl Fn(&A, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener when an action of type A is dispatched to this element, during the bubble phase. Read moreSource§fn on_boxed_action(
self,
action: &dyn Action,
listener: impl Fn(&dyn Action, &mut Window, &mut App) + 'static,
) -> Self
fn on_boxed_action( self, action: &dyn Action, listener: impl Fn(&dyn Action, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener when an action of the same type as action is dispatched, during the bubble phase. Read moreSource§fn on_key_down(
self,
listener: impl Fn(&KeyDownEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_key_down( self, listener: impl Fn(&KeyDownEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for key presses, during the bubble phase. Read moreSource§fn capture_key_down(
self,
listener: impl Fn(&KeyDownEvent, &mut Window, &mut App) + 'static,
) -> Self
fn capture_key_down( self, listener: impl Fn(&KeyDownEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for key presses during the capture phase. Like on_key_down, it runs only
if no action bound to the keystroke handled it. Read moreSource§fn on_key_up(
self,
listener: impl Fn(&KeyUpEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_key_up( self, listener: impl Fn(&KeyUpEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for key releases, during the bubble phase. Read moreSource§fn capture_key_up(
self,
listener: impl Fn(&KeyUpEvent, &mut Window, &mut App) + 'static,
) -> Self
fn capture_key_up( self, listener: impl Fn(&KeyUpEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener for key releases during the capture phase. Read moreSource§fn on_modifiers_changed(
self,
listener: impl Fn(&ModifiersChangedEvent, &mut Window, &mut App) + 'static,
) -> Self
fn on_modifiers_changed( self, listener: impl Fn(&ModifiersChangedEvent, &mut Window, &mut App) + 'static, ) -> Self
Runs
listener when the set of pressed modifier keys changes. Read moreSource§fn drag_over<S: 'static>(
self,
f: impl 'static + Fn(StyleRefinement, &S, &mut Window, &mut App) -> StyleRefinement,
) -> Self
fn drag_over<S: 'static>( self, f: impl 'static + Fn(StyleRefinement, &S, &mut Window, &mut App) -> StyleRefinement, ) -> Self
Source§fn on_drag_over<S: 'static>(
self,
f: impl 'static + Fn(StyleRefinement, &S, &mut Window, &mut App) -> StyleRefinement,
) -> Self
fn on_drag_over<S: 'static>( self, f: impl 'static + Fn(StyleRefinement, &S, &mut Window, &mut App) -> StyleRefinement, ) -> Self
Applies
f’s style while a value of type S is dragged over this element and the element accepts it. Read moreSource§fn on_drag_over_any(
self,
f: impl 'static + Fn(StyleRefinement, &dyn Any, &mut Window, &mut App) -> StyleRefinement,
) -> Self
fn on_drag_over_any( self, f: impl 'static + Fn(StyleRefinement, &dyn Any, &mut Window, &mut App) -> StyleRefinement, ) -> Self
Applies
f’s style while any dragged value is over this element and the element can accept it. Read moreSource§fn group_drag_over<S: 'static>(
self,
group_name: impl Into<SharedString>,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_drag_over<S: 'static>( self, group_name: impl Into<SharedString>, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
Source§fn on_drop<T: 'static>(
self,
listener: impl Fn(&T, &mut Window, &mut App) + 'static,
) -> Self
fn on_drop<T: 'static>( self, listener: impl Fn(&T, &mut Window, &mut App) + 'static, ) -> Self
Source§fn on_drop_alt<T: 'static>(self, listener: DropListener<T>) -> Self
fn on_drop_alt<T: 'static>(self, listener: DropListener<T>) -> Self
Source§fn can_drop(
self,
predicate: impl Fn(&dyn Any, &mut Window, &mut App) -> bool + 'static,
) -> Self
fn can_drop( self, predicate: impl Fn(&dyn Any, &mut Window, &mut App) -> bool + 'static, ) -> Self
Sets a predicate that decides whether this element accepts the dragged value. Read more
Source§fn occlude(self) -> Self
fn occlude(self) -> Self
Stops the mouse from reaching elements behind this element. Read more
Source§fn window_control_area(self, area: WindowControlArea) -> Self
fn window_control_area(self, area: WindowControlArea) -> Self
Marks this element’s bounds as a window control area, such as a custom title bar button. Read more
Source§fn block_mouse_except_scroll(self) -> Self
fn block_mouse_except_scroll(self) -> Self
Stops mouse interactions from reaching elements behind this element, but lets scroll events through. Read more
Source§fn focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfwhere
Self: Sized,
fn focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfwhere
Self: Sized,
Applies
f’s style when this element itself has focus. Read moreSource§fn in_focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfwhere
Self: Sized,
fn in_focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfwhere
Self: Sized,
Applies
f’s style when this element or one of its ancestors has focus. Read moreSource§fn focus_visible(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Selfwhere
Self: Sized,
fn focus_visible(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Selfwhere
Self: Sized,
Applies
f’s style when this element has focus and the last input was from the keyboard. Read moreSource§impl<E: IntoElement> IntoElement for Stateful<E>
impl<E: IntoElement> IntoElement for Stateful<E>
Source§type Element = <E as IntoElement>::Element
type Element = <E as IntoElement>::Element
The element type that this type converts into. Read more
Source§fn into_any_element(self) -> AnyElement
fn into_any_element(self) -> AnyElement
Source§impl<E> ParentElement for Stateful<E>where
E: ParentElement,
impl<E> ParentElement for Stateful<E>where
E: ParentElement,
Source§fn extend(&mut self, elements: impl IntoIterator<Item = AnyElement>)
fn extend(&mut self, elements: impl IntoIterator<Item = AnyElement>)
Adds the given children to the end of this element’s children.
Source§fn child(self, child: impl IntoElement) -> Selfwhere
Self: Sized,
fn child(self, child: impl IntoElement) -> Selfwhere
Self: Sized,
Adds one child to this element, and returns the element for chaining.
Source§fn children(self, children: impl IntoIterator<Item = impl IntoElement>) -> Selfwhere
Self: Sized,
fn children(self, children: impl IntoIterator<Item = impl IntoElement>) -> Selfwhere
Self: Sized,
Adds several children to this element, in iteration order, and returns the element.
Source§impl<E> StatefulInteractiveElement for Stateful<E>where
Self: InteractiveElement,
impl<E> StatefulInteractiveElement for Stateful<E>where
Self: InteractiveElement,
Source§fn role(self, role: Role) -> Self
fn role(self, role: Role) -> Self
Sets the accessibility role of this element, such as a button or a list. Read more
Source§fn accessibility_id(self, id: impl Into<SharedString>) -> Self
fn accessibility_id(self, id: impl Into<SharedString>) -> Self
Sets the identifier that accessibility clients use to find this element. Read more
Source§fn aria_label(self, label: impl Into<SharedString>) -> Self
fn aria_label(self, label: impl Into<SharedString>) -> Self
Sets the accessible name of this element, which screen readers announce when focus reaches it. Read more
Source§fn aria_description(self, description: impl Into<SharedString>) -> Self
fn aria_description(self, description: impl Into<SharedString>) -> Self
Sets the accessible description of this element, announced after its name, role and value. Read more
Source§fn aria_keyshortcuts(self, keyshortcuts: impl Into<SharedString>) -> Self
fn aria_keyshortcuts(self, keyshortcuts: impl Into<SharedString>) -> Self
Sets the keyboard shortcut that assistive technology announces for this element. Read more
Hides this element and its descendants from assistive technology. Read more
Source§fn aria_active_descendant(self) -> Self
fn aria_active_descendant(self) -> Self
Reports this element as the focused node in the accessibility tree, while a focused ancestor is present. Read more
Source§fn a11y_synthetic_children(
self,
f: impl FnOnce(&mut A11ySubtreeBuilder<'_>) + 'static,
) -> Self
fn a11y_synthetic_children( self, f: impl FnOnce(&mut A11ySubtreeBuilder<'_>) + 'static, ) -> Self
Adds accessibility nodes that don’t correspond to any element, as children of this element. Read more
Source§fn aria_selected(self, selected: bool) -> Self
fn aria_selected(self, selected: bool) -> Self
Sets whether this element is selected, such as an item in a list or a tab.
Source§fn aria_expanded(self, expanded: bool) -> Self
fn aria_expanded(self, expanded: bool) -> Self
Sets whether this element is expanded, such as a disclosure triangle or a tree node.
Source§fn aria_toggled(self, toggled: Toggled) -> Self
fn aria_toggled(self, toggled: Toggled) -> Self
Sets the toggled state of this element, such as a checkbox that is on, off or mixed.
Source§fn aria_disabled(self, disabled: bool) -> Self
fn aria_disabled(self, disabled: bool) -> Self
Sets whether this element is disabled, so that it rejects input. Read more
Source§fn aria_numeric_value(self, value: f64) -> Self
fn aria_numeric_value(self, value: f64) -> Self
Sets the current numeric value of this element, such as the position of a slider.
Source§fn aria_numeric_value_step(self, step: f64) -> Self
fn aria_numeric_value_step(self, step: f64) -> Self
Sets the amount by which the numeric value changes per step, such as when a spin button is incremented.
Source§fn aria_value(self, value: impl Into<SharedString>) -> Self
fn aria_value(self, value: impl Into<SharedString>) -> Self
Sets the text value of this element, such as the contents of a simple text input.
Source§fn aria_placeholder(self, placeholder: impl Into<SharedString>) -> Self
fn aria_placeholder(self, placeholder: impl Into<SharedString>) -> Self
Sets the placeholder that assistive technology reads when a text input is empty.
Source§fn aria_min_numeric_value(self, value: f64) -> Self
fn aria_min_numeric_value(self, value: f64) -> Self
Sets the smallest numeric value this element can take.
Source§fn aria_max_numeric_value(self, value: f64) -> Self
fn aria_max_numeric_value(self, value: f64) -> Self
Sets the largest numeric value this element can take.
Source§fn aria_orientation(self, orientation: Orientation) -> Self
fn aria_orientation(self, orientation: Orientation) -> Self
Sets whether this element is laid out horizontally or vertically, such as a scrollbar or a splitter.
Source§fn aria_level(self, level: usize) -> Self
fn aria_level(self, level: usize) -> Self
Sets the heading level of this element, where 1 is the top level.
Source§fn aria_position_in_set(self, position: usize) -> Self
fn aria_position_in_set(self, position: usize) -> Self
Sets the one-based position of this element within its set, such as the third item of five in a list. Read more
Source§fn aria_size_of_set(self, size: usize) -> Self
fn aria_size_of_set(self, size: usize) -> Self
Sets the number of items in the set this element belongs to.
Source§fn aria_row_index(self, index: usize) -> Self
fn aria_row_index(self, index: usize) -> Self
Sets the one-based row index of this element within its table or grid.
Source§fn aria_column_index(self, index: usize) -> Self
fn aria_column_index(self, index: usize) -> Self
Sets the one-based column index of this element within its table or grid.
Source§fn aria_row_count(self, count: usize) -> Self
fn aria_row_count(self, count: usize) -> Self
Sets the number of rows in the table or grid that contains this element.
Source§fn aria_column_count(self, count: usize) -> Self
fn aria_column_count(self, count: usize) -> Self
Sets the number of columns in the table or grid that contains this element.
Source§fn aria_modal(self, modal: bool) -> Self
fn aria_modal(self, modal: bool) -> Self
Marks this element, typically a dialog, as modal. Read more
Source§fn aria_live(self, live: Live) -> Self
fn aria_live(self, live: Live) -> Self
Sets how urgently assistive technology announces changes to this element, as an ARIA live region. Read more
Source§fn aria_live_atomic(self, atomic: bool) -> Self
fn aria_live_atomic(self, atomic: bool) -> Self
Sets whether a change to this live region is announced as a whole, instead of only the changed part. Read more
Source§fn on_a11y_action(
self,
action: Action,
listener: impl FnMut(Option<&ActionData>, &mut Window, &mut App) + 'static,
) -> Self
fn on_a11y_action( self, action: Action, listener: impl FnMut(Option<&ActionData>, &mut Window, &mut App) + 'static, ) -> Self
Source§fn focusable(self) -> Self
fn focusable(self) -> Self
Makes this element focusable, without giving it a focus handle of your own. Read more
Source§fn overflow_scroll(self) -> Self
fn overflow_scroll(self) -> Self
Makes this element scroll on both axes when its content overflows. Read more
Source§fn overflow_x_scroll(self) -> Self
fn overflow_x_scroll(self) -> Self
Makes this element scroll horizontally when its content overflows. Read more
Source§fn overflow_y_scroll(self) -> Self
fn overflow_y_scroll(self) -> Self
Makes this element scroll vertically when its content overflows. Read more
Source§fn restrict_scroll_to_axis(self) -> Self
fn restrict_scroll_to_axis(self) -> Self
Restricts a scroll gesture to the axis it started on, so that a vertical swipe doesn’t also scroll sideways. Read more
Source§fn track_scroll(self, scroll_handle: &ScrollHandle) -> Self
fn track_scroll(self, scroll_handle: &ScrollHandle) -> Self
Records this element’s scroll state in
scroll_handle, so that you can read and change the scroll position. Read moreSource§fn anchor_scroll(self, scroll_anchor: Option<ScrollAnchor>) -> Self
fn anchor_scroll(self, scroll_anchor: Option<ScrollAnchor>) -> Self
Connects this element to a
ScrollAnchor, so that the anchor can scroll the parent to this element. Read moreSource§fn active(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfwhere
Self: Sized,
fn active(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfwhere
Self: Sized,
Applies
f’s style while the mouse button is held down on this element. Read moreSource§fn group_active(
self,
group_name: impl Into<SharedString>,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Selfwhere
Self: Sized,
fn group_active(
self,
group_name: impl Into<SharedString>,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Selfwhere
Self: Sized,
Source§fn on_click(
self,
listener: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
fn on_click(
self,
listener: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
Runs
listener when this element is clicked, or activated from the keyboard. Read moreSource§fn on_aux_click(
self,
listener: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
fn on_aux_click(
self,
listener: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
Runs
listener for clicks with a button other than the left one, such as the middle button. Read moreSource§fn on_drag<T, W>(
self,
value: T,
constructor: impl Fn(&T, Point<Pixels>, &mut Window, &mut App) -> Entity<W> + 'static,
) -> Self
fn on_drag<T, W>( self, value: T, constructor: impl Fn(&T, Point<Pixels>, &mut Window, &mut App) -> Entity<W> + 'static, ) -> Self
Starts a drag of
value when the left button is pressed on this element and the pointer moves. Read moreSource§fn on_drag_alt<F>(self, listener: F) -> Self
fn on_drag_alt<F>(self, listener: F) -> Self
Sets the function that starts a drag from this element. Read more
Source§fn external_drag_payload<T>(
self,
resolver: impl Fn(&T, &mut Window, &mut App) -> Option<ExternalDragPayload> + 'static,
) -> Selfwhere
Self: Sized,
T: 'static,
fn external_drag_payload<T>(
self,
resolver: impl Fn(&T, &mut Window, &mut App) -> Option<ExternalDragPayload> + 'static,
) -> Selfwhere
Self: Sized,
T: 'static,
Registers a resolver for the data to offer the platform when a drag from this element leaves the window. Read more
Source§fn on_hover(
self,
listener: impl Fn(&bool, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
fn on_hover(
self,
listener: impl Fn(&bool, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
Source§fn hover_listener_mode(self, mode: HoverListenerMode) -> Selfwhere
Self: Sized,
fn hover_listener_mode(self, mode: HoverListenerMode) -> Selfwhere
Self: Sized,
Sets how
Self::on_hover responds to key presses while the mouse is stationary.
This affects only the hover listener, not hover styles or tooltips. The fluent API
equivalent to Interactivity::hover_listener_mode.Source§fn on_hover_region<R: PartialEq + 'static>(
self,
project: impl Fn(Point<Pixels>, Bounds<Pixels>) -> Option<R> + 'static,
listener: impl Fn(&Option<R>, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
fn on_hover_region<R: PartialEq + 'static>(
self,
project: impl Fn(Point<Pixels>, Bounds<Pixels>) -> Option<R> + 'static,
listener: impl Fn(&Option<R>, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
Calls the listener when a typed pointer projection changes.
Source§fn tooltip(
self,
build_tooltip: impl Fn(&mut Window, &mut App) -> AnyView + 'static,
) -> Selfwhere
Self: Sized,
fn tooltip(
self,
build_tooltip: impl Fn(&mut Window, &mut App) -> AnyView + 'static,
) -> Selfwhere
Self: Sized,
Shows a tooltip built by
build_tooltip while the pointer rests over this element. Read moreSource§fn hoverable_tooltip(
self,
build_tooltip: impl Fn(&mut Window, &mut App) -> AnyView + 'static,
) -> Selfwhere
Self: Sized,
fn hoverable_tooltip(
self,
build_tooltip: impl Fn(&mut Window, &mut App) -> AnyView + 'static,
) -> Selfwhere
Self: Sized,
Shows a tooltip built by
build_tooltip while the pointer rests over this element, and keeps it open while the
pointer is over the tooltip. Read moreSource§fn tooltip_show_delay(self, delay: Duration) -> Selfwhere
Self: Sized,
fn tooltip_show_delay(self, delay: Duration) -> Selfwhere
Self: Sized,
Sets how long the pointer must rest over this element before its tooltip appears. Read more
Source§fn on_prepaint(
self,
listener: impl Fn(&InteractivityPrepaint, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
fn on_prepaint(
self,
listener: impl Fn(&InteractivityPrepaint, &mut Window, &mut App) + 'static,
) -> Selfwhere
Self: Sized,
Runs
listener during prepaint, once the element’s bounds and content size are known. Read moreSource§impl<E> Styled for Stateful<E>where
E: Styled,
impl<E> Styled for Stateful<E>where
E: Styled,
Source§fn style(&mut self) -> &mut StyleRefinement
fn style(&mut self) -> &mut StyleRefinement
Returns the
StyleRefinement that the methods on this trait write into. Read moreSource§fn w_neg_full(self) -> Self
fn w_neg_full(self) -> Self
Source§fn w_neg_1_12(self) -> Self
fn w_neg_1_12(self) -> Self
Source§fn h_neg_full(self) -> Self
fn h_neg_full(self) -> Self
Source§fn h_neg_1_12(self) -> Self
fn h_neg_1_12(self) -> Self
Source§fn size(self, length: impl Clone + Into<Length>) -> Self
fn size(self, length: impl Clone + Into<Length>) -> Self
Sets the width and height of the element.
Source§fn size_neg_0(self) -> Self
fn size_neg_0(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_0p5(self) -> Self
fn size_neg_0p5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_1(self) -> Self
fn size_neg_1(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_1p5(self) -> Self
fn size_neg_1p5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_2(self) -> Self
fn size_neg_2(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_2p5(self) -> Self
fn size_neg_2p5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_3(self) -> Self
fn size_neg_3(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_3p5(self) -> Self
fn size_neg_3p5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_4(self) -> Self
fn size_neg_4(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_5(self) -> Self
fn size_neg_5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_6(self) -> Self
fn size_neg_6(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_7(self) -> Self
fn size_neg_7(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_8(self) -> Self
fn size_neg_8(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_9(self) -> Self
fn size_neg_9(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_10(self) -> Self
fn size_neg_10(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_11(self) -> Self
fn size_neg_11(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_12(self) -> Self
fn size_neg_12(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_16(self) -> Self
fn size_neg_16(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_20(self) -> Self
fn size_neg_20(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_24(self) -> Self
fn size_neg_24(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_32(self) -> Self
fn size_neg_32(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_40(self) -> Self
fn size_neg_40(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_48(self) -> Self
fn size_neg_48(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_56(self) -> Self
fn size_neg_56(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_64(self) -> Self
fn size_neg_64(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_72(self) -> Self
fn size_neg_72(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_80(self) -> Self
fn size_neg_80(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_96(self) -> Self
fn size_neg_96(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_112(self) -> Self
fn size_neg_112(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_128(self) -> Self
fn size_neg_128(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_px(self) -> Self
fn size_neg_px(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_full(self) -> Self
fn size_neg_full(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_1_2(self) -> Self
fn size_neg_1_2(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_1_3(self) -> Self
fn size_neg_1_3(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_2_3(self) -> Self
fn size_neg_2_3(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_1_4(self) -> Self
fn size_neg_1_4(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_2_4(self) -> Self
fn size_neg_2_4(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_3_4(self) -> Self
fn size_neg_3_4(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_1_5(self) -> Self
fn size_neg_1_5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_2_5(self) -> Self
fn size_neg_2_5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_3_5(self) -> Self
fn size_neg_3_5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_4_5(self) -> Self
fn size_neg_4_5(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_1_6(self) -> Self
fn size_neg_1_6(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_5_6(self) -> Self
fn size_neg_5_6(self) -> Self
Sets the width and height of the element. Read more
Source§fn size_neg_1_12(self) -> Self
fn size_neg_1_12(self) -> Self
Sets the width and height of the element. Read more
Source§fn min_size(self, length: impl Clone + Into<Length>) -> Self
fn min_size(self, length: impl Clone + Into<Length>) -> Self
Sets the minimum width and height of the element.
Source§fn min_size_0(self) -> Self
fn min_size_0(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_0(self) -> Self
fn min_size_neg_0(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_0p5(self) -> Self
fn min_size_0p5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_0p5(self) -> Self
fn min_size_neg_0p5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_1(self) -> Self
fn min_size_1(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_1(self) -> Self
fn min_size_neg_1(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_1p5(self) -> Self
fn min_size_1p5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_1p5(self) -> Self
fn min_size_neg_1p5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_2(self) -> Self
fn min_size_2(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_2(self) -> Self
fn min_size_neg_2(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_2p5(self) -> Self
fn min_size_2p5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_2p5(self) -> Self
fn min_size_neg_2p5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_3(self) -> Self
fn min_size_3(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_3(self) -> Self
fn min_size_neg_3(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_3p5(self) -> Self
fn min_size_3p5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_3p5(self) -> Self
fn min_size_neg_3p5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_4(self) -> Self
fn min_size_4(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_4(self) -> Self
fn min_size_neg_4(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_5(self) -> Self
fn min_size_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_5(self) -> Self
fn min_size_neg_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_6(self) -> Self
fn min_size_6(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_6(self) -> Self
fn min_size_neg_6(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_7(self) -> Self
fn min_size_7(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_7(self) -> Self
fn min_size_neg_7(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_8(self) -> Self
fn min_size_8(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_8(self) -> Self
fn min_size_neg_8(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_9(self) -> Self
fn min_size_9(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_9(self) -> Self
fn min_size_neg_9(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_10(self) -> Self
fn min_size_10(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_10(self) -> Self
fn min_size_neg_10(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_11(self) -> Self
fn min_size_11(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_11(self) -> Self
fn min_size_neg_11(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_12(self) -> Self
fn min_size_12(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_12(self) -> Self
fn min_size_neg_12(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_16(self) -> Self
fn min_size_16(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_16(self) -> Self
fn min_size_neg_16(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_20(self) -> Self
fn min_size_20(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_20(self) -> Self
fn min_size_neg_20(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_24(self) -> Self
fn min_size_24(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_24(self) -> Self
fn min_size_neg_24(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_32(self) -> Self
fn min_size_32(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_32(self) -> Self
fn min_size_neg_32(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_40(self) -> Self
fn min_size_40(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_40(self) -> Self
fn min_size_neg_40(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_48(self) -> Self
fn min_size_48(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_48(self) -> Self
fn min_size_neg_48(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_56(self) -> Self
fn min_size_56(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_56(self) -> Self
fn min_size_neg_56(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_64(self) -> Self
fn min_size_64(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_64(self) -> Self
fn min_size_neg_64(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_72(self) -> Self
fn min_size_72(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_72(self) -> Self
fn min_size_neg_72(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_80(self) -> Self
fn min_size_80(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_80(self) -> Self
fn min_size_neg_80(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_96(self) -> Self
fn min_size_96(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_96(self) -> Self
fn min_size_neg_96(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_112(self) -> Self
fn min_size_112(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_112(self) -> Self
fn min_size_neg_112(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_128(self) -> Self
fn min_size_128(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_128(self) -> Self
fn min_size_neg_128(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_auto(self) -> Self
fn min_size_auto(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_px(self) -> Self
fn min_size_px(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_px(self) -> Self
fn min_size_neg_px(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_full(self) -> Self
fn min_size_full(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_full(self) -> Self
fn min_size_neg_full(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_1_2(self) -> Self
fn min_size_1_2(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_1_2(self) -> Self
fn min_size_neg_1_2(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_1_3(self) -> Self
fn min_size_1_3(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_1_3(self) -> Self
fn min_size_neg_1_3(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_2_3(self) -> Self
fn min_size_2_3(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_2_3(self) -> Self
fn min_size_neg_2_3(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_1_4(self) -> Self
fn min_size_1_4(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_1_4(self) -> Self
fn min_size_neg_1_4(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_2_4(self) -> Self
fn min_size_2_4(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_2_4(self) -> Self
fn min_size_neg_2_4(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_3_4(self) -> Self
fn min_size_3_4(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_3_4(self) -> Self
fn min_size_neg_3_4(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_1_5(self) -> Self
fn min_size_1_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_1_5(self) -> Self
fn min_size_neg_1_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_2_5(self) -> Self
fn min_size_2_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_2_5(self) -> Self
fn min_size_neg_2_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_3_5(self) -> Self
fn min_size_3_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_3_5(self) -> Self
fn min_size_neg_3_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_4_5(self) -> Self
fn min_size_4_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_4_5(self) -> Self
fn min_size_neg_4_5(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_1_6(self) -> Self
fn min_size_1_6(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_1_6(self) -> Self
fn min_size_neg_1_6(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_5_6(self) -> Self
fn min_size_5_6(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_5_6(self) -> Self
fn min_size_neg_5_6(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_1_12(self) -> Self
fn min_size_1_12(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_size_neg_1_12(self) -> Self
fn min_size_neg_1_12(self) -> Self
Sets the minimum width and height of the element. Read more
Source§fn min_w(self, length: impl Clone + Into<Length>) -> Self
fn min_w(self, length: impl Clone + Into<Length>) -> Self
Sets the minimum width of the element. Docs
Source§fn min_w_neg_0(self) -> Self
fn min_w_neg_0(self) -> Self
Source§fn min_w_neg_0p5(self) -> Self
fn min_w_neg_0p5(self) -> Self
Source§fn min_w_neg_1(self) -> Self
fn min_w_neg_1(self) -> Self
Source§fn min_w_neg_1p5(self) -> Self
fn min_w_neg_1p5(self) -> Self
Source§fn min_w_neg_2(self) -> Self
fn min_w_neg_2(self) -> Self
Source§fn min_w_neg_2p5(self) -> Self
fn min_w_neg_2p5(self) -> Self
Source§fn min_w_neg_3(self) -> Self
fn min_w_neg_3(self) -> Self
Source§fn min_w_neg_3p5(self) -> Self
fn min_w_neg_3p5(self) -> Self
Source§fn min_w_neg_4(self) -> Self
fn min_w_neg_4(self) -> Self
Source§fn min_w_neg_5(self) -> Self
fn min_w_neg_5(self) -> Self
Source§fn min_w_neg_6(self) -> Self
fn min_w_neg_6(self) -> Self
Source§fn min_w_neg_7(self) -> Self
fn min_w_neg_7(self) -> Self
Source§fn min_w_neg_8(self) -> Self
fn min_w_neg_8(self) -> Self
Source§fn min_w_neg_9(self) -> Self
fn min_w_neg_9(self) -> Self
Source§fn min_w_neg_10(self) -> Self
fn min_w_neg_10(self) -> Self
Source§fn min_w_neg_11(self) -> Self
fn min_w_neg_11(self) -> Self
Source§fn min_w_neg_12(self) -> Self
fn min_w_neg_12(self) -> Self
Source§fn min_w_neg_16(self) -> Self
fn min_w_neg_16(self) -> Self
Source§fn min_w_neg_20(self) -> Self
fn min_w_neg_20(self) -> Self
Source§fn min_w_neg_24(self) -> Self
fn min_w_neg_24(self) -> Self
Source§fn min_w_neg_32(self) -> Self
fn min_w_neg_32(self) -> Self
Source§fn min_w_neg_40(self) -> Self
fn min_w_neg_40(self) -> Self
Source§fn min_w_neg_48(self) -> Self
fn min_w_neg_48(self) -> Self
Source§fn min_w_neg_56(self) -> Self
fn min_w_neg_56(self) -> Self
Source§fn min_w_neg_64(self) -> Self
fn min_w_neg_64(self) -> Self
Source§fn min_w_neg_72(self) -> Self
fn min_w_neg_72(self) -> Self
Source§fn min_w_neg_80(self) -> Self
fn min_w_neg_80(self) -> Self
Source§fn min_w_neg_96(self) -> Self
fn min_w_neg_96(self) -> Self
Source§fn min_w_neg_112(self) -> Self
fn min_w_neg_112(self) -> Self
Source§fn min_w_neg_128(self) -> Self
fn min_w_neg_128(self) -> Self
Source§fn min_w_auto(self) -> Self
fn min_w_auto(self) -> Self
Source§fn min_w_neg_px(self) -> Self
fn min_w_neg_px(self) -> Self
Source§fn min_w_full(self) -> Self
fn min_w_full(self) -> Self
Source§fn min_w_neg_full(self) -> Self
fn min_w_neg_full(self) -> Self
Source§fn min_w_neg_1_2(self) -> Self
fn min_w_neg_1_2(self) -> Self
Source§fn min_w_neg_1_3(self) -> Self
fn min_w_neg_1_3(self) -> Self
Source§fn min_w_neg_2_3(self) -> Self
fn min_w_neg_2_3(self) -> Self
Source§fn min_w_neg_1_4(self) -> Self
fn min_w_neg_1_4(self) -> Self
Source§fn min_w_neg_2_4(self) -> Self
fn min_w_neg_2_4(self) -> Self
Source§fn min_w_neg_3_4(self) -> Self
fn min_w_neg_3_4(self) -> Self
Source§fn min_w_neg_1_5(self) -> Self
fn min_w_neg_1_5(self) -> Self
Source§fn min_w_neg_2_5(self) -> Self
fn min_w_neg_2_5(self) -> Self
Source§fn min_w_neg_3_5(self) -> Self
fn min_w_neg_3_5(self) -> Self
Source§fn min_w_neg_4_5(self) -> Self
fn min_w_neg_4_5(self) -> Self
Source§fn min_w_neg_1_6(self) -> Self
fn min_w_neg_1_6(self) -> Self
Source§fn min_w_neg_5_6(self) -> Self
fn min_w_neg_5_6(self) -> Self
Source§fn min_w_1_12(self) -> Self
fn min_w_1_12(self) -> Self
Source§fn min_w_neg_1_12(self) -> Self
fn min_w_neg_1_12(self) -> Self
Source§fn min_h(self, length: impl Clone + Into<Length>) -> Self
fn min_h(self, length: impl Clone + Into<Length>) -> Self
Sets the minimum height of the element. Docs
Source§fn min_h_neg_0(self) -> Self
fn min_h_neg_0(self) -> Self
Source§fn min_h_neg_0p5(self) -> Self
fn min_h_neg_0p5(self) -> Self
Source§fn min_h_neg_1(self) -> Self
fn min_h_neg_1(self) -> Self
Source§fn min_h_neg_1p5(self) -> Self
fn min_h_neg_1p5(self) -> Self
Source§fn min_h_neg_2(self) -> Self
fn min_h_neg_2(self) -> Self
Source§fn min_h_neg_2p5(self) -> Self
fn min_h_neg_2p5(self) -> Self
Source§fn min_h_neg_3(self) -> Self
fn min_h_neg_3(self) -> Self
Source§fn min_h_neg_3p5(self) -> Self
fn min_h_neg_3p5(self) -> Self
Source§fn min_h_neg_4(self) -> Self
fn min_h_neg_4(self) -> Self
Source§fn min_h_neg_5(self) -> Self
fn min_h_neg_5(self) -> Self
Source§fn min_h_neg_6(self) -> Self
fn min_h_neg_6(self) -> Self
Source§fn min_h_neg_7(self) -> Self
fn min_h_neg_7(self) -> Self
Source§fn min_h_neg_8(self) -> Self
fn min_h_neg_8(self) -> Self
Source§fn min_h_neg_9(self) -> Self
fn min_h_neg_9(self) -> Self
Source§fn min_h_neg_10(self) -> Self
fn min_h_neg_10(self) -> Self
Source§fn min_h_neg_11(self) -> Self
fn min_h_neg_11(self) -> Self
Source§fn min_h_neg_12(self) -> Self
fn min_h_neg_12(self) -> Self
Source§fn min_h_neg_16(self) -> Self
fn min_h_neg_16(self) -> Self
Source§fn min_h_neg_20(self) -> Self
fn min_h_neg_20(self) -> Self
Source§fn min_h_neg_24(self) -> Self
fn min_h_neg_24(self) -> Self
Source§fn min_h_neg_32(self) -> Self
fn min_h_neg_32(self) -> Self
Source§fn min_h_neg_40(self) -> Self
fn min_h_neg_40(self) -> Self
Source§fn min_h_neg_48(self) -> Self
fn min_h_neg_48(self) -> Self
Source§fn min_h_neg_56(self) -> Self
fn min_h_neg_56(self) -> Self
Source§fn min_h_neg_64(self) -> Self
fn min_h_neg_64(self) -> Self
Source§fn min_h_neg_72(self) -> Self
fn min_h_neg_72(self) -> Self
Source§fn min_h_neg_80(self) -> Self
fn min_h_neg_80(self) -> Self
Source§fn min_h_neg_96(self) -> Self
fn min_h_neg_96(self) -> Self
Source§fn min_h_neg_112(self) -> Self
fn min_h_neg_112(self) -> Self
Source§fn min_h_neg_128(self) -> Self
fn min_h_neg_128(self) -> Self
Source§fn min_h_auto(self) -> Self
fn min_h_auto(self) -> Self
Source§fn min_h_neg_px(self) -> Self
fn min_h_neg_px(self) -> Self
Source§fn min_h_full(self) -> Self
fn min_h_full(self) -> Self
Source§fn min_h_neg_full(self) -> Self
fn min_h_neg_full(self) -> Self
Source§fn min_h_neg_1_2(self) -> Self
fn min_h_neg_1_2(self) -> Self
Source§fn min_h_neg_1_3(self) -> Self
fn min_h_neg_1_3(self) -> Self
Source§fn min_h_neg_2_3(self) -> Self
fn min_h_neg_2_3(self) -> Self
Source§fn min_h_neg_1_4(self) -> Self
fn min_h_neg_1_4(self) -> Self
Source§fn min_h_neg_2_4(self) -> Self
fn min_h_neg_2_4(self) -> Self
Source§fn min_h_neg_3_4(self) -> Self
fn min_h_neg_3_4(self) -> Self
Source§fn min_h_neg_1_5(self) -> Self
fn min_h_neg_1_5(self) -> Self
Source§fn min_h_neg_2_5(self) -> Self
fn min_h_neg_2_5(self) -> Self
Source§fn min_h_neg_3_5(self) -> Self
fn min_h_neg_3_5(self) -> Self
Source§fn min_h_neg_4_5(self) -> Self
fn min_h_neg_4_5(self) -> Self
Source§fn min_h_neg_1_6(self) -> Self
fn min_h_neg_1_6(self) -> Self
Source§fn min_h_neg_5_6(self) -> Self
fn min_h_neg_5_6(self) -> Self
Source§fn min_h_1_12(self) -> Self
fn min_h_1_12(self) -> Self
Source§fn min_h_neg_1_12(self) -> Self
fn min_h_neg_1_12(self) -> Self
Source§fn max_size(self, length: impl Clone + Into<Length>) -> Self
fn max_size(self, length: impl Clone + Into<Length>) -> Self
Sets the maximum width and height of the element.
Source§fn max_size_0(self) -> Self
fn max_size_0(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_0(self) -> Self
fn max_size_neg_0(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_0p5(self) -> Self
fn max_size_0p5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_0p5(self) -> Self
fn max_size_neg_0p5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_1(self) -> Self
fn max_size_1(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_1(self) -> Self
fn max_size_neg_1(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_1p5(self) -> Self
fn max_size_1p5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_1p5(self) -> Self
fn max_size_neg_1p5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_2(self) -> Self
fn max_size_2(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_2(self) -> Self
fn max_size_neg_2(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_2p5(self) -> Self
fn max_size_2p5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_2p5(self) -> Self
fn max_size_neg_2p5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_3(self) -> Self
fn max_size_3(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_3(self) -> Self
fn max_size_neg_3(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_3p5(self) -> Self
fn max_size_3p5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_3p5(self) -> Self
fn max_size_neg_3p5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_4(self) -> Self
fn max_size_4(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_4(self) -> Self
fn max_size_neg_4(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_5(self) -> Self
fn max_size_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_5(self) -> Self
fn max_size_neg_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_6(self) -> Self
fn max_size_6(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_6(self) -> Self
fn max_size_neg_6(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_7(self) -> Self
fn max_size_7(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_7(self) -> Self
fn max_size_neg_7(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_8(self) -> Self
fn max_size_8(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_8(self) -> Self
fn max_size_neg_8(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_9(self) -> Self
fn max_size_9(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_9(self) -> Self
fn max_size_neg_9(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_10(self) -> Self
fn max_size_10(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_10(self) -> Self
fn max_size_neg_10(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_11(self) -> Self
fn max_size_11(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_11(self) -> Self
fn max_size_neg_11(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_12(self) -> Self
fn max_size_12(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_12(self) -> Self
fn max_size_neg_12(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_16(self) -> Self
fn max_size_16(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_16(self) -> Self
fn max_size_neg_16(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_20(self) -> Self
fn max_size_20(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_20(self) -> Self
fn max_size_neg_20(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_24(self) -> Self
fn max_size_24(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_24(self) -> Self
fn max_size_neg_24(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_32(self) -> Self
fn max_size_32(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_32(self) -> Self
fn max_size_neg_32(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_40(self) -> Self
fn max_size_40(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_40(self) -> Self
fn max_size_neg_40(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_48(self) -> Self
fn max_size_48(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_48(self) -> Self
fn max_size_neg_48(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_56(self) -> Self
fn max_size_56(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_56(self) -> Self
fn max_size_neg_56(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_64(self) -> Self
fn max_size_64(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_64(self) -> Self
fn max_size_neg_64(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_72(self) -> Self
fn max_size_72(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_72(self) -> Self
fn max_size_neg_72(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_80(self) -> Self
fn max_size_80(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_80(self) -> Self
fn max_size_neg_80(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_96(self) -> Self
fn max_size_96(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_96(self) -> Self
fn max_size_neg_96(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_112(self) -> Self
fn max_size_112(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_112(self) -> Self
fn max_size_neg_112(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_128(self) -> Self
fn max_size_128(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_128(self) -> Self
fn max_size_neg_128(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_auto(self) -> Self
fn max_size_auto(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_px(self) -> Self
fn max_size_px(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_px(self) -> Self
fn max_size_neg_px(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_full(self) -> Self
fn max_size_full(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_full(self) -> Self
fn max_size_neg_full(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_1_2(self) -> Self
fn max_size_1_2(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_1_2(self) -> Self
fn max_size_neg_1_2(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_1_3(self) -> Self
fn max_size_1_3(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_1_3(self) -> Self
fn max_size_neg_1_3(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_2_3(self) -> Self
fn max_size_2_3(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_2_3(self) -> Self
fn max_size_neg_2_3(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_1_4(self) -> Self
fn max_size_1_4(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_1_4(self) -> Self
fn max_size_neg_1_4(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_2_4(self) -> Self
fn max_size_2_4(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_2_4(self) -> Self
fn max_size_neg_2_4(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_3_4(self) -> Self
fn max_size_3_4(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_3_4(self) -> Self
fn max_size_neg_3_4(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_1_5(self) -> Self
fn max_size_1_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_1_5(self) -> Self
fn max_size_neg_1_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_2_5(self) -> Self
fn max_size_2_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_2_5(self) -> Self
fn max_size_neg_2_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_3_5(self) -> Self
fn max_size_3_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_3_5(self) -> Self
fn max_size_neg_3_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_4_5(self) -> Self
fn max_size_4_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_4_5(self) -> Self
fn max_size_neg_4_5(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_1_6(self) -> Self
fn max_size_1_6(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_1_6(self) -> Self
fn max_size_neg_1_6(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_5_6(self) -> Self
fn max_size_5_6(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_5_6(self) -> Self
fn max_size_neg_5_6(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_1_12(self) -> Self
fn max_size_1_12(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_size_neg_1_12(self) -> Self
fn max_size_neg_1_12(self) -> Self
Sets the maximum width and height of the element. Read more
Source§fn max_w(self, length: impl Clone + Into<Length>) -> Self
fn max_w(self, length: impl Clone + Into<Length>) -> Self
Sets the maximum width of the element. Docs
Source§fn max_w_neg_0(self) -> Self
fn max_w_neg_0(self) -> Self
Source§fn max_w_neg_0p5(self) -> Self
fn max_w_neg_0p5(self) -> Self
Source§fn max_w_neg_1(self) -> Self
fn max_w_neg_1(self) -> Self
Source§fn max_w_neg_1p5(self) -> Self
fn max_w_neg_1p5(self) -> Self
Source§fn max_w_neg_2(self) -> Self
fn max_w_neg_2(self) -> Self
Source§fn max_w_neg_2p5(self) -> Self
fn max_w_neg_2p5(self) -> Self
Source§fn max_w_neg_3(self) -> Self
fn max_w_neg_3(self) -> Self
Source§fn max_w_neg_3p5(self) -> Self
fn max_w_neg_3p5(self) -> Self
Source§fn max_w_neg_4(self) -> Self
fn max_w_neg_4(self) -> Self
Source§fn max_w_neg_5(self) -> Self
fn max_w_neg_5(self) -> Self
Source§fn max_w_neg_6(self) -> Self
fn max_w_neg_6(self) -> Self
Source§fn max_w_neg_7(self) -> Self
fn max_w_neg_7(self) -> Self
Source§fn max_w_neg_8(self) -> Self
fn max_w_neg_8(self) -> Self
Source§fn max_w_neg_9(self) -> Self
fn max_w_neg_9(self) -> Self
Source§fn max_w_neg_10(self) -> Self
fn max_w_neg_10(self) -> Self
Source§fn max_w_neg_11(self) -> Self
fn max_w_neg_11(self) -> Self
Source§fn max_w_neg_12(self) -> Self
fn max_w_neg_12(self) -> Self
Source§fn max_w_neg_16(self) -> Self
fn max_w_neg_16(self) -> Self
Source§fn max_w_neg_20(self) -> Self
fn max_w_neg_20(self) -> Self
Source§fn max_w_neg_24(self) -> Self
fn max_w_neg_24(self) -> Self
Source§fn max_w_neg_32(self) -> Self
fn max_w_neg_32(self) -> Self
Source§fn max_w_neg_40(self) -> Self
fn max_w_neg_40(self) -> Self
Source§fn max_w_neg_48(self) -> Self
fn max_w_neg_48(self) -> Self
Source§fn max_w_neg_56(self) -> Self
fn max_w_neg_56(self) -> Self
Source§fn max_w_neg_64(self) -> Self
fn max_w_neg_64(self) -> Self
Source§fn max_w_neg_72(self) -> Self
fn max_w_neg_72(self) -> Self
Source§fn max_w_neg_80(self) -> Self
fn max_w_neg_80(self) -> Self
Source§fn max_w_neg_96(self) -> Self
fn max_w_neg_96(self) -> Self
Source§fn max_w_neg_112(self) -> Self
fn max_w_neg_112(self) -> Self
Source§fn max_w_neg_128(self) -> Self
fn max_w_neg_128(self) -> Self
Source§fn max_w_auto(self) -> Self
fn max_w_auto(self) -> Self
Source§fn max_w_neg_px(self) -> Self
fn max_w_neg_px(self) -> Self
Source§fn max_w_full(self) -> Self
fn max_w_full(self) -> Self
Source§fn max_w_neg_full(self) -> Self
fn max_w_neg_full(self) -> Self
Source§fn max_w_neg_1_2(self) -> Self
fn max_w_neg_1_2(self) -> Self
Source§fn max_w_neg_1_3(self) -> Self
fn max_w_neg_1_3(self) -> Self
Source§fn max_w_neg_2_3(self) -> Self
fn max_w_neg_2_3(self) -> Self
Source§fn max_w_neg_1_4(self) -> Self
fn max_w_neg_1_4(self) -> Self
Source§fn max_w_neg_2_4(self) -> Self
fn max_w_neg_2_4(self) -> Self
Source§fn max_w_neg_3_4(self) -> Self
fn max_w_neg_3_4(self) -> Self
Source§fn max_w_neg_1_5(self) -> Self
fn max_w_neg_1_5(self) -> Self
Source§fn max_w_neg_2_5(self) -> Self
fn max_w_neg_2_5(self) -> Self
Source§fn max_w_neg_3_5(self) -> Self
fn max_w_neg_3_5(self) -> Self
Source§fn max_w_neg_4_5(self) -> Self
fn max_w_neg_4_5(self) -> Self
Source§fn max_w_neg_1_6(self) -> Self
fn max_w_neg_1_6(self) -> Self
Source§fn max_w_neg_5_6(self) -> Self
fn max_w_neg_5_6(self) -> Self
Source§fn max_w_1_12(self) -> Self
fn max_w_1_12(self) -> Self
Source§fn max_w_neg_1_12(self) -> Self
fn max_w_neg_1_12(self) -> Self
Source§fn max_h(self, length: impl Clone + Into<Length>) -> Self
fn max_h(self, length: impl Clone + Into<Length>) -> Self
Sets the maximum height of the element. Docs
Source§fn max_h_neg_0(self) -> Self
fn max_h_neg_0(self) -> Self
Source§fn max_h_neg_0p5(self) -> Self
fn max_h_neg_0p5(self) -> Self
Source§fn max_h_neg_1(self) -> Self
fn max_h_neg_1(self) -> Self
Source§fn max_h_neg_1p5(self) -> Self
fn max_h_neg_1p5(self) -> Self
Source§fn max_h_neg_2(self) -> Self
fn max_h_neg_2(self) -> Self
Source§fn max_h_neg_2p5(self) -> Self
fn max_h_neg_2p5(self) -> Self
Source§fn max_h_neg_3(self) -> Self
fn max_h_neg_3(self) -> Self
Source§fn max_h_neg_3p5(self) -> Self
fn max_h_neg_3p5(self) -> Self
Source§fn max_h_neg_4(self) -> Self
fn max_h_neg_4(self) -> Self
Source§fn max_h_neg_5(self) -> Self
fn max_h_neg_5(self) -> Self
Source§fn max_h_neg_6(self) -> Self
fn max_h_neg_6(self) -> Self
Source§fn max_h_neg_7(self) -> Self
fn max_h_neg_7(self) -> Self
Source§fn max_h_neg_8(self) -> Self
fn max_h_neg_8(self) -> Self
Source§fn max_h_neg_9(self) -> Self
fn max_h_neg_9(self) -> Self
Source§fn max_h_neg_10(self) -> Self
fn max_h_neg_10(self) -> Self
Source§fn max_h_neg_11(self) -> Self
fn max_h_neg_11(self) -> Self
Source§fn max_h_neg_12(self) -> Self
fn max_h_neg_12(self) -> Self
Source§fn max_h_neg_16(self) -> Self
fn max_h_neg_16(self) -> Self
Source§fn max_h_neg_20(self) -> Self
fn max_h_neg_20(self) -> Self
Source§fn max_h_neg_24(self) -> Self
fn max_h_neg_24(self) -> Self
Source§fn max_h_neg_32(self) -> Self
fn max_h_neg_32(self) -> Self
Source§fn max_h_neg_40(self) -> Self
fn max_h_neg_40(self) -> Self
Source§fn max_h_neg_48(self) -> Self
fn max_h_neg_48(self) -> Self
Source§fn max_h_neg_56(self) -> Self
fn max_h_neg_56(self) -> Self
Source§fn max_h_neg_64(self) -> Self
fn max_h_neg_64(self) -> Self
Source§fn max_h_neg_72(self) -> Self
fn max_h_neg_72(self) -> Self
Source§fn max_h_neg_80(self) -> Self
fn max_h_neg_80(self) -> Self
Source§fn max_h_neg_96(self) -> Self
fn max_h_neg_96(self) -> Self
Source§fn max_h_neg_112(self) -> Self
fn max_h_neg_112(self) -> Self
Source§fn max_h_neg_128(self) -> Self
fn max_h_neg_128(self) -> Self
Source§fn max_h_auto(self) -> Self
fn max_h_auto(self) -> Self
Source§fn max_h_neg_px(self) -> Self
fn max_h_neg_px(self) -> Self
Source§fn max_h_full(self) -> Self
fn max_h_full(self) -> Self
Source§fn max_h_neg_full(self) -> Self
fn max_h_neg_full(self) -> Self
Source§fn max_h_neg_1_2(self) -> Self
fn max_h_neg_1_2(self) -> Self
Source§fn max_h_neg_1_3(self) -> Self
fn max_h_neg_1_3(self) -> Self
Source§fn max_h_neg_2_3(self) -> Self
fn max_h_neg_2_3(self) -> Self
Source§fn max_h_neg_1_4(self) -> Self
fn max_h_neg_1_4(self) -> Self
Source§fn max_h_neg_2_4(self) -> Self
fn max_h_neg_2_4(self) -> Self
Source§fn max_h_neg_3_4(self) -> Self
fn max_h_neg_3_4(self) -> Self
Source§fn max_h_neg_1_5(self) -> Self
fn max_h_neg_1_5(self) -> Self
Source§fn max_h_neg_2_5(self) -> Self
fn max_h_neg_2_5(self) -> Self
Source§fn max_h_neg_3_5(self) -> Self
fn max_h_neg_3_5(self) -> Self
Source§fn max_h_neg_4_5(self) -> Self
fn max_h_neg_4_5(self) -> Self
Source§fn max_h_neg_1_6(self) -> Self
fn max_h_neg_1_6(self) -> Self
Source§fn max_h_neg_5_6(self) -> Self
fn max_h_neg_5_6(self) -> Self
Source§fn max_h_1_12(self) -> Self
fn max_h_1_12(self) -> Self
Source§fn max_h_neg_1_12(self) -> Self
fn max_h_neg_1_12(self) -> Self
Source§fn gap(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn gap(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the gap between rows and columns of a flex or grid container. Docs
Source§fn gap_neg_0p5(self) -> Self
fn gap_neg_0p5(self) -> Self
Source§fn gap_neg_1p5(self) -> Self
fn gap_neg_1p5(self) -> Self
Source§fn gap_neg_2p5(self) -> Self
fn gap_neg_2p5(self) -> Self
Source§fn gap_neg_3p5(self) -> Self
fn gap_neg_3p5(self) -> Self
Source§fn gap_neg_10(self) -> Self
fn gap_neg_10(self) -> Self
Source§fn gap_neg_11(self) -> Self
fn gap_neg_11(self) -> Self
Source§fn gap_neg_12(self) -> Self
fn gap_neg_12(self) -> Self
Source§fn gap_neg_16(self) -> Self
fn gap_neg_16(self) -> Self
Source§fn gap_neg_20(self) -> Self
fn gap_neg_20(self) -> Self
Source§fn gap_neg_24(self) -> Self
fn gap_neg_24(self) -> Self
Source§fn gap_neg_32(self) -> Self
fn gap_neg_32(self) -> Self
Source§fn gap_neg_40(self) -> Self
fn gap_neg_40(self) -> Self
Source§fn gap_neg_48(self) -> Self
fn gap_neg_48(self) -> Self
Source§fn gap_neg_56(self) -> Self
fn gap_neg_56(self) -> Self
Source§fn gap_neg_64(self) -> Self
fn gap_neg_64(self) -> Self
Source§fn gap_neg_72(self) -> Self
fn gap_neg_72(self) -> Self
Source§fn gap_neg_80(self) -> Self
fn gap_neg_80(self) -> Self
Source§fn gap_neg_96(self) -> Self
fn gap_neg_96(self) -> Self
Source§fn gap_neg_112(self) -> Self
fn gap_neg_112(self) -> Self
Source§fn gap_neg_128(self) -> Self
fn gap_neg_128(self) -> Self
Source§fn gap_neg_px(self) -> Self
fn gap_neg_px(self) -> Self
Source§fn gap_neg_full(self) -> Self
fn gap_neg_full(self) -> Self
Source§fn gap_neg_1_2(self) -> Self
fn gap_neg_1_2(self) -> Self
Source§fn gap_neg_1_3(self) -> Self
fn gap_neg_1_3(self) -> Self
Source§fn gap_neg_2_3(self) -> Self
fn gap_neg_2_3(self) -> Self
Source§fn gap_neg_1_4(self) -> Self
fn gap_neg_1_4(self) -> Self
Source§fn gap_neg_2_4(self) -> Self
fn gap_neg_2_4(self) -> Self
Source§fn gap_neg_3_4(self) -> Self
fn gap_neg_3_4(self) -> Self
Source§fn gap_neg_1_5(self) -> Self
fn gap_neg_1_5(self) -> Self
Source§fn gap_neg_2_5(self) -> Self
fn gap_neg_2_5(self) -> Self
Source§fn gap_neg_3_5(self) -> Self
fn gap_neg_3_5(self) -> Self
Source§fn gap_neg_4_5(self) -> Self
fn gap_neg_4_5(self) -> Self
Source§fn gap_neg_1_6(self) -> Self
fn gap_neg_1_6(self) -> Self
Source§fn gap_neg_5_6(self) -> Self
fn gap_neg_5_6(self) -> Self
Source§fn gap_neg_1_12(self) -> Self
fn gap_neg_1_12(self) -> Self
Source§fn gap_x(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn gap_x(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the gap between columns of a flex or grid container. Docs
Source§fn gap_x_neg_0(self) -> Self
fn gap_x_neg_0(self) -> Self
Source§fn gap_x_neg_0p5(self) -> Self
fn gap_x_neg_0p5(self) -> Self
Source§fn gap_x_neg_1(self) -> Self
fn gap_x_neg_1(self) -> Self
Source§fn gap_x_neg_1p5(self) -> Self
fn gap_x_neg_1p5(self) -> Self
Source§fn gap_x_neg_2(self) -> Self
fn gap_x_neg_2(self) -> Self
Source§fn gap_x_neg_2p5(self) -> Self
fn gap_x_neg_2p5(self) -> Self
Source§fn gap_x_neg_3(self) -> Self
fn gap_x_neg_3(self) -> Self
Source§fn gap_x_neg_3p5(self) -> Self
fn gap_x_neg_3p5(self) -> Self
Source§fn gap_x_neg_4(self) -> Self
fn gap_x_neg_4(self) -> Self
Source§fn gap_x_neg_5(self) -> Self
fn gap_x_neg_5(self) -> Self
Source§fn gap_x_neg_6(self) -> Self
fn gap_x_neg_6(self) -> Self
Source§fn gap_x_neg_7(self) -> Self
fn gap_x_neg_7(self) -> Self
Source§fn gap_x_neg_8(self) -> Self
fn gap_x_neg_8(self) -> Self
Source§fn gap_x_neg_9(self) -> Self
fn gap_x_neg_9(self) -> Self
Source§fn gap_x_neg_10(self) -> Self
fn gap_x_neg_10(self) -> Self
Source§fn gap_x_neg_11(self) -> Self
fn gap_x_neg_11(self) -> Self
Source§fn gap_x_neg_12(self) -> Self
fn gap_x_neg_12(self) -> Self
Source§fn gap_x_neg_16(self) -> Self
fn gap_x_neg_16(self) -> Self
Source§fn gap_x_neg_20(self) -> Self
fn gap_x_neg_20(self) -> Self
Source§fn gap_x_neg_24(self) -> Self
fn gap_x_neg_24(self) -> Self
Source§fn gap_x_neg_32(self) -> Self
fn gap_x_neg_32(self) -> Self
Source§fn gap_x_neg_40(self) -> Self
fn gap_x_neg_40(self) -> Self
Source§fn gap_x_neg_48(self) -> Self
fn gap_x_neg_48(self) -> Self
Source§fn gap_x_neg_56(self) -> Self
fn gap_x_neg_56(self) -> Self
Source§fn gap_x_neg_64(self) -> Self
fn gap_x_neg_64(self) -> Self
Source§fn gap_x_neg_72(self) -> Self
fn gap_x_neg_72(self) -> Self
Source§fn gap_x_neg_80(self) -> Self
fn gap_x_neg_80(self) -> Self
Source§fn gap_x_neg_96(self) -> Self
fn gap_x_neg_96(self) -> Self
Source§fn gap_x_neg_112(self) -> Self
fn gap_x_neg_112(self) -> Self
Source§fn gap_x_neg_128(self) -> Self
fn gap_x_neg_128(self) -> Self
Source§fn gap_x_neg_px(self) -> Self
fn gap_x_neg_px(self) -> Self
Source§fn gap_x_full(self) -> Self
fn gap_x_full(self) -> Self
Source§fn gap_x_neg_full(self) -> Self
fn gap_x_neg_full(self) -> Self
Source§fn gap_x_neg_1_2(self) -> Self
fn gap_x_neg_1_2(self) -> Self
Source§fn gap_x_neg_1_3(self) -> Self
fn gap_x_neg_1_3(self) -> Self
Source§fn gap_x_neg_2_3(self) -> Self
fn gap_x_neg_2_3(self) -> Self
Source§fn gap_x_neg_1_4(self) -> Self
fn gap_x_neg_1_4(self) -> Self
Source§fn gap_x_neg_2_4(self) -> Self
fn gap_x_neg_2_4(self) -> Self
Source§fn gap_x_neg_3_4(self) -> Self
fn gap_x_neg_3_4(self) -> Self
Source§fn gap_x_neg_1_5(self) -> Self
fn gap_x_neg_1_5(self) -> Self
Source§fn gap_x_neg_2_5(self) -> Self
fn gap_x_neg_2_5(self) -> Self
Source§fn gap_x_neg_3_5(self) -> Self
fn gap_x_neg_3_5(self) -> Self
Source§fn gap_x_neg_4_5(self) -> Self
fn gap_x_neg_4_5(self) -> Self
Source§fn gap_x_neg_1_6(self) -> Self
fn gap_x_neg_1_6(self) -> Self
Source§fn gap_x_neg_5_6(self) -> Self
fn gap_x_neg_5_6(self) -> Self
Source§fn gap_x_1_12(self) -> Self
fn gap_x_1_12(self) -> Self
Source§fn gap_x_neg_1_12(self) -> Self
fn gap_x_neg_1_12(self) -> Self
Source§fn gap_y(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn gap_y(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the gap between rows of a flex or grid container. Docs
Source§fn gap_y_neg_0(self) -> Self
fn gap_y_neg_0(self) -> Self
Source§fn gap_y_neg_0p5(self) -> Self
fn gap_y_neg_0p5(self) -> Self
Source§fn gap_y_neg_1(self) -> Self
fn gap_y_neg_1(self) -> Self
Source§fn gap_y_neg_1p5(self) -> Self
fn gap_y_neg_1p5(self) -> Self
Source§fn gap_y_neg_2(self) -> Self
fn gap_y_neg_2(self) -> Self
Source§fn gap_y_neg_2p5(self) -> Self
fn gap_y_neg_2p5(self) -> Self
Source§fn gap_y_neg_3(self) -> Self
fn gap_y_neg_3(self) -> Self
Source§fn gap_y_neg_3p5(self) -> Self
fn gap_y_neg_3p5(self) -> Self
Source§fn gap_y_neg_4(self) -> Self
fn gap_y_neg_4(self) -> Self
Source§fn gap_y_neg_5(self) -> Self
fn gap_y_neg_5(self) -> Self
Source§fn gap_y_neg_6(self) -> Self
fn gap_y_neg_6(self) -> Self
Source§fn gap_y_neg_7(self) -> Self
fn gap_y_neg_7(self) -> Self
Source§fn gap_y_neg_8(self) -> Self
fn gap_y_neg_8(self) -> Self
Source§fn gap_y_neg_9(self) -> Self
fn gap_y_neg_9(self) -> Self
Source§fn gap_y_neg_10(self) -> Self
fn gap_y_neg_10(self) -> Self
Source§fn gap_y_neg_11(self) -> Self
fn gap_y_neg_11(self) -> Self
Source§fn gap_y_neg_12(self) -> Self
fn gap_y_neg_12(self) -> Self
Source§fn gap_y_neg_16(self) -> Self
fn gap_y_neg_16(self) -> Self
Source§fn gap_y_neg_20(self) -> Self
fn gap_y_neg_20(self) -> Self
Source§fn gap_y_neg_24(self) -> Self
fn gap_y_neg_24(self) -> Self
Source§fn gap_y_neg_32(self) -> Self
fn gap_y_neg_32(self) -> Self
Source§fn gap_y_neg_40(self) -> Self
fn gap_y_neg_40(self) -> Self
Source§fn gap_y_neg_48(self) -> Self
fn gap_y_neg_48(self) -> Self
Source§fn gap_y_neg_56(self) -> Self
fn gap_y_neg_56(self) -> Self
Source§fn gap_y_neg_64(self) -> Self
fn gap_y_neg_64(self) -> Self
Source§fn gap_y_neg_72(self) -> Self
fn gap_y_neg_72(self) -> Self
Source§fn gap_y_neg_80(self) -> Self
fn gap_y_neg_80(self) -> Self
Source§fn gap_y_neg_96(self) -> Self
fn gap_y_neg_96(self) -> Self
Source§fn gap_y_neg_112(self) -> Self
fn gap_y_neg_112(self) -> Self
Source§fn gap_y_neg_128(self) -> Self
fn gap_y_neg_128(self) -> Self
Source§fn gap_y_neg_px(self) -> Self
fn gap_y_neg_px(self) -> Self
Source§fn gap_y_full(self) -> Self
fn gap_y_full(self) -> Self
Source§fn gap_y_neg_full(self) -> Self
fn gap_y_neg_full(self) -> Self
Source§fn gap_y_neg_1_2(self) -> Self
fn gap_y_neg_1_2(self) -> Self
Source§fn gap_y_neg_1_3(self) -> Self
fn gap_y_neg_1_3(self) -> Self
Source§fn gap_y_neg_2_3(self) -> Self
fn gap_y_neg_2_3(self) -> Self
Source§fn gap_y_neg_1_4(self) -> Self
fn gap_y_neg_1_4(self) -> Self
Source§fn gap_y_neg_2_4(self) -> Self
fn gap_y_neg_2_4(self) -> Self
Source§fn gap_y_neg_3_4(self) -> Self
fn gap_y_neg_3_4(self) -> Self
Source§fn gap_y_neg_1_5(self) -> Self
fn gap_y_neg_1_5(self) -> Self
Source§fn gap_y_neg_2_5(self) -> Self
fn gap_y_neg_2_5(self) -> Self
Source§fn gap_y_neg_3_5(self) -> Self
fn gap_y_neg_3_5(self) -> Self
Source§fn gap_y_neg_4_5(self) -> Self
fn gap_y_neg_4_5(self) -> Self
Source§fn gap_y_neg_1_6(self) -> Self
fn gap_y_neg_1_6(self) -> Self
Source§fn gap_y_neg_5_6(self) -> Self
fn gap_y_neg_5_6(self) -> Self
Source§fn gap_y_1_12(self) -> Self
fn gap_y_1_12(self) -> Self
Source§fn gap_y_neg_1_12(self) -> Self
fn gap_y_neg_1_12(self) -> Self
Source§fn rounded(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the element. Docs
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, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded_t(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the top side of the element. Docs
Source§fn rounded_t_none(self) -> Self
fn rounded_t_none(self) -> Self
Source§fn rounded_t_xs(self) -> Self
fn rounded_t_xs(self) -> Self
Source§fn rounded_t_sm(self) -> Self
fn rounded_t_sm(self) -> Self
Source§fn rounded_t_md(self) -> Self
fn rounded_t_md(self) -> Self
Source§fn rounded_t_lg(self) -> Self
fn rounded_t_lg(self) -> Self
Source§fn rounded_t_xl(self) -> Self
fn rounded_t_xl(self) -> Self
Source§fn rounded_t_2xl(self) -> Self
fn rounded_t_2xl(self) -> Self
Source§fn rounded_t_3xl(self) -> Self
fn rounded_t_3xl(self) -> Self
Source§fn rounded_t_full(self) -> Self
fn rounded_t_full(self) -> Self
Source§fn rounded_b(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded_b(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the bottom side of the element. Docs
Source§fn rounded_b_none(self) -> Self
fn rounded_b_none(self) -> Self
Source§fn rounded_b_xs(self) -> Self
fn rounded_b_xs(self) -> Self
Source§fn rounded_b_sm(self) -> Self
fn rounded_b_sm(self) -> Self
Source§fn rounded_b_md(self) -> Self
fn rounded_b_md(self) -> Self
Source§fn rounded_b_lg(self) -> Self
fn rounded_b_lg(self) -> Self
Source§fn rounded_b_xl(self) -> Self
fn rounded_b_xl(self) -> Self
Source§fn rounded_b_2xl(self) -> Self
fn rounded_b_2xl(self) -> Self
Source§fn rounded_b_3xl(self) -> Self
fn rounded_b_3xl(self) -> Self
Source§fn rounded_b_full(self) -> Self
fn rounded_b_full(self) -> Self
Source§fn rounded_r(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded_r(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the right side of the element. Docs
Source§fn rounded_r_none(self) -> Self
fn rounded_r_none(self) -> Self
Source§fn rounded_r_xs(self) -> Self
fn rounded_r_xs(self) -> Self
Source§fn rounded_r_sm(self) -> Self
fn rounded_r_sm(self) -> Self
Source§fn rounded_r_md(self) -> Self
fn rounded_r_md(self) -> Self
Source§fn rounded_r_lg(self) -> Self
fn rounded_r_lg(self) -> Self
Source§fn rounded_r_xl(self) -> Self
fn rounded_r_xl(self) -> Self
Source§fn rounded_r_2xl(self) -> Self
fn rounded_r_2xl(self) -> Self
Source§fn rounded_r_3xl(self) -> Self
fn rounded_r_3xl(self) -> Self
Source§fn rounded_r_full(self) -> Self
fn rounded_r_full(self) -> Self
Source§fn rounded_l(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded_l(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the left side of the element. Docs
Source§fn rounded_l_none(self) -> Self
fn rounded_l_none(self) -> Self
Source§fn rounded_l_xs(self) -> Self
fn rounded_l_xs(self) -> Self
Source§fn rounded_l_sm(self) -> Self
fn rounded_l_sm(self) -> Self
Source§fn rounded_l_md(self) -> Self
fn rounded_l_md(self) -> Self
Source§fn rounded_l_lg(self) -> Self
fn rounded_l_lg(self) -> Self
Source§fn rounded_l_xl(self) -> Self
fn rounded_l_xl(self) -> Self
Source§fn rounded_l_2xl(self) -> Self
fn rounded_l_2xl(self) -> Self
Source§fn rounded_l_3xl(self) -> Self
fn rounded_l_3xl(self) -> Self
Source§fn rounded_l_full(self) -> Self
fn rounded_l_full(self) -> Self
Source§fn rounded_tl(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded_tl(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the top left corner of the element. Docs
Source§fn rounded_tl_none(self) -> Self
fn rounded_tl_none(self) -> Self
Source§fn rounded_tl_xs(self) -> Self
fn rounded_tl_xs(self) -> Self
Source§fn rounded_tl_sm(self) -> Self
fn rounded_tl_sm(self) -> Self
Source§fn rounded_tl_md(self) -> Self
fn rounded_tl_md(self) -> Self
Source§fn rounded_tl_lg(self) -> Self
fn rounded_tl_lg(self) -> Self
Source§fn rounded_tl_xl(self) -> Self
fn rounded_tl_xl(self) -> Self
Source§fn rounded_tl_2xl(self) -> Self
fn rounded_tl_2xl(self) -> Self
Source§fn rounded_tl_3xl(self) -> Self
fn rounded_tl_3xl(self) -> Self
Source§fn rounded_tl_full(self) -> Self
fn rounded_tl_full(self) -> Self
Source§fn rounded_tr(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded_tr(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the top right corner of the element. Docs
Source§fn rounded_tr_none(self) -> Self
fn rounded_tr_none(self) -> Self
Source§fn rounded_tr_xs(self) -> Self
fn rounded_tr_xs(self) -> Self
Source§fn rounded_tr_sm(self) -> Self
fn rounded_tr_sm(self) -> Self
Source§fn rounded_tr_md(self) -> Self
fn rounded_tr_md(self) -> Self
Source§fn rounded_tr_lg(self) -> Self
fn rounded_tr_lg(self) -> Self
Source§fn rounded_tr_xl(self) -> Self
fn rounded_tr_xl(self) -> Self
Source§fn rounded_tr_2xl(self) -> Self
fn rounded_tr_2xl(self) -> Self
Source§fn rounded_tr_3xl(self) -> Self
fn rounded_tr_3xl(self) -> Self
Source§fn rounded_tr_full(self) -> Self
fn rounded_tr_full(self) -> Self
Source§fn rounded_bl(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded_bl(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the bottom left corner of the element. Docs
Source§fn rounded_bl_none(self) -> Self
fn rounded_bl_none(self) -> Self
Source§fn rounded_bl_xs(self) -> Self
fn rounded_bl_xs(self) -> Self
Source§fn rounded_bl_sm(self) -> Self
fn rounded_bl_sm(self) -> Self
Source§fn rounded_bl_md(self) -> Self
fn rounded_bl_md(self) -> Self
Source§fn rounded_bl_lg(self) -> Self
fn rounded_bl_lg(self) -> Self
Source§fn rounded_bl_xl(self) -> Self
fn rounded_bl_xl(self) -> Self
Source§fn rounded_bl_2xl(self) -> Self
fn rounded_bl_2xl(self) -> Self
Source§fn rounded_bl_3xl(self) -> Self
fn rounded_bl_3xl(self) -> Self
Source§fn rounded_bl_full(self) -> Self
fn rounded_bl_full(self) -> Self
Source§fn rounded_br(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn rounded_br(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border radius of the bottom right corner of the element. Docs
Source§fn rounded_br_none(self) -> Self
fn rounded_br_none(self) -> Self
Source§fn rounded_br_xs(self) -> Self
fn rounded_br_xs(self) -> Self
Source§fn rounded_br_sm(self) -> Self
fn rounded_br_sm(self) -> Self
Source§fn rounded_br_md(self) -> Self
fn rounded_br_md(self) -> Self
Source§fn rounded_br_lg(self) -> Self
fn rounded_br_lg(self) -> Self
Source§fn rounded_br_xl(self) -> Self
fn rounded_br_xl(self) -> Self
Source§fn rounded_br_2xl(self) -> Self
fn rounded_br_2xl(self) -> Self
Source§fn rounded_br_3xl(self) -> Self
fn rounded_br_3xl(self) -> Self
Source§fn rounded_br_full(self) -> Self
fn rounded_br_full(self) -> Self
Source§fn rounded_smoothing_0(self) -> Self
fn rounded_smoothing_0(self) -> Self
Keeps circular corners by setting rounded corner smoothing to
0.0.Source§fn rounded_smoothing_0p1(self) -> Self
fn rounded_smoothing_0p1(self) -> Self
Sets rounded corner smoothing to
0.1.Source§fn rounded_smoothing_0p2(self) -> Self
fn rounded_smoothing_0p2(self) -> Self
Sets rounded corner smoothing to
0.2.Source§fn rounded_smoothing_0p3(self) -> Self
fn rounded_smoothing_0p3(self) -> Self
Sets rounded corner smoothing to
0.3.Source§fn rounded_smoothing_0p4(self) -> Self
fn rounded_smoothing_0p4(self) -> Self
Sets rounded corner smoothing to
0.4.Source§fn rounded_smoothing_0p5(self) -> Self
fn rounded_smoothing_0p5(self) -> Self
Sets rounded corner smoothing to
0.5.Source§fn rounded_smoothing_0p6(self) -> Self
fn rounded_smoothing_0p6(self) -> Self
Sets rounded corner smoothing to
0.6.Source§fn rounded_smoothing_0p7(self) -> Self
fn rounded_smoothing_0p7(self) -> Self
Sets rounded corner smoothing to
0.7.Source§fn rounded_smoothing_0p8(self) -> Self
fn rounded_smoothing_0p8(self) -> Self
Sets rounded corner smoothing to
0.8.Source§fn rounded_smoothing_0p9(self) -> Self
fn rounded_smoothing_0p9(self) -> Self
Sets rounded corner smoothing to
0.9.Source§fn rounded_smoothing_1(self) -> Self
fn rounded_smoothing_1(self) -> Self
Requests maximum rounded corner smoothing by setting it to
1.0.Source§fn m_neg_full(self) -> Self
fn m_neg_full(self) -> Self
Source§fn m_neg_1_12(self) -> Self
fn m_neg_1_12(self) -> Self
Source§fn mt(self, length: impl Clone + Into<Length>) -> Self
fn mt(self, length: impl Clone + Into<Length>) -> Self
Sets the top margin of the element. Docs
Source§fn mt_neg_0p5(self) -> Self
fn mt_neg_0p5(self) -> Self
Source§fn mt_neg_1p5(self) -> Self
fn mt_neg_1p5(self) -> Self
Source§fn mt_neg_2p5(self) -> Self
fn mt_neg_2p5(self) -> Self
Source§fn mt_neg_3p5(self) -> Self
fn mt_neg_3p5(self) -> Self
Source§fn mt_neg_112(self) -> Self
fn mt_neg_112(self) -> Self
Source§fn mt_neg_128(self) -> Self
fn mt_neg_128(self) -> Self
Source§fn mt_neg_full(self) -> Self
fn mt_neg_full(self) -> Self
Source§fn mt_neg_1_2(self) -> Self
fn mt_neg_1_2(self) -> Self
Source§fn mt_neg_1_3(self) -> Self
fn mt_neg_1_3(self) -> Self
Source§fn mt_neg_2_3(self) -> Self
fn mt_neg_2_3(self) -> Self
Source§fn mt_neg_1_4(self) -> Self
fn mt_neg_1_4(self) -> Self
Source§fn mt_neg_2_4(self) -> Self
fn mt_neg_2_4(self) -> Self
Source§fn mt_neg_3_4(self) -> Self
fn mt_neg_3_4(self) -> Self
Source§fn mt_neg_1_5(self) -> Self
fn mt_neg_1_5(self) -> Self
Source§fn mt_neg_2_5(self) -> Self
fn mt_neg_2_5(self) -> Self
Source§fn mt_neg_3_5(self) -> Self
fn mt_neg_3_5(self) -> Self
Source§fn mt_neg_4_5(self) -> Self
fn mt_neg_4_5(self) -> Self
Source§fn mt_neg_1_6(self) -> Self
fn mt_neg_1_6(self) -> Self
Source§fn mt_neg_5_6(self) -> Self
fn mt_neg_5_6(self) -> Self
Source§fn mt_neg_1_12(self) -> Self
fn mt_neg_1_12(self) -> Self
Source§fn mb(self, length: impl Clone + Into<Length>) -> Self
fn mb(self, length: impl Clone + Into<Length>) -> Self
Sets the bottom margin of the element. Docs
Source§fn mb_neg_0p5(self) -> Self
fn mb_neg_0p5(self) -> Self
Source§fn mb_neg_1p5(self) -> Self
fn mb_neg_1p5(self) -> Self
Source§fn mb_neg_2p5(self) -> Self
fn mb_neg_2p5(self) -> Self
Source§fn mb_neg_3p5(self) -> Self
fn mb_neg_3p5(self) -> Self
Source§fn mb_neg_112(self) -> Self
fn mb_neg_112(self) -> Self
Source§fn mb_neg_128(self) -> Self
fn mb_neg_128(self) -> Self
Source§fn mb_neg_full(self) -> Self
fn mb_neg_full(self) -> Self
Source§fn mb_neg_1_2(self) -> Self
fn mb_neg_1_2(self) -> Self
Source§fn mb_neg_1_3(self) -> Self
fn mb_neg_1_3(self) -> Self
Source§fn mb_neg_2_3(self) -> Self
fn mb_neg_2_3(self) -> Self
Source§fn mb_neg_1_4(self) -> Self
fn mb_neg_1_4(self) -> Self
Source§fn mb_neg_2_4(self) -> Self
fn mb_neg_2_4(self) -> Self
Source§fn mb_neg_3_4(self) -> Self
fn mb_neg_3_4(self) -> Self
Source§fn mb_neg_1_5(self) -> Self
fn mb_neg_1_5(self) -> Self
Source§fn mb_neg_2_5(self) -> Self
fn mb_neg_2_5(self) -> Self
Source§fn mb_neg_3_5(self) -> Self
fn mb_neg_3_5(self) -> Self
Source§fn mb_neg_4_5(self) -> Self
fn mb_neg_4_5(self) -> Self
Source§fn mb_neg_1_6(self) -> Self
fn mb_neg_1_6(self) -> Self
Source§fn mb_neg_5_6(self) -> Self
fn mb_neg_5_6(self) -> Self
Source§fn mb_neg_1_12(self) -> Self
fn mb_neg_1_12(self) -> Self
Source§fn my(self, length: impl Clone + Into<Length>) -> Self
fn my(self, length: impl Clone + Into<Length>) -> Self
Sets the vertical margin of the element. Docs
Source§fn my_neg_0p5(self) -> Self
fn my_neg_0p5(self) -> Self
Source§fn my_neg_1p5(self) -> Self
fn my_neg_1p5(self) -> Self
Source§fn my_neg_2p5(self) -> Self
fn my_neg_2p5(self) -> Self
Source§fn my_neg_3p5(self) -> Self
fn my_neg_3p5(self) -> Self
Source§fn my_neg_112(self) -> Self
fn my_neg_112(self) -> Self
Source§fn my_neg_128(self) -> Self
fn my_neg_128(self) -> Self
Source§fn my_neg_full(self) -> Self
fn my_neg_full(self) -> Self
Source§fn my_neg_1_2(self) -> Self
fn my_neg_1_2(self) -> Self
Source§fn my_neg_1_3(self) -> Self
fn my_neg_1_3(self) -> Self
Source§fn my_neg_2_3(self) -> Self
fn my_neg_2_3(self) -> Self
Source§fn my_neg_1_4(self) -> Self
fn my_neg_1_4(self) -> Self
Source§fn my_neg_2_4(self) -> Self
fn my_neg_2_4(self) -> Self
Source§fn my_neg_3_4(self) -> Self
fn my_neg_3_4(self) -> Self
Source§fn my_neg_1_5(self) -> Self
fn my_neg_1_5(self) -> Self
Source§fn my_neg_2_5(self) -> Self
fn my_neg_2_5(self) -> Self
Source§fn my_neg_3_5(self) -> Self
fn my_neg_3_5(self) -> Self
Source§fn my_neg_4_5(self) -> Self
fn my_neg_4_5(self) -> Self
Source§fn my_neg_1_6(self) -> Self
fn my_neg_1_6(self) -> Self
Source§fn my_neg_5_6(self) -> Self
fn my_neg_5_6(self) -> Self
Source§fn my_neg_1_12(self) -> Self
fn my_neg_1_12(self) -> Self
Source§fn mx(self, length: impl Clone + Into<Length>) -> Self
fn mx(self, length: impl Clone + Into<Length>) -> Self
Sets the horizontal margin of the element. Docs
Source§fn mx_neg_0p5(self) -> Self
fn mx_neg_0p5(self) -> Self
Source§fn mx_neg_1p5(self) -> Self
fn mx_neg_1p5(self) -> Self
Source§fn mx_neg_2p5(self) -> Self
fn mx_neg_2p5(self) -> Self
Source§fn mx_neg_3p5(self) -> Self
fn mx_neg_3p5(self) -> Self
Source§fn mx_neg_112(self) -> Self
fn mx_neg_112(self) -> Self
Source§fn mx_neg_128(self) -> Self
fn mx_neg_128(self) -> Self
Source§fn mx_neg_full(self) -> Self
fn mx_neg_full(self) -> Self
Source§fn mx_neg_1_2(self) -> Self
fn mx_neg_1_2(self) -> Self
Source§fn mx_neg_1_3(self) -> Self
fn mx_neg_1_3(self) -> Self
Source§fn mx_neg_2_3(self) -> Self
fn mx_neg_2_3(self) -> Self
Source§fn mx_neg_1_4(self) -> Self
fn mx_neg_1_4(self) -> Self
Source§fn mx_neg_2_4(self) -> Self
fn mx_neg_2_4(self) -> Self
Source§fn mx_neg_3_4(self) -> Self
fn mx_neg_3_4(self) -> Self
Source§fn mx_neg_1_5(self) -> Self
fn mx_neg_1_5(self) -> Self
Source§fn mx_neg_2_5(self) -> Self
fn mx_neg_2_5(self) -> Self
Source§fn mx_neg_3_5(self) -> Self
fn mx_neg_3_5(self) -> Self
Source§fn mx_neg_4_5(self) -> Self
fn mx_neg_4_5(self) -> Self
Source§fn mx_neg_1_6(self) -> Self
fn mx_neg_1_6(self) -> Self
Source§fn mx_neg_5_6(self) -> Self
fn mx_neg_5_6(self) -> Self
Source§fn mx_neg_1_12(self) -> Self
fn mx_neg_1_12(self) -> Self
Source§fn ml(self, length: impl Clone + Into<Length>) -> Self
fn ml(self, length: impl Clone + Into<Length>) -> Self
Sets the left margin of the element. Docs
Source§fn ml_neg_0p5(self) -> Self
fn ml_neg_0p5(self) -> Self
Source§fn ml_neg_1p5(self) -> Self
fn ml_neg_1p5(self) -> Self
Source§fn ml_neg_2p5(self) -> Self
fn ml_neg_2p5(self) -> Self
Source§fn ml_neg_3p5(self) -> Self
fn ml_neg_3p5(self) -> Self
Source§fn ml_neg_112(self) -> Self
fn ml_neg_112(self) -> Self
Source§fn ml_neg_128(self) -> Self
fn ml_neg_128(self) -> Self
Source§fn ml_neg_full(self) -> Self
fn ml_neg_full(self) -> Self
Source§fn ml_neg_1_2(self) -> Self
fn ml_neg_1_2(self) -> Self
Source§fn ml_neg_1_3(self) -> Self
fn ml_neg_1_3(self) -> Self
Source§fn ml_neg_2_3(self) -> Self
fn ml_neg_2_3(self) -> Self
Source§fn ml_neg_1_4(self) -> Self
fn ml_neg_1_4(self) -> Self
Source§fn ml_neg_2_4(self) -> Self
fn ml_neg_2_4(self) -> Self
Source§fn ml_neg_3_4(self) -> Self
fn ml_neg_3_4(self) -> Self
Source§fn ml_neg_1_5(self) -> Self
fn ml_neg_1_5(self) -> Self
Source§fn ml_neg_2_5(self) -> Self
fn ml_neg_2_5(self) -> Self
Source§fn ml_neg_3_5(self) -> Self
fn ml_neg_3_5(self) -> Self
Source§fn ml_neg_4_5(self) -> Self
fn ml_neg_4_5(self) -> Self
Source§fn ml_neg_1_6(self) -> Self
fn ml_neg_1_6(self) -> Self
Source§fn ml_neg_5_6(self) -> Self
fn ml_neg_5_6(self) -> Self
Source§fn ml_neg_1_12(self) -> Self
fn ml_neg_1_12(self) -> Self
Source§fn mr(self, length: impl Clone + Into<Length>) -> Self
fn mr(self, length: impl Clone + Into<Length>) -> Self
Sets the right margin of the element. Docs
Source§fn mr_neg_0p5(self) -> Self
fn mr_neg_0p5(self) -> Self
Source§fn mr_neg_1p5(self) -> Self
fn mr_neg_1p5(self) -> Self
Source§fn mr_neg_2p5(self) -> Self
fn mr_neg_2p5(self) -> Self
Source§fn mr_neg_3p5(self) -> Self
fn mr_neg_3p5(self) -> Self
Source§fn mr_neg_112(self) -> Self
fn mr_neg_112(self) -> Self
Source§fn mr_neg_128(self) -> Self
fn mr_neg_128(self) -> Self
Source§fn mr_neg_full(self) -> Self
fn mr_neg_full(self) -> Self
Source§fn mr_neg_1_2(self) -> Self
fn mr_neg_1_2(self) -> Self
Source§fn mr_neg_1_3(self) -> Self
fn mr_neg_1_3(self) -> Self
Source§fn mr_neg_2_3(self) -> Self
fn mr_neg_2_3(self) -> Self
Source§fn mr_neg_1_4(self) -> Self
fn mr_neg_1_4(self) -> Self
Source§fn mr_neg_2_4(self) -> Self
fn mr_neg_2_4(self) -> Self
Source§fn mr_neg_3_4(self) -> Self
fn mr_neg_3_4(self) -> Self
Source§fn mr_neg_1_5(self) -> Self
fn mr_neg_1_5(self) -> Self
Source§fn mr_neg_2_5(self) -> Self
fn mr_neg_2_5(self) -> Self
Source§fn mr_neg_3_5(self) -> Self
fn mr_neg_3_5(self) -> Self
Source§fn mr_neg_4_5(self) -> Self
fn mr_neg_4_5(self) -> Self
Source§fn mr_neg_1_6(self) -> Self
fn mr_neg_1_6(self) -> Self
Source§fn mr_neg_5_6(self) -> Self
fn mr_neg_5_6(self) -> Self
Source§fn mr_neg_1_12(self) -> Self
fn mr_neg_1_12(self) -> Self
Source§fn p(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn p(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the padding of the element. Docs
Source§fn p_neg_full(self) -> Self
fn p_neg_full(self) -> Self
Source§fn p_neg_1_12(self) -> Self
fn p_neg_1_12(self) -> Self
Source§fn pt(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn pt(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the top padding of the element. Docs
Source§fn pt_neg_0p5(self) -> Self
fn pt_neg_0p5(self) -> Self
Source§fn pt_neg_1p5(self) -> Self
fn pt_neg_1p5(self) -> Self
Source§fn pt_neg_2p5(self) -> Self
fn pt_neg_2p5(self) -> Self
Source§fn pt_neg_3p5(self) -> Self
fn pt_neg_3p5(self) -> Self
Source§fn pt_neg_112(self) -> Self
fn pt_neg_112(self) -> Self
Source§fn pt_neg_128(self) -> Self
fn pt_neg_128(self) -> Self
Source§fn pt_neg_full(self) -> Self
fn pt_neg_full(self) -> Self
Source§fn pt_neg_1_2(self) -> Self
fn pt_neg_1_2(self) -> Self
Source§fn pt_neg_1_3(self) -> Self
fn pt_neg_1_3(self) -> Self
Source§fn pt_neg_2_3(self) -> Self
fn pt_neg_2_3(self) -> Self
Source§fn pt_neg_1_4(self) -> Self
fn pt_neg_1_4(self) -> Self
Source§fn pt_neg_2_4(self) -> Self
fn pt_neg_2_4(self) -> Self
Source§fn pt_neg_3_4(self) -> Self
fn pt_neg_3_4(self) -> Self
Source§fn pt_neg_1_5(self) -> Self
fn pt_neg_1_5(self) -> Self
Source§fn pt_neg_2_5(self) -> Self
fn pt_neg_2_5(self) -> Self
Source§fn pt_neg_3_5(self) -> Self
fn pt_neg_3_5(self) -> Self
Source§fn pt_neg_4_5(self) -> Self
fn pt_neg_4_5(self) -> Self
Source§fn pt_neg_1_6(self) -> Self
fn pt_neg_1_6(self) -> Self
Source§fn pt_neg_5_6(self) -> Self
fn pt_neg_5_6(self) -> Self
Source§fn pt_neg_1_12(self) -> Self
fn pt_neg_1_12(self) -> Self
Source§fn pb(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn pb(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the bottom padding of the element. Docs
Source§fn pb_neg_0p5(self) -> Self
fn pb_neg_0p5(self) -> Self
Source§fn pb_neg_1p5(self) -> Self
fn pb_neg_1p5(self) -> Self
Source§fn pb_neg_2p5(self) -> Self
fn pb_neg_2p5(self) -> Self
Source§fn pb_neg_3p5(self) -> Self
fn pb_neg_3p5(self) -> Self
Source§fn pb_neg_112(self) -> Self
fn pb_neg_112(self) -> Self
Source§fn pb_neg_128(self) -> Self
fn pb_neg_128(self) -> Self
Source§fn pb_neg_full(self) -> Self
fn pb_neg_full(self) -> Self
Source§fn pb_neg_1_2(self) -> Self
fn pb_neg_1_2(self) -> Self
Source§fn pb_neg_1_3(self) -> Self
fn pb_neg_1_3(self) -> Self
Source§fn pb_neg_2_3(self) -> Self
fn pb_neg_2_3(self) -> Self
Source§fn pb_neg_1_4(self) -> Self
fn pb_neg_1_4(self) -> Self
Source§fn pb_neg_2_4(self) -> Self
fn pb_neg_2_4(self) -> Self
Source§fn pb_neg_3_4(self) -> Self
fn pb_neg_3_4(self) -> Self
Source§fn pb_neg_1_5(self) -> Self
fn pb_neg_1_5(self) -> Self
Source§fn pb_neg_2_5(self) -> Self
fn pb_neg_2_5(self) -> Self
Source§fn pb_neg_3_5(self) -> Self
fn pb_neg_3_5(self) -> Self
Source§fn pb_neg_4_5(self) -> Self
fn pb_neg_4_5(self) -> Self
Source§fn pb_neg_1_6(self) -> Self
fn pb_neg_1_6(self) -> Self
Source§fn pb_neg_5_6(self) -> Self
fn pb_neg_5_6(self) -> Self
Source§fn pb_neg_1_12(self) -> Self
fn pb_neg_1_12(self) -> Self
Source§fn px(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn px(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the horizontal padding of the element. Docs
Source§fn px_neg_0p5(self) -> Self
fn px_neg_0p5(self) -> Self
Source§fn px_neg_1p5(self) -> Self
fn px_neg_1p5(self) -> Self
Source§fn px_neg_2p5(self) -> Self
fn px_neg_2p5(self) -> Self
Source§fn px_neg_3p5(self) -> Self
fn px_neg_3p5(self) -> Self
Source§fn px_neg_112(self) -> Self
fn px_neg_112(self) -> Self
Source§fn px_neg_128(self) -> Self
fn px_neg_128(self) -> Self
Source§fn px_neg_full(self) -> Self
fn px_neg_full(self) -> Self
Source§fn px_neg_1_2(self) -> Self
fn px_neg_1_2(self) -> Self
Source§fn px_neg_1_3(self) -> Self
fn px_neg_1_3(self) -> Self
Source§fn px_neg_2_3(self) -> Self
fn px_neg_2_3(self) -> Self
Source§fn px_neg_1_4(self) -> Self
fn px_neg_1_4(self) -> Self
Source§fn px_neg_2_4(self) -> Self
fn px_neg_2_4(self) -> Self
Source§fn px_neg_3_4(self) -> Self
fn px_neg_3_4(self) -> Self
Source§fn px_neg_1_5(self) -> Self
fn px_neg_1_5(self) -> Self
Source§fn px_neg_2_5(self) -> Self
fn px_neg_2_5(self) -> Self
Source§fn px_neg_3_5(self) -> Self
fn px_neg_3_5(self) -> Self
Source§fn px_neg_4_5(self) -> Self
fn px_neg_4_5(self) -> Self
Source§fn px_neg_1_6(self) -> Self
fn px_neg_1_6(self) -> Self
Source§fn px_neg_5_6(self) -> Self
fn px_neg_5_6(self) -> Self
Source§fn px_neg_1_12(self) -> Self
fn px_neg_1_12(self) -> Self
Source§fn py(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn py(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the vertical padding of the element. Docs
Source§fn py_neg_0p5(self) -> Self
fn py_neg_0p5(self) -> Self
Source§fn py_neg_1p5(self) -> Self
fn py_neg_1p5(self) -> Self
Source§fn py_neg_2p5(self) -> Self
fn py_neg_2p5(self) -> Self
Source§fn py_neg_3p5(self) -> Self
fn py_neg_3p5(self) -> Self
Source§fn py_neg_112(self) -> Self
fn py_neg_112(self) -> Self
Source§fn py_neg_128(self) -> Self
fn py_neg_128(self) -> Self
Source§fn py_neg_full(self) -> Self
fn py_neg_full(self) -> Self
Source§fn py_neg_1_2(self) -> Self
fn py_neg_1_2(self) -> Self
Source§fn py_neg_1_3(self) -> Self
fn py_neg_1_3(self) -> Self
Source§fn py_neg_2_3(self) -> Self
fn py_neg_2_3(self) -> Self
Source§fn py_neg_1_4(self) -> Self
fn py_neg_1_4(self) -> Self
Source§fn py_neg_2_4(self) -> Self
fn py_neg_2_4(self) -> Self
Source§fn py_neg_3_4(self) -> Self
fn py_neg_3_4(self) -> Self
Source§fn py_neg_1_5(self) -> Self
fn py_neg_1_5(self) -> Self
Source§fn py_neg_2_5(self) -> Self
fn py_neg_2_5(self) -> Self
Source§fn py_neg_3_5(self) -> Self
fn py_neg_3_5(self) -> Self
Source§fn py_neg_4_5(self) -> Self
fn py_neg_4_5(self) -> Self
Source§fn py_neg_1_6(self) -> Self
fn py_neg_1_6(self) -> Self
Source§fn py_neg_5_6(self) -> Self
fn py_neg_5_6(self) -> Self
Source§fn py_neg_1_12(self) -> Self
fn py_neg_1_12(self) -> Self
Source§fn pl(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn pl(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the left padding of the element. Docs
Source§fn pl_neg_0p5(self) -> Self
fn pl_neg_0p5(self) -> Self
Source§fn pl_neg_1p5(self) -> Self
fn pl_neg_1p5(self) -> Self
Source§fn pl_neg_2p5(self) -> Self
fn pl_neg_2p5(self) -> Self
Source§fn pl_neg_3p5(self) -> Self
fn pl_neg_3p5(self) -> Self
Source§fn pl_neg_112(self) -> Self
fn pl_neg_112(self) -> Self
Source§fn pl_neg_128(self) -> Self
fn pl_neg_128(self) -> Self
Source§fn pl_neg_full(self) -> Self
fn pl_neg_full(self) -> Self
Source§fn pl_neg_1_2(self) -> Self
fn pl_neg_1_2(self) -> Self
Source§fn pl_neg_1_3(self) -> Self
fn pl_neg_1_3(self) -> Self
Source§fn pl_neg_2_3(self) -> Self
fn pl_neg_2_3(self) -> Self
Source§fn pl_neg_1_4(self) -> Self
fn pl_neg_1_4(self) -> Self
Source§fn pl_neg_2_4(self) -> Self
fn pl_neg_2_4(self) -> Self
Source§fn pl_neg_3_4(self) -> Self
fn pl_neg_3_4(self) -> Self
Source§fn pl_neg_1_5(self) -> Self
fn pl_neg_1_5(self) -> Self
Source§fn pl_neg_2_5(self) -> Self
fn pl_neg_2_5(self) -> Self
Source§fn pl_neg_3_5(self) -> Self
fn pl_neg_3_5(self) -> Self
Source§fn pl_neg_4_5(self) -> Self
fn pl_neg_4_5(self) -> Self
Source§fn pl_neg_1_6(self) -> Self
fn pl_neg_1_6(self) -> Self
Source§fn pl_neg_5_6(self) -> Self
fn pl_neg_5_6(self) -> Self
Source§fn pl_neg_1_12(self) -> Self
fn pl_neg_1_12(self) -> Self
Source§fn pr(self, length: impl Clone + Into<DefiniteLength>) -> Self
fn pr(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the right padding of the element. Docs
Source§fn pr_neg_0p5(self) -> Self
fn pr_neg_0p5(self) -> Self
Source§fn pr_neg_1p5(self) -> Self
fn pr_neg_1p5(self) -> Self
Source§fn pr_neg_2p5(self) -> Self
fn pr_neg_2p5(self) -> Self
Source§fn pr_neg_3p5(self) -> Self
fn pr_neg_3p5(self) -> Self
Source§fn pr_neg_112(self) -> Self
fn pr_neg_112(self) -> Self
Source§fn pr_neg_128(self) -> Self
fn pr_neg_128(self) -> Self
Source§fn pr_neg_full(self) -> Self
fn pr_neg_full(self) -> Self
Source§fn pr_neg_1_2(self) -> Self
fn pr_neg_1_2(self) -> Self
Source§fn pr_neg_1_3(self) -> Self
fn pr_neg_1_3(self) -> Self
Source§fn pr_neg_2_3(self) -> Self
fn pr_neg_2_3(self) -> Self
Source§fn pr_neg_1_4(self) -> Self
fn pr_neg_1_4(self) -> Self
Source§fn pr_neg_2_4(self) -> Self
fn pr_neg_2_4(self) -> Self
Source§fn pr_neg_3_4(self) -> Self
fn pr_neg_3_4(self) -> Self
Source§fn pr_neg_1_5(self) -> Self
fn pr_neg_1_5(self) -> Self
Source§fn pr_neg_2_5(self) -> Self
fn pr_neg_2_5(self) -> Self
Source§fn pr_neg_3_5(self) -> Self
fn pr_neg_3_5(self) -> Self
Source§fn pr_neg_4_5(self) -> Self
fn pr_neg_4_5(self) -> Self
Source§fn pr_neg_1_6(self) -> Self
fn pr_neg_1_6(self) -> Self
Source§fn pr_neg_5_6(self) -> Self
fn pr_neg_5_6(self) -> Self
Source§fn pr_neg_1_12(self) -> Self
fn pr_neg_1_12(self) -> Self
Source§fn inset(self, length: impl Clone + Into<Length>) -> Self
fn inset(self, length: impl Clone + Into<Length>) -> Self
Sets the top, right, bottom, and left values of a positioned element. Docs
Source§fn inset_neg_0(self) -> Self
fn inset_neg_0(self) -> Self
Source§fn inset_neg_0p5(self) -> Self
fn inset_neg_0p5(self) -> Self
Source§fn inset_neg_1(self) -> Self
fn inset_neg_1(self) -> Self
Source§fn inset_neg_1p5(self) -> Self
fn inset_neg_1p5(self) -> Self
Source§fn inset_neg_2(self) -> Self
fn inset_neg_2(self) -> Self
Source§fn inset_neg_2p5(self) -> Self
fn inset_neg_2p5(self) -> Self
Source§fn inset_neg_3(self) -> Self
fn inset_neg_3(self) -> Self
Source§fn inset_neg_3p5(self) -> Self
fn inset_neg_3p5(self) -> Self
Source§fn inset_neg_4(self) -> Self
fn inset_neg_4(self) -> Self
Source§fn inset_neg_5(self) -> Self
fn inset_neg_5(self) -> Self
Source§fn inset_neg_6(self) -> Self
fn inset_neg_6(self) -> Self
Source§fn inset_neg_7(self) -> Self
fn inset_neg_7(self) -> Self
Source§fn inset_neg_8(self) -> Self
fn inset_neg_8(self) -> Self
Source§fn inset_neg_9(self) -> Self
fn inset_neg_9(self) -> Self
Source§fn inset_neg_10(self) -> Self
fn inset_neg_10(self) -> Self
Source§fn inset_neg_11(self) -> Self
fn inset_neg_11(self) -> Self
Source§fn inset_neg_12(self) -> Self
fn inset_neg_12(self) -> Self
Source§fn inset_neg_16(self) -> Self
fn inset_neg_16(self) -> Self
Source§fn inset_neg_20(self) -> Self
fn inset_neg_20(self) -> Self
Source§fn inset_neg_24(self) -> Self
fn inset_neg_24(self) -> Self
Source§fn inset_neg_32(self) -> Self
fn inset_neg_32(self) -> Self
Source§fn inset_neg_40(self) -> Self
fn inset_neg_40(self) -> Self
Source§fn inset_neg_48(self) -> Self
fn inset_neg_48(self) -> Self
Source§fn inset_neg_56(self) -> Self
fn inset_neg_56(self) -> Self
Source§fn inset_neg_64(self) -> Self
fn inset_neg_64(self) -> Self
Source§fn inset_neg_72(self) -> Self
fn inset_neg_72(self) -> Self
Source§fn inset_neg_80(self) -> Self
fn inset_neg_80(self) -> Self
Source§fn inset_neg_96(self) -> Self
fn inset_neg_96(self) -> Self
Source§fn inset_neg_112(self) -> Self
fn inset_neg_112(self) -> Self
Source§fn inset_neg_128(self) -> Self
fn inset_neg_128(self) -> Self
Source§fn inset_auto(self) -> Self
fn inset_auto(self) -> Self
Source§fn inset_neg_px(self) -> Self
fn inset_neg_px(self) -> Self
Source§fn inset_full(self) -> Self
fn inset_full(self) -> Self
Source§fn inset_neg_full(self) -> Self
fn inset_neg_full(self) -> Self
Source§fn inset_neg_1_2(self) -> Self
fn inset_neg_1_2(self) -> Self
Source§fn inset_neg_1_3(self) -> Self
fn inset_neg_1_3(self) -> Self
Source§fn inset_neg_2_3(self) -> Self
fn inset_neg_2_3(self) -> Self
Source§fn inset_neg_1_4(self) -> Self
fn inset_neg_1_4(self) -> Self
Source§fn inset_neg_2_4(self) -> Self
fn inset_neg_2_4(self) -> Self
Source§fn inset_neg_3_4(self) -> Self
fn inset_neg_3_4(self) -> Self
Source§fn inset_neg_1_5(self) -> Self
fn inset_neg_1_5(self) -> Self
Source§fn inset_neg_2_5(self) -> Self
fn inset_neg_2_5(self) -> Self
Source§fn inset_neg_3_5(self) -> Self
fn inset_neg_3_5(self) -> Self
Source§fn inset_neg_4_5(self) -> Self
fn inset_neg_4_5(self) -> Self
Source§fn inset_neg_1_6(self) -> Self
fn inset_neg_1_6(self) -> Self
Source§fn inset_neg_5_6(self) -> Self
fn inset_neg_5_6(self) -> Self
Source§fn inset_1_12(self) -> Self
fn inset_1_12(self) -> Self
Source§fn inset_neg_1_12(self) -> Self
fn inset_neg_1_12(self) -> Self
Source§fn top(self, length: impl Clone + Into<Length>) -> Self
fn top(self, length: impl Clone + Into<Length>) -> Self
Sets the top value of a positioned element. Docs
Source§fn top_neg_0p5(self) -> Self
fn top_neg_0p5(self) -> Self
Source§fn top_neg_1p5(self) -> Self
fn top_neg_1p5(self) -> Self
Source§fn top_neg_2p5(self) -> Self
fn top_neg_2p5(self) -> Self
Source§fn top_neg_3p5(self) -> Self
fn top_neg_3p5(self) -> Self
Source§fn top_neg_10(self) -> Self
fn top_neg_10(self) -> Self
Source§fn top_neg_11(self) -> Self
fn top_neg_11(self) -> Self
Source§fn top_neg_12(self) -> Self
fn top_neg_12(self) -> Self
Source§fn top_neg_16(self) -> Self
fn top_neg_16(self) -> Self
Source§fn top_neg_20(self) -> Self
fn top_neg_20(self) -> Self
Source§fn top_neg_24(self) -> Self
fn top_neg_24(self) -> Self
Source§fn top_neg_32(self) -> Self
fn top_neg_32(self) -> Self
Source§fn top_neg_40(self) -> Self
fn top_neg_40(self) -> Self
Source§fn top_neg_48(self) -> Self
fn top_neg_48(self) -> Self
Source§fn top_neg_56(self) -> Self
fn top_neg_56(self) -> Self
Source§fn top_neg_64(self) -> Self
fn top_neg_64(self) -> Self
Source§fn top_neg_72(self) -> Self
fn top_neg_72(self) -> Self
Source§fn top_neg_80(self) -> Self
fn top_neg_80(self) -> Self
Source§fn top_neg_96(self) -> Self
fn top_neg_96(self) -> Self
Source§fn top_neg_112(self) -> Self
fn top_neg_112(self) -> Self
Source§fn top_neg_128(self) -> Self
fn top_neg_128(self) -> Self
Source§fn top_neg_px(self) -> Self
fn top_neg_px(self) -> Self
Source§fn top_neg_full(self) -> Self
fn top_neg_full(self) -> Self
Source§fn top_neg_1_2(self) -> Self
fn top_neg_1_2(self) -> Self
Source§fn top_neg_1_3(self) -> Self
fn top_neg_1_3(self) -> Self
Source§fn top_neg_2_3(self) -> Self
fn top_neg_2_3(self) -> Self
Source§fn top_neg_1_4(self) -> Self
fn top_neg_1_4(self) -> Self
Source§fn top_neg_2_4(self) -> Self
fn top_neg_2_4(self) -> Self
Source§fn top_neg_3_4(self) -> Self
fn top_neg_3_4(self) -> Self
Source§fn top_neg_1_5(self) -> Self
fn top_neg_1_5(self) -> Self
Source§fn top_neg_2_5(self) -> Self
fn top_neg_2_5(self) -> Self
Source§fn top_neg_3_5(self) -> Self
fn top_neg_3_5(self) -> Self
Source§fn top_neg_4_5(self) -> Self
fn top_neg_4_5(self) -> Self
Source§fn top_neg_1_6(self) -> Self
fn top_neg_1_6(self) -> Self
Source§fn top_neg_5_6(self) -> Self
fn top_neg_5_6(self) -> Self
Source§fn top_neg_1_12(self) -> Self
fn top_neg_1_12(self) -> Self
Source§fn bottom(self, length: impl Clone + Into<Length>) -> Self
fn bottom(self, length: impl Clone + Into<Length>) -> Self
Sets the bottom value of a positioned element. Docs
Source§fn bottom_neg_0(self) -> Self
fn bottom_neg_0(self) -> Self
Source§fn bottom_0p5(self) -> Self
fn bottom_0p5(self) -> Self
Source§fn bottom_neg_0p5(self) -> Self
fn bottom_neg_0p5(self) -> Self
Source§fn bottom_neg_1(self) -> Self
fn bottom_neg_1(self) -> Self
Source§fn bottom_1p5(self) -> Self
fn bottom_1p5(self) -> Self
Source§fn bottom_neg_1p5(self) -> Self
fn bottom_neg_1p5(self) -> Self
Source§fn bottom_neg_2(self) -> Self
fn bottom_neg_2(self) -> Self
Source§fn bottom_2p5(self) -> Self
fn bottom_2p5(self) -> Self
Source§fn bottom_neg_2p5(self) -> Self
fn bottom_neg_2p5(self) -> Self
Source§fn bottom_neg_3(self) -> Self
fn bottom_neg_3(self) -> Self
Source§fn bottom_3p5(self) -> Self
fn bottom_3p5(self) -> Self
Source§fn bottom_neg_3p5(self) -> Self
fn bottom_neg_3p5(self) -> Self
Source§fn bottom_neg_4(self) -> Self
fn bottom_neg_4(self) -> Self
Source§fn bottom_neg_5(self) -> Self
fn bottom_neg_5(self) -> Self
Source§fn bottom_neg_6(self) -> Self
fn bottom_neg_6(self) -> Self
Source§fn bottom_neg_7(self) -> Self
fn bottom_neg_7(self) -> Self
Source§fn bottom_neg_8(self) -> Self
fn bottom_neg_8(self) -> Self
Source§fn bottom_neg_9(self) -> Self
fn bottom_neg_9(self) -> Self
Source§fn bottom_neg_10(self) -> Self
fn bottom_neg_10(self) -> Self
Source§fn bottom_neg_11(self) -> Self
fn bottom_neg_11(self) -> Self
Source§fn bottom_neg_12(self) -> Self
fn bottom_neg_12(self) -> Self
Source§fn bottom_neg_16(self) -> Self
fn bottom_neg_16(self) -> Self
Source§fn bottom_neg_20(self) -> Self
fn bottom_neg_20(self) -> Self
Source§fn bottom_neg_24(self) -> Self
fn bottom_neg_24(self) -> Self
Source§fn bottom_neg_32(self) -> Self
fn bottom_neg_32(self) -> Self
Source§fn bottom_neg_40(self) -> Self
fn bottom_neg_40(self) -> Self
Source§fn bottom_neg_48(self) -> Self
fn bottom_neg_48(self) -> Self
Source§fn bottom_neg_56(self) -> Self
fn bottom_neg_56(self) -> Self
Source§fn bottom_neg_64(self) -> Self
fn bottom_neg_64(self) -> Self
Source§fn bottom_neg_72(self) -> Self
fn bottom_neg_72(self) -> Self
Source§fn bottom_neg_80(self) -> Self
fn bottom_neg_80(self) -> Self
Source§fn bottom_neg_96(self) -> Self
fn bottom_neg_96(self) -> Self
Source§fn bottom_112(self) -> Self
fn bottom_112(self) -> Self
Source§fn bottom_neg_112(self) -> Self
fn bottom_neg_112(self) -> Self
Source§fn bottom_128(self) -> Self
fn bottom_128(self) -> Self
Source§fn bottom_neg_128(self) -> Self
fn bottom_neg_128(self) -> Self
Source§fn bottom_auto(self) -> Self
fn bottom_auto(self) -> Self
Source§fn bottom_neg_px(self) -> Self
fn bottom_neg_px(self) -> Self
Source§fn bottom_full(self) -> Self
fn bottom_full(self) -> Self
Source§fn bottom_neg_full(self) -> Self
fn bottom_neg_full(self) -> Self
Source§fn bottom_1_2(self) -> Self
fn bottom_1_2(self) -> Self
Source§fn bottom_neg_1_2(self) -> Self
fn bottom_neg_1_2(self) -> Self
Source§fn bottom_1_3(self) -> Self
fn bottom_1_3(self) -> Self
Source§fn bottom_neg_1_3(self) -> Self
fn bottom_neg_1_3(self) -> Self
Source§fn bottom_2_3(self) -> Self
fn bottom_2_3(self) -> Self
Source§fn bottom_neg_2_3(self) -> Self
fn bottom_neg_2_3(self) -> Self
Source§fn bottom_1_4(self) -> Self
fn bottom_1_4(self) -> Self
Source§fn bottom_neg_1_4(self) -> Self
fn bottom_neg_1_4(self) -> Self
Source§fn bottom_2_4(self) -> Self
fn bottom_2_4(self) -> Self
Source§fn bottom_neg_2_4(self) -> Self
fn bottom_neg_2_4(self) -> Self
Source§fn bottom_3_4(self) -> Self
fn bottom_3_4(self) -> Self
Source§fn bottom_neg_3_4(self) -> Self
fn bottom_neg_3_4(self) -> Self
Source§fn bottom_1_5(self) -> Self
fn bottom_1_5(self) -> Self
Source§fn bottom_neg_1_5(self) -> Self
fn bottom_neg_1_5(self) -> Self
Source§fn bottom_2_5(self) -> Self
fn bottom_2_5(self) -> Self
Source§fn bottom_neg_2_5(self) -> Self
fn bottom_neg_2_5(self) -> Self
Source§fn bottom_3_5(self) -> Self
fn bottom_3_5(self) -> Self
Source§fn bottom_neg_3_5(self) -> Self
fn bottom_neg_3_5(self) -> Self
Source§fn bottom_4_5(self) -> Self
fn bottom_4_5(self) -> Self
Source§fn bottom_neg_4_5(self) -> Self
fn bottom_neg_4_5(self) -> Self
Source§fn bottom_1_6(self) -> Self
fn bottom_1_6(self) -> Self
Source§fn bottom_neg_1_6(self) -> Self
fn bottom_neg_1_6(self) -> Self
Source§fn bottom_5_6(self) -> Self
fn bottom_5_6(self) -> Self
Source§fn bottom_neg_5_6(self) -> Self
fn bottom_neg_5_6(self) -> Self
Source§fn bottom_1_12(self) -> Self
fn bottom_1_12(self) -> Self
Source§fn bottom_neg_1_12(self) -> Self
fn bottom_neg_1_12(self) -> Self
Source§fn left(self, length: impl Clone + Into<Length>) -> Self
fn left(self, length: impl Clone + Into<Length>) -> Self
Sets the left value of a positioned element. Docs
Source§fn left_neg_0(self) -> Self
fn left_neg_0(self) -> Self
Source§fn left_neg_0p5(self) -> Self
fn left_neg_0p5(self) -> Self
Source§fn left_neg_1(self) -> Self
fn left_neg_1(self) -> Self
Source§fn left_neg_1p5(self) -> Self
fn left_neg_1p5(self) -> Self
Source§fn left_neg_2(self) -> Self
fn left_neg_2(self) -> Self
Source§fn left_neg_2p5(self) -> Self
fn left_neg_2p5(self) -> Self
Source§fn left_neg_3(self) -> Self
fn left_neg_3(self) -> Self
Source§fn left_neg_3p5(self) -> Self
fn left_neg_3p5(self) -> Self
Source§fn left_neg_4(self) -> Self
fn left_neg_4(self) -> Self
Source§fn left_neg_5(self) -> Self
fn left_neg_5(self) -> Self
Source§fn left_neg_6(self) -> Self
fn left_neg_6(self) -> Self
Source§fn left_neg_7(self) -> Self
fn left_neg_7(self) -> Self
Source§fn left_neg_8(self) -> Self
fn left_neg_8(self) -> Self
Source§fn left_neg_9(self) -> Self
fn left_neg_9(self) -> Self
Source§fn left_neg_10(self) -> Self
fn left_neg_10(self) -> Self
Source§fn left_neg_11(self) -> Self
fn left_neg_11(self) -> Self
Source§fn left_neg_12(self) -> Self
fn left_neg_12(self) -> Self
Source§fn left_neg_16(self) -> Self
fn left_neg_16(self) -> Self
Source§fn left_neg_20(self) -> Self
fn left_neg_20(self) -> Self
Source§fn left_neg_24(self) -> Self
fn left_neg_24(self) -> Self
Source§fn left_neg_32(self) -> Self
fn left_neg_32(self) -> Self
Source§fn left_neg_40(self) -> Self
fn left_neg_40(self) -> Self
Source§fn left_neg_48(self) -> Self
fn left_neg_48(self) -> Self
Source§fn left_neg_56(self) -> Self
fn left_neg_56(self) -> Self
Source§fn left_neg_64(self) -> Self
fn left_neg_64(self) -> Self
Source§fn left_neg_72(self) -> Self
fn left_neg_72(self) -> Self
Source§fn left_neg_80(self) -> Self
fn left_neg_80(self) -> Self
Source§fn left_neg_96(self) -> Self
fn left_neg_96(self) -> Self
Source§fn left_neg_112(self) -> Self
fn left_neg_112(self) -> Self
Source§fn left_neg_128(self) -> Self
fn left_neg_128(self) -> Self
Source§fn left_neg_px(self) -> Self
fn left_neg_px(self) -> Self
Source§fn left_neg_full(self) -> Self
fn left_neg_full(self) -> Self
Source§fn left_neg_1_2(self) -> Self
fn left_neg_1_2(self) -> Self
Source§fn left_neg_1_3(self) -> Self
fn left_neg_1_3(self) -> Self
Source§fn left_neg_2_3(self) -> Self
fn left_neg_2_3(self) -> Self
Source§fn left_neg_1_4(self) -> Self
fn left_neg_1_4(self) -> Self
Source§fn left_neg_2_4(self) -> Self
fn left_neg_2_4(self) -> Self
Source§fn left_neg_3_4(self) -> Self
fn left_neg_3_4(self) -> Self
Source§fn left_neg_1_5(self) -> Self
fn left_neg_1_5(self) -> Self
Source§fn left_neg_2_5(self) -> Self
fn left_neg_2_5(self) -> Self
Source§fn left_neg_3_5(self) -> Self
fn left_neg_3_5(self) -> Self
Source§fn left_neg_4_5(self) -> Self
fn left_neg_4_5(self) -> Self
Source§fn left_neg_1_6(self) -> Self
fn left_neg_1_6(self) -> Self
Source§fn left_neg_5_6(self) -> Self
fn left_neg_5_6(self) -> Self
Source§fn left_neg_1_12(self) -> Self
fn left_neg_1_12(self) -> Self
Source§fn right(self, length: impl Clone + Into<Length>) -> Self
fn right(self, length: impl Clone + Into<Length>) -> Self
Sets the right value of a positioned element. Docs
Source§fn right_neg_0(self) -> Self
fn right_neg_0(self) -> Self
Source§fn right_neg_0p5(self) -> Self
fn right_neg_0p5(self) -> Self
Source§fn right_neg_1(self) -> Self
fn right_neg_1(self) -> Self
Source§fn right_neg_1p5(self) -> Self
fn right_neg_1p5(self) -> Self
Source§fn right_neg_2(self) -> Self
fn right_neg_2(self) -> Self
Source§fn right_neg_2p5(self) -> Self
fn right_neg_2p5(self) -> Self
Source§fn right_neg_3(self) -> Self
fn right_neg_3(self) -> Self
Source§fn right_neg_3p5(self) -> Self
fn right_neg_3p5(self) -> Self
Source§fn right_neg_4(self) -> Self
fn right_neg_4(self) -> Self
Source§fn right_neg_5(self) -> Self
fn right_neg_5(self) -> Self
Source§fn right_neg_6(self) -> Self
fn right_neg_6(self) -> Self
Source§fn right_neg_7(self) -> Self
fn right_neg_7(self) -> Self
Source§fn right_neg_8(self) -> Self
fn right_neg_8(self) -> Self
Source§fn right_neg_9(self) -> Self
fn right_neg_9(self) -> Self
Source§fn right_neg_10(self) -> Self
fn right_neg_10(self) -> Self
Source§fn right_neg_11(self) -> Self
fn right_neg_11(self) -> Self
Source§fn right_neg_12(self) -> Self
fn right_neg_12(self) -> Self
Source§fn right_neg_16(self) -> Self
fn right_neg_16(self) -> Self
Source§fn right_neg_20(self) -> Self
fn right_neg_20(self) -> Self
Source§fn right_neg_24(self) -> Self
fn right_neg_24(self) -> Self
Source§fn right_neg_32(self) -> Self
fn right_neg_32(self) -> Self
Source§fn right_neg_40(self) -> Self
fn right_neg_40(self) -> Self
Source§fn right_neg_48(self) -> Self
fn right_neg_48(self) -> Self
Source§fn right_neg_56(self) -> Self
fn right_neg_56(self) -> Self
Source§fn right_neg_64(self) -> Self
fn right_neg_64(self) -> Self
Source§fn right_neg_72(self) -> Self
fn right_neg_72(self) -> Self
Source§fn right_neg_80(self) -> Self
fn right_neg_80(self) -> Self
Source§fn right_neg_96(self) -> Self
fn right_neg_96(self) -> Self
Source§fn right_neg_112(self) -> Self
fn right_neg_112(self) -> Self
Source§fn right_neg_128(self) -> Self
fn right_neg_128(self) -> Self
Source§fn right_auto(self) -> Self
fn right_auto(self) -> Self
Source§fn right_neg_px(self) -> Self
fn right_neg_px(self) -> Self
Source§fn right_full(self) -> Self
fn right_full(self) -> Self
Source§fn right_neg_full(self) -> Self
fn right_neg_full(self) -> Self
Source§fn right_neg_1_2(self) -> Self
fn right_neg_1_2(self) -> Self
Source§fn right_neg_1_3(self) -> Self
fn right_neg_1_3(self) -> Self
Source§fn right_neg_2_3(self) -> Self
fn right_neg_2_3(self) -> Self
Source§fn right_neg_1_4(self) -> Self
fn right_neg_1_4(self) -> Self
Source§fn right_neg_2_4(self) -> Self
fn right_neg_2_4(self) -> Self
Source§fn right_neg_3_4(self) -> Self
fn right_neg_3_4(self) -> Self
Source§fn right_neg_1_5(self) -> Self
fn right_neg_1_5(self) -> Self
Source§fn right_neg_2_5(self) -> Self
fn right_neg_2_5(self) -> Self
Source§fn right_neg_3_5(self) -> Self
fn right_neg_3_5(self) -> Self
Source§fn right_neg_4_5(self) -> Self
fn right_neg_4_5(self) -> Self
Source§fn right_neg_1_6(self) -> Self
fn right_neg_1_6(self) -> Self
Source§fn right_neg_5_6(self) -> Self
fn right_neg_5_6(self) -> Self
Source§fn right_1_12(self) -> Self
fn right_1_12(self) -> Self
Source§fn right_neg_1_12(self) -> Self
fn right_neg_1_12(self) -> Self
Sets the behavior of content that overflows the container to be hidden.
Docs
Sets the behavior of content that overflows the container on the X axis to be hidden.
Docs
Sets the behavior of content that overflows the container on the Y axis to be hidden.
Docs
Source§fn cursor(self, cursor: CursorStyle) -> Self
fn cursor(self, cursor: CursorStyle) -> Self
Sets the cursor style when hovering over this element.
Source§fn cursor_default(self) -> Self
fn cursor_default(self) -> Self
Sets the cursor style when hovering an element to
default.
DocsSource§fn cursor_pointer(self) -> Self
fn cursor_pointer(self) -> Self
Sets the cursor style when hovering an element to
pointer.
DocsSource§fn cursor_text(self) -> Self
fn cursor_text(self) -> Self
Sets cursor style when hovering over an element to
text.
DocsSource§fn cursor_move(self) -> Self
fn cursor_move(self) -> Self
Sets cursor style when hovering over an element to
move.
DocsSource§fn cursor_not_allowed(self) -> Self
fn cursor_not_allowed(self) -> Self
Sets cursor style when hovering over an element to
not-allowed.
DocsSets cursor style when hovering over an element to
context-menu.
DocsSource§fn cursor_crosshair(self) -> Self
fn cursor_crosshair(self) -> Self
Sets cursor style when hovering over an element to
crosshair.
DocsSource§fn cursor_vertical_text(self) -> Self
fn cursor_vertical_text(self) -> Self
Sets cursor style when hovering over an element to
vertical-text.
DocsSource§fn cursor_alias(self) -> Self
fn cursor_alias(self) -> Self
Sets cursor style when hovering over an element to
alias.
DocsSource§fn cursor_copy(self) -> Self
fn cursor_copy(self) -> Self
Sets cursor style when hovering over an element to
copy.
DocsSource§fn cursor_no_drop(self) -> Self
fn cursor_no_drop(self) -> Self
Sets cursor style when hovering over an element to
no-drop.
DocsSource§fn cursor_grab(self) -> Self
fn cursor_grab(self) -> Self
Sets cursor style when hovering over an element to
grab.
DocsSource§fn cursor_grabbing(self) -> Self
fn cursor_grabbing(self) -> Self
Sets cursor style when hovering over an element to
grabbing.
DocsSource§fn cursor_ew_resize(self) -> Self
fn cursor_ew_resize(self) -> Self
Sets cursor style when hovering over an element to
ew-resize.
DocsSource§fn cursor_ns_resize(self) -> Self
fn cursor_ns_resize(self) -> Self
Sets cursor style when hovering over an element to
ns-resize.
DocsSource§fn cursor_nesw_resize(self) -> Self
fn cursor_nesw_resize(self) -> Self
Sets cursor style when hovering over an element to
nesw-resize.
DocsSource§fn cursor_nwse_resize(self) -> Self
fn cursor_nwse_resize(self) -> Self
Sets cursor style when hovering over an element to
nwse-resize.
DocsSource§fn cursor_col_resize(self) -> Self
fn cursor_col_resize(self) -> Self
Sets cursor style when hovering over an element to
col-resize.
DocsSource§fn cursor_row_resize(self) -> Self
fn cursor_row_resize(self) -> Self
Sets cursor style when hovering over an element to
row-resize.
DocsSource§fn cursor_n_resize(self) -> Self
fn cursor_n_resize(self) -> Self
Sets cursor style when hovering over an element to
n-resize.
DocsSource§fn cursor_e_resize(self) -> Self
fn cursor_e_resize(self) -> Self
Sets cursor style when hovering over an element to
e-resize.
DocsSource§fn cursor_s_resize(self) -> Self
fn cursor_s_resize(self) -> Self
Sets cursor style when hovering over an element to
s-resize.
DocsSource§fn cursor_w_resize(self) -> Self
fn cursor_w_resize(self) -> Self
Sets cursor style when hovering over an element to
w-resize.
DocsSource§fn cursor_nw_resize(self) -> Self
fn cursor_nw_resize(self) -> Self
Sets the upper-left resize cursor.
Source§fn cursor_ne_resize(self) -> Self
fn cursor_ne_resize(self) -> Self
Sets the upper-right resize cursor.
Source§fn cursor_sw_resize(self) -> Self
fn cursor_sw_resize(self) -> Self
Sets the lower-left resize cursor.
Source§fn cursor_se_resize(self) -> Self
fn cursor_se_resize(self) -> Self
Sets the lower-right resize cursor.
Source§fn border_color<C>(self, border_color: C) -> Self
fn border_color<C>(self, border_color: C) -> Self
Sets the background painted into the border of the element.
Source§fn border(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn border(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border width of the element. Docs
Source§fn border_t(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn border_t(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border width of the top side of the element. Docs
Source§fn border_t_0(self) -> Self
fn border_t_0(self) -> Self
Source§fn border_t_1(self) -> Self
fn border_t_1(self) -> Self
Source§fn border_t_2(self) -> Self
fn border_t_2(self) -> Self
Source§fn border_t_3(self) -> Self
fn border_t_3(self) -> Self
Source§fn border_t_4(self) -> Self
fn border_t_4(self) -> Self
Source§fn border_t_5(self) -> Self
fn border_t_5(self) -> Self
Source§fn border_t_6(self) -> Self
fn border_t_6(self) -> Self
Source§fn border_t_7(self) -> Self
fn border_t_7(self) -> Self
Source§fn border_t_8(self) -> Self
fn border_t_8(self) -> Self
Source§fn border_t_9(self) -> Self
fn border_t_9(self) -> Self
Source§fn border_t_10(self) -> Self
fn border_t_10(self) -> Self
Source§fn border_t_11(self) -> Self
fn border_t_11(self) -> Self
Source§fn border_t_12(self) -> Self
fn border_t_12(self) -> Self
Source§fn border_t_16(self) -> Self
fn border_t_16(self) -> Self
Source§fn border_t_20(self) -> Self
fn border_t_20(self) -> Self
Source§fn border_t_24(self) -> Self
fn border_t_24(self) -> Self
Source§fn border_t_32(self) -> Self
fn border_t_32(self) -> Self
Source§fn border_b(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn border_b(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border width of the bottom side of the element. Docs
Source§fn border_b_0(self) -> Self
fn border_b_0(self) -> Self
Source§fn border_b_1(self) -> Self
fn border_b_1(self) -> Self
Source§fn border_b_2(self) -> Self
fn border_b_2(self) -> Self
Source§fn border_b_3(self) -> Self
fn border_b_3(self) -> Self
Source§fn border_b_4(self) -> Self
fn border_b_4(self) -> Self
Source§fn border_b_5(self) -> Self
fn border_b_5(self) -> Self
Source§fn border_b_6(self) -> Self
fn border_b_6(self) -> Self
Source§fn border_b_7(self) -> Self
fn border_b_7(self) -> Self
Source§fn border_b_8(self) -> Self
fn border_b_8(self) -> Self
Source§fn border_b_9(self) -> Self
fn border_b_9(self) -> Self
Source§fn border_b_10(self) -> Self
fn border_b_10(self) -> Self
Source§fn border_b_11(self) -> Self
fn border_b_11(self) -> Self
Source§fn border_b_12(self) -> Self
fn border_b_12(self) -> Self
Source§fn border_b_16(self) -> Self
fn border_b_16(self) -> Self
Source§fn border_b_20(self) -> Self
fn border_b_20(self) -> Self
Source§fn border_b_24(self) -> Self
fn border_b_24(self) -> Self
Source§fn border_b_32(self) -> Self
fn border_b_32(self) -> Self
Source§fn border_r(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn border_r(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border width of the right side of the element. Docs
Source§fn border_r_0(self) -> Self
fn border_r_0(self) -> Self
Source§fn border_r_1(self) -> Self
fn border_r_1(self) -> Self
Source§fn border_r_2(self) -> Self
fn border_r_2(self) -> Self
Source§fn border_r_3(self) -> Self
fn border_r_3(self) -> Self
Source§fn border_r_4(self) -> Self
fn border_r_4(self) -> Self
Source§fn border_r_5(self) -> Self
fn border_r_5(self) -> Self
Source§fn border_r_6(self) -> Self
fn border_r_6(self) -> Self
Source§fn border_r_7(self) -> Self
fn border_r_7(self) -> Self
Source§fn border_r_8(self) -> Self
fn border_r_8(self) -> Self
Source§fn border_r_9(self) -> Self
fn border_r_9(self) -> Self
Source§fn border_r_10(self) -> Self
fn border_r_10(self) -> Self
Source§fn border_r_11(self) -> Self
fn border_r_11(self) -> Self
Source§fn border_r_12(self) -> Self
fn border_r_12(self) -> Self
Source§fn border_r_16(self) -> Self
fn border_r_16(self) -> Self
Source§fn border_r_20(self) -> Self
fn border_r_20(self) -> Self
Source§fn border_r_24(self) -> Self
fn border_r_24(self) -> Self
Source§fn border_r_32(self) -> Self
fn border_r_32(self) -> Self
Source§fn border_l(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn border_l(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border width of the left side of the element. Docs
Source§fn border_l_0(self) -> Self
fn border_l_0(self) -> Self
Source§fn border_l_1(self) -> Self
fn border_l_1(self) -> Self
Source§fn border_l_2(self) -> Self
fn border_l_2(self) -> Self
Source§fn border_l_3(self) -> Self
fn border_l_3(self) -> Self
Source§fn border_l_4(self) -> Self
fn border_l_4(self) -> Self
Source§fn border_l_5(self) -> Self
fn border_l_5(self) -> Self
Source§fn border_l_6(self) -> Self
fn border_l_6(self) -> Self
Source§fn border_l_7(self) -> Self
fn border_l_7(self) -> Self
Source§fn border_l_8(self) -> Self
fn border_l_8(self) -> Self
Source§fn border_l_9(self) -> Self
fn border_l_9(self) -> Self
Source§fn border_l_10(self) -> Self
fn border_l_10(self) -> Self
Source§fn border_l_11(self) -> Self
fn border_l_11(self) -> Self
Source§fn border_l_12(self) -> Self
fn border_l_12(self) -> Self
Source§fn border_l_16(self) -> Self
fn border_l_16(self) -> Self
Source§fn border_l_20(self) -> Self
fn border_l_20(self) -> Self
Source§fn border_l_24(self) -> Self
fn border_l_24(self) -> Self
Source§fn border_l_32(self) -> Self
fn border_l_32(self) -> Self
Source§fn border_x(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn border_x(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border width of the vertical sides of the element. Docs
Source§fn border_x_0(self) -> Self
fn border_x_0(self) -> Self
Source§fn border_x_1(self) -> Self
fn border_x_1(self) -> Self
Source§fn border_x_2(self) -> Self
fn border_x_2(self) -> Self
Source§fn border_x_3(self) -> Self
fn border_x_3(self) -> Self
Source§fn border_x_4(self) -> Self
fn border_x_4(self) -> Self
Source§fn border_x_5(self) -> Self
fn border_x_5(self) -> Self
Source§fn border_x_6(self) -> Self
fn border_x_6(self) -> Self
Source§fn border_x_7(self) -> Self
fn border_x_7(self) -> Self
Source§fn border_x_8(self) -> Self
fn border_x_8(self) -> Self
Source§fn border_x_9(self) -> Self
fn border_x_9(self) -> Self
Source§fn border_x_10(self) -> Self
fn border_x_10(self) -> Self
Source§fn border_x_11(self) -> Self
fn border_x_11(self) -> Self
Source§fn border_x_12(self) -> Self
fn border_x_12(self) -> Self
Source§fn border_x_16(self) -> Self
fn border_x_16(self) -> Self
Source§fn border_x_20(self) -> Self
fn border_x_20(self) -> Self
Source§fn border_x_24(self) -> Self
fn border_x_24(self) -> Self
Source§fn border_x_32(self) -> Self
fn border_x_32(self) -> Self
Source§fn border_y(self, length: impl Clone + Into<AbsoluteLength>) -> Self
fn border_y(self, length: impl Clone + Into<AbsoluteLength>) -> Self
Sets the border width of the horizontal sides of the element. Docs
Source§fn border_y_0(self) -> Self
fn border_y_0(self) -> Self
Source§fn border_y_1(self) -> Self
fn border_y_1(self) -> Self
Source§fn border_y_2(self) -> Self
fn border_y_2(self) -> Self
Source§fn border_y_3(self) -> Self
fn border_y_3(self) -> Self
Source§fn border_y_4(self) -> Self
fn border_y_4(self) -> Self
Source§fn border_y_5(self) -> Self
fn border_y_5(self) -> Self
Source§fn border_y_6(self) -> Self
fn border_y_6(self) -> Self
Source§fn border_y_7(self) -> Self
fn border_y_7(self) -> Self
Source§fn border_y_8(self) -> Self
fn border_y_8(self) -> Self
Source§fn border_y_9(self) -> Self
fn border_y_9(self) -> Self
Source§fn border_y_10(self) -> Self
fn border_y_10(self) -> Self
Source§fn border_y_11(self) -> Self
fn border_y_11(self) -> Self
Source§fn border_y_12(self) -> Self
fn border_y_12(self) -> Self
Source§fn border_y_16(self) -> Self
fn border_y_16(self) -> Self
Source§fn border_y_20(self) -> Self
fn border_y_20(self) -> Self
Source§fn border_y_24(self) -> Self
fn border_y_24(self) -> Self
Source§fn border_y_32(self) -> Self
fn border_y_32(self) -> Self
Source§fn shadow(self, shadows: Vec<BoxShadow>) -> Self
fn shadow(self, shadows: Vec<BoxShadow>) -> Self
Sets the element’s box shadows, replacing any set before. Shadows draw in
order, so the first is drawn below the others.
Docs
Source§fn shadow_none(self) -> Self
fn shadow_none(self) -> Self
Clears the box shadow of the element.
Docs
Source§fn ring_color<C>(self, color: C) -> Self
fn ring_color<C>(self, color: C) -> Self
Sets the outer ring color or gradient.
Docs
Source§fn inset_ring_color<C>(self, color: C) -> Self
fn inset_ring_color<C>(self, color: C) -> Self
Sets the inset ring color or gradient.
Docs
Source§fn inset_ring_0(self) -> Self
fn inset_ring_0(self) -> Self
Sets the inset_ring width to px(0.).
Docs
Source§fn inset_ring_1(self) -> Self
fn inset_ring_1(self) -> Self
Sets the inset_ring width to px(1.).
Docs
Source§fn inset_ring_2(self) -> Self
fn inset_ring_2(self) -> Self
Sets the inset_ring width to px(2.).
Docs
Source§fn inset_ring_4(self) -> Self
fn inset_ring_4(self) -> Self
Sets the inset_ring width to px(4.).
Docs
Source§fn inset_ring_8(self) -> Self
fn inset_ring_8(self) -> Self
Sets the inset_ring width to px(8.).
Docs
Source§fn shadow_2xs(self) -> Self
fn shadow_2xs(self) -> Self
Sets a very faint shadow: 1px down, no blur, 5% black.
Docs
Source§fn shadow_xl(self) -> Self
fn shadow_xl(self) -> Self
Sets an extra large shadow made of two layers, each 10% black.
Docs
Source§fn shadow_2xl(self) -> Self
fn shadow_2xl(self) -> Self
Sets the largest preset shadow: 25px down, 50px blur, 25% black.
Docs
Source§fn refine_style(self, refinement: &StyleRefinement) -> Self
fn refine_style(self, refinement: &StyleRefinement) -> Self
Applies every property set in
refinement to this element’s style. Read moreSource§fn direction(self, direction: LayoutDirection) -> Self
fn direction(self, direction: LayoutDirection) -> Self
Sets the inline direction of this element and its logical descendants. Read more
Source§fn rtl(self) -> Self
fn rtl(self) -> Self
Lays out this element and its logical descendants right to left. Read more
Source§fn ltr(self) -> Self
fn ltr(self) -> Self
Lays out this element and its logical descendants left to right. Read more
Source§fn unicode_bidi(self, unicode_bidi: UnicodeBidi) -> Self
fn unicode_bidi(self, unicode_bidi: UnicodeBidi) -> Self
Sets how this element’s text takes part in the Unicode bidirectional algorithm. Read more
Source§fn blur(self, radius: impl Into<Pixels>) -> Self
fn blur(self, radius: impl Into<Pixels>) -> Self
Blurs this element’s own content and children, like CSS
filter: blur(<radius>). Read moreSource§fn filter(self, filters: impl Into<Vec<Filter>>) -> Self
fn filter(self, filters: impl Into<Vec<Filter>>) -> Self
Replaces the list of filters applied to this element’s own content, like CSS
filter. Read moreSource§fn backdrop_blur(self, radius: impl Into<Pixels>) -> Self
fn backdrop_blur(self, radius: impl Into<Pixels>) -> Self
Blurs the content behind this element, like CSS
backdrop-filter: blur(<radius>). Read moreSource§fn backdrop_filter(self, filters: impl Into<Vec<Filter>>) -> Self
fn backdrop_filter(self, filters: impl Into<Vec<Filter>>) -> Self
Replaces the list of filters applied to the content behind this element, like CSS
backdrop-filter. Read moreSource§fn inline(self) -> Self
fn inline(self) -> Self
Places this element in its parent’s inline formatting context as an inline box. Read more
Source§fn inline_flex(self) -> Self
fn inline_flex(self) -> Self
Places this element in its parent’s paragraph as one atomic box with flex layout inside.
Source§fn vertical_align(self, align: VerticalAlign) -> Self
fn vertical_align(self, align: VerticalAlign) -> Self
Sets how this element aligns when it is placed in an inline layout. Read more
Source§fn align_baseline(self) -> Self
fn align_baseline(self) -> Self
Aligns this inline box with the surrounding text baseline.
Source§fn align_middle(self) -> Self
fn align_middle(self) -> Self
Aligns this inline box’s midpoint with the parent baseline plus half its font’s x-height. Read more
Source§fn align_bottom(self) -> Self
fn align_bottom(self) -> Self
Aligns this inline box with the bottom of its line.
Sets the display type of this element to
none, which removes it from layout and painting. Read moreSource§fn scrollbar_width(self, width: impl Into<AbsoluteLength>) -> Self
fn scrollbar_width(self, width: impl Into<AbsoluteLength>) -> Self
Sets the space reserved for the scrollbar, in logical pixels or rems. Read more
Source§fn overflow_fade(self, fade: impl Into<Edges<AbsoluteLength>>) -> Self
fn overflow_fade(self, fade: impl Into<Edges<AbsoluteLength>>) -> Self
Fades the content clipped by this element’s overflow to transparent at each edge. Read more
Source§fn overflow_fade_x(self, fade: impl Into<AbsoluteLength>) -> Self
fn overflow_fade_x(self, fade: impl Into<AbsoluteLength>) -> Self
Fades content at the left and right overflow edges by the same distance. Read more
Source§fn overflow_fade_y(self, fade: impl Into<AbsoluteLength>) -> Self
fn overflow_fade_y(self, fade: impl Into<AbsoluteLength>) -> Self
Fades content at the top and bottom overflow edges by the same distance. Read more
Source§fn whitespace(self, white_space: WhiteSpace) -> Self
fn whitespace(self, white_space: WhiteSpace) -> Self
Sets how this element’s text handles whitespace and wrapping.
Source§fn whitespace_normal(self) -> Self
fn whitespace_normal(self) -> Self
Sets the whitespace of this element’s text to
normal, so text wraps at the available width. Read moreSource§fn whitespace_nowrap(self) -> Self
fn whitespace_nowrap(self) -> Self
Sets the whitespace of this element’s text to
nowrap, so text stays on one line. Read moreSource§fn text_ellipsis(self) -> Self
fn text_ellipsis(self) -> Self
Truncates overflowing text with an ellipsis (…) at the end. Read more
Source§fn text_ellipsis_start(self) -> Self
fn text_ellipsis_start(self) -> Self
Truncates overflowing text with an ellipsis (…) at the start. Read more
Source§fn text_ellipsis_middle(self) -> Self
fn text_ellipsis_middle(self) -> Self
Truncates overflowing text with an ellipsis (…) in the middle. Read more
Source§fn text_overflow(self, overflow: TextOverflow) -> Self
fn text_overflow(self, overflow: TextOverflow) -> Self
Sets how this element’s text is truncated when it overflows. Read more
Source§fn text_align(self, align: TextAlign) -> Self
fn text_align(self, align: TextAlign) -> Self
Sets the horizontal alignment of this element’s text.
Source§fn text_start(self) -> Self
fn text_start(self) -> Self
Aligns text to the start edge of each line, which is the left edge in left-to-right text.
Source§fn text_end(self) -> Self
fn text_end(self) -> Self
Aligns text to the end edge of each line, which is the right edge in left-to-right text.
Source§fn text_center(self) -> Self
fn text_center(self) -> Self
Centers text horizontally.
Source§fn text_right(self) -> Self
fn text_right(self) -> Self
Aligns text to the right edge.
Source§fn letter_spacing(self, spacing: impl Into<Pixels>) -> Self
fn letter_spacing(self, spacing: impl Into<Pixels>) -> Self
Sets the space between letters in this element and its children, in logical pixels.
Source§fn text_transform(self, transform: TextTransform) -> Self
fn text_transform(self, transform: TextTransform) -> Self
Sets the case transformation for text in this element and its children.
Source§fn truncate(self) -> Self
fn truncate(self) -> Self
Prevents text from wrapping and truncates overflowing text with an ellipsis (…) at the end. Read more
Source§fn line_clamp(self, lines: usize) -> Self
fn line_clamp(self, lines: usize) -> Self
Shows at most
lines lines of text, then truncates the rest. Read moreSource§fn flex_direction(self, direction: FlexDirection) -> Self
fn flex_direction(self, direction: FlexDirection) -> Self
Sets the direction in which flex children are placed. Read more
Source§fn flex_col(self) -> Self
fn flex_col(self) -> Self
Sets the flex direction to
column, so children stack from top to bottom. Read moreSource§fn flex_col_reverse(self) -> Self
fn flex_col_reverse(self) -> Self
Sets the flex direction to
column-reverse, so children stack from bottom to top. Read moreSource§fn flex_row(self) -> Self
fn flex_row(self) -> Self
Sets the flex direction to
row, so children sit left to right. Read moreSource§fn flex_row_reverse(self) -> Self
fn flex_row_reverse(self) -> Self
Sets the flex direction to
row-reverse, so children sit right to left. Read moreSource§fn flex_1(self) -> Self
fn flex_1(self) -> Self
Lets a flex child grow and shrink to fill the space, ignoring its initial size. Read more
Source§fn flex_auto(self) -> Self
fn flex_auto(self) -> Self
Lets a flex child grow and shrink, starting from its natural size. Read more
Source§fn flex_initial(self) -> Self
fn flex_initial(self) -> Self
Lets a flex child shrink but not grow, starting from its natural size. Read more
Source§fn flex_basis(self, basis: impl Into<Length>) -> Self
fn flex_basis(self, basis: impl Into<Length>) -> Self
Sets the starting size of a flex child before it grows or shrinks. Read more
Source§fn flex_grow(self, grow: f32) -> Self
fn flex_grow(self, grow: f32) -> Self
Sets the factor by which a flex child grows to fill spare space. Read more
Source§fn flex_grow_0(self) -> Self
fn flex_grow_0(self) -> Self
Stops a flex child from growing. Read more
Source§fn flex_grow_1(self) -> Self
fn flex_grow_1(self) -> Self
Lets a flex child grow with a factor of 1. Read more
Source§fn flex_shrink(self, shrink: f32) -> Self
fn flex_shrink(self, shrink: f32) -> Self
Sets the factor by which a flex child shrinks when space is short. Read more
Source§fn flex_shrink_0(self) -> Self
fn flex_shrink_0(self) -> Self
Prevents this flex child from participating in shrinkage when space is short. Read more
Source§fn flex_shrink_1(self) -> Self
fn flex_shrink_1(self) -> Self
Lets a flex child shrink with a factor of 1. Read more
Source§fn flex_wrap(self) -> Self
fn flex_wrap(self) -> Self
Lets flex children wrap onto new lines in the normal direction. Read more
Source§fn flex_wrap_reverse(self) -> Self
fn flex_wrap_reverse(self) -> Self
Lets flex children wrap onto new lines in the reverse direction. Read more
Source§fn flex_nowrap(self) -> Self
fn flex_nowrap(self) -> Self
Stops flex children from wrapping. Inflexible children overflow the container instead. Read more
Source§fn items_start(self) -> Self
fn items_start(self) -> Self
Aligns flex or grid children to the start of the cross axis. Read more
Source§fn items_end(self) -> Self
fn items_end(self) -> Self
Aligns flex or grid children to the end of the cross axis. Read more
Source§fn items_center(self) -> Self
fn items_center(self) -> Self
Centers flex or grid children along the cross axis. Read more
Source§fn items_baseline(self) -> Self
fn items_baseline(self) -> Self
Aligns flex or grid children on their text baselines along the cross axis. Read more
Source§fn items_stretch(self) -> Self
fn items_stretch(self) -> Self
Stretches flex or grid children to fill the cross axis. Read more
Source§fn self_start(self) -> Self
fn self_start(self) -> Self
Aligns this flex or grid child to the start of the container’s cross axis. Read more
Source§fn self_end(self) -> Self
fn self_end(self) -> Self
Aligns this flex or grid child to the end of the container’s cross axis. Read more
Source§fn self_flex_start(self) -> Self
fn self_flex_start(self) -> Self
Aligns this flex child to the flex-relative start of the cross axis. Read more
Source§fn self_flex_end(self) -> Self
fn self_flex_end(self) -> Self
Aligns this flex child to the flex-relative end of the cross axis. Read more
Source§fn self_center(self) -> Self
fn self_center(self) -> Self
Centers this flex or grid child along the container’s cross axis. Read more
Source§fn self_baseline(self) -> Self
fn self_baseline(self) -> Self
Aligns this flex or grid child on the container’s baseline along the cross axis. Read more
Source§fn self_stretch(self) -> Self
fn self_stretch(self) -> Self
Stretches this flex or grid child to fill the container’s cross axis. Read more
Source§fn justify_start(self) -> Self
fn justify_start(self) -> Self
Packs flex or grid children against the start of the main axis. Read more
Source§fn justify_end(self) -> Self
fn justify_end(self) -> Self
Packs flex or grid children against the end of the main axis. Read more
Source§fn justify_flex_start(self) -> Self
fn justify_flex_start(self) -> Self
Packs flex children against the flex-relative start of the main axis.
Source§fn justify_flex_end(self) -> Self
fn justify_flex_end(self) -> Self
Packs flex children against the flex-relative end of the main axis.
Source§fn justify_center(self) -> Self
fn justify_center(self) -> Self
Centers flex or grid children along the main axis. Read more
Source§fn justify_between(self) -> Self
fn justify_between(self) -> Self
Spreads children along the main axis with equal space between them. Read more
Source§fn justify_around(self) -> Self
fn justify_around(self) -> Self
Spreads children along the main axis with equal space on each side of each child. Read more
Source§fn justify_evenly(self) -> Self
fn justify_evenly(self) -> Self
Spreads children along the main axis with equal space between every child and at both edges. Read more
Source§fn content_normal(self) -> Self
fn content_normal(self) -> Self
Clears
align-content, so lines of children use their default packing. Read moreSource§fn content_center(self) -> Self
fn content_center(self) -> Self
Packs lines of children in the center of the cross axis. Read more
Source§fn content_start(self) -> Self
fn content_start(self) -> Self
Packs lines of children against the start of the cross axis. Read more
Source§fn content_end(self) -> Self
fn content_end(self) -> Self
Packs lines of children against the end of the cross axis. Read more
Source§fn content_between(self) -> Self
fn content_between(self) -> Self
Spreads lines of children along the cross axis with equal space between them. Read more
Source§fn content_around(self) -> Self
fn content_around(self) -> Self
Spreads lines of children along the cross axis with equal space on each side of each line. Read more
Source§fn content_evenly(self) -> Self
fn content_evenly(self) -> Self
Spreads lines of children along the cross axis with equal space between every line and at both edges. Read more
Source§fn content_stretch(self) -> Self
fn content_stretch(self) -> Self
Stretches lines of children to fill the cross axis. Read more
Source§fn aspect_ratio(self, ratio: f32) -> Self
fn aspect_ratio(self, ratio: f32) -> Self
Sets the width-to-height ratio of this element. Read more
Source§fn aspect_square(self) -> Self
fn aspect_square(self) -> Self
Sets the aspect ratio to
1.0, so the element’s width and height are equal. Read moreSource§fn border_dashed(self) -> Self
fn border_dashed(self) -> Self
Sets the border style to dashed. Read more
Source§fn border_dashed_length(self, length_per_border_width: f32) -> Self
fn border_dashed_length(self, length_per_border_width: f32) -> Self
Sets the length of each border dash as a multiple of the border width. Read more
Source§fn border_dashed_gap(self, gap_per_border_width: f32) -> Self
fn border_dashed_gap(self, gap_per_border_width: f32) -> Self
Sets the gap between border dashes as a multiple of the border width. Read more
Source§fn text_style(&mut self) -> &mut TextStyleRefinement
fn text_style(&mut self) -> &mut TextStyleRefinement
Returns the text style refinement configured on this element. Read more
Source§fn text_color(self, color: impl IntoColor<Hsla>) -> Self
fn text_color(self, color: impl IntoColor<Hsla>) -> Self
Sets the text color of this element. Read more
Source§fn font_weight(self, weight: FontWeight) -> Self
fn font_weight(self, weight: FontWeight) -> Self
Sets the font weight of this element and its children. Read more
Source§fn font_width(self, width: impl Into<FontWidth>) -> Self
fn font_width(self, width: impl Into<FontWidth>) -> Self
Sets the font width of this element and its children. Read more
Source§fn text_bg(self, bg: impl IntoColor<Hsla>) -> Self
fn text_bg(self, bg: impl IntoColor<Hsla>) -> Self
Sets the background color behind the text of this element. Read more
Source§fn text_size(self, size: impl Into<AbsoluteLength>) -> Self
fn text_size(self, size: impl Into<AbsoluteLength>) -> Self
Sets the font size of this element and its children. Read more
Source§fn text_xs(self) -> Self
fn text_xs(self) -> Self
Sets the font size to
0.75rem (12px with the default 16px root size). Read moreSource§fn text_sm(self) -> Self
fn text_sm(self) -> Self
Sets the font size to
0.875rem (14px with the default 16px root size). Read moreSource§fn text_base(self) -> Self
fn text_base(self) -> Self
Sets the font size to
1rem (16px with the default 16px root size). Read moreSource§fn text_lg(self) -> Self
fn text_lg(self) -> Self
Sets the font size to
1.125rem (18px with the default 16px root size). Read moreSource§fn text_xl(self) -> Self
fn text_xl(self) -> Self
Sets the font size to
1.25rem (20px with the default 16px root size). Read moreSource§fn text_2xl(self) -> Self
fn text_2xl(self) -> Self
Sets the font size to
1.5rem (24px with the default 16px root size). Read moreSource§fn text_3xl(self) -> Self
fn text_3xl(self) -> Self
Sets the font size to
1.875rem (30px with the default 16px root size). Read moreSource§fn not_italic(self) -> Self
fn not_italic(self) -> Self
Sets the font style to normal, which is not italic. Read more
Source§fn line_through(self) -> Self
fn line_through(self) -> Self
Draws a line through the text of this element with a 1px line. Read more
Source§fn text_decoration_none(self) -> Self
fn text_decoration_none(self) -> Self
Removes an underline set earlier on this element. It can’t remove an underline
inherited from a parent, and it leaves any strikethrough alone.
Source§fn text_decoration_color(self, color: impl IntoColor<Hsla>) -> Self
fn text_decoration_color(self, color: impl IntoColor<Hsla>) -> Self
Sets the color of the text decoration line. Read more
Source§fn text_decoration_solid(self) -> Self
fn text_decoration_solid(self) -> Self
Sets the text decoration style to a solid line. Read more
Source§fn text_decoration_wavy(self) -> Self
fn text_decoration_wavy(self) -> Self
Sets the text decoration style to a wavy line. Read more
Source§fn text_decoration_0(self) -> Self
fn text_decoration_0(self) -> Self
Sets the text decoration thickness to
0px, which hides the line. Read moreSource§fn text_decoration_1(self) -> Self
fn text_decoration_1(self) -> Self
Sets the text decoration thickness to
1px. Read moreSource§fn text_decoration_2(self) -> Self
fn text_decoration_2(self) -> Self
Sets the text decoration thickness to
2px. Read moreSource§fn text_decoration_4(self) -> Self
fn text_decoration_4(self) -> Self
Sets the text decoration thickness to
4px. Read moreSource§fn text_decoration_8(self) -> Self
fn text_decoration_8(self) -> Self
Sets the text decoration thickness to
8px. Read moreSource§fn font_family(self, family_name: impl Into<SharedString>) -> Self
fn font_family(self, family_name: impl Into<SharedString>) -> Self
Sets the font family of this element and its children. Read more
Source§fn font_features(self, features: FontFeatures) -> Self
fn font_features(self, features: FontFeatures) -> Self
Sets the OpenType font features of this element and its children.
Source§fn font(self, font: Font) -> Self
fn font(self, font: Font) -> Self
Sets the font family, features, fallbacks, weight, width, and style of this element and its children. Read more
Source§fn line_height(self, line_height: impl Into<DefiniteLength>) -> Self
fn line_height(self, line_height: impl Into<DefiniteLength>) -> Self
Sets the line height of this element and its children. Read more
Source§fn opacity(self, opacity: f32) -> Self
fn opacity(self, opacity: f32) -> Self
Sets the opacity of this element and its children, composited together as one group. Read more
Source§fn grid_cols(self, cols: u16) -> Self
fn grid_cols(self, cols: u16) -> Self
Sets the number of equal-width columns in this grid element. Read more
Source§fn grid_cols_min_content(self, cols: u16) -> Self
fn grid_cols_min_content(self, cols: u16) -> Self
Sets the number of columns, each at least as wide as its content. Read more
Source§fn grid_cols_max_content(self, cols: u16) -> Self
fn grid_cols_max_content(self, cols: u16) -> Self
Sets the number of columns with max-content sizing as the upper track size. Read more
Source§fn grid_rows(self, rows: u16) -> Self
fn grid_rows(self, rows: u16) -> Self
Sets the number of equal-height rows in this grid element. Read more
Source§fn grid_rows_min_content(self, rows: u16) -> Self
fn grid_rows_min_content(self, rows: u16) -> Self
Sets the number of rows, each at least as tall as its content. Read more
Source§fn grid_rows_max_content(self, rows: u16) -> Self
fn grid_rows_max_content(self, rows: u16) -> Self
Sets the number of rows with max-content sizing as the upper track size. Read more
Source§fn col_start(self, start: i16) -> Self
fn col_start(self, start: i16) -> Self
Sets the grid column line where this element starts. Lines are numbered from 1;
negative values count backward from the end of the explicit grid.
Source§fn col_start_auto(self) -> Self
fn col_start_auto(self) -> Self
Lets the grid place this element’s start column automatically.
Source§fn col_end(self, end: i16) -> Self
fn col_end(self, end: i16) -> Self
Sets the grid column line where this element ends. Lines are numbered from 1; negative values count from the end.
Source§fn col_end_auto(self) -> Self
fn col_end_auto(self) -> Self
Lets the grid place this element’s end column automatically.
Source§fn col_span_full(self) -> Self
fn col_span_full(self) -> Self
Makes this element span all grid columns.
Source§fn row_start(self, start: i16) -> Self
fn row_start(self, start: i16) -> Self
Sets the grid row line where this element starts. Lines are numbered from 1;
negative values count backward from the end of the explicit grid.
Source§fn row_start_auto(self) -> Self
fn row_start_auto(self) -> Self
Lets the grid place this element’s start row automatically.
Source§fn row_end(self, end: i16) -> Self
fn row_end(self, end: i16) -> Self
Sets the grid row line where this element ends. Lines are numbered from 1; negative values count from the end.
Source§fn row_end_auto(self) -> Self
fn row_end_auto(self) -> Self
Lets the grid place this element’s end row automatically.
Source§fn row_span_full(self) -> Self
fn row_span_full(self) -> Self
Makes this element span all grid rows.
Source§fn debug_below(self) -> Self
fn debug_below(self) -> Self
Draws a debug border around this element and every element below it in the tree. Read more
Source§fn rounded_smoothing(self, amount: f32) -> Self
fn rounded_smoothing(self, amount: f32) -> Self
Sets how smooth the rounded corners are, from
0.0 for circular corners to 1.0 for maximum smoothing.
In debug builds, values outside this range trigger an assertion.Source§fn rounded_smoothing_ios(self) -> Self
fn rounded_smoothing_ios(self) -> Self
Sets corner smoothing to
0.6, which matches iOS-style corners.Source§impl StyledImage for Stateful<Img>
impl StyledImage for Stateful<Img>
Source§fn image_style(&mut self) -> &mut ImageStyle
fn image_style(&mut self) -> &mut ImageStyle
Returns the
ImageStyle that the methods on this trait write to.Source§fn grayscale(self, grayscale: bool) -> Self
fn grayscale(self, grayscale: bool) -> Self
Draws the image in grayscale when
grayscale is true. The default is false.Source§fn object_fit(self, object_fit: ObjectFit) -> Self
fn object_fit(self, object_fit: ObjectFit) -> Self
Sets how the image fills its box. The default is
ObjectFit::Contain. Read moreSource§fn with_fallback(self, fallback: impl Fn() -> AnyElement + 'static) -> Self
fn with_fallback(self, fallback: impl Fn() -> AnyElement + 'static) -> Self
Sets the closure that builds the element to show when the image fails to load. Read more
Source§fn with_loading(self, loading: impl Fn() -> AnyElement + 'static) -> Self
fn with_loading(self, loading: impl Fn() -> AnyElement + 'static) -> Self
Sets the closure that builds a placeholder to show while the image loads. Read more
Auto Trait Implementations§
impl<E> Freeze for Stateful<E>where
E: Freeze,
impl<E> RefUnwindSafe for Stateful<E>where
E: RefUnwindSafe,
impl<E> Send for Stateful<E>where
E: Send,
impl<E> Sync for Stateful<E>where
E: Sync,
impl<E> Unpin for Stateful<E>where
E: Unpin,
impl<E> UnsafeUnpin for Stateful<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Stateful<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
👎Deprecated since 0.7.7:
replaced by palette::chromatic_adaptation::AdaptIntoUnclamped
Convert the source color to the destination color using the specified
method.
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
👎Deprecated since 0.7.7:
replaced by palette::chromatic_adaptation::AdaptIntoUnclamped
Convert the source color to the destination color using the bradford
method by default.
Source§impl<T, C> AdaptIntoUnclamped<T> for Cwhere
T: AdaptFromUnclamped<C>,
impl<T, C> AdaptIntoUnclamped<T> for Cwhere
T: AdaptFromUnclamped<C>,
Source§type Scalar = <T as AdaptFromUnclamped<C>>::Scalar
type Scalar = <T as AdaptFromUnclamped<C>>::Scalar
The number type that’s used as the color’s components.
Source§fn adapt_into_unclamped_with<M>(self) -> Twhere
M: LmsToXyz<<C as AdaptIntoUnclamped<T>>::Scalar> + XyzToLms<<C as AdaptIntoUnclamped<T>>::Scalar>,
fn adapt_into_unclamped_with<M>(self) -> Twhere
M: LmsToXyz<<C as AdaptIntoUnclamped<T>>::Scalar> + XyzToLms<<C as AdaptIntoUnclamped<T>>::Scalar>,
Source§impl<E> AnimationExt for Ewhere
E: IntoElement + 'static,
impl<E> AnimationExt for Ewhere
E: IntoElement + 'static,
Source§fn with_animation(
self,
id: impl Into<ElementId>,
animation: Animation,
animator: impl Fn(Self, f32) -> Self + 'static,
) -> AnimationElement<Self>where
Self: Sized,
fn with_animation(
self,
id: impl Into<ElementId>,
animation: Animation,
animator: impl Fn(Self, f32) -> Self + 'static,
) -> AnimationElement<Self>where
Self: Sized,
Source§fn with_animations(
self,
id: impl Into<ElementId>,
animations: Vec<Animation>,
animator: impl Fn(Self, usize, f32) -> Self + 'static,
) -> AnimationElement<Self>where
Self: Sized,
fn with_animations(
self,
id: impl Into<ElementId>,
animations: Vec<Animation>,
animator: impl Fn(Self, usize, f32) -> Self + 'static,
) -> AnimationElement<Self>where
Self: Sized,
Renders this element with a sequence of animations, one after another. Read more
Source§fn with_spring<T>(
self,
id: impl Into<ElementId>,
animation: SpringAnimation<T>,
animator: impl FnOnce(Self, T::Output) -> Self + 'static,
) -> SpringAnimationElement<Self>
fn with_spring<T>( self, id: impl Into<ElementId>, animation: SpringAnimation<T>, animator: impl FnOnce(Self, T::Output) -> Self + 'static, ) -> SpringAnimationElement<Self>
Renders this element at the value of a spring, passed to
animator. Read moreSource§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Cast a collection of colors into a collection of arrays.
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
Cast this collection of arrays into a collection of colors.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self into C, using the provided parameters.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Cast a collection of colors into a collection of color components.
Source§impl<T, C> ComponentsInto<C> for T
impl<T, C> ComponentsInto<C> for T
Source§fn components_into(self) -> C
fn components_into(self) -> C
Cast this collection of color components into a collection of colors. Read more
Source§impl<T> FluentBuilder for Twhere
T: IntoElement,
impl<T> FluentBuilder for Twhere
T: IntoElement,
Source§fn map<U>(self, f: impl FnOnce(Self) -> U) -> Uwhere
Self: Sized,
fn map<U>(self, f: impl FnOnce(Self) -> U) -> Uwhere
Self: Sized,
Passes
self to f, and returns the result. Use it to continue a chain with a
closure.Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Selfwhere
Self: Sized,
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Selfwhere
Self: Sized,
Calls
then with self if condition is true. Otherwise returns self
unchanged.Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Selfwhere
Self: Sized,
fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Selfwhere
Self: Sized,
Calls
then with self if condition is true, and else_fn with self
otherwise.Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
Performs a conversion from
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
Converts
other into Self, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
Performs a conversion into
T.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
Converts
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
The error for when
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Try to cast this collection of color components into a collection of
colors. Read more
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds error is returned which contains
the unclamped color. Read moreSource§impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
Source§fn uints_from(colors: C) -> U
fn uints_from(colors: C) -> U
Cast a collection of colors into a collection of unsigned integers.
Source§impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
Source§fn uints_into(self) -> C
fn uints_into(self) -> C
Cast this collection of unsigned integers into a collection of colors.