InteractivePointerSpotlightEffect
struct · ferroui-base · v0.5.0
struct InteractivePointerSpotlightEffect
The pointer spotlight as an interactive effect class (Effector's
PointerSpotlightShaderEffect): the light follows the pointer over the
host, and the host captures the pointer while it is pressed. Its value is
a PointerSpotlightShaderEffect: the radius, the strengths and the
colour are set on it (set_value,
update), the pointer state is the class's.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InteractivePointerSpotlightEffect>
Returns a strong reference to this object.
new
fn new() -> Ref<Self>
A new effect with the default value.
with_value
fn with_value(value: PointerSpotlightShaderEffect) -> Ref<Self>
A new effect with value.
value
fn value(self: &Self) -> PointerSpotlightShaderEffect
The current value of the effect: what its next snapshot is.
set_value
fn set_value(self: &Self, value: PointerSpotlightShaderEffect)
Replaces the value of the effect; a different value invalidates the effect.
update
fn update(self: &Self, f: impl FnOnce(&mut PointerSpotlightShaderEffect) -> ())
Changes the value of the effect with f; a change invalidates
the effect, so its host takes a new snapshot. No borrow is
held while the effect raises invalidated.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<InteractivePointerSpotlightEffect>StaticTypeObjectTypeSubclassable<T>FerroObjectImplCustomEffectClassIEffectInputHandler
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.