Trait kludgine::DrawableExt
source · pub trait DrawableExt<Source, Unit> {
// Required methods
fn translate_by(self, point: Point<Unit>) -> Drawable<Source, Unit>;
fn rotate_by(self, angle: Angle) -> Drawable<Source, Unit>;
fn scale(self, factor: f32) -> Drawable<Source, Unit>;
fn opacity(self, opacity: f32) -> Drawable<Source, Unit>;
}
Expand description
Translation, rotation, and scaling for drawable types.
Required Methods§
sourcefn translate_by(self, point: Point<Unit>) -> Drawable<Source, Unit>
fn translate_by(self, point: Point<Unit>) -> Drawable<Source, Unit>
Translates self
by point
.