OpacityQuery

Trait OpacityQuery 

Source
pub trait OpacityQuery:
    QueryData
    + Send
    + Sync {
    type Cx: SystemParam;

    // Required method
    fn apply_opacity(
        this: &mut Self::Item<'_, '_>,
        cx: &mut <Self::Cx as SystemParam>::Item<'_, '_>,
        opacity: f32,
    );
}
Expand description

A QueryData with an opacity value.

Required Associated Types§

Required Methods§

Source

fn apply_opacity( this: &mut Self::Item<'_, '_>, cx: &mut <Self::Cx as SystemParam>::Item<'_, '_>, opacity: f32, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl OpacityQuery for &mut Sprite

Source§

type Cx = ()

Source§

fn apply_opacity(this: &mut Self::Item<'_, '_>, _: &mut (), opacity: f32)

Source§

impl OpacityQuery for &mut TextColor

Available on crate features 2d or ui only.
Source§

type Cx = ()

Source§

fn apply_opacity(this: &mut Self::Item<'_, '_>, _: &mut (), opacity: f32)

Source§

impl OpacityQuery for &mut ImageNode

Source§

type Cx = ()

Source§

fn apply_opacity(this: &mut Self::Item<'_, '_>, _: &mut (), opacity: f32)

Source§

impl<T> OpacityQuery for &MeshMaterial3d<T>

Source§

type Cx = ResMut<'static, Assets<T>>

Source§

fn apply_opacity( this: &mut Self::Item<'_, '_>, cx: &mut <Self::Cx as SystemParam>::Item<'_, '_>, opacity: f32, )

Source§

impl<T> OpacityQuery for &MeshMaterial2d<T>

Source§

type Cx = ResMut<'static, Assets<T>>

Source§

fn apply_opacity( this: &mut Self::Item<'_, '_>, cx: &mut <Self::Cx as SystemParam>::Item<'_, '_>, opacity: f32, )

Implementors§