Skip to main content

QKeySequence

Struct QKeySequence 

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

C++ class: QKeySequence.

Implementations§

Source§

impl QKeySequence

Source

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

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

Source

pub unsafe fn count(&self) -> c_int

Calls C++ function: int QKeySequence::count() const.

Source

pub unsafe fn from_string_2a( str: impl CastInto<Ref<QString>>, format: SequenceFormat, ) -> CppBox<QKeySequence>

Calls C++ function: static QKeySequence QKeySequence::fromString(const QString& str, QKeySequence::SequenceFormat format = …).

Source

pub unsafe fn from_string_1a( str: impl CastInto<Ref<QString>>, ) -> CppBox<QKeySequence>

Calls C++ function: static QKeySequence QKeySequence::fromString(const QString& str).

Source

pub unsafe fn index(&self, i: c_uint) -> c_int

Calls C++ function: int QKeySequence::operator[](unsigned int i) const.

Source

pub unsafe fn is_detached(&self) -> bool

Calls C++ function: bool QKeySequence::isDetached() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QKeySequence::isEmpty() const.

Source

pub unsafe fn key_bindings(key: StandardKey) -> CppBox<QListOfQKeySequence>

Calls C++ function: static QList<QKeySequence> QKeySequence::keyBindings(QKeySequence::StandardKey key).

Source

pub unsafe fn list_from_string_2a( str: impl CastInto<Ref<QString>>, format: SequenceFormat, ) -> CppBox<QListOfQKeySequence>

Calls C++ function: static QList<QKeySequence> QKeySequence::listFromString(const QString& str, QKeySequence::SequenceFormat format = …).

Source

pub unsafe fn list_from_string_1a( str: impl CastInto<Ref<QString>>, ) -> CppBox<QListOfQKeySequence>

Calls C++ function: static QList<QKeySequence> QKeySequence::listFromString(const QString& str).

Source

pub unsafe fn list_to_string_2a( list: impl CastInto<Ref<QListOfQKeySequence>>, format: SequenceFormat, ) -> CppBox<QString>

Calls C++ function: static QString QKeySequence::listToString(const QList<QKeySequence>& list, QKeySequence::SequenceFormat format = …).

Source

pub unsafe fn list_to_string_1a( list: impl CastInto<Ref<QListOfQKeySequence>>, ) -> CppBox<QString>

Calls C++ function: static QString QKeySequence::listToString(const QList<QKeySequence>& list).

Source

pub unsafe fn matches( &self, seq: impl CastInto<Ref<QKeySequence>>, ) -> SequenceMatch

Calls C++ function: QKeySequence::SequenceMatch QKeySequence::matches(const QKeySequence& seq) const.

Source

pub unsafe fn mnemonic( text: impl CastInto<Ref<QString>>, ) -> CppBox<QKeySequence>

Calls C++ function: static QKeySequence QKeySequence::mnemonic(const QString& text).

Source

pub unsafe fn new() -> CppBox<QKeySequence>

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

Source

pub unsafe fn from_q_string_sequence_format( key: impl CastInto<Ref<QString>>, format: SequenceFormat, ) -> CppBox<QKeySequence>

Calls C++ function: [constructor] void QKeySequence::QKeySequence(const QString& key, QKeySequence::SequenceFormat format = …).

Source

pub unsafe fn from_4_int( k1: c_int, k2: c_int, k3: c_int, k4: c_int, ) -> CppBox<QKeySequence>

Calls C++ function: [constructor] void QKeySequence::QKeySequence(int k1, int k2 = …, int k3 = …, int k4 = …).

Source

pub unsafe fn from_standard_key(key: StandardKey) -> CppBox<QKeySequence>

Calls C++ function: [constructor] void QKeySequence::QKeySequence(QKeySequence::StandardKey key).

Source

pub unsafe fn from_q_string( key: impl CastInto<Ref<QString>>, ) -> CppBox<QKeySequence>

Calls C++ function: [constructor] void QKeySequence::QKeySequence(const QString& key).

Source

pub unsafe fn from_3_int( k1: c_int, k2: c_int, k3: c_int, ) -> CppBox<QKeySequence>

Calls C++ function: [constructor] void QKeySequence::QKeySequence(int k1, int k2 = …, int k3 = …).

Source

pub unsafe fn from_2_int(k1: c_int, k2: c_int) -> CppBox<QKeySequence>

Calls C++ function: [constructor] void QKeySequence::QKeySequence(int k1, int k2 = …).

Source

pub unsafe fn from_int(k1: c_int) -> CppBox<QKeySequence>

Calls C++ function: [constructor] void QKeySequence::QKeySequence(int k1).

Source

pub unsafe fn new_copy( ks: impl CastInto<Ref<QKeySequence>>, ) -> CppBox<QKeySequence>

Calls C++ function: [constructor] void QKeySequence::QKeySequence(const QKeySequence& ks).

Source

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

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QKeySequence>>)

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

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QKeySequence::operator QVariant() const.

Source

pub unsafe fn to_string_1a(&self, format: SequenceFormat) -> CppBox<QString>

Calls C++ function: QString QKeySequence::toString(QKeySequence::SequenceFormat format = …) const.

Source

pub unsafe fn to_string_0a(&self) -> CppBox<QString>

Calls C++ function: QString QKeySequence::toString() const.

Trait Implementations§

Source§

impl CppDeletable for QKeySequence

Source§

unsafe fn delete(&self)

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

Source§

impl Ge<Ref<QKeySequence>> for QKeySequence

Source§

unsafe fn ge(&self, other: &Ref<QKeySequence>) -> bool

Calls C++ function: bool QKeySequence::operator>=(const QKeySequence& other) const.

Source§

impl Gt<Ref<QKeySequence>> for QKeySequence

Source§

unsafe fn gt(&self, other: &Ref<QKeySequence>) -> bool

Calls C++ function: bool QKeySequence::operator>(const QKeySequence& other) const.

Source§

impl Le<Ref<QKeySequence>> for QKeySequence

Source§

unsafe fn le(&self, other: &Ref<QKeySequence>) -> bool

Calls C++ function: bool QKeySequence::operator<=(const QKeySequence& other) const.

Source§

impl Lt<Ref<QKeySequence>> for QKeySequence

Source§

unsafe fn lt(&self, ks: &Ref<QKeySequence>) -> bool

Calls C++ function: bool QKeySequence::operator<(const QKeySequence& ks) const.

Source§

impl PartialEq<Ref<QKeySequence>> for QKeySequence

Source§

fn eq(&self, other: &Ref<QKeySequence>) -> bool

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

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.