pub struct Image {
pub data: *mut c_void,
pub source_dimensions: Dimensions,
}Fields§
§data: *mut c_void§source_dimensions: DimensionsImplementations§
Source§impl Image
impl Image
pub fn new() -> Self
Sourcepub fn data(&mut self, data: DataRef<'_>) -> &mut Self
pub fn data(&mut self, data: DataRef<'_>) -> &mut Self
Set the data of the image. The data has to be created by using [Clay::data].
pub fn source_dimensions(&mut self, dimensions: Dimensions) -> &mut Self
pub fn end(&self) -> TypedConfig
Trait Implementations§
Source§impl From<Clay_ImageElementConfig> for Image
impl From<Clay_ImageElementConfig> for Image
Source§fn from(value: Clay_ImageElementConfig) -> Self
fn from(value: Clay_ImageElementConfig) -> Self
Converts to this type from the input type.
Source§impl From<Image> for Clay_ImageElementConfig
impl From<Image> for Clay_ImageElementConfig
impl Copy for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl !Send for Image
impl !Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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