[][src]Struct qt_3d_input::QInputSettings

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

QInputSettings class holds the pointer to an input event source object.

C++ class: Qt3DInput::QInputSettings.

C++ documentation:

QInputSettings class holds the pointer to an input event source object.

The QInputSettings component must be set as a component of the scene root entity. It stores a pointer to the object that acts as the source of input events to be handled by various input classes. For example, a QWindow instance can be an event source.

Methods

impl QInputSettings[src]

pub fn slot_set_event_source(&self) -> Receiver<(*mut QObject,)>[src]

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow instance.

Returns a built-in Qt slot Qt3DInput::QInputSettings::setEventSource that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow instance.

Access functions:

QObject *eventSource() const
void setEventSource(QObject *eventSource)

Notifier signal:

void eventSourceChanged(QObject *)

pub fn event_source_changed(&self) -> Signal<(*mut QObject,)>[src]

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow instance.

Returns a built-in Qt signal Qt3DInput::QInputSettings::eventSourceChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow instance.

Access functions:

QObject *eventSource() const
void setEventSource(QObject *eventSource)

Notifier signal:

void eventSourceChanged(QObject *)

pub unsafe fn event_source(&self) -> QPtr<QObject>[src]

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow instance.

Calls C++ function: QObject* Qt3DInput::QInputSettings::eventSource() const.

C++ documentation:

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow instance.

Access functions:

QObject *eventSource() const
void setEventSource(QObject *eventSource)

Notifier signal:

void eventSourceChanged(QObject *)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DInput::QInputSettings::metaObject() const.

pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QInputSettings>[src]

Default constructs an instance of QInputSettings.

Calls C++ function: [constructor] void Qt3DInput::QInputSettings::QInputSettings(Qt3DCore::QNode* parent = …).

C++ documentation:

Default constructs an instance of QInputSettings.

pub unsafe fn new_0a() -> QBox<QInputSettings>[src]

QInputSettings class holds the pointer to an input event source object.

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

C++ documentation:

QInputSettings class holds the pointer to an input event source object.

The QInputSettings component must be set as a component of the scene root entity. It stores a pointer to the object that acts as the source of input events to be handled by various input classes. For example, a QWindow instance can be an event source.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DInput::QInputSettings::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* Qt3DInput::QInputSettings::qt_metacast(const char* arg1).

pub unsafe fn set_event_source(&self, event_source: impl CastInto<Ptr<QObject>>)[src]

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow instance.

Calls C++ function: [slot] void Qt3DInput::QInputSettings::setEventSource(QObject* eventSource).

C++ documentation:

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow instance.

Access functions:

QObject *eventSource() const
void setEventSource(QObject *eventSource)

Notifier signal:

void eventSourceChanged(QObject *)

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]

Calls C++ function: static QString Qt3DInput::QInputSettings::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]

Calls C++ function: static QString Qt3DInput::QInputSettings::trUtf8(const char* s, const char* c, int n).

Trait Implementations

impl CppDeletable for QInputSettings[src]

unsafe fn delete(&self)[src]

Destroys the instance of QInputSettings.

Calls C++ function: virtual [destructor] void Qt3DInput::QInputSettings::~QInputSettings().

C++ documentation:

Destroys the instance of QInputSettings.

impl Deref for QInputSettings[src]

type Target = QComponent

The resulting type after dereferencing.

fn deref(&self) -> &QComponent[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QInputSettings* ptr).

impl DynamicCast<QInputSettings> for QComponent[src]

unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QInputSettings>[src]

Calls C++ function: Qt3DInput::QInputSettings* dynamic_cast<Qt3DInput::QInputSettings*>(Qt3DCore::QComponent* ptr).

impl DynamicCast<QInputSettings> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QInputSettings>[src]

Calls C++ function: Qt3DInput::QInputSettings* dynamic_cast<Qt3DInput::QInputSettings*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QInputSettings> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QInputSettings>[src]

Calls C++ function: Qt3DInput::QInputSettings* dynamic_cast<Qt3DInput::QInputSettings*>(QObject* ptr).

impl StaticDowncast<QInputSettings> for QComponent[src]

unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QInputSettings>[src]

Calls C++ function: Qt3DInput::QInputSettings* static_cast<Qt3DInput::QInputSettings*>(Qt3DCore::QComponent* ptr).

impl StaticDowncast<QInputSettings> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QInputSettings>[src]

Calls C++ function: Qt3DInput::QInputSettings* static_cast<Qt3DInput::QInputSettings*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QInputSettings> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QInputSettings>[src]

Calls C++ function: Qt3DInput::QInputSettings* static_cast<Qt3DInput::QInputSettings*>(QObject* ptr).

impl StaticUpcast<QComponent> for QInputSettings[src]

unsafe fn static_upcast(ptr: Ptr<QInputSettings>) -> Ptr<QComponent>[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QInputSettings* ptr).

impl StaticUpcast<QNode> for QInputSettings[src]

unsafe fn static_upcast(ptr: Ptr<QInputSettings>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QInputSettings* ptr).

impl StaticUpcast<QObject> for QInputSettings[src]

unsafe fn static_upcast(ptr: Ptr<QInputSettings>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DInput::QInputSettings* ptr).

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.