#[repr(C)]
pub struct QOpenGLPixelTransferOptions { /* private fields */ }
Expand description

The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload.

C++ class: QOpenGLPixelTransferOptions.

C++ documentation:

The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload.

Implementations§

source§

impl QOpenGLPixelTransferOptions

source

pub unsafe fn alignment(&self) -> c_int

Returns the current alignment requirement for each pixel row.

Calls C++ function: int QOpenGLPixelTransferOptions::alignment() const.

C++ documentation:

Returns the current alignment requirement for each pixel row.

See also setAlignment().

source

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

Calls C++ function: QOpenGLPixelTransferOptions& QOpenGLPixelTransferOptions::operator=(const QOpenGLPixelTransferOptions& arg1).

source

pub unsafe fn image_height(&self) -> c_int

Returns the currently set image height.

Calls C++ function: int QOpenGLPixelTransferOptions::imageHeight() const.

C++ documentation:

Returns the currently set image height.

See also setImageHeight().

source

pub unsafe fn is_least_significant_bit_first(&self) -> bool

Returns true if bits within a byte are ordered from least to most significant.

Calls C++ function: bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const.

C++ documentation:

Returns true if bits within a byte are ordered from least to most significant.

source

pub unsafe fn is_swap_bytes_enabled(&self) -> bool

Returns true if the byte ordering for multibyte components is reversed.

Calls C++ function: bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const.

C++ documentation:

Returns true if the byte ordering for multibyte components is reversed.

source

pub unsafe fn new() -> CppBox<QOpenGLPixelTransferOptions>

Constructs a new QOpenGLPixelTransferOptions instance with the default settings.

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

C++ documentation:

Constructs a new QOpenGLPixelTransferOptions instance with the default settings.

source

pub unsafe fn new_copy( arg1: impl CastInto<Ref<QOpenGLPixelTransferOptions>> ) -> CppBox<QOpenGLPixelTransferOptions>

Constructs a new QOpenGLPixelTransferOptions instance with the default settings.

Calls C++ function: [constructor] void QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions(const QOpenGLPixelTransferOptions& arg1).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions():

Constructs a new QOpenGLPixelTransferOptions instance with the default settings.

source

pub unsafe fn row_length(&self) -> c_int

Returns the currently set row length.

Calls C++ function: int QOpenGLPixelTransferOptions::rowLength() const.

C++ documentation:

Returns the currently set row length.

See also setRowLength().

source

pub unsafe fn set_alignment(&self, alignment: c_int)

Sets the alignment requirements for each pixel row. Corresponds to GL_UNPACK_ALIGNMENT. The default value is 4, as specified by OpenGL.

Calls C++ function: void QOpenGLPixelTransferOptions::setAlignment(int alignment).

C++ documentation:

Sets the alignment requirements for each pixel row. Corresponds to GL_UNPACK_ALIGNMENT. The default value is 4, as specified by OpenGL.

See also alignment().

source

pub unsafe fn set_image_height(&self, image_height: c_int)

Sets the image height for 3D textures to imageHeight. Corresponds to GL_UNPACK_IMAGE_HEIGHT. The default value is 0.

Calls C++ function: void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight).

C++ documentation:

Sets the image height for 3D textures to imageHeight. Corresponds to GL_UNPACK_IMAGE_HEIGHT. The default value is 0.

See also imageHeight().

source

pub unsafe fn set_least_significant_byte_first(&self, lsb_first: bool)

lsbFirst specifies if bits within a byte are ordered from least to most significat. The default value is false, meaning that the first bit in each byte is the most significant one. This is significant for bitmap data only. Corresponds to GL_UNPACK_LSB_FIRST.

Calls C++ function: void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst).

C++ documentation:

lsbFirst specifies if bits within a byte are ordered from least to most significat. The default value is false, meaning that the first bit in each byte is the most significant one. This is significant for bitmap data only. Corresponds to GL_UNPACK_LSB_FIRST.

source

pub unsafe fn set_row_length(&self, row_length: c_int)

Sets the number of pixels in a row to rowLength. Corresponds to GL_UNPACK_ROW_LENGTH. The default value is 0.

Calls C++ function: void QOpenGLPixelTransferOptions::setRowLength(int rowLength).

C++ documentation:

Sets the number of pixels in a row to rowLength. Corresponds to GL_UNPACK_ROW_LENGTH. The default value is 0.

See also rowLength().

source

pub unsafe fn set_skip_images(&self, skip_images: c_int)

Sets the number of images that are skipped to skipImages. Corresponds to GL_UNPACK_SKIP_IMAGES. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

Calls C++ function: void QOpenGLPixelTransferOptions::setSkipImages(int skipImages).

C++ documentation:

Sets the number of images that are skipped to skipImages. Corresponds to GL_UNPACK_SKIP_IMAGES. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

See also skipImages().

source

pub unsafe fn set_skip_pixels(&self, skip_pixels: c_int)

Sets the number of pixels that are skipped to skipPixels. Corresponds to GL_UNPACK_SKIP_PIXELS. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

Calls C++ function: void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels).

C++ documentation:

Sets the number of pixels that are skipped to skipPixels. Corresponds to GL_UNPACK_SKIP_PIXELS. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

See also skipPixels().

source

pub unsafe fn set_skip_rows(&self, skip_rows: c_int)

Sets the number of rows that are skipped to skipRows. Corresponds to GL_UNPACK_SKIP_ROWS. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

Calls C++ function: void QOpenGLPixelTransferOptions::setSkipRows(int skipRows).

C++ documentation:

Sets the number of rows that are skipped to skipRows. Corresponds to GL_UNPACK_SKIP_ROWS. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

See also skipRows().

source

pub unsafe fn set_swap_bytes_enabled(&self, swap_bytes: bool)

swapBytes specifies if the byte ordering for multibyte components is reversed. The default value is false. Corresponds to GL_UNPACK_SWAP_BYTES.

Calls C++ function: void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes).

C++ documentation:

swapBytes specifies if the byte ordering for multibyte components is reversed. The default value is false. Corresponds to GL_UNPACK_SWAP_BYTES.

See also isSwapBytesEnabled().

source

pub unsafe fn skip_images(&self) -> c_int

Returns the number of images that are skipped.

Calls C++ function: int QOpenGLPixelTransferOptions::skipImages() const.

C++ documentation:

Returns the number of images that are skipped.

See also setSkipImages().

source

pub unsafe fn skip_pixels(&self) -> c_int

Returns the number of pixels that are skipped.

Calls C++ function: int QOpenGLPixelTransferOptions::skipPixels() const.

C++ documentation:

Returns the number of pixels that are skipped.

See also setSkipPixels().

source

pub unsafe fn skip_rows(&self) -> c_int

Returns the number of rows that are skipped.

Calls C++ function: int QOpenGLPixelTransferOptions::skipRows() const.

C++ documentation:

Returns the number of rows that are skipped.

See also setSkipRows().

source

pub unsafe fn swap( &self, other: impl CastInto<Ref<QOpenGLPixelTransferOptions>> )

Calls C++ function: void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions& other).

Trait Implementations§

source§

impl CppDeletable for QOpenGLPixelTransferOptions

source§

unsafe fn delete(&self)

Destructor.

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

C++ documentation:

Destructor.

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>,

§

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>,

§

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.