Struct fbxcel_dom::v7400::object::texture::TextureProperties
source · [−]pub struct TextureProperties<'a> { /* private fields */ }
Expand description
Proxy type to texture properties.
Implementations
sourceimpl<'a> TextureProperties<'a>
impl<'a> TextureProperties<'a>
sourcepub fn alpha_or_default(&self) -> Result<f64, Error>
pub fn alpha_or_default(&self) -> Result<f64, Error>
Returns default alpha value.
Returns default if the value is not set.
sourcepub fn wrap_mode_u_or_default(&self) -> Result<WrapMode, Error>
pub fn wrap_mode_u_or_default(&self) -> Result<WrapMode, Error>
Returns wrap mode U.
Returns default if the value is not set.
sourcepub fn wrap_mode_v_or_default(&self) -> Result<WrapMode, Error>
pub fn wrap_mode_v_or_default(&self) -> Result<WrapMode, Error>
Returns wrap mode V.
Returns default if the value is not set.
sourcepub fn uv_swap(&self) -> Result<Option<bool>, Error>
pub fn uv_swap(&self) -> Result<Option<bool>, Error>
Returns whether the UV should be swapped or not.
Returns Some(true)
if UV should be swapped.
sourcepub fn uv_swap_or_default(&self) -> Result<bool, Error>
pub fn uv_swap_or_default(&self) -> Result<bool, Error>
Returns whether the UV should be swapped or not.
Returns true
if UV should be swapped.
Returns default if the value is not set.
sourcepub fn premultiply_alpha(&self) -> Result<Option<bool>, Error>
pub fn premultiply_alpha(&self) -> Result<Option<bool>, Error>
Returns premultiply-alpha flag.
Returns Some(true)
if the alpha is premultiplied.
sourcepub fn premultiply_alpha_or_default(&self) -> Result<bool, Error>
pub fn premultiply_alpha_or_default(&self) -> Result<bool, Error>
Returns premultiply-alpha flag.
Returns true
if the alpha is premultiplied.
Returns default if the value is not set.
sourcepub fn translation(&self) -> Result<Option<Vector3<f64>>, Error>
pub fn translation(&self) -> Result<Option<Vector3<f64>>, Error>
Returns default translation vector.
sourcepub fn translation_or_default(&self) -> Result<Vector3<f64>, Error>
pub fn translation_or_default(&self) -> Result<Vector3<f64>, Error>
Returns default translation vector.
Returns default if the value is not set.
sourcepub fn rotation_or_default(&self) -> Result<[f64; 3], Error>
pub fn rotation_or_default(&self) -> Result<[f64; 3], Error>
Returns default rotation vector.
Returns default if the value is not set.
sourcepub fn scaling_or_default(&self) -> Result<Vector3<f64>, Error>
pub fn scaling_or_default(&self) -> Result<Vector3<f64>, Error>
Returns default scaling vector.
Returns default if the value is not set.
sourcepub fn rotation_pivot(&self) -> Result<Option<Point3<f64>>, Error>
pub fn rotation_pivot(&self) -> Result<Option<Point3<f64>>, Error>
Returns rotation pivot vector.
sourcepub fn rotation_pivot_or_default(&self) -> Result<Point3<f64>, Error>
pub fn rotation_pivot_or_default(&self) -> Result<Point3<f64>, Error>
Returns rotation pivot vector.
Returns default if the value is not set.
sourcepub fn scaling_pivot(&self) -> Result<Option<Point3<f64>>, Error>
pub fn scaling_pivot(&self) -> Result<Option<Point3<f64>>, Error>
Returns rotation pivot vector.
sourcepub fn scaling_pivot_or_default(&self) -> Result<Point3<f64>, Error>
pub fn scaling_pivot_or_default(&self) -> Result<Point3<f64>, Error>
Returns scaling pivot vector.
Returns default if the value is not set.
sourcepub fn blend_mode_or_default(&self) -> Result<BlendMode, Error>
pub fn blend_mode_or_default(&self) -> Result<BlendMode, Error>
Returns texture blend mode.
Returns default if the value is not set.
sourcepub fn uv_set_or_default(&self) -> Result<&'a str, Error>
pub fn uv_set_or_default(&self) -> Result<&'a str, Error>
Returns UV set name.
Returns default if the value is not set.
Methods from Deref<Target = ObjectProperties<'a>>
sourcepub fn get_property(&self, name: &str) -> Option<PropertyHandle<'a>>
pub fn get_property(&self, name: &str) -> Option<PropertyHandle<'a>>
Returns property handle if found.
Trait Implementations
sourceimpl<'a> Clone for TextureProperties<'a>
impl<'a> Clone for TextureProperties<'a>
sourcefn clone(&self) -> TextureProperties<'a>
fn clone(&self) -> TextureProperties<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for TextureProperties<'a>
impl<'a> Debug for TextureProperties<'a>
sourceimpl<'a> Deref for TextureProperties<'a>
impl<'a> Deref for TextureProperties<'a>
type Target = ObjectProperties<'a>
type Target = ObjectProperties<'a>
The resulting type after dereferencing.
impl<'a> Copy for TextureProperties<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TextureProperties<'a>
impl<'a> Send for TextureProperties<'a>
impl<'a> Sync for TextureProperties<'a>
impl<'a> Unpin for TextureProperties<'a>
impl<'a> UnwindSafe for TextureProperties<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more