Skip to main content

QSurfaceFormat

Struct QSurfaceFormat 

Source
pub struct QSurfaceFormat { /* private fields */ }
Expand description

C++ class: QSurfaceFormat.

Implementations§

Source§

impl QSurfaceFormat

Source

pub unsafe fn alpha_buffer_size(&self) -> c_int

Calls C++ function: int QSurfaceFormat::alphaBufferSize() const.

Source

pub unsafe fn blue_buffer_size(&self) -> c_int

Calls C++ function: int QSurfaceFormat::blueBufferSize() const.

Source

pub unsafe fn color_space(&self) -> ColorSpace

Calls C++ function: QSurfaceFormat::ColorSpace QSurfaceFormat::colorSpace() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QSurfaceFormat>>, ) -> Ref<QSurfaceFormat>

Calls C++ function: QSurfaceFormat& QSurfaceFormat::operator=(const QSurfaceFormat& other).

Source

pub unsafe fn default_format() -> CppBox<QSurfaceFormat>

Calls C++ function: static QSurfaceFormat QSurfaceFormat::defaultFormat().

Source

pub unsafe fn depth_buffer_size(&self) -> c_int

Calls C++ function: int QSurfaceFormat::depthBufferSize() const.

Source

pub unsafe fn green_buffer_size(&self) -> c_int

Calls C++ function: int QSurfaceFormat::greenBufferSize() const.

Source

pub unsafe fn has_alpha(&self) -> bool

Calls C++ function: bool QSurfaceFormat::hasAlpha() const.

Source

pub unsafe fn major_version(&self) -> c_int

Calls C++ function: int QSurfaceFormat::majorVersion() const.

Source

pub unsafe fn minor_version(&self) -> c_int

Calls C++ function: int QSurfaceFormat::minorVersion() const.

Source

pub unsafe fn new_0a() -> CppBox<QSurfaceFormat>

Calls C++ function: [constructor] void QSurfaceFormat::QSurfaceFormat().

Source

pub unsafe fn new_1a(options: QFlags<FormatOption>) -> CppBox<QSurfaceFormat>

Calls C++ function: [constructor] void QSurfaceFormat::QSurfaceFormat(QFlags<QSurfaceFormat::FormatOption> options).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QSurfaceFormat>>, ) -> CppBox<QSurfaceFormat>

Calls C++ function: [constructor] void QSurfaceFormat::QSurfaceFormat(const QSurfaceFormat& other).

Source

pub unsafe fn options(&self) -> QFlags<FormatOption>

Calls C++ function: QFlags<QSurfaceFormat::FormatOption> QSurfaceFormat::options() const.

Source

pub unsafe fn profile(&self) -> OpenGLContextProfile

Calls C++ function: QSurfaceFormat::OpenGLContextProfile QSurfaceFormat::profile() const.

Source

pub unsafe fn red_buffer_size(&self) -> c_int

Calls C++ function: int QSurfaceFormat::redBufferSize() const.

Source

pub unsafe fn renderable_type(&self) -> RenderableType

Calls C++ function: QSurfaceFormat::RenderableType QSurfaceFormat::renderableType() const.

Source

pub unsafe fn samples(&self) -> c_int

Calls C++ function: int QSurfaceFormat::samples() const.

Source

pub unsafe fn set_alpha_buffer_size(&self, size: c_int)

Calls C++ function: void QSurfaceFormat::setAlphaBufferSize(int size).

Source

pub unsafe fn set_blue_buffer_size(&self, size: c_int)

Calls C++ function: void QSurfaceFormat::setBlueBufferSize(int size).

Source

pub unsafe fn set_color_space(&self, color_space: ColorSpace)

Calls C++ function: void QSurfaceFormat::setColorSpace(QSurfaceFormat::ColorSpace colorSpace).

Source

pub unsafe fn set_default_format(format: impl CastInto<Ref<QSurfaceFormat>>)

Calls C++ function: static void QSurfaceFormat::setDefaultFormat(const QSurfaceFormat& format).

Source

pub unsafe fn set_depth_buffer_size(&self, size: c_int)

Calls C++ function: void QSurfaceFormat::setDepthBufferSize(int size).

Source

pub unsafe fn set_green_buffer_size(&self, size: c_int)

Calls C++ function: void QSurfaceFormat::setGreenBufferSize(int size).

Source

pub unsafe fn set_major_version(&self, major_version: c_int)

Calls C++ function: void QSurfaceFormat::setMajorVersion(int majorVersion).

Source

pub unsafe fn set_minor_version(&self, minor_version: c_int)

Calls C++ function: void QSurfaceFormat::setMinorVersion(int minorVersion).

Source

pub unsafe fn set_option_q_flags_format_option(&self, opt: QFlags<FormatOption>)

Calls C++ function: void QSurfaceFormat::setOption(QFlags<QSurfaceFormat::FormatOption> opt).

Source

pub unsafe fn set_option_format_option_bool( &self, option: FormatOption, on: bool, )

Calls C++ function: void QSurfaceFormat::setOption(QSurfaceFormat::FormatOption option, bool on = …).

Source

pub unsafe fn set_option_format_option(&self, option: FormatOption)

Calls C++ function: void QSurfaceFormat::setOption(QSurfaceFormat::FormatOption option).

Source

pub unsafe fn set_options(&self, options: QFlags<FormatOption>)

Calls C++ function: void QSurfaceFormat::setOptions(QFlags<QSurfaceFormat::FormatOption> options).

Source

pub unsafe fn set_profile(&self, profile: OpenGLContextProfile)

Calls C++ function: void QSurfaceFormat::setProfile(QSurfaceFormat::OpenGLContextProfile profile).

Source

pub unsafe fn set_red_buffer_size(&self, size: c_int)

Calls C++ function: void QSurfaceFormat::setRedBufferSize(int size).

Source

pub unsafe fn set_renderable_type(&self, type_: RenderableType)

Calls C++ function: void QSurfaceFormat::setRenderableType(QSurfaceFormat::RenderableType type).

Source

pub unsafe fn set_samples(&self, num_samples: c_int)

Calls C++ function: void QSurfaceFormat::setSamples(int numSamples).

Source

pub unsafe fn set_stencil_buffer_size(&self, size: c_int)

Calls C++ function: void QSurfaceFormat::setStencilBufferSize(int size).

Source

pub unsafe fn set_stereo(&self, enable: bool)

Calls C++ function: void QSurfaceFormat::setStereo(bool enable).

Source

pub unsafe fn set_swap_behavior(&self, behavior: SwapBehavior)

Calls C++ function: void QSurfaceFormat::setSwapBehavior(QSurfaceFormat::SwapBehavior behavior).

Source

pub unsafe fn set_swap_interval(&self, interval: c_int)

Calls C++ function: void QSurfaceFormat::setSwapInterval(int interval).

Source

pub unsafe fn set_version(&self, major: c_int, minor: c_int)

Calls C++ function: void QSurfaceFormat::setVersion(int major, int minor).

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn stencil_buffer_size(&self) -> c_int

Calls C++ function: int QSurfaceFormat::stencilBufferSize() const.

Source

pub unsafe fn stereo(&self) -> bool

Calls C++ function: bool QSurfaceFormat::stereo() const.

Source

pub unsafe fn swap_behavior(&self) -> SwapBehavior

Calls C++ function: QSurfaceFormat::SwapBehavior QSurfaceFormat::swapBehavior() const.

Source

pub unsafe fn swap_interval(&self) -> c_int

Calls C++ function: int QSurfaceFormat::swapInterval() const.

Source

pub unsafe fn test_option_q_flags_format_option( &self, opt: QFlags<FormatOption>, ) -> bool

Calls C++ function: bool QSurfaceFormat::testOption(QFlags<QSurfaceFormat::FormatOption> opt) const.

Source

pub unsafe fn test_option_format_option(&self, option: FormatOption) -> bool

Calls C++ function: bool QSurfaceFormat::testOption(QSurfaceFormat::FormatOption option) const.

Source

pub unsafe fn version(&self) -> CppBox<QPairOfIntInt>

Calls C++ function: QPair<int, int> QSurfaceFormat::version() const.

Trait Implementations§

Source§

impl CppDeletable for QSurfaceFormat

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QSurfaceFormat>> for QSurfaceFormat

Source§

fn eq(&self, arg2: &Ref<QSurfaceFormat>) -> bool

Calls C++ function: bool operator==(const QSurfaceFormat& arg1, const QSurfaceFormat& arg2).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.