Struct qt_gui::QOpenGLPixelTransferOptions
source · #[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
.
The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload.
Implementations§
source§impl QOpenGLPixelTransferOptions
impl QOpenGLPixelTransferOptions
sourcepub unsafe fn alignment(&self) -> c_int
pub unsafe fn alignment(&self) -> c_int
Returns the current alignment requirement for each pixel row.
Calls C++ function: int QOpenGLPixelTransferOptions::alignment() const
.
Returns the current alignment requirement for each pixel row.
See also setAlignment().
sourcepub unsafe fn copy_from(
&self,
arg1: impl CastInto<Ref<QOpenGLPixelTransferOptions>>
) -> Ref<QOpenGLPixelTransferOptions>
pub unsafe fn copy_from( &self, arg1: impl CastInto<Ref<QOpenGLPixelTransferOptions>> ) -> Ref<QOpenGLPixelTransferOptions>
Calls C++ function: QOpenGLPixelTransferOptions& QOpenGLPixelTransferOptions::operator=(const QOpenGLPixelTransferOptions& arg1)
.
sourcepub unsafe fn image_height(&self) -> c_int
pub unsafe fn image_height(&self) -> c_int
Returns the currently set image height.
Calls C++ function: int QOpenGLPixelTransferOptions::imageHeight() const
.
Returns the currently set image height.
See also setImageHeight().
sourcepub unsafe fn is_least_significant_bit_first(&self) -> bool
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
.
Returns true
if bits within a byte are ordered from least to most significant.
sourcepub unsafe fn is_swap_bytes_enabled(&self) -> bool
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
.
Returns true
if the byte ordering for multibyte components is reversed.
sourcepub unsafe fn new() -> CppBox<QOpenGLPixelTransferOptions>
pub unsafe fn new() -> CppBox<QOpenGLPixelTransferOptions>
Constructs a new QOpenGLPixelTransferOptions instance with the default settings.
Calls C++ function: [constructor] void QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()
.
Constructs a new QOpenGLPixelTransferOptions instance with the default settings.
sourcepub unsafe fn new_copy(
arg1: impl CastInto<Ref<QOpenGLPixelTransferOptions>>
) -> CppBox<QOpenGLPixelTransferOptions>
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.
sourcepub unsafe fn row_length(&self) -> c_int
pub unsafe fn row_length(&self) -> c_int
Returns the currently set row length.
Calls C++ function: int QOpenGLPixelTransferOptions::rowLength() const
.
Returns the currently set row length.
See also setRowLength().
sourcepub unsafe fn set_alignment(&self, alignment: c_int)
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)
.
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().
sourcepub unsafe fn set_image_height(&self, image_height: c_int)
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)
.
Sets the image height for 3D textures to imageHeight. Corresponds to GL_UNPACK_IMAGE_HEIGHT
. The default value is 0.
See also imageHeight().
sourcepub unsafe fn set_least_significant_byte_first(&self, lsb_first: bool)
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)
.
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
.
sourcepub unsafe fn set_row_length(&self, row_length: c_int)
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)
.
Sets the number of pixels in a row to rowLength. Corresponds to GL_UNPACK_ROW_LENGTH
. The default value is 0.
See also rowLength().
sourcepub unsafe fn set_skip_images(&self, skip_images: c_int)
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)
.
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().
sourcepub unsafe fn set_skip_pixels(&self, skip_pixels: c_int)
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)
.
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().
sourcepub unsafe fn set_skip_rows(&self, skip_rows: c_int)
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)
.
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().
sourcepub unsafe fn set_swap_bytes_enabled(&self, swap_bytes: bool)
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)
.
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().
sourcepub unsafe fn skip_images(&self) -> c_int
pub unsafe fn skip_images(&self) -> c_int
Returns the number of images that are skipped.
Calls C++ function: int QOpenGLPixelTransferOptions::skipImages() const
.
Returns the number of images that are skipped.
See also setSkipImages().
sourcepub unsafe fn skip_pixels(&self) -> c_int
pub unsafe fn skip_pixels(&self) -> c_int
Returns the number of pixels that are skipped.
Calls C++ function: int QOpenGLPixelTransferOptions::skipPixels() const
.
Returns the number of pixels that are skipped.
See also setSkipPixels().
sourcepub unsafe fn skip_rows(&self) -> c_int
pub unsafe fn skip_rows(&self) -> c_int
Returns the number of rows that are skipped.
Calls C++ function: int QOpenGLPixelTransferOptions::skipRows() const
.
Returns the number of rows that are skipped.
See also setSkipRows().
sourcepub unsafe fn swap(
&self,
other: impl CastInto<Ref<QOpenGLPixelTransferOptions>>
)
pub unsafe fn swap( &self, other: impl CastInto<Ref<QOpenGLPixelTransferOptions>> )
Calls C++ function: void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions& other)
.