Trait animate::OffscreenEffectExt [−][src]
pub trait OffscreenEffectExt: 'static {
fn get_target_rect(&self) -> Option<InternalRect>;
fn paint_target(&self);
}Trait containing all OffscreenEffect methods.
Implementors
BlurEffect, BrightnessContrastEffect, ColorizeEffect, DeformEffect, DesaturateEffect, OffscreenEffect, ShaderEffect
Required methods
fn get_target_rect(&self) -> Option<InternalRect>[src]
Retrieves the origin and size of the offscreen buffer used by self to
paint the actor to which it has been applied.
This function should only be called by OffscreenEffect
implementations, from within the OffscreenEffectClass.paint_target()
virtual function.
rect
return location for the target area
Returns
true if the offscreen buffer has a valid rectangle,
and false otherwise
fn paint_target(&self)[src]
Calls the paint_target virtual function of the self