pub struct PixelTexture<'m, 's> { /* private fields */ }Expand description
Borrowed projection of IfcPixelTexture: an explicit width/height/colour raster.
Implementations§
Source§impl<'m, 's> PixelTexture<'m, 's>
impl<'m, 's> PixelTexture<'m, 's>
Sourcepub fn width(&self) -> StyleResult<i64>
pub fn width(&self) -> StyleResult<i64>
The Width attribute in pixels. Mandatory.
Sourcepub fn height(&self) -> StyleResult<i64>
pub fn height(&self) -> StyleResult<i64>
The Height attribute in pixels. Mandatory.
Sourcepub fn colour_components(&self) -> StyleResult<i64>
pub fn colour_components(&self) -> StyleResult<i64>
The ColourComponents attribute: the number of colour channels per pixel. Mandatory.
Sourcepub fn pixel(&self) -> StyleResult<&'m Value>
pub fn pixel(&self) -> StyleResult<&'m Value>
The Pixel attribute: the raw pixel byte list. Mandatory.
Trait Implementations§
Source§impl<'m, 's> Clone for PixelTexture<'m, 's>
impl<'m, 's> Clone for PixelTexture<'m, 's>
impl<'m, 's> Copy for PixelTexture<'m, 's>
Auto Trait Implementations§
impl<'m, 's> Freeze for PixelTexture<'m, 's>
impl<'m, 's> RefUnwindSafe for PixelTexture<'m, 's>
impl<'m, 's> Send for PixelTexture<'m, 's>
impl<'m, 's> Sync for PixelTexture<'m, 's>
impl<'m, 's> Unpin for PixelTexture<'m, 's>
impl<'m, 's> UnsafeUnpin for PixelTexture<'m, 's>
impl<'m, 's> UnwindSafe for PixelTexture<'m, 's>
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