[−][src]Struct qt_3d_render::QColorMask
Allows specifying which color components should be written to the currently bound frame buffer.
C++ class: Qt3DRender::QColorMask
.
Allows specifying which color components should be written to the currently bound frame buffer.
By default, the property for each color component (red, green, blue, alpha) is set to true
which means they will be written to the frame buffer. Setting any of the color component to false
will prevent it from being written into the frame buffer.
Methods
impl QColorMask
[src]
pub fn slot_set_red_masked(&self) -> Receiver<(bool,)>
[src]
Holds whether the red color component should be written to the frame buffer.
Returns a built-in Qt slot Qt3DRender::QColorMask::setRedMasked
that can be passed to qt_core::Signal::connect
.
Holds whether the red color component should be written to the frame buffer.
Access functions:
bool | isRedMasked() const |
void | setRedMasked(bool redMasked) |
Notifier signal:
void | redMaskedChanged(bool redMasked) |
pub fn slot_set_green_masked(&self) -> Receiver<(bool,)>
[src]
Holds whether the green color component should be written to the frame buffer.
Returns a built-in Qt slot Qt3DRender::QColorMask::setGreenMasked
that can be passed to qt_core::Signal::connect
.
Holds whether the green color component should be written to the frame buffer.
Access functions:
bool | isGreenMasked() const |
void | setGreenMasked(bool greenMasked) |
Notifier signal:
void | greenMaskedChanged(bool greenMasked) |
pub fn slot_set_blue_masked(&self) -> Receiver<(bool,)>
[src]
Holds whether the blue color component should be written to the frame buffer.
Returns a built-in Qt slot Qt3DRender::QColorMask::setBlueMasked
that can be passed to qt_core::Signal::connect
.
Holds whether the blue color component should be written to the frame buffer.
Access functions:
bool | isBlueMasked() const |
void | setBlueMasked(bool blueMasked) |
Notifier signal:
void | blueMaskedChanged(bool blueMasked) |
pub fn slot_set_alpha_masked(&self) -> Receiver<(bool,)>
[src]
Holds whether the alphaMasked component should be written to the frame buffer.
Returns a built-in Qt slot Qt3DRender::QColorMask::setAlphaMasked
that can be passed to qt_core::Signal::connect
.
Holds whether the alphaMasked component should be written to the frame buffer.
Access functions:
bool | isAlphaMasked() const |
void | setAlphaMasked(bool alphaMasked) |
Notifier signal:
void | alphaMaskedChanged(bool alphaMasked) |
pub fn red_masked_changed(&self) -> Signal<(bool,)>
[src]
Holds whether the red color component should be written to the frame buffer.
Returns a built-in Qt signal Qt3DRender::QColorMask::redMaskedChanged
that can be passed to qt_core::Signal::connect
.
Holds whether the red color component should be written to the frame buffer.
Access functions:
bool | isRedMasked() const |
void | setRedMasked(bool redMasked) |
Notifier signal:
void | redMaskedChanged(bool redMasked) |
pub fn green_masked_changed(&self) -> Signal<(bool,)>
[src]
Holds whether the green color component should be written to the frame buffer.
Returns a built-in Qt signal Qt3DRender::QColorMask::greenMaskedChanged
that can be passed to qt_core::Signal::connect
.
Holds whether the green color component should be written to the frame buffer.
Access functions:
bool | isGreenMasked() const |
void | setGreenMasked(bool greenMasked) |
Notifier signal:
void | greenMaskedChanged(bool greenMasked) |
pub fn blue_masked_changed(&self) -> Signal<(bool,)>
[src]
Holds whether the blue color component should be written to the frame buffer.
Returns a built-in Qt signal Qt3DRender::QColorMask::blueMaskedChanged
that can be passed to qt_core::Signal::connect
.
Holds whether the blue color component should be written to the frame buffer.
Access functions:
bool | isBlueMasked() const |
void | setBlueMasked(bool blueMasked) |
Notifier signal:
void | blueMaskedChanged(bool blueMasked) |
pub fn alpha_masked_changed(&self) -> Signal<(bool,)>
[src]
Holds whether the alphaMasked component should be written to the frame buffer.
Returns a built-in Qt signal Qt3DRender::QColorMask::alphaMaskedChanged
that can be passed to qt_core::Signal::connect
.
Holds whether the alphaMasked component should be written to the frame buffer.
Access functions:
bool | isAlphaMasked() const |
void | setAlphaMasked(bool alphaMasked) |
Notifier signal:
void | alphaMaskedChanged(bool alphaMasked) |
pub unsafe fn is_alpha_masked(&self) -> bool
[src]
Holds whether the alphaMasked component should be written to the frame buffer.
Calls C++ function: bool Qt3DRender::QColorMask::isAlphaMasked() const
.
Holds whether the alphaMasked component should be written to the frame buffer.
Access functions:
bool | isAlphaMasked() const |
void | setAlphaMasked(bool alphaMasked) |
Notifier signal:
void | alphaMaskedChanged(bool alphaMasked) |
pub unsafe fn is_blue_masked(&self) -> bool
[src]
Holds whether the blue color component should be written to the frame buffer.
Calls C++ function: bool Qt3DRender::QColorMask::isBlueMasked() const
.
Holds whether the blue color component should be written to the frame buffer.
Access functions:
bool | isBlueMasked() const |
void | setBlueMasked(bool blueMasked) |
Notifier signal:
void | blueMaskedChanged(bool blueMasked) |
pub unsafe fn is_green_masked(&self) -> bool
[src]
Holds whether the green color component should be written to the frame buffer.
Calls C++ function: bool Qt3DRender::QColorMask::isGreenMasked() const
.
Holds whether the green color component should be written to the frame buffer.
Access functions:
bool | isGreenMasked() const |
void | setGreenMasked(bool greenMasked) |
Notifier signal:
void | greenMaskedChanged(bool greenMasked) |
pub unsafe fn is_red_masked(&self) -> bool
[src]
Holds whether the red color component should be written to the frame buffer.
Calls C++ function: bool Qt3DRender::QColorMask::isRedMasked() const
.
Holds whether the red color component should be written to the frame buffer.
Access functions:
bool | isRedMasked() const |
void | setRedMasked(bool redMasked) |
Notifier signal:
void | redMaskedChanged(bool redMasked) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QColorMask::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QColorMask>
[src]
Default constructs an instance of QColorMask.
Calls C++ function: [constructor] void Qt3DRender::QColorMask::QColorMask(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QColorMask.
pub unsafe fn new_0a() -> QBox<QColorMask>
[src]
Allows specifying which color components should be written to the currently bound frame buffer.
Calls C++ function: [constructor] void Qt3DRender::QColorMask::QColorMask()
.
Allows specifying which color components should be written to the currently bound frame buffer.
By default, the property for each color component (red, green, blue, alpha) is set to true
which means they will be written to the frame buffer. Setting any of the color component to false
will prevent it from being written into the frame buffer.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DRender::QColorMask::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* Qt3DRender::QColorMask::qt_metacast(const char* arg1)
.
pub unsafe fn set_alpha_masked(&self, alpha_masked: bool)
[src]
Holds whether the alphaMasked component should be written to the frame buffer.
Calls C++ function: [slot] void Qt3DRender::QColorMask::setAlphaMasked(bool alphaMasked)
.
Holds whether the alphaMasked component should be written to the frame buffer.
Access functions:
bool | isAlphaMasked() const |
void | setAlphaMasked(bool alphaMasked) |
Notifier signal:
void | alphaMaskedChanged(bool alphaMasked) |
pub unsafe fn set_blue_masked(&self, blue_masked: bool)
[src]
Holds whether the blue color component should be written to the frame buffer.
Calls C++ function: [slot] void Qt3DRender::QColorMask::setBlueMasked(bool blueMasked)
.
Holds whether the blue color component should be written to the frame buffer.
Access functions:
bool | isBlueMasked() const |
void | setBlueMasked(bool blueMasked) |
Notifier signal:
void | blueMaskedChanged(bool blueMasked) |
pub unsafe fn set_green_masked(&self, green_masked: bool)
[src]
Holds whether the green color component should be written to the frame buffer.
Calls C++ function: [slot] void Qt3DRender::QColorMask::setGreenMasked(bool greenMasked)
.
Holds whether the green color component should be written to the frame buffer.
Access functions:
bool | isGreenMasked() const |
void | setGreenMasked(bool greenMasked) |
Notifier signal:
void | greenMaskedChanged(bool greenMasked) |
pub unsafe fn set_red_masked(&self, red_masked: bool)
[src]
Holds whether the red color component should be written to the frame buffer.
Calls C++ function: [slot] void Qt3DRender::QColorMask::setRedMasked(bool redMasked)
.
Holds whether the red color component should be written to the frame buffer.
Access functions:
bool | isRedMasked() const |
void | setRedMasked(bool redMasked) |
Notifier signal:
void | redMaskedChanged(bool redMasked) |
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn tr(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QColorMask::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QColorMask::trUtf8(const char* s, const char* c, int n)
.
Methods from Deref<Target = QRenderState>
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QRenderState::metaObject() const
.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DRender::QRenderState::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* Qt3DRender::QRenderState::qt_metacast(const char* arg1)
.
Trait Implementations
impl CppDeletable for QColorMask
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QColorMask::~QColorMask()
.
impl Deref for QColorMask
[src]
type Target = QRenderState
The resulting type after dereferencing.
fn deref(&self) -> &QRenderState
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QColorMask* ptr)
.
impl DynamicCast<QColorMask> for QRenderState
[src]
unsafe fn dynamic_cast(ptr: Ptr<QRenderState>) -> Ptr<QColorMask>
[src]
Calls C++ function: Qt3DRender::QColorMask* dynamic_cast<Qt3DRender::QColorMask*>(Qt3DRender::QRenderState* ptr)
.
impl DynamicCast<QColorMask> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QColorMask>
[src]
Calls C++ function: Qt3DRender::QColorMask* dynamic_cast<Qt3DRender::QColorMask*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QColorMask> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QColorMask>
[src]
Calls C++ function: Qt3DRender::QColorMask* dynamic_cast<Qt3DRender::QColorMask*>(QObject* ptr)
.
impl StaticDowncast<QColorMask> for QRenderState
[src]
unsafe fn static_downcast(ptr: Ptr<QRenderState>) -> Ptr<QColorMask>
[src]
Calls C++ function: Qt3DRender::QColorMask* static_cast<Qt3DRender::QColorMask*>(Qt3DRender::QRenderState* ptr)
.
impl StaticDowncast<QColorMask> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QColorMask>
[src]
Calls C++ function: Qt3DRender::QColorMask* static_cast<Qt3DRender::QColorMask*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QColorMask> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QColorMask>
[src]
Calls C++ function: Qt3DRender::QColorMask* static_cast<Qt3DRender::QColorMask*>(QObject* ptr)
.
impl StaticUpcast<QNode> for QColorMask
[src]
unsafe fn static_upcast(ptr: Ptr<QColorMask>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QColorMask* ptr)
.
impl StaticUpcast<QObject> for QColorMask
[src]
unsafe fn static_upcast(ptr: Ptr<QColorMask>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QColorMask* ptr)
.
impl StaticUpcast<QRenderState> for QColorMask
[src]
unsafe fn static_upcast(ptr: Ptr<QColorMask>) -> Ptr<QRenderState>
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QColorMask* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QColorMask
impl Send for QColorMask
impl Sync for QColorMask
impl Unpin for QColorMask
impl UnwindSafe for QColorMask
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>,