Trait ux::DeformEffectExt[][src]

pub trait DeformEffectExt: 'static {
    pub fn get_n_tiles(&self) -> (u32, u32);
pub fn invalidate(&self);
pub fn set_n_tiles(&self, x_tiles: u32, y_tiles: u32);
pub fn get_property_x_tiles(&self) -> u32;
pub fn set_property_x_tiles(&self, x_tiles: u32);
pub fn get_property_y_tiles(&self) -> u32;
pub fn set_property_y_tiles(&self, y_tiles: u32);
pub fn connect_property_x_tiles_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_y_tiles_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
; }

Trait containing all DeformEffect methods.

Implementors

DeformEffect, PageTurnEffect

Required methods

pub 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

pub fn invalidate(&self)[src]

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

pub 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

pub fn get_property_x_tiles(&self) -> u32[src]

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

pub fn set_property_x_tiles(&self, x_tiles: u32)[src]

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

pub fn get_property_y_tiles(&self) -> u32[src]

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

pub fn set_property_y_tiles(&self, y_tiles: u32)[src]

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

pub fn connect_property_x_tiles_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_y_tiles_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

Loading content...

Implementors

impl<O> DeformEffectExt for O where
    O: IsA<DeformEffect>, 
[src]

Loading content...