#[repr(C)]pub struct OpenGLPixelTransferOptions(_);
Expand description
C++ type: QOpenGLPixelTransferOptions
The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload.
Implementations§
source§impl OpenGLPixelTransferOptions
impl OpenGLPixelTransferOptions
sourcepub fn alignment(&self) -> c_int
pub fn alignment(&self) -> c_int
C++ method: int QOpenGLPixelTransferOptions::alignment() const
Returns the current alignment requirement for each pixel row.
See also setAlignment().
sourcepub fn image_height(&self) -> c_int
pub fn image_height(&self) -> c_int
C++ method: int QOpenGLPixelTransferOptions::imageHeight() const
Returns the currently set image height.
See also setImageHeight().
sourcepub fn is_least_significant_bit_first(&self) -> bool
pub fn is_least_significant_bit_first(&self) -> bool
C++ method: bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const
Returns true
if bits within a byte are ordered from least to most significant.
sourcepub fn is_swap_bytes_enabled(&self) -> bool
pub fn is_swap_bytes_enabled(&self) -> bool
C++ method: bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const
Returns true
if the byte ordering for multibyte components is reversed.
sourcepub fn new<Args>(args: Args) -> CppBox<OpenGLPixelTransferOptions>where
Args: OpenGLPixelTransferOptionsNewArgs,
pub fn new<Args>(args: Args) -> CppBox<OpenGLPixelTransferOptions>where
Args: OpenGLPixelTransferOptionsNewArgs,
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()
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)
sourcepub fn op_assign<'l0, 'l1>(
&'l0 mut self,
arg1: &'l1 OpenGLPixelTransferOptions
) -> &'l0 mut OpenGLPixelTransferOptions
pub fn op_assign<'l0, 'l1>(
&'l0 mut self,
arg1: &'l1 OpenGLPixelTransferOptions
) -> &'l0 mut OpenGLPixelTransferOptions
C++ method: QOpenGLPixelTransferOptions& QOpenGLPixelTransferOptions::operator=(const QOpenGLPixelTransferOptions& arg1)
sourcepub fn row_length(&self) -> c_int
pub fn row_length(&self) -> c_int
C++ method: int QOpenGLPixelTransferOptions::rowLength() const
Returns the currently set row length.
See also setRowLength().
sourcepub fn set_alignment(&mut self, alignment: c_int)
pub fn set_alignment(&mut self, alignment: c_int)
C++ method: 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 fn set_image_height(&mut self, image_height: c_int)
pub fn set_image_height(&mut self, image_height: c_int)
C++ method: 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 fn set_least_significant_byte_first(&mut self, lsb_first: bool)
pub fn set_least_significant_byte_first(&mut self, lsb_first: bool)
C++ method: 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 fn set_row_length(&mut self, row_length: c_int)
pub fn set_row_length(&mut self, row_length: c_int)
C++ method: 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 fn set_skip_images(&mut self, skip_images: c_int)
pub fn set_skip_images(&mut self, skip_images: c_int)
C++ method: 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 fn set_skip_pixels(&mut self, skip_pixels: c_int)
pub fn set_skip_pixels(&mut self, skip_pixels: c_int)
C++ method: 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 fn set_skip_rows(&mut self, skip_rows: c_int)
pub fn set_skip_rows(&mut self, skip_rows: c_int)
C++ method: 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 fn set_swap_bytes_enabled(&mut self, swap_bytes: bool)
pub fn set_swap_bytes_enabled(&mut self, swap_bytes: bool)
C++ method: 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 fn skip_images(&self) -> c_int
pub fn skip_images(&self) -> c_int
C++ method: int QOpenGLPixelTransferOptions::skipImages() const
Returns the number of images that are skipped.
See also setSkipImages().
sourcepub fn skip_pixels(&self) -> c_int
pub fn skip_pixels(&self) -> c_int
C++ method: int QOpenGLPixelTransferOptions::skipPixels() const
Returns the number of pixels that are skipped.
See also setSkipPixels().
sourcepub fn skip_rows(&self) -> c_int
pub fn skip_rows(&self) -> c_int
C++ method: int QOpenGLPixelTransferOptions::skipRows() const
Returns the number of rows that are skipped.
See also setSkipRows().
sourcepub fn swap(&mut self, other: &mut OpenGLPixelTransferOptions)
pub fn swap(&mut self, other: &mut OpenGLPixelTransferOptions)
C++ method: void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions& other)