Skip to main content

QPixelFormat

Struct QPixelFormat 

Source
pub struct QPixelFormat { /* private fields */ }
Expand description

C++ class: QPixelFormat.

Implementations§

Source§

impl QPixelFormat

Source

pub unsafe fn alpha_position(&self) -> AlphaPosition

Calls C++ function: QPixelFormat::AlphaPosition QPixelFormat::alphaPosition() const.

Source

pub unsafe fn alpha_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::alphaSize() const.

Source

pub unsafe fn alpha_usage(&self) -> AlphaUsage

Calls C++ function: QPixelFormat::AlphaUsage QPixelFormat::alphaUsage() const.

Source

pub unsafe fn bits_per_pixel(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::bitsPerPixel() const.

Source

pub unsafe fn black_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::blackSize() const.

Source

pub unsafe fn blue_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::blueSize() const.

Source

pub unsafe fn brightness_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::brightnessSize() const.

Source

pub unsafe fn byte_order(&self) -> ByteOrder

Calls C++ function: QPixelFormat::ByteOrder QPixelFormat::byteOrder() const.

Source

pub unsafe fn channel_count(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::channelCount() const.

Source

pub unsafe fn color_model(&self) -> ColorModel

Calls C++ function: QPixelFormat::ColorModel QPixelFormat::colorModel() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QPixelFormat>>, ) -> Ref<QPixelFormat>

Calls C++ function: QPixelFormat& QPixelFormat::operator=(const QPixelFormat& other).

Source

pub unsafe fn cyan_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::cyanSize() const.

Source

pub unsafe fn green_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::greenSize() const.

Source

pub unsafe fn hue_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::hueSize() const.

Source

pub unsafe fn lightness_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::lightnessSize() const.

Source

pub unsafe fn magenta_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::magentaSize() const.

Source

pub unsafe fn new_0a() -> CppBox<QPixelFormat>

Calls C++ function: [constructor] void QPixelFormat::QPixelFormat().

Source

pub unsafe fn new_13a( color_model: ColorModel, first_size: c_uchar, second_size: c_uchar, third_size: c_uchar, fourth_size: c_uchar, fifth_size: c_uchar, alpha_size: c_uchar, alpha_usage: AlphaUsage, alpha_position: AlphaPosition, premultiplied: AlphaPremultiplied, type_interpretation: TypeInterpretation, byte_order: ByteOrder, sub_enum: c_uchar, ) -> CppBox<QPixelFormat>

Calls C++ function: [constructor] void QPixelFormat::QPixelFormat(QPixelFormat::ColorModel colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, QPixelFormat::AlphaUsage alphaUsage, QPixelFormat::AlphaPosition alphaPosition, QPixelFormat::AlphaPremultiplied premultiplied, QPixelFormat::TypeInterpretation typeInterpretation, QPixelFormat::ByteOrder byteOrder = …, unsigned char subEnum = …).

Source

pub unsafe fn new_12a( color_model: ColorModel, first_size: c_uchar, second_size: c_uchar, third_size: c_uchar, fourth_size: c_uchar, fifth_size: c_uchar, alpha_size: c_uchar, alpha_usage: AlphaUsage, alpha_position: AlphaPosition, premultiplied: AlphaPremultiplied, type_interpretation: TypeInterpretation, byte_order: ByteOrder, ) -> CppBox<QPixelFormat>

Calls C++ function: [constructor] void QPixelFormat::QPixelFormat(QPixelFormat::ColorModel colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, QPixelFormat::AlphaUsage alphaUsage, QPixelFormat::AlphaPosition alphaPosition, QPixelFormat::AlphaPremultiplied premultiplied, QPixelFormat::TypeInterpretation typeInterpretation, QPixelFormat::ByteOrder byteOrder = …).

Source

pub unsafe fn new_11a( color_model: ColorModel, first_size: c_uchar, second_size: c_uchar, third_size: c_uchar, fourth_size: c_uchar, fifth_size: c_uchar, alpha_size: c_uchar, alpha_usage: AlphaUsage, alpha_position: AlphaPosition, premultiplied: AlphaPremultiplied, type_interpretation: TypeInterpretation, ) -> CppBox<QPixelFormat>

Calls C++ function: [constructor] void QPixelFormat::QPixelFormat(QPixelFormat::ColorModel colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, QPixelFormat::AlphaUsage alphaUsage, QPixelFormat::AlphaPosition alphaPosition, QPixelFormat::AlphaPremultiplied premultiplied, QPixelFormat::TypeInterpretation typeInterpretation).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QPixelFormat>>, ) -> CppBox<QPixelFormat>

Calls C++ function: [constructor] void QPixelFormat::QPixelFormat(const QPixelFormat& other).

Source

pub unsafe fn premultiplied(&self) -> AlphaPremultiplied

Calls C++ function: QPixelFormat::AlphaPremultiplied QPixelFormat::premultiplied() const.

Source

pub unsafe fn red_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::redSize() const.

Source

pub unsafe fn saturation_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::saturationSize() const.

Source

pub unsafe fn sub_enum(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::subEnum() const.

Source

pub unsafe fn type_interpretation(&self) -> TypeInterpretation

Calls C++ function: QPixelFormat::TypeInterpretation QPixelFormat::typeInterpretation() const.

Source

pub unsafe fn yellow_size(&self) -> c_uchar

Calls C++ function: unsigned char QPixelFormat::yellowSize() const.

Source

pub unsafe fn yuv_layout(&self) -> YUVLayout

Calls C++ function: QPixelFormat::YUVLayout QPixelFormat::yuvLayout() const.

Trait Implementations§

Source§

impl CppDeletable for QPixelFormat

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QPixelFormat::~QPixelFormat().

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.