Struct botapi::gen_types::MaskPosition
source · pub struct MaskPosition { /* private fields */ }
Expand description
This object describes the position on faces where a mask should be placed by default.
Implementations§
source§impl MaskPosition
impl MaskPosition
pub fn noskip(self) -> NoSkipMaskPosition
source§impl MaskPosition
impl MaskPosition
pub fn new(point: String, x_shift: f64, y_shift: f64, scale: f64) -> Self
sourcepub fn get_point<'a>(&'a self) -> Cow<'a, str>
pub fn get_point<'a>(&'a self) -> Cow<'a, str>
The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.
sourcepub fn get_point_ref<'a>(&'a self) -> &'a str
pub fn get_point_ref<'a>(&'a self) -> &'a str
The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.
sourcepub fn get_x_shift<'a>(&'a self) -> f64
pub fn get_x_shift<'a>(&'a self) -> f64
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.
sourcepub fn get_x_shift_ref<'a>(&'a self) -> f64
pub fn get_x_shift_ref<'a>(&'a self) -> f64
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.
sourcepub fn get_y_shift<'a>(&'a self) -> f64
pub fn get_y_shift<'a>(&'a self) -> f64
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
sourcepub fn get_y_shift_ref<'a>(&'a self) -> f64
pub fn get_y_shift_ref<'a>(&'a self) -> f64
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
sourcepub fn get_scale<'a>(&'a self) -> f64
pub fn get_scale<'a>(&'a self) -> f64
Mask scaling coefficient. For example, 2.0 means double size.
sourcepub fn get_scale_ref<'a>(&'a self) -> f64
pub fn get_scale_ref<'a>(&'a self) -> f64
Mask scaling coefficient. For example, 2.0 means double size.
Trait Implementations§
source§impl Clone for MaskPosition
impl Clone for MaskPosition
source§fn clone(&self) -> MaskPosition
fn clone(&self) -> MaskPosition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more