IntoVar

Trait IntoVar 

Source
pub trait IntoVar<T>
where T: VarValue,
{ // Required method fn into_var(self) -> Var<T>; }
Expand description

A value-to-var conversion that consumes the value.

Every Var<T> implements this to convert to itself, every VarValue implements this to convert to a const_var.

This trait is used by most properties, it allows then to accept literal values, variables and context variables all with a single signature. Together with Var<T> this gives properties great flexibility of usage. Widget when blocks also use IntoVar<T> to support changing the property value depending on the widget state.

Value types can also manually implement this to support a shorthand literal syntax for when they are used in properties, this converts the shorthand value like a tuple into the actual value type and wraps it into a variable, usually const_var. Value types can implement the trait multiple times to support different shorthand syntaxes.

Required Methods§

Source

fn into_var(self) -> Var<T>

Implementations on Foreign Types§

Source§

impl IntoVar<GradientStop> for f32

Source§

fn into_var(self) -> Var<GradientStop>

Conversion to Length::Dip color hint.

Source§

impl IntoVar<GradientStop> for i32

Source§

fn into_var(self) -> Var<GradientStop>

Conversion to Length::Dip color hint.

Source§

impl IntoVar<SaveState> for bool

Source§

fn into_var(self) -> Var<SaveState>

Convert true to default config and false to None.

Source§

impl IntoVar<DragDropData> for &'static str

Source§

impl IntoVar<DragDropData> for String

Source§

impl IntoVar<DragDropData> for PathBuf

Source§

impl IntoVar<CommandScope> for &'static str

Source§

fn into_var(self) -> Var<CommandScope>

Widget scope.

Source§

impl IntoVar<FontColorPalette> for u16

Source§

impl IntoVar<FontStyleSet> for u8

Source§

impl IntoVar<GlyphSource> for &'static str

Source§

impl IntoVar<GlyphSource> for char

Source§

impl IntoVar<ImageDownscale> for Size2D<Px, Px>

Source§

impl IntoVar<ImageRepeat> for bool

Source§

impl IntoVar<ImageSource> for &'static [u8]

Source§

fn into_var(self) -> Var<ImageSource>

From encoded data of Unknown format.

Source§

impl IntoVar<ImageSource> for &str

Source§

fn into_var(self) -> Var<ImageSource>

Converts http:// and https:// to Download, file:// to Read the path component, and the rest to Read the string as a path.

Source§

impl IntoVar<ImageSource> for &Path

Source§

impl IntoVar<ImageSource> for (Uri, &'static str)

Source§

fn into_var(self) -> Var<ImageSource>

From (URI, HTTP-ACCEPT).

Source§

impl IntoVar<ImageSource> for String

Source§

fn into_var(self) -> Var<ImageSource>

Same as conversion from &str.

Source§

impl IntoVar<ImageSource> for Arc<Vec<u8>>

Source§

fn into_var(self) -> Var<ImageSource>

From encoded data of Unknown format.

Source§

impl IntoVar<ImageSource> for Vec<u8>

Source§

fn into_var(self) -> Var<ImageSource>

From encoded data of Unknown format.

Source§

impl IntoVar<ImageSource> for PathBuf

Source§

impl IntoVar<L10nArgument> for &'static str

Source§

impl IntoVar<L10nArgument> for bool

Source§

impl IntoVar<L10nArgument> for char

Source§

impl IntoVar<L10nArgument> for f32

Source§

impl IntoVar<L10nArgument> for f64

Source§

impl IntoVar<L10nArgument> for i8

Source§

impl IntoVar<L10nArgument> for i16

Source§

impl IntoVar<L10nArgument> for i32

Source§

impl IntoVar<L10nArgument> for i64

Source§

impl IntoVar<L10nArgument> for i128

Source§

impl IntoVar<L10nArgument> for isize

Source§

impl IntoVar<L10nArgument> for u8

Source§

impl IntoVar<L10nArgument> for u16

Source§

impl IntoVar<L10nArgument> for u32

Source§

impl IntoVar<L10nArgument> for u64

Source§

impl IntoVar<L10nArgument> for u128

Source§

impl IntoVar<L10nArgument> for usize

Source§

impl IntoVar<L10nArgument> for String

Source§

impl IntoVar<L10nArgument> for FluentNumber

Source§

impl IntoVar<InlineMode> for bool

Source§

impl IntoVar<Length> for f32

Source§

fn into_var(self) -> Var<Length>

Conversion to Length::DipF32

Source§

impl IntoVar<Length> for i32

Source§

fn into_var(self) -> Var<Length>

Conversion to Length::Dip

Source§

impl IntoVar<CursorSource> for bool

Source§

fn into_var(self) -> Var<CursorSource>

Converts true to CursorIcon::Default and false to CursorSource::Hidden.

Source§

impl IntoVar<CaptureMode> for bool

Source§

fn into_var(self) -> Var<CaptureMode>

Convert true to CaptureMode::Widget and false to CaptureMode::Window.

Source§

impl IntoVar<ContextCapture> for bool

Source§

impl IntoVar<ScrollToTarget> for &'static str

Source§

impl IntoVar<InteractiveCaretMode> for bool

Source§

impl IntoVar<TextOverflow> for &'static str

Source§

impl IntoVar<TextOverflow> for bool

Source§

fn into_var(self) -> Var<TextOverflow>

Truncate (no suffix), or ignore.

Source§

impl IntoVar<TextOverflow> for char

Source§

impl IntoVar<TextOverflow> for String

Source§

impl IntoVar<HitTestMode> for bool

Source§

impl IntoVar<RepeatMode> for bool

Source§

fn into_var(self) -> Var<RepeatMode>

Converts true to Repeat and false to the default Stretch.

Source§

impl IntoVar<Visibility> for bool

Source§

fn into_var(self) -> Var<Visibility>

  • true -> Visible
  • false -> Collapsed
Source§

impl IntoVar<TreeFilter> for bool

Source§

fn into_var(self) -> Var<TreeFilter>

Returns Include for true and Skip for false.

Source§

impl IntoVar<BlockWindowLoad> for bool

Source§

fn into_var(self) -> Var<BlockWindowLoad>

Converts true to BlockWindowLoad::enabled(1.secs()) and false to BlockWindowLoad::Disabled.

Source§

impl IntoVar<BlockWindowLoad> for Duration

Source§

fn into_var(self) -> Var<BlockWindowLoad>

Converts to enabled with the duration timeout.

Source§

impl IntoVar<WindowIcon> for &'static [u8]

Source§

fn into_var(self) -> Var<WindowIcon>

From encoded data of Unknown format.

Source§

impl IntoVar<WindowIcon> for &str

Source§

fn into_var(self) -> Var<WindowIcon>

See ImageSource conversion from &str

Source§

impl IntoVar<WindowIcon> for &Path

Source§

impl IntoVar<WindowIcon> for String

Source§

fn into_var(self) -> Var<WindowIcon>

Same as conversion from &str.

Source§

impl IntoVar<WindowIcon> for Arc<Vec<u8>>

Source§

fn into_var(self) -> Var<WindowIcon>

From encoded data of Unknown format.

Source§

impl IntoVar<WindowIcon> for Vec<u8>

Source§

fn into_var(self) -> Var<WindowIcon>

From encoded data of Unknown format.

Source§

impl IntoVar<WindowIcon> for PathBuf

Source§

impl IntoVar<InspectMode> for bool

Source§

impl IntoVar<Option<AccessCmd>> for AccessCmd

Source§

impl IntoVar<Option<AccessState>> for AccessState

Source§

impl IntoVar<Option<bool>> for bool

Source§

impl IntoVar<Option<char>> for char

Source§

impl IntoVar<Option<f32>> for f32

Source§

impl IntoVar<Option<f64>> for f64

Source§

impl IntoVar<Option<i8>> for i8

Source§

impl IntoVar<Option<i16>> for i16

Source§

impl IntoVar<Option<i32>> for i32

Source§

impl IntoVar<Option<i64>> for i64

Source§

impl IntoVar<Option<i128>> for i128

Source§

impl IntoVar<Option<isize>> for isize

Source§

impl IntoVar<Option<u8>> for u8

Source§

impl IntoVar<Option<u16>> for u16

Source§

impl IntoVar<Option<u32>> for u32

Source§

impl IntoVar<Option<u64>> for u64

Source§

impl IntoVar<Option<u128>> for u128

Source§

impl IntoVar<Option<usize>> for usize

Source§

impl IntoVar<Option<AccessNodeId>> for AccessNodeId

Source§

impl IntoVar<Indentation> for f32

Source§

impl IntoVar<Indentation> for i32

Source§

impl IntoVar<MouseActiveConfig> for (Duration, Size2D<Dip, Dip>)

Source§

impl IntoVar<MouseActiveConfig> for Duration

Source§

impl IntoVar<MouseActiveConfig> for Size2D<Dip, Dip>

Source§

impl IntoVar<TouchActiveConfig> for (Duration, bool)

Source§

impl IntoVar<TouchActiveConfig> for Duration

Source§

impl IntoVar<Deadline> for Duration

Source§

impl IntoVar<ColorMatrix> for [f32; 20]

Source§

impl IntoVar<GradientRadius> for f32

Source§

fn into_var(self) -> Var<GradientRadius>

Conversion to Length::DipF32 and to radius.

Source§

impl IntoVar<GradientRadius> for i32

Source§

fn into_var(self) -> Var<GradientRadius>

Conversion to Length::Dip and to radius.

Source§

impl IntoVar<GradientStops> for &[Hsla]

Source§

impl IntoVar<GradientStops> for &[Hsva]

Source§

impl IntoVar<GradientStops> for &[Rgba]

Source§

impl IntoVar<CategoryId> for &'static str

Source§

impl IntoVar<CategoryId> for String

Source§

impl IntoVar<DialogKind> for bool

Source§

impl IntoVar<FileDialogFilters> for &'static str

Source§

impl IntoVar<Response> for MsgDialogResponse

Source§

impl IntoVar<Responses> for Vec<Response>

Source§

impl IntoVar<TabIndex> for u32

Source§

impl IntoVar<CharVariant> for u8

Source§

fn into_var(self) -> Var<CharVariant>

v == 0 || v > 99 is Auto, v >= 1 && v <= 99 maps to their variant.

Source§

impl IntoVar<FontFeatureState> for bool

Source§

impl IntoVar<FontFeatureState> for u32

Source§

fn into_var(self) -> Var<FontFeatureState>

0 is disabled, >=1 is enabled with the alt value.

Source§

impl IntoVar<FontName> for &'static str

Source§

impl IntoVar<FontName> for Cow<'static, str>

Source§

impl IntoVar<FontName> for String

Source§

impl IntoVar<FontNames> for &'static str

Source§

impl IntoVar<FontNames> for String

Source§

impl IntoVar<FontNames> for Vec<&'static str>

Source§

impl IntoVar<FontNames> for Vec<FontName>

Source§

impl IntoVar<FontNames> for Vec<String>

Source§

impl IntoVar<FontStretch> for f32

Source§

impl IntoVar<FontWeight> for f32

Source§

impl IntoVar<FontWeight> for u32

Source§

impl IntoVar<Shortcuts> for Vec<Shortcut>

Source§

impl IntoVar<LangFilePath> for &'static str

Source§

impl IntoVar<LangFilePath> for String

Source§

impl IntoVar<Langs> for Option<Lang>

Source§

impl IntoVar<LayerIndex> for u32

Source§

impl IntoVar<ByteLength> for usize

Source§

impl IntoVar<Factor> for bool

Source§

impl IntoVar<Factor> for f32

Source§

impl IntoVar<GridSpacing> for f32

Source§

fn into_var(self) -> Var<GridSpacing>

Column and row equal exact length.

Source§

impl IntoVar<GridSpacing> for i32

Source§

fn into_var(self) -> Var<GridSpacing>

Column and row equal exact length.

Source§

impl IntoVar<Point> for f32

Source§

fn into_var(self) -> Var<Point>

Splat exact length.

Source§

impl IntoVar<Point> for i32

Source§

fn into_var(self) -> Var<Point>

Splat exact length.

Source§

impl IntoVar<Point> for Point2D<Dip, Dip>

Source§

impl IntoVar<Point> for Point2D<Px, Px>

Source§

impl IntoVar<PxConstraints2d> for (Size2D<Px, Px>, Size2D<Px, Px>)

Source§

fn into_var(self) -> Var<PxConstraints2d>

New range, the minimum and maximum is computed.

Source§

impl IntoVar<PxConstraints2d> for Size2D<Px, Px>

Source§

fn into_var(self) -> Var<PxConstraints2d>

New exact.

Source§

impl IntoVar<Rect> for Rect<Dip, Dip>

Source§

fn into_var(self) -> Var<Rect>

New in exact length.

Source§

impl IntoVar<Rect> for Rect<Px, Px>

Source§

fn into_var(self) -> Var<Rect>

New in exact length.

Source§

impl IntoVar<SideOffsets> for f32

Source§

fn into_var(self) -> Var<SideOffsets>

All sides equal exact length.

Source§

impl IntoVar<SideOffsets> for i32

Source§

fn into_var(self) -> Var<SideOffsets>

All sides equal exact length.

Source§

impl IntoVar<Size> for f32

Source§

fn into_var(self) -> Var<Size>

Splat exact length.

Source§

impl IntoVar<Size> for i32

Source§

fn into_var(self) -> Var<Size>

Splat exact length.

Source§

impl IntoVar<Size> for Size2D<Dip, Dip>

Source§

impl IntoVar<Size> for Size2D<Px, Px>

Source§

impl IntoVar<Vector> for f32

Source§

fn into_var(self) -> Var<Vector>

Conversion to Length::Dip then to vector.

Source§

impl IntoVar<Vector> for i32

Source§

fn into_var(self) -> Var<Vector>

Conversion to Length::Dip then to vector.

Source§

impl IntoVar<Vector> for Vector2D<Dip, Dip>

Source§

impl IntoVar<Vector> for Vector2D<Px, Px>

Source§

impl IntoVar<FontSynthesis> for bool

Source§

fn into_var(self) -> Var<FontSynthesis>

Convert to full ENABLED or DISABLED.

Source§

impl IntoVar<CollapseMode> for bool

Source§

impl IntoVar<ScrollRequest> for bool

Source§

impl IntoVar<ScrollMode> for bool

Source§

fn into_var(self) -> Var<ScrollMode>

Returns ZOOM for true and NONE for false.

Source§

impl IntoVar<SmoothScrolling> for (Duration, EasingFn)

Source§

impl IntoVar<SmoothScrolling> for bool

Source§

fn into_var(self) -> Var<SmoothScrolling>

Returns default config for true, disabled for false.

Source§

impl IntoVar<SmoothScrolling> for Duration

Source§

fn into_var(self) -> Var<SmoothScrolling>

Linear duration of smooth transition.

Source§

impl IntoVar<StyleFn> for NamedStyleVar

Source§

impl IntoVar<Progress> for &'static str

Source§

impl IntoVar<Progress> for (usize, usize)

Source§

impl IntoVar<Progress> for bool

Source§

impl IntoVar<Progress> for f32

Source§

impl IntoVar<AutoSelection> for bool

Source§

impl IntoVar<Txt> for &'static str

Source§

fn into_var(self) -> Var<Txt>

Source§

impl IntoVar<Txt> for Cow<'static, str>

Source§

fn into_var(self) -> Var<Txt>

Source§

impl IntoVar<Txt> for char

Source§

fn into_var(self) -> Var<Txt>

Source§

impl IntoVar<Txt> for String

Source§

fn into_var(self) -> Var<Txt>

Source§

impl IntoVar<TouchTransformMode> for bool

Source§

impl IntoVar<Importance> for u32

Source§

impl IntoVar<Interactivity> for bool

Source§

fn into_var(self) -> Var<Interactivity>

  • true -> ENABLED
  • false -> DISABLED
Source§

impl IntoVar<BorderRepeats> for bool

Source§

fn into_var(self) -> Var<BorderRepeats>

true is Repeat, false is Stretch.

Source§

impl IntoVar<CornerRadius> for f32

Source§

fn into_var(self) -> Var<CornerRadius>

All corners same exact length.

Source§

impl IntoVar<CornerRadius> for i32

Source§

fn into_var(self) -> Var<CornerRadius>

All corners same exact length.

Source§

impl IntoVar<Parallel> for bool

Source§

impl IntoVar<WidgetId> for &'static str

Source§

impl IntoVar<WidgetId> for Cow<'static, str>

Source§

impl IntoVar<WidgetId> for char

Source§

impl IntoVar<WidgetId> for String

Source§

impl IntoVar<ZIndex> for u32

Source§

impl IntoVar<AutoSize> for bool

Source§

fn into_var(self) -> Var<AutoSize>

Returns AutoSize::CONTENT if content is true, otherwise

Source§

impl IntoVar<ParallelWin> for bool

Source§

impl IntoVar<WindowId> for &'static str

Source§

impl IntoVar<WindowId> for Cow<'static, str>

Source§

impl IntoVar<WindowId> for char

Source§

impl IntoVar<WindowId> for String

Source§

impl<B, R> IntoVar<GradientRadius> for (B, R)

Source§

fn into_var(self) -> Var<GradientRadius>

Ellipse GradientRadiusBase and ellipse radius.

Source§

impl<C0, C1> IntoVar<Colors> for (C0, C1)
where C0: Into<LightDark>, C1: Into<LightDark>,

Source§

impl<C> IntoVar<Colors> for [C; 2]
where C: Into<LightDark>,

Source§

impl<C, O> IntoVar<GradientStop> for (C, O)
where C: Into<Rgba>, O: Into<Length>,

Source§

impl<C, O> IntoVar<ColorStop> for (C, O)
where C: Into<Rgba>, O: Into<Length>,

Source§

impl<C, R> IntoVar<GridSpacing> for (C, R)
where C: Into<Length> + Clone, R: Into<Length> + Clone,

Source§

impl<C, S> IntoVar<BorderSide> for (C, S)
where C: Into<Rgba>, S: Into<BorderStyle>,

Source§

fn into_var(self) -> Var<BorderSide>

(color, style) side.

Source§

impl<C, S> IntoVar<BorderSides> for (C, S)
where C: Into<Rgba>, S: Into<BorderStyle>,

Source§

fn into_var(self) -> Var<BorderSides>

(color, style) sides.

Source§

impl<F> IntoVar<ImageSource> for (&'static [u8], F)

Source§

fn into_var(self) -> Var<ImageSource>

From encoded data of known format.

Source§

impl<F> IntoVar<ImageSource> for (Arc<Vec<u8>>, F)

Source§

fn into_var(self) -> Var<ImageSource>

From encoded data of known format.

Source§

impl<F> IntoVar<ImageSource> for (Vec<u8>, F)

Source§

fn into_var(self) -> Var<ImageSource>

From encoded data of known format.

Source§

impl<F> IntoVar<WindowIcon> for (&'static [u8], F)

Source§

fn into_var(self) -> Var<WindowIcon>

From encoded data of known format.

Source§

impl<F> IntoVar<WindowIcon> for (Arc<Vec<u8>>, F)

Source§

fn into_var(self) -> Var<WindowIcon>

From encoded data of known format.

Source§

impl<F> IntoVar<WindowIcon> for (Vec<u8>, F)

Source§

fn into_var(self) -> Var<WindowIcon>

From encoded data of known format.

Source§

impl<F> IntoVar<SmoothScrolling> for (Duration, F)
where F: Fn(EasingTime) -> Factor + Send + Sync + 'static,

Source§

impl<F, G> IntoVar<GlyphIcon> for (F, G)
where F: Into<FontName>, G: Into<GlyphSource>,

Source§

impl<F, const N: usize> IntoVar<ImageSource> for (&'static [u8; N], F)

Source§

fn into_var(self) -> Var<ImageSource>

From encoded data of known format.

Source§

impl<F, const N: usize> IntoVar<WindowIcon> for (&'static [u8; N], F)

Source§

fn into_var(self) -> Var<WindowIcon>

From encoded data of known format.

Source§

impl<L> IntoVar<GradientStops> for &[(Hsla, L)]
where L: Into<Length> + Copy,

Source§

impl<L> IntoVar<GradientStops> for &[(Hsva, L)]
where L: Into<Length> + Copy,

Source§

impl<L> IntoVar<GradientStops> for &[(Rgba, L)]
where L: Into<Length> + Copy,

Source§

impl<L, D> IntoVar<LightDark> for (L, D)
where L: Into<Rgba>, D: Into<Rgba>,

Source§

fn into_var(self) -> Var<LightDark>

From (light, dark) tuple.

Source§

impl<L, const N: usize> IntoVar<GradientStops> for &[(Hsla, L); N]
where L: Into<Length> + Copy,

Source§

impl<L, const N: usize> IntoVar<GradientStops> for &[(Hsva, L); N]
where L: Into<Length> + Copy,

Source§

impl<L, const N: usize> IntoVar<GradientStops> for &[(Rgba, L); N]
where L: Into<Length> + Copy,

Source§

impl<L, const N: usize> IntoVar<GradientStops> for [(Hsla, L); N]
where L: Into<Length> + Copy,

Source§

impl<L, const N: usize> IntoVar<GradientStops> for [(Hsva, L); N]
where L: Into<Length> + Copy,

Source§

impl<L, const N: usize> IntoVar<GradientStops> for [(Rgba, L); N]
where L: Into<Length> + Copy,

Source§

impl<O, S> IntoVar<Rect> for (O, S)
where O: Into<Point>, S: Into<Size>,

Source§

fn into_var(self) -> Var<Rect>

New from origin and size.

Source§

impl<P, O> IntoVar<AnchorTransform> for (P, O)
where P: Into<Point>, O: Into<Point>,

Source§

fn into_var(self) -> Var<AnchorTransform>

InnerOffset.

Source§

impl<P, O> IntoVar<AnchorOffset> for (P, O)
where P: Into<Point>, O: Into<Point>,

Source§

fn into_var(self) -> Var<AnchorOffset>

(place, origin).

Source§

impl<P, O> IntoVar<StackDirection> for (P, O, bool)
where P: Into<Point>, O: Into<Point>,

Source§

fn into_var(self) -> Var<StackDirection>

New from place, origin, and RTL aware flag.

Source§

impl<P, O> IntoVar<StackDirection> for (P, O)
where P: Into<Point>, O: Into<Point>,

Source§

fn into_var(self) -> Var<StackDirection>

New from place and origin, not RTL aware.

Source§

impl<S> IntoVar<Indentation> for (S, bool)
where S: Into<Length>,

Source§

impl<T, R, B, L> IntoVar<FactorSideOffsets> for (T, R, B, L)
where T: Into<Factor>, R: Into<Factor>, B: Into<Factor>, L: Into<Factor>,

Source§

fn into_var(self) -> Var<FactorSideOffsets>

New top, right, bottom, left.

Source§

impl<T, R, B, L> IntoVar<SideOffsets> for (T, R, B, L)
where T: Into<Length> + Clone, R: Into<Length> + Clone, B: Into<Length> + Clone, L: Into<Length> + Clone,

Source§

fn into_var(self) -> Var<SideOffsets>

(top, right, bottom, left)

Source§

impl<T, R, B, L> IntoVar<BorderSides> for (T, R, B, L)

Source§

fn into_var(self) -> Var<BorderSides>

(top, right, bottom, left) sides.

Source§

impl<T, R, B, L, S> IntoVar<BorderSides> for (T, R, B, L, S)
where T: Into<Rgba>, R: Into<Rgba>, B: Into<Rgba>, L: Into<Rgba>, S: Into<BorderStyle>,

Source§

fn into_var(self) -> Var<BorderSides>

(top-color, right-color, bottom-color, left-color, style) sides.

Source§

impl<T, S> IntoVar<AnchorMode> for (T, S)

Source§

fn into_var(self) -> Var<AnchorMode>

Custom transform and size, all else default.

Source§

impl<TB, LR> IntoVar<FactorSideOffsets> for (TB, LR)
where TB: Into<Factor>, LR: Into<Factor>,

Source§

fn into_var(self) -> Var<FactorSideOffsets>

New dimension, top-bottom, left-right.

Source§

impl<TB, LR> IntoVar<SideOffsets> for (TB, LR)
where TB: Into<Length> + Clone, LR: Into<Length> + Clone,

Source§

fn into_var(self) -> Var<SideOffsets>

(top-bottom, left-right)

Source§

impl<TB, LR> IntoVar<BorderRepeats> for (TB, LR)
where TB: Into<RepeatMode>, LR: Into<RepeatMode>,

Source§

impl<TB, LR, S> IntoVar<BorderSides> for (TB, LR, S)
where TB: Into<Rgba>, LR: Into<Rgba>, S: Into<BorderStyle>,

Source§

fn into_var(self) -> Var<BorderSides>

(top-bottom-color, left-right-color, style) sides.

Source§

impl<TL, TR, BR, BL> IntoVar<CornerRadius> for (TL, TR, BR, BL)
where TL: Into<Size>, TR: Into<Size>, BR: Into<Size>, BL: Into<Size>,

Source§

fn into_var(self) -> Var<CornerRadius>

(top-left, top-right, bottom-left, bottom-right) corners.

Source§

impl<W, H> IntoVar<Size> for (W, H)
where W: Into<Length> + Clone, H: Into<Length> + Clone,

Source§

impl<W, H> IntoVar<HeadlessMonitor> for (W, H)
where W: Into<Dip>, H: Into<Dip>,

Source§

impl<W, H, F> IntoVar<HeadlessMonitor> for (W, H, F)
where W: Into<Dip>, H: Into<Dip>, F: Into<Factor>,

Source§

impl<X, Y> IntoVar<Align> for (X, bool, Y)
where X: Into<Factor>, Y: Into<Factor>,

Source§

impl<X, Y> IntoVar<Align> for (X, Y)
where X: Into<Factor>, Y: Into<Factor>,

Source§

impl<X, Y> IntoVar<Factor2d> for (X, Y)
where X: Into<Factor>, Y: Into<Factor>,

Source§

impl<X, Y> IntoVar<Point> for (X, Y)
where X: Into<Length> + Clone, Y: Into<Length> + Clone,

Source§

impl<X, Y> IntoVar<Vector> for (X, Y)
where X: Into<Length> + Clone, Y: Into<Length> + Clone,

Source§

impl<X, Y, W, H> IntoVar<Rect> for (X, Y, W, H)
where X: Into<Length> + Clone, Y: Into<Length> + Clone, W: Into<Length> + Clone, H: Into<Length> + Clone,

Source§

impl<const N: usize> IntoVar<ImageSource> for &'static [u8; N]

Source§

fn into_var(self) -> Var<ImageSource>

From encoded data of Unknown format.

Source§

impl<const N: usize> IntoVar<WindowIcon> for &'static [u8; N]

Source§

fn into_var(self) -> Var<WindowIcon>

From encoded data of Unknown format.

Source§

impl<const N: usize> IntoVar<GradientStops> for &[Hsla; N]

Source§

impl<const N: usize> IntoVar<GradientStops> for &[Hsva; N]

Source§

impl<const N: usize> IntoVar<GradientStops> for &[Rgba; N]

Source§

impl<const N: usize> IntoVar<GradientStops> for [Hsla; N]

Source§

impl<const N: usize> IntoVar<GradientStops> for [Hsva; N]

Source§

impl<const N: usize> IntoVar<GradientStops> for [Rgba; N]

Source§

impl<const N: usize> IntoVar<FontNames> for [&'static str; N]

Source§

impl<const N: usize> IntoVar<FontNames> for [FontName; N]

Source§

impl<const N: usize> IntoVar<FontNames> for [Txt; N]

Source§

impl<const N: usize> IntoVar<FontNames> for [String; N]

Source§

impl<const N: usize> IntoVar<Shortcuts> for [Shortcut; N]

Implementors§

Source§

impl IntoVar<GradientStop> for Length

Source§

impl IntoVar<GradientStop> for ColorStop

Source§

impl IntoVar<GradientStop> for Hsla

Source§

impl IntoVar<GradientStop> for Hsva

Source§

impl IntoVar<GradientStop> for Rgba

Source§

impl IntoVar<GradientStop> for Factor

Source§

impl IntoVar<GradientStop> for FactorPercent

Source§

impl IntoVar<LinearGradientAxis> for AngleDegree

Source§

impl IntoVar<LinearGradientAxis> for AngleGradian

Source§

impl IntoVar<LinearGradientAxis> for AngleRadian

Source§

impl IntoVar<LinearGradientAxis> for AngleTurn

Source§

impl IntoVar<LinearGradientAxis> for Line

Source§

impl IntoVar<DragDropData> for Txt

Source§

impl IntoVar<CommandScope> for Txt

Source§

impl IntoVar<CommandScope> for WidgetId

Source§

impl IntoVar<CommandScope> for WindowId

Source§

impl IntoVar<FontColorPalette> for ColorScheme

Source§

impl IntoVar<Shortcut> for GestureKey

Source§

impl IntoVar<Shortcut> for ModifierGesture

Source§

impl IntoVar<Shortcut> for KeyChord

Source§

impl IntoVar<Shortcut> for KeyGesture

Source§

impl IntoVar<GlyphSource> for Txt

Source§

impl IntoVar<ImageDownscale> for Px

Source§

impl IntoVar<ImageSource> for Uri

Source§

impl IntoVar<ImageSource> for Txt

Source§

impl IntoVar<ImageSource> for Var<Img>

Source§

impl IntoVar<L10nArgument> for Txt

Source§

impl IntoVar<AnchorTransform> for AnchorOffset

Source§

impl IntoVar<Length> for LengthExpr

Source§

impl IntoVar<Length> for Dip

Source§

impl IntoVar<Length> for Factor

Source§

impl IntoVar<Length> for FactorPercent

Source§

impl IntoVar<Length> for Px

Source§

impl IntoVar<CursorSource> for CursorIcon

Source§

impl IntoVar<CursorSource> for CursorImg

Source§

impl IntoVar<ContextCapture> for CaptureFilter

Source§

impl IntoVar<ScrollToTarget> for zng::layout::Rect

Source§

impl IntoVar<ScrollToTarget> for WidgetId

Source§

impl IntoVar<TextOverflow> for Txt

Source§

impl IntoVar<WindowIcon> for ImageSource

Source§

impl IntoVar<WindowIcon> for Uri

Source§

impl IntoVar<WindowIcon> for Txt

Source§

impl IntoVar<WindowIcon> for Var<Img>

Source§

impl IntoVar<Cow<'static, str>> for Txt

Source§

impl IntoVar<Option<AccessCmdName>> for AccessCmdName

Source§

impl IntoVar<Option<AccessRole>> for AccessRole

Source§

impl IntoVar<Option<CurrentKind>> for CurrentKind

Source§

impl IntoVar<Option<LiveIndicator>> for LiveIndicator

Source§

impl IntoVar<Option<Orientation>> for Orientation

Source§

impl IntoVar<Option<Popup>> for Popup

Source§

impl IntoVar<Option<ScrollCmd>> for ScrollCmd

Source§

impl IntoVar<Option<SortDirection>> for SortDirection

Source§

impl IntoVar<Option<ColorScheme>> for ColorScheme

Source§

impl IntoVar<Option<ImageDownscale>> for ImageDownscale

Source§

impl IntoVar<Option<Orientation2D>> for Orientation2D

Source§

impl IntoVar<Option<CursorIcon>> for CursorIcon

Source§

impl IntoVar<Option<CursorIcon>> for ResizeDirection

Source§

impl IntoVar<Option<ScrollToMode>> for ScrollToMode

Source§

impl IntoVar<Option<ResizeDirection>> for ResizeDirection

Source§

impl IntoVar<Option<RenderMode>> for RenderMode

Source§

impl IntoVar<Option<LightDark>> for LightDark

Source§

impl IntoVar<Option<Response>> for Response

Source§

impl IntoVar<Option<CommandParam>> for CommandParam

Source§

impl IntoVar<Option<ImageLimits>> for ImageLimits

Source§

impl IntoVar<Option<ClickMode>> for ClickTrigger

Source§

impl IntoVar<Option<ClickMode>> for ClickMode

Source§

impl IntoVar<Option<CursorImg>> for CursorImg

Source§

impl IntoVar<Option<WidgetId>> for WidgetId

Source§

impl IntoVar<Option<ZIndex>> for ZIndex

Source§

impl IntoVar<Option<WindowId>> for WindowId

Source§

impl IntoVar<f32> for Progress

Source§

impl IntoVar<u32> for ZIndex

Source§

impl IntoVar<Indentation> for Length

Source§

impl IntoVar<Indentation> for LengthExpr

Source§

impl IntoVar<Indentation> for Dip

Source§

impl IntoVar<Indentation> for Factor

Source§

impl IntoVar<Indentation> for FactorPercent

Source§

impl IntoVar<Indentation> for Px

Source§

impl IntoVar<AccessNodeId> for WidgetId

Source§

impl IntoVar<NamedStyleVar> for ContextVar<StyleFn>

Source§

impl IntoVar<Deadline> for DInstant

Source§

impl IntoVar<ColorStop> for Hsla

Source§

impl IntoVar<ColorStop> for Hsva

Source§

impl IntoVar<ColorStop> for Rgba

Source§

impl IntoVar<GradientRadius> for GradientRadiusBase

Source§

impl IntoVar<GradientRadius> for Length

Source§

impl IntoVar<GradientRadius> for Dip

Source§

impl IntoVar<GradientRadius> for Factor

Source§

impl IntoVar<GradientRadius> for FactorPercent

Source§

impl IntoVar<GradientRadius> for Px

Source§

impl IntoVar<GradientRadius> for Size

Source§

impl IntoVar<Hsla> for Hsva

Source§

impl IntoVar<Hsla> for PreMulRgba

Source§

impl IntoVar<Hsla> for Rgba

Source§

impl IntoVar<Hsva> for Hsla

Source§

impl IntoVar<Hsva> for PreMulRgba

Source§

impl IntoVar<Hsva> for Rgba

Source§

impl IntoVar<LightDark> for Hsla

Source§

impl IntoVar<LightDark> for Hsva

Source§

impl IntoVar<LightDark> for Rgba

Source§

impl IntoVar<PreMulRgba> for Hsla

Source§

impl IntoVar<PreMulRgba> for Hsva

Source§

impl IntoVar<PreMulRgba> for Rgba

Source§

impl IntoVar<Rgba> for AnsiColor

Source§

impl IntoVar<Rgba> for Hsla

Source§

impl IntoVar<Rgba> for Hsva

Source§

impl IntoVar<Rgba> for LightDark

Source§

impl IntoVar<Rgba> for PreMulRgba

Source§

impl IntoVar<CategoryId> for Txt

Source§

impl IntoVar<FileDialogFilters> for Txt

Source§

impl IntoVar<Responses> for Response

Source§

impl IntoVar<FontNames> for FontName

Source§

impl IntoVar<FontNames> for Txt

Source§

impl IntoVar<FontStretch> for Factor

Source§

impl IntoVar<FontStretch> for FactorPercent

Source§

impl IntoVar<FontWeight> for AnsiWeight

Source§

impl IntoVar<Shortcuts> for GestureKey

Source§

impl IntoVar<Shortcuts> for ModifierGesture

Source§

impl IntoVar<Shortcuts> for Shortcut

Source§

impl IntoVar<Shortcuts> for KeyChord

Source§

impl IntoVar<Shortcuts> for KeyGesture

Source§

impl IntoVar<LangFilePath> for Txt

Source§

impl IntoVar<Langs> for Lang

Source§

impl IntoVar<AnchorMode> for AnchorTransform

Source§

impl IntoVar<AnchorMode> for AnchorOffset

Source§

impl IntoVar<Align> for Factor2d

Source§

impl IntoVar<Align> for Factor

Source§

impl IntoVar<Align> for FactorPercent

Source§

impl IntoVar<AngleDegree> for AngleGradian

Source§

impl IntoVar<AngleDegree> for AngleRadian

Source§

impl IntoVar<AngleDegree> for AngleTurn

Source§

impl IntoVar<AngleGradian> for AngleDegree

Source§

impl IntoVar<AngleGradian> for AngleRadian

Source§

impl IntoVar<AngleGradian> for AngleTurn

Source§

impl IntoVar<AngleRadian> for AngleDegree

Source§

impl IntoVar<AngleRadian> for AngleGradian

Source§

impl IntoVar<AngleRadian> for AngleTurn

Source§

impl IntoVar<AngleTurn> for AngleDegree

Source§

impl IntoVar<AngleTurn> for AngleGradian

Source§

impl IntoVar<AngleTurn> for AngleRadian

Source§

impl IntoVar<Factor2d> for Factor

Source§

impl IntoVar<Factor2d> for FactorPercent

Source§

impl IntoVar<Factor> for FactorPercent

Source§

impl IntoVar<Factor> for Progress

Source§

impl IntoVar<FactorPercent> for Factor

Source§

impl IntoVar<FactorPercent> for Progress

Source§

impl IntoVar<FactorSideOffsets> for Factor

Source§

impl IntoVar<FactorSideOffsets> for FactorPercent

Source§

impl IntoVar<GridSpacing> for Length

Source§

impl IntoVar<GridSpacing> for Factor

Source§

impl IntoVar<GridSpacing> for FactorPercent

Source§

impl IntoVar<GridSpacing> for PxGridSpacing

Source§

impl IntoVar<Line> for PxLine

Source§

impl IntoVar<Point> for Length

Source§

impl IntoVar<Point> for Align

Source§

impl IntoVar<Point> for Factor

Source§

impl IntoVar<Point> for FactorPercent

Source§

impl IntoVar<Point> for Vector

Source§

impl IntoVar<PxConstraints> for Px

Source§

impl IntoVar<Rect> for Size

Source§

impl IntoVar<SideOffsets> for Length

Source§

impl IntoVar<SideOffsets> for Factor

Source§

impl IntoVar<SideOffsets> for FactorPercent

Source§

impl IntoVar<SideOffsets> for SideOffsets2D<Dip, Dip>

Source§

impl IntoVar<SideOffsets> for SideOffsets2D<Px, Px>

Source§

impl IntoVar<Size> for Length

Source§

impl IntoVar<Size> for Factor2d

Source§

impl IntoVar<Size> for Factor

Source§

impl IntoVar<Size> for FactorPercent

Source§

impl IntoVar<Size> for zng::layout::Rect

Source§

impl IntoVar<Size> for Vector

Source§

impl IntoVar<Transform> for PxTransform

Source§

impl IntoVar<Vector> for Length

Source§

impl IntoVar<Vector> for Dip

Source§

impl IntoVar<Vector> for Factor

Source§

impl IntoVar<Vector> for FactorPercent

Source§

impl IntoVar<Vector> for Point

Source§

impl IntoVar<Vector> for Px

Source§

impl IntoVar<Vector> for Size

Source§

impl IntoVar<ClickMode> for ClickTrigger

Source§

impl IntoVar<StyleFn> for StyleBuilder

Source§

impl IntoVar<Progress> for Factor

Source§

impl IntoVar<Progress> for FactorPercent

Source§

impl IntoVar<Progress> for zng::task::http::Metrics

Source§

impl IntoVar<Progress> for zng::task::io::Metrics

Source§

impl IntoVar<Progress> for Txt

Source§

impl IntoVar<Txt> for GlyphSource

Source§

impl IntoVar<Txt> for FontName

Source§

impl IntoVar<WidgetInfo> for WidgetFocusInfo

Source§

impl IntoVar<BorderRepeats> for RepeatMode

Source§

impl IntoVar<BorderSide> for BorderStyle

Source§

impl IntoVar<BorderSide> for Hsla

Source§

impl IntoVar<BorderSide> for Hsva

Source§

impl IntoVar<BorderSide> for Rgba

Source§

impl IntoVar<BorderSides> for BorderStyle

Source§

impl IntoVar<BorderSides> for Hsla

Source§

impl IntoVar<BorderSides> for Hsva

Source§

impl IntoVar<BorderSides> for Rgba

Source§

impl IntoVar<CornerRadius> for Length

Source§

impl IntoVar<CornerRadius> for CornerRadius2D<Px, Px>

Source§

impl IntoVar<CornerRadius> for Factor

Source§

impl IntoVar<CornerRadius> for FactorPercent

Source§

impl IntoVar<CornerRadius> for Size

Source§

impl IntoVar<WidgetId> for Txt

Source§

impl IntoVar<WindowId> for Txt

Source§

impl IntoVar<EasingTime> for Factor

Source§

impl IntoVar<EasingTime> for FactorPercent

Source§

impl IntoVar<String> for Txt

Source§

impl IntoVar<PathBuf> for Txt

Source§

impl<T> IntoVar<Response<T>> for ResponderVar<T>
where T: VarValue,

Source§

impl<T> IntoVar<Response<T>> for ResponseVar<T>
where T: VarValue,

Source§

impl<T> IntoVar<T> for ContextVar<T>
where T: VarValue,

Source§

impl<T> IntoVar<T> for Var<T>
where T: VarValue,

Source§

impl<T> IntoVar<T> for T
where T: VarValue,