#[non_exhaustive]pub struct ImageTextureDraft<'a> {
pub repeat_s: bool,
pub repeat_t: bool,
pub mode: Option<&'a str>,
pub texture_transform: Option<EntityId>,
pub url_reference: &'a str,
}Expand description
What to stage for an IfcImageTexture.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repeat_s: boolRepeatS: does the texture tile along the s axis?
repeat_t: boolRepeatT: does the texture tile along the t axis?
mode: Option<&'a str>Mode: how the texture combines with the underlying colour.
texture_transform: Option<EntityId>TextureTransform: an IfcCartesianTransformationOperator2D.
url_reference: &'a strURLReference: where the image lives.
Implementations§
Source§impl<'a> ImageTextureDraft<'a>
impl<'a> ImageTextureDraft<'a>
Sourcepub fn new(url_reference: &'a str) -> Self
pub fn new(url_reference: &'a str) -> Self
Starts a draft from its required url_reference; every other field is
unset.
Sourcepub fn repeat_s(self, value: bool) -> Self
pub fn repeat_s(self, value: bool) -> Self
Sets repeat_s.
RepeatS: does the texture tile along the s axis?
Sourcepub fn repeat_t(self, value: bool) -> Self
pub fn repeat_t(self, value: bool) -> Self
Sets repeat_t.
RepeatT: does the texture tile along the t axis?
Sourcepub fn mode(self, value: &'a str) -> Self
pub fn mode(self, value: &'a str) -> Self
Sets mode.
Mode: how the texture combines with the underlying colour.
Sourcepub fn texture_transform(self, value: EntityId) -> Self
pub fn texture_transform(self, value: EntityId) -> Self
Sets texture_transform.
TextureTransform: an IfcCartesianTransformationOperator2D.
Trait Implementations§
Source§impl<'a> Clone for ImageTextureDraft<'a>
impl<'a> Clone for ImageTextureDraft<'a>
Source§fn clone(&self) -> ImageTextureDraft<'a>
fn clone(&self) -> ImageTextureDraft<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ImageTextureDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImageTextureDraft<'a>
impl<'a> RefUnwindSafe for ImageTextureDraft<'a>
impl<'a> Send for ImageTextureDraft<'a>
impl<'a> Sync for ImageTextureDraft<'a>
impl<'a> Unpin for ImageTextureDraft<'a>
impl<'a> UnsafeUnpin for ImageTextureDraft<'a>
impl<'a> UnwindSafe for ImageTextureDraft<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more