[][src]Struct qt_gui::QOpenGLPixelTransferOptions

#[repr(C)]pub struct QOpenGLPixelTransferOptions { /* fields omitted */ }

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.

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.

C++ documentation:

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]

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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().

C++ documentation:

Constructs a new QOpenGLPixelTransferOptions instance with the default settings.

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

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.

C++ documentation:

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).

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().

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).

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().

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).

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.

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).

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().

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).

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().

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).

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().

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).

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().

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).

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().

pub unsafe fn skip_images(&self) -> c_int[src]

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().

pub unsafe fn skip_pixels(&self) -> c_int[src]

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().

pub unsafe fn skip_rows(&self) -> c_int[src]

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().

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

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

Trait Implementations

impl CppDeletable for QOpenGLPixelTransferOptions[src]

unsafe fn delete(&self)[src]

Destructor.

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

C++ documentation:

Destructor.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.