#[repr(C)]
pub struct OpenGLPixelTransferOptions(_);
Expand description

C++ type: QOpenGLPixelTransferOptions

C++ documentation:

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

Implementations§

C++ method: int QOpenGLPixelTransferOptions::alignment() const

C++ documentation:

Returns the current alignment requirement for each pixel row.

See also setAlignment().

C++ method: int QOpenGLPixelTransferOptions::imageHeight() const

C++ documentation:

Returns the currently set image height.

See also setImageHeight().

C++ method: bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const

C++ documentation:

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

C++ method: bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const

C++ documentation:

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

C++ method: QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions

This is an overloaded function. Available variants:

Variant 1

Rust arguments: fn new(()) -> ::cpp_utils::CppBox<::opengl_pixel_transfer_options::OpenGLPixelTransferOptions>
C++ method: [constructor] void QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()

C++ documentation:

Constructs a new QOpenGLPixelTransferOptions instance with the default settings.

Variant 2

Rust arguments: fn new(&::opengl_pixel_transfer_options::OpenGLPixelTransferOptions) -> ::cpp_utils::CppBox<::opengl_pixel_transfer_options::OpenGLPixelTransferOptions>
C++ method: [constructor] void QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions(const QOpenGLPixelTransferOptions& arg1)

C++ method: QOpenGLPixelTransferOptions& QOpenGLPixelTransferOptions::operator=(const QOpenGLPixelTransferOptions& arg1)

C++ method: int QOpenGLPixelTransferOptions::rowLength() const

C++ documentation:

Returns the currently set row length.

See also setRowLength().

C++ method: 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().

C++ method: 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().

C++ method: 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.

C++ method: 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().

C++ method: 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().

C++ method: 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().

C++ method: 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().

C++ method: 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().

C++ method: int QOpenGLPixelTransferOptions::skipImages() const

C++ documentation:

Returns the number of images that are skipped.

See also setSkipImages().

C++ method: int QOpenGLPixelTransferOptions::skipPixels() const

C++ documentation:

Returns the number of pixels that are skipped.

See also setSkipPixels().

C++ method: int QOpenGLPixelTransferOptions::skipRows() const

C++ documentation:

Returns the number of rows that are skipped.

See also setSkipRows().

C++ method: void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions& other)

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.