[−][src]Struct qt_gui::QOpenGLPixelTransferOptions
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.
Methods
impl QOpenGLPixelTransferOptions
[src]
pub unsafe fn alignment(&self) -> c_int
[src]
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().
pub unsafe fn copy_from(
&self,
arg1: impl CastInto<Ref<QOpenGLPixelTransferOptions>>
) -> Ref<QOpenGLPixelTransferOptions>
[src]
&self,
arg1: impl CastInto<Ref<QOpenGLPixelTransferOptions>>
) -> Ref<QOpenGLPixelTransferOptions>
Calls C++ function: QOpenGLPixelTransferOptions& QOpenGLPixelTransferOptions::operator=(const QOpenGLPixelTransferOptions& arg1)
.
pub unsafe fn image_height(&self) -> c_int
[src]
Returns the currently set image height.
Calls C++ function: int QOpenGLPixelTransferOptions::imageHeight() const
.
Returns the currently set image height.
See also setImageHeight().
pub unsafe fn is_least_significant_bit_first(&self) -> bool
[src]
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.
pub unsafe fn is_swap_bytes_enabled(&self) -> bool
[src]
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.
pub unsafe fn new() -> CppBox<QOpenGLPixelTransferOptions>
[src]
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.
pub unsafe fn new_copy(
arg1: impl CastInto<Ref<QOpenGLPixelTransferOptions>>
) -> CppBox<QOpenGLPixelTransferOptions>
[src]
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.
pub unsafe fn row_length(&self) -> c_int
[src]
Returns the currently set row length.
Calls C++ function: int QOpenGLPixelTransferOptions::rowLength() const
.
Returns the currently set row length.
See also setRowLength().
pub unsafe fn set_alignment(&self, alignment: c_int)
[src]
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().
pub unsafe fn set_image_height(&self, image_height: c_int)
[src]
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().
pub unsafe fn set_least_significant_byte_first(&self, lsb_first: bool)
[src]
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
.
pub unsafe fn set_row_length(&self, row_length: c_int)
[src]
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().
pub unsafe fn set_skip_images(&self, skip_images: c_int)
[src]
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().
pub unsafe fn set_skip_pixels(&self, skip_pixels: c_int)
[src]
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().
pub unsafe fn set_skip_rows(&self, skip_rows: c_int)
[src]
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().
pub unsafe fn set_swap_bytes_enabled(&self, swap_bytes: bool)
[src]
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().
pub unsafe fn skip_images(&self) -> c_int
[src]
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().
pub unsafe fn skip_pixels(&self) -> c_int
[src]
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().
pub unsafe fn skip_rows(&self) -> c_int
[src]
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().
pub unsafe fn swap(
&self,
other: impl CastInto<Ref<QOpenGLPixelTransferOptions>>
)
[src]
&self,
other: impl CastInto<Ref<QOpenGLPixelTransferOptions>>
)
Calls C++ function: void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions& other)
.
Trait Implementations
impl CppDeletable for QOpenGLPixelTransferOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for QOpenGLPixelTransferOptions
impl Send for QOpenGLPixelTransferOptions
impl Sync for QOpenGLPixelTransferOptions
impl Unpin for QOpenGLPixelTransferOptions
impl UnwindSafe for QOpenGLPixelTransferOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,