Trait DeformEffectExt

Source
pub trait DeformEffectExt: 'static {
    // Required methods
    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;
}
Expand description

Trait containing all DeformEffect methods.

§Implementors

DeformEffect, PageTurnEffect

Required Methods§

Source

fn get_n_tiles(&self) -> (u32, u32)

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

Source

fn invalidate(&self)

Invalidates the self’s vertices and, if it is associated to an actor, it will queue a redraw

Source

fn set_n_tiles(&self, x_tiles: u32, y_tiles: u32)

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

Source

fn get_property_x_tiles(&self) -> u32

The number of horizontal tiles. The bigger the number, the smaller the tiles

Source

fn set_property_x_tiles(&self, x_tiles: u32)

The number of horizontal tiles. The bigger the number, the smaller the tiles

Source

fn get_property_y_tiles(&self) -> u32

The number of vertical tiles. The bigger the number, the smaller the tiles

Source

fn set_property_y_tiles(&self, y_tiles: u32)

The number of vertical tiles. The bigger the number, the smaller the tiles

Source

fn connect_property_x_tiles_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_y_tiles_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

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.

Implementors§