Struct search_provider::IconData
source · pub struct IconData {
pub width: i32,
pub height: i32,
pub rowstride: i32,
pub has_alpha: bool,
pub bits_per_sample: i32,
pub n_channels: i32,
pub data: Vec<u8>,
}
Expand description
A struct wrapping the required information to re-construct an icon with
gdk-pixbuf
.
You can make use of the pixbuf
feature that implements From<gdk_pixbuf::Pixbuf> for IconData
.
Fields§
§width: i32
§height: i32
§rowstride: i32
§has_alpha: bool
§bits_per_sample: i32
§n_channels: i32
§data: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IconData
impl Send for IconData
impl Sync for IconData
impl Unpin for IconData
impl UnwindSafe for IconData
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
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more