Trait animate::DeformEffectExt [−][src]
pub trait DeformEffectExt: 'static {
fn get_n_tiles(&self) -> (u32, u32);
fn invalidate(&self);
fn set_n_tiles(&self, x_tiles: u32, y_tiles: u32);
fn get_property_x_tiles(&self) -> u32;
fn set_property_x_tiles(&self, x_tiles: u32);
fn get_property_y_tiles(&self) -> u32;
fn set_property_y_tiles(&self, y_tiles: u32);
fn connect_property_x_tiles_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_y_tiles_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}Required methods
fn get_n_tiles(&self) -> (u32, u32)[src]
Retrieves the number of horizontal and vertical tiles used to sub-divide the actor’s geometry during the effect
x_tiles
return location for the number of horizontal tiles,
or None
y_tiles
return location for the number of vertical tiles,
or None
fn invalidate(&self)[src]
Invalidates the self’s vertices and, if it is associated
to an actor, it will queue a redraw
fn set_n_tiles(&self, x_tiles: u32, y_tiles: u32)[src]
Sets the number of horizontal and vertical tiles to be used when applying the effect
More tiles allow a finer grained deformation at the expenses of computation
x_tiles
number of horizontal tiles
y_tiles
number of vertical tiles
fn get_property_x_tiles(&self) -> u32[src]
The number of horizontal tiles. The bigger the number, the smaller the tiles
fn set_property_x_tiles(&self, x_tiles: u32)[src]
The number of horizontal tiles. The bigger the number, the smaller the tiles
fn get_property_y_tiles(&self) -> u32[src]
The number of vertical tiles. The bigger the number, the smaller the tiles
fn set_property_y_tiles(&self, y_tiles: u32)[src]
The number of vertical tiles. The bigger the number, the smaller the tiles
fn connect_property_x_tiles_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_y_tiles_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<DeformEffect>> DeformEffectExt for O[src]
fn get_n_tiles(&self) -> (u32, u32)[src]
fn invalidate(&self)[src]
fn set_n_tiles(&self, x_tiles: u32, y_tiles: u32)[src]
fn get_property_x_tiles(&self) -> u32[src]
fn set_property_x_tiles(&self, x_tiles: u32)[src]
fn get_property_y_tiles(&self) -> u32[src]
fn set_property_y_tiles(&self, y_tiles: u32)[src]
fn connect_property_x_tiles_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_y_tiles_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId