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
Required Methods§
Sourcefn get_n_tiles(&self) -> (u32, u32)
fn get_n_tiles(&self) -> (u32, u32)
Sourcefn invalidate(&self)
fn invalidate(&self)
Invalidates the self
’s vertices and, if it is associated
to an actor, it will queue a redraw
Sourcefn set_n_tiles(&self, x_tiles: u32, y_tiles: u32)
fn set_n_tiles(&self, x_tiles: u32, y_tiles: u32)
Sourcefn get_property_x_tiles(&self) -> u32
fn get_property_x_tiles(&self) -> u32
The number of horizontal tiles. The bigger the number, the smaller the tiles
Sourcefn set_property_x_tiles(&self, x_tiles: u32)
fn set_property_x_tiles(&self, x_tiles: u32)
The number of horizontal tiles. The bigger the number, the smaller the tiles
Sourcefn get_property_y_tiles(&self) -> u32
fn get_property_y_tiles(&self) -> u32
The number of vertical tiles. The bigger the number, the smaller the tiles
Sourcefn set_property_y_tiles(&self, y_tiles: u32)
fn set_property_y_tiles(&self, y_tiles: u32)
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
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.