#[non_exhaustive]pub struct BlobTextureDraft<'a> {
pub repeat_s: bool,
pub repeat_t: bool,
pub mode: Option<&'a str>,
pub texture_transform: Option<EntityId>,
pub parameter: &'a [&'a str],
pub raster_format: &'a str,
pub raster_code: &'a str,
}Expand description
Attributes of an IfcBlobTexture.
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: whether the texture tiles along S.
repeat_t: boolRepeatT: whether the texture tiles along T.
mode: Option<&'a str>Mode: the texture application mode.
texture_transform: Option<EntityId>TextureTransform: a 2D operator applied to the coordinates.
parameter: &'a [&'a str]Parameter: optional, but non-empty when present.
raster_format: &'a strRasterFormat: one of BMP, JPG, GIF, PNG.
raster_code: &'a strRasterCode: the hex payload, a whole number of bytes.
Implementations§
Source§impl<'a> BlobTextureDraft<'a>
impl<'a> BlobTextureDraft<'a>
Sourcepub fn new(raster_format: &'a str, raster_code: &'a str) -> Self
pub fn new(raster_format: &'a str, raster_code: &'a str) -> Self
Starts a draft from its required raster_format, raster_code; 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: whether the texture tiles along S.
Sourcepub fn repeat_t(self, value: bool) -> Self
pub fn repeat_t(self, value: bool) -> Self
Sets repeat_t.
RepeatT: whether the texture tiles along T.
Sourcepub fn texture_transform(self, value: EntityId) -> Self
pub fn texture_transform(self, value: EntityId) -> Self
Sets texture_transform.
TextureTransform: a 2D operator applied to the coordinates.
Trait Implementations§
Source§impl<'a> Clone for BlobTextureDraft<'a>
impl<'a> Clone for BlobTextureDraft<'a>
impl<'a> Copy for BlobTextureDraft<'a>
Source§impl<'a> Debug for BlobTextureDraft<'a>
impl<'a> Debug for BlobTextureDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for BlobTextureDraft<'a>
impl<'a> RefUnwindSafe for BlobTextureDraft<'a>
impl<'a> Send for BlobTextureDraft<'a>
impl<'a> Sync for BlobTextureDraft<'a>
impl<'a> Unpin for BlobTextureDraft<'a>
impl<'a> UnsafeUnpin for BlobTextureDraft<'a>
impl<'a> UnwindSafe for BlobTextureDraft<'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