Struct qmetaobject::QImage [−][src]
#[repr(C)]pub struct QImage { /* fields omitted */ }
Wrapper around QImage
class.
Implementations
impl QImage
[src]
pub fn load_from_file(filename: QString) -> QImage
[src]
Wrapper around QImage(const QString &fileName, const char *format = nullptr)
constructor.
pub fn new(size: QSize, format: ImageFormat) -> QImage
[src]
Wrapper around QImage(const QSize &, QImage::Format)
constructor.
pub fn size(&self) -> QSize
[src]
Wrapper around size()
method.
pub fn format(&self) -> ImageFormat
[src]
Wrapper around format()
method.
pub fn fill(&mut self, color: QColor)
[src]
Wrapper around fill(const QColor &)
method.
pub fn set_pixel_color(&mut self, x: u32, y: u32, color: QColor)
[src]
Wrapper around setPixelColor(const QPoint &, const QColor &)
method.
pub fn get_pixel_color(&self, x: u32, y: u32) -> QColor
[src]
Wrapper around pixelColor(const QPoint &)
method.
Trait Implementations
impl Clone for QImage
[src]
impl Default for QImage
[src]
impl Drop for QImage
[src]
impl From<QImage> for QPixmap
[src]
impl From<QPixmap> for QImage
[src]
impl PartialEq<QImage> for QImage
[src]
pub fn eq(&self, other: &QImage) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl QMetaType for QImage
[src]
Auto Trait Implementations
impl RefUnwindSafe for QImage
impl Send for QImage
impl Sync for QImage
impl Unpin for QImage
impl UnwindSafe for QImage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> PropertyType for T where
T: QMetaType,
[src]
T: QMetaType,
pub fn register_type(&CStr) -> i32
[src]
pub unsafe fn pass_to_qt(&mut Self, *mut c_void)
[src]
pub unsafe fn read_from_qt(*const c_void) -> T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,