pub struct Facepile { /* private fields */ }Expand description
An element that displays a collection of (usually) faces stacked horizontally, with the left-most face on top, visually descending from left to right.
Facepiles are used to display a group of people or things, such as a list of participants in a collaboration session.
§Examples
§Default
A default, horizontal facepile.
use gpui::IntoElement;
use ui::{Avatar, Facepile, EXAMPLE_FACES};
let facepile = Facepile::new(
EXAMPLE_FACES.iter().take(3).map(|&url|
Avatar::new(url).into_any_element()).collect()
);Implementations§
Source§impl Facepile
impl Facepile
Sourcepub fn new(faces: SmallVec<[AnyElement; 2]>) -> Self
pub fn new(faces: SmallVec<[AnyElement; 2]>) -> Self
Creates a new facepile with the given faces.
Sourcepub fn max_visible(self, max: usize) -> Self
pub fn max_visible(self, max: usize) -> Self
Caps the number of visible faces, replacing the rest with a +N
overflow indicator.
Source§impl Facepile
impl Facepile
Sourcepub fn p(self, length: impl Clone + Into<DefiniteLength>) -> Self
pub fn p(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the padding of the element. Docs
Sourcepub fn p_neg_full(self) -> Self
pub fn p_neg_full(self) -> Self
Sets the padding of the element. Docs
100%
Sourcepub fn p_neg_1_12(self) -> Self
pub fn p_neg_1_12(self) -> Self
Sets the padding of the element. Docs
8% (1/12)
Sourcepub fn pt(self, length: impl Clone + Into<DefiniteLength>) -> Self
pub fn pt(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the top padding of the element. Docs
Sourcepub fn pt_neg_0p5(self) -> Self
pub fn pt_neg_0p5(self) -> Self
Sets the top padding of the element. Docs
2px (0.125rem)
Sourcepub fn pt_neg_1p5(self) -> Self
pub fn pt_neg_1p5(self) -> Self
Sets the top padding of the element. Docs
6px (0.375rem)
Sourcepub fn pt_neg_2p5(self) -> Self
pub fn pt_neg_2p5(self) -> Self
Sets the top padding of the element. Docs
10px (0.625rem)
Sourcepub fn pt_neg_3p5(self) -> Self
pub fn pt_neg_3p5(self) -> Self
Sets the top padding of the element. Docs
14px (0.875rem)
Sourcepub fn pt_neg_112(self) -> Self
pub fn pt_neg_112(self) -> Self
Sets the top padding of the element. Docs
448px (28rem)
Sourcepub fn pt_neg_128(self) -> Self
pub fn pt_neg_128(self) -> Self
Sets the top padding of the element. Docs
512px (32rem)
Sourcepub fn pt_neg_full(self) -> Self
pub fn pt_neg_full(self) -> Self
Sets the top padding of the element. Docs
100%
Sourcepub fn pt_neg_1_2(self) -> Self
pub fn pt_neg_1_2(self) -> Self
Sets the top padding of the element. Docs
50% (1/2)
Sourcepub fn pt_neg_1_3(self) -> Self
pub fn pt_neg_1_3(self) -> Self
Sets the top padding of the element. Docs
33% (1/3)
Sourcepub fn pt_neg_2_3(self) -> Self
pub fn pt_neg_2_3(self) -> Self
Sets the top padding of the element. Docs
66% (2/3)
Sourcepub fn pt_neg_1_4(self) -> Self
pub fn pt_neg_1_4(self) -> Self
Sets the top padding of the element. Docs
25% (1/4)
Sourcepub fn pt_neg_2_4(self) -> Self
pub fn pt_neg_2_4(self) -> Self
Sets the top padding of the element. Docs
50% (2/4)
Sourcepub fn pt_neg_3_4(self) -> Self
pub fn pt_neg_3_4(self) -> Self
Sets the top padding of the element. Docs
75% (3/4)
Sourcepub fn pt_neg_1_5(self) -> Self
pub fn pt_neg_1_5(self) -> Self
Sets the top padding of the element. Docs
20% (1/5)
Sourcepub fn pt_neg_2_5(self) -> Self
pub fn pt_neg_2_5(self) -> Self
Sets the top padding of the element. Docs
40% (2/5)
Sourcepub fn pt_neg_3_5(self) -> Self
pub fn pt_neg_3_5(self) -> Self
Sets the top padding of the element. Docs
60% (3/5)
Sourcepub fn pt_neg_4_5(self) -> Self
pub fn pt_neg_4_5(self) -> Self
Sets the top padding of the element. Docs
80% (4/5)
Sourcepub fn pt_neg_1_6(self) -> Self
pub fn pt_neg_1_6(self) -> Self
Sets the top padding of the element. Docs
16% (1/6)
Sourcepub fn pt_neg_5_6(self) -> Self
pub fn pt_neg_5_6(self) -> Self
Sets the top padding of the element. Docs
80% (5/6)
Sourcepub fn pt_neg_1_12(self) -> Self
pub fn pt_neg_1_12(self) -> Self
Sets the top padding of the element. Docs
8% (1/12)
Sourcepub fn pb(self, length: impl Clone + Into<DefiniteLength>) -> Self
pub fn pb(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the bottom padding of the element. Docs
Sourcepub fn pb_neg_0p5(self) -> Self
pub fn pb_neg_0p5(self) -> Self
Sets the bottom padding of the element. Docs
2px (0.125rem)
Sourcepub fn pb_neg_1p5(self) -> Self
pub fn pb_neg_1p5(self) -> Self
Sets the bottom padding of the element. Docs
6px (0.375rem)
Sourcepub fn pb_neg_2p5(self) -> Self
pub fn pb_neg_2p5(self) -> Self
Sets the bottom padding of the element. Docs
10px (0.625rem)
Sourcepub fn pb_neg_3p5(self) -> Self
pub fn pb_neg_3p5(self) -> Self
Sets the bottom padding of the element. Docs
14px (0.875rem)
Sourcepub fn pb_neg_112(self) -> Self
pub fn pb_neg_112(self) -> Self
Sets the bottom padding of the element. Docs
448px (28rem)
Sourcepub fn pb_neg_128(self) -> Self
pub fn pb_neg_128(self) -> Self
Sets the bottom padding of the element. Docs
512px (32rem)
Sourcepub fn pb_neg_full(self) -> Self
pub fn pb_neg_full(self) -> Self
Sets the bottom padding of the element. Docs
100%
Sourcepub fn pb_neg_1_2(self) -> Self
pub fn pb_neg_1_2(self) -> Self
Sets the bottom padding of the element. Docs
50% (1/2)
Sourcepub fn pb_neg_1_3(self) -> Self
pub fn pb_neg_1_3(self) -> Self
Sets the bottom padding of the element. Docs
33% (1/3)
Sourcepub fn pb_neg_2_3(self) -> Self
pub fn pb_neg_2_3(self) -> Self
Sets the bottom padding of the element. Docs
66% (2/3)
Sourcepub fn pb_neg_1_4(self) -> Self
pub fn pb_neg_1_4(self) -> Self
Sets the bottom padding of the element. Docs
25% (1/4)
Sourcepub fn pb_neg_2_4(self) -> Self
pub fn pb_neg_2_4(self) -> Self
Sets the bottom padding of the element. Docs
50% (2/4)
Sourcepub fn pb_neg_3_4(self) -> Self
pub fn pb_neg_3_4(self) -> Self
Sets the bottom padding of the element. Docs
75% (3/4)
Sourcepub fn pb_neg_1_5(self) -> Self
pub fn pb_neg_1_5(self) -> Self
Sets the bottom padding of the element. Docs
20% (1/5)
Sourcepub fn pb_neg_2_5(self) -> Self
pub fn pb_neg_2_5(self) -> Self
Sets the bottom padding of the element. Docs
40% (2/5)
Sourcepub fn pb_neg_3_5(self) -> Self
pub fn pb_neg_3_5(self) -> Self
Sets the bottom padding of the element. Docs
60% (3/5)
Sourcepub fn pb_neg_4_5(self) -> Self
pub fn pb_neg_4_5(self) -> Self
Sets the bottom padding of the element. Docs
80% (4/5)
Sourcepub fn pb_neg_1_6(self) -> Self
pub fn pb_neg_1_6(self) -> Self
Sets the bottom padding of the element. Docs
16% (1/6)
Sourcepub fn pb_neg_5_6(self) -> Self
pub fn pb_neg_5_6(self) -> Self
Sets the bottom padding of the element. Docs
80% (5/6)
Sourcepub fn pb_neg_1_12(self) -> Self
pub fn pb_neg_1_12(self) -> Self
Sets the bottom padding of the element. Docs
8% (1/12)
Sourcepub fn px(self, length: impl Clone + Into<DefiniteLength>) -> Self
pub fn px(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the horizontal padding of the element. Docs
Sourcepub fn px_neg_0p5(self) -> Self
pub fn px_neg_0p5(self) -> Self
Sets the horizontal padding of the element. Docs
2px (0.125rem)
Sourcepub fn px_neg_1p5(self) -> Self
pub fn px_neg_1p5(self) -> Self
Sets the horizontal padding of the element. Docs
6px (0.375rem)
Sourcepub fn px_neg_2p5(self) -> Self
pub fn px_neg_2p5(self) -> Self
Sets the horizontal padding of the element. Docs
10px (0.625rem)
Sourcepub fn px_neg_3p5(self) -> Self
pub fn px_neg_3p5(self) -> Self
Sets the horizontal padding of the element. Docs
14px (0.875rem)
Sourcepub fn px_neg_112(self) -> Self
pub fn px_neg_112(self) -> Self
Sets the horizontal padding of the element. Docs
448px (28rem)
Sourcepub fn px_neg_128(self) -> Self
pub fn px_neg_128(self) -> Self
Sets the horizontal padding of the element. Docs
512px (32rem)
Sourcepub fn px_neg_full(self) -> Self
pub fn px_neg_full(self) -> Self
Sets the horizontal padding of the element. Docs
100%
Sourcepub fn px_neg_1_2(self) -> Self
pub fn px_neg_1_2(self) -> Self
Sets the horizontal padding of the element. Docs
50% (1/2)
Sourcepub fn px_neg_1_3(self) -> Self
pub fn px_neg_1_3(self) -> Self
Sets the horizontal padding of the element. Docs
33% (1/3)
Sourcepub fn px_neg_2_3(self) -> Self
pub fn px_neg_2_3(self) -> Self
Sets the horizontal padding of the element. Docs
66% (2/3)
Sourcepub fn px_neg_1_4(self) -> Self
pub fn px_neg_1_4(self) -> Self
Sets the horizontal padding of the element. Docs
25% (1/4)
Sourcepub fn px_neg_2_4(self) -> Self
pub fn px_neg_2_4(self) -> Self
Sets the horizontal padding of the element. Docs
50% (2/4)
Sourcepub fn px_neg_3_4(self) -> Self
pub fn px_neg_3_4(self) -> Self
Sets the horizontal padding of the element. Docs
75% (3/4)
Sourcepub fn px_neg_1_5(self) -> Self
pub fn px_neg_1_5(self) -> Self
Sets the horizontal padding of the element. Docs
20% (1/5)
Sourcepub fn px_neg_2_5(self) -> Self
pub fn px_neg_2_5(self) -> Self
Sets the horizontal padding of the element. Docs
40% (2/5)
Sourcepub fn px_neg_3_5(self) -> Self
pub fn px_neg_3_5(self) -> Self
Sets the horizontal padding of the element. Docs
60% (3/5)
Sourcepub fn px_neg_4_5(self) -> Self
pub fn px_neg_4_5(self) -> Self
Sets the horizontal padding of the element. Docs
80% (4/5)
Sourcepub fn px_neg_1_6(self) -> Self
pub fn px_neg_1_6(self) -> Self
Sets the horizontal padding of the element. Docs
16% (1/6)
Sourcepub fn px_neg_5_6(self) -> Self
pub fn px_neg_5_6(self) -> Self
Sets the horizontal padding of the element. Docs
80% (5/6)
Sourcepub fn px_neg_1_12(self) -> Self
pub fn px_neg_1_12(self) -> Self
Sets the horizontal padding of the element. Docs
8% (1/12)
Sourcepub fn py(self, length: impl Clone + Into<DefiniteLength>) -> Self
pub fn py(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the vertical padding of the element. Docs
Sourcepub fn py_neg_0p5(self) -> Self
pub fn py_neg_0p5(self) -> Self
Sets the vertical padding of the element. Docs
2px (0.125rem)
Sourcepub fn py_neg_1p5(self) -> Self
pub fn py_neg_1p5(self) -> Self
Sets the vertical padding of the element. Docs
6px (0.375rem)
Sourcepub fn py_neg_2p5(self) -> Self
pub fn py_neg_2p5(self) -> Self
Sets the vertical padding of the element. Docs
10px (0.625rem)
Sourcepub fn py_neg_3p5(self) -> Self
pub fn py_neg_3p5(self) -> Self
Sets the vertical padding of the element. Docs
14px (0.875rem)
Sourcepub fn py_neg_112(self) -> Self
pub fn py_neg_112(self) -> Self
Sets the vertical padding of the element. Docs
448px (28rem)
Sourcepub fn py_neg_128(self) -> Self
pub fn py_neg_128(self) -> Self
Sets the vertical padding of the element. Docs
512px (32rem)
Sourcepub fn py_neg_full(self) -> Self
pub fn py_neg_full(self) -> Self
Sets the vertical padding of the element. Docs
100%
Sourcepub fn py_neg_1_2(self) -> Self
pub fn py_neg_1_2(self) -> Self
Sets the vertical padding of the element. Docs
50% (1/2)
Sourcepub fn py_neg_1_3(self) -> Self
pub fn py_neg_1_3(self) -> Self
Sets the vertical padding of the element. Docs
33% (1/3)
Sourcepub fn py_neg_2_3(self) -> Self
pub fn py_neg_2_3(self) -> Self
Sets the vertical padding of the element. Docs
66% (2/3)
Sourcepub fn py_neg_1_4(self) -> Self
pub fn py_neg_1_4(self) -> Self
Sets the vertical padding of the element. Docs
25% (1/4)
Sourcepub fn py_neg_2_4(self) -> Self
pub fn py_neg_2_4(self) -> Self
Sets the vertical padding of the element. Docs
50% (2/4)
Sourcepub fn py_neg_3_4(self) -> Self
pub fn py_neg_3_4(self) -> Self
Sets the vertical padding of the element. Docs
75% (3/4)
Sourcepub fn py_neg_1_5(self) -> Self
pub fn py_neg_1_5(self) -> Self
Sets the vertical padding of the element. Docs
20% (1/5)
Sourcepub fn py_neg_2_5(self) -> Self
pub fn py_neg_2_5(self) -> Self
Sets the vertical padding of the element. Docs
40% (2/5)
Sourcepub fn py_neg_3_5(self) -> Self
pub fn py_neg_3_5(self) -> Self
Sets the vertical padding of the element. Docs
60% (3/5)
Sourcepub fn py_neg_4_5(self) -> Self
pub fn py_neg_4_5(self) -> Self
Sets the vertical padding of the element. Docs
80% (4/5)
Sourcepub fn py_neg_1_6(self) -> Self
pub fn py_neg_1_6(self) -> Self
Sets the vertical padding of the element. Docs
16% (1/6)
Sourcepub fn py_neg_5_6(self) -> Self
pub fn py_neg_5_6(self) -> Self
Sets the vertical padding of the element. Docs
80% (5/6)
Sourcepub fn py_neg_1_12(self) -> Self
pub fn py_neg_1_12(self) -> Self
Sets the vertical padding of the element. Docs
8% (1/12)
Sourcepub fn pl(self, length: impl Clone + Into<DefiniteLength>) -> Self
pub fn pl(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the left padding of the element. Docs
Sourcepub fn pl_neg_0p5(self) -> Self
pub fn pl_neg_0p5(self) -> Self
Sets the left padding of the element. Docs
2px (0.125rem)
Sourcepub fn pl_neg_1p5(self) -> Self
pub fn pl_neg_1p5(self) -> Self
Sets the left padding of the element. Docs
6px (0.375rem)
Sourcepub fn pl_neg_2p5(self) -> Self
pub fn pl_neg_2p5(self) -> Self
Sets the left padding of the element. Docs
10px (0.625rem)
Sourcepub fn pl_neg_3p5(self) -> Self
pub fn pl_neg_3p5(self) -> Self
Sets the left padding of the element. Docs
14px (0.875rem)
Sourcepub fn pl_neg_112(self) -> Self
pub fn pl_neg_112(self) -> Self
Sets the left padding of the element. Docs
448px (28rem)
Sourcepub fn pl_neg_128(self) -> Self
pub fn pl_neg_128(self) -> Self
Sets the left padding of the element. Docs
512px (32rem)
Sourcepub fn pl_neg_full(self) -> Self
pub fn pl_neg_full(self) -> Self
Sets the left padding of the element. Docs
100%
Sourcepub fn pl_neg_1_2(self) -> Self
pub fn pl_neg_1_2(self) -> Self
Sets the left padding of the element. Docs
50% (1/2)
Sourcepub fn pl_neg_1_3(self) -> Self
pub fn pl_neg_1_3(self) -> Self
Sets the left padding of the element. Docs
33% (1/3)
Sourcepub fn pl_neg_2_3(self) -> Self
pub fn pl_neg_2_3(self) -> Self
Sets the left padding of the element. Docs
66% (2/3)
Sourcepub fn pl_neg_1_4(self) -> Self
pub fn pl_neg_1_4(self) -> Self
Sets the left padding of the element. Docs
25% (1/4)
Sourcepub fn pl_neg_2_4(self) -> Self
pub fn pl_neg_2_4(self) -> Self
Sets the left padding of the element. Docs
50% (2/4)
Sourcepub fn pl_neg_3_4(self) -> Self
pub fn pl_neg_3_4(self) -> Self
Sets the left padding of the element. Docs
75% (3/4)
Sourcepub fn pl_neg_1_5(self) -> Self
pub fn pl_neg_1_5(self) -> Self
Sets the left padding of the element. Docs
20% (1/5)
Sourcepub fn pl_neg_2_5(self) -> Self
pub fn pl_neg_2_5(self) -> Self
Sets the left padding of the element. Docs
40% (2/5)
Sourcepub fn pl_neg_3_5(self) -> Self
pub fn pl_neg_3_5(self) -> Self
Sets the left padding of the element. Docs
60% (3/5)
Sourcepub fn pl_neg_4_5(self) -> Self
pub fn pl_neg_4_5(self) -> Self
Sets the left padding of the element. Docs
80% (4/5)
Sourcepub fn pl_neg_1_6(self) -> Self
pub fn pl_neg_1_6(self) -> Self
Sets the left padding of the element. Docs
16% (1/6)
Sourcepub fn pl_neg_5_6(self) -> Self
pub fn pl_neg_5_6(self) -> Self
Sets the left padding of the element. Docs
80% (5/6)
Sourcepub fn pl_neg_1_12(self) -> Self
pub fn pl_neg_1_12(self) -> Self
Sets the left padding of the element. Docs
8% (1/12)
Sourcepub fn pr(self, length: impl Clone + Into<DefiniteLength>) -> Self
pub fn pr(self, length: impl Clone + Into<DefiniteLength>) -> Self
Sets the right padding of the element. Docs
Sourcepub fn pr_neg_0p5(self) -> Self
pub fn pr_neg_0p5(self) -> Self
Sets the right padding of the element. Docs
2px (0.125rem)
Sourcepub fn pr_neg_1p5(self) -> Self
pub fn pr_neg_1p5(self) -> Self
Sets the right padding of the element. Docs
6px (0.375rem)
Sourcepub fn pr_neg_2p5(self) -> Self
pub fn pr_neg_2p5(self) -> Self
Sets the right padding of the element. Docs
10px (0.625rem)
Sourcepub fn pr_neg_3p5(self) -> Self
pub fn pr_neg_3p5(self) -> Self
Sets the right padding of the element. Docs
14px (0.875rem)
Sourcepub fn pr_neg_112(self) -> Self
pub fn pr_neg_112(self) -> Self
Sets the right padding of the element. Docs
448px (28rem)
Sourcepub fn pr_neg_128(self) -> Self
pub fn pr_neg_128(self) -> Self
Sets the right padding of the element. Docs
512px (32rem)
Sourcepub fn pr_neg_full(self) -> Self
pub fn pr_neg_full(self) -> Self
Sets the right padding of the element. Docs
100%
Sourcepub fn pr_neg_1_2(self) -> Self
pub fn pr_neg_1_2(self) -> Self
Sets the right padding of the element. Docs
50% (1/2)
Sourcepub fn pr_neg_1_3(self) -> Self
pub fn pr_neg_1_3(self) -> Self
Sets the right padding of the element. Docs
33% (1/3)
Sourcepub fn pr_neg_2_3(self) -> Self
pub fn pr_neg_2_3(self) -> Self
Sets the right padding of the element. Docs
66% (2/3)
Sourcepub fn pr_neg_1_4(self) -> Self
pub fn pr_neg_1_4(self) -> Self
Sets the right padding of the element. Docs
25% (1/4)
Sourcepub fn pr_neg_2_4(self) -> Self
pub fn pr_neg_2_4(self) -> Self
Sets the right padding of the element. Docs
50% (2/4)
Sourcepub fn pr_neg_3_4(self) -> Self
pub fn pr_neg_3_4(self) -> Self
Sets the right padding of the element. Docs
75% (3/4)
Sourcepub fn pr_neg_1_5(self) -> Self
pub fn pr_neg_1_5(self) -> Self
Sets the right padding of the element. Docs
20% (1/5)
Sourcepub fn pr_neg_2_5(self) -> Self
pub fn pr_neg_2_5(self) -> Self
Sets the right padding of the element. Docs
40% (2/5)
Sourcepub fn pr_neg_3_5(self) -> Self
pub fn pr_neg_3_5(self) -> Self
Sets the right padding of the element. Docs
60% (3/5)
Sourcepub fn pr_neg_4_5(self) -> Self
pub fn pr_neg_4_5(self) -> Self
Sets the right padding of the element. Docs
80% (4/5)
Sourcepub fn pr_neg_1_6(self) -> Self
pub fn pr_neg_1_6(self) -> Self
Sets the right padding of the element. Docs
16% (1/6)
Sourcepub fn pr_neg_5_6(self) -> Self
pub fn pr_neg_5_6(self) -> Self
Sets the right padding of the element. Docs
80% (5/6)
Sourcepub fn pr_neg_1_12(self) -> Self
pub fn pr_neg_1_12(self) -> Self
Sets the right padding of the element. Docs
8% (1/12)
Trait Implementations§
Source§impl Component for Facepile
impl Component for Facepile
Source§fn scope() -> ComponentScope
fn scope() -> ComponentScope
Source§fn preview(_window: &mut Window, _cx: &mut App) -> Option<AnyElement>
fn preview(_window: &mut Window, _cx: &mut App) -> Option<AnyElement>
Source§fn id() -> ComponentId
fn id() -> ComponentId
Source§fn status() -> ComponentStatus
fn status() -> ComponentStatus
Source§impl Documented for Facepile
impl Documented for Facepile
Source§const DOCS: &'static str = "An element that displays a collection of (usually) faces stacked\nhorizontally, with the left-most face on top, visually descending\nfrom left to right.\n\nFacepiles are used to display a group of people or things,\nsuch as a list of participants in a collaboration session.\n\n# Examples\n\n## Default\n\nA default, horizontal facepile.\n\n```\nuse gpui::IntoElement;\nuse ui::{Avatar, Facepile, EXAMPLE_FACES};\n\nlet facepile = Facepile::new(\nEXAMPLE_FACES.iter().take(3).map(|&url|\nAvatar::new(url).into_any_element()).collect()\n);\n```"
const DOCS: &'static str = "An element that displays a collection of (usually) faces stacked\nhorizontally, with the left-most face on top, visually descending\nfrom left to right.\n\nFacepiles are used to display a group of people or things,\nsuch as a list of participants in a collaboration session.\n\n# Examples\n\n## Default\n\nA default, horizontal facepile.\n\n```\nuse gpui::IntoElement;\nuse ui::{Avatar, Facepile, EXAMPLE_FACES};\n\nlet facepile = Facepile::new(\nEXAMPLE_FACES.iter().take(3).map(|&url|\nAvatar::new(url).into_any_element()).collect()\n);\n```"
Source§impl IntoElement for Facepile
impl IntoElement for Facepile
Source§type Element = Component<Facepile>
type Element = Component<Facepile>
Source§fn into_element(self) -> Self::Element
fn into_element(self) -> Self::Element
Element.Source§fn into_any_element(self) -> AnyElement
fn into_any_element(self) -> AnyElement
AnyElement.Source§impl ParentElement for Facepile
impl ParentElement for Facepile
Source§fn extend(&mut self, elements: impl IntoIterator<Item = AnyElement>)
fn extend(&mut self, elements: impl IntoIterator<Item = AnyElement>)
Source§fn child(self, child: impl IntoElement) -> Selfwhere
Self: Sized,
fn child(self, child: impl IntoElement) -> Selfwhere
Self: Sized,
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,
Source§impl RenderOnce for Facepile
impl RenderOnce for Facepile
Source§fn render(self, _window: &mut Window, cx: &mut App) -> impl IntoElement
fn render(self, _window: &mut Window, cx: &mut App) -> impl IntoElement
Render::render() method
which takes a mutable reference.Auto Trait Implementations§
impl !RefUnwindSafe for Facepile
impl !Send for Facepile
impl !Sync for Facepile
impl !UnwindSafe for Facepile
impl Freeze for Facepile
impl Unpin for Facepile
impl UnsafeUnpin for Facepile
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>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
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§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
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
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<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
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
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> CommonAnimationExt for Twhere
T: AnimationExt,
impl<T> CommonAnimationExt for Twhere
T: AnimationExt,
Source§fn with_rotate_animation(self, duration: u64) -> AnimationElement<Self>where
Self: Transformable + Sized,
fn with_rotate_animation(self, duration: u64) -> AnimationElement<Self>where
Self: Transformable + Sized,
Source§fn with_keyed_rotate_animation(
self,
id: impl Into<ElementId>,
duration: u64,
) -> AnimationElement<Self>where
Self: Transformable + Sized,
fn with_keyed_rotate_animation(
self,
id: impl Into<ElementId>,
duration: u64,
) -> AnimationElement<Self>where
Self: Transformable + Sized,
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
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,
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,
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,
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
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
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
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
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
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
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
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
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>
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>>
OutOfBounds error is returned which contains
the unclamped color. Read more