Skip to main content

GenericRustProxy

Struct GenericRustProxy 

Source
pub struct GenericRustProxy<CppProxy: QCppProxy, Adapter: ?Sized> { /* private fields */ }

Implementations§

Source§

impl<CppProxy, Adapter> GenericRustProxy<CppProxy, Adapter>
where CppProxy: QCppProxy<ProxyRustType = Self>, Adapter: ?Sized + DispatchMetaCall,

Source

pub fn drop_self(self_ptr: *mut Self)

Drops the instance pointed to by self_ptr.

Intended to be called exclusively from the paired C++ destructor.

self_ptr must be a pointer previously returned by QRustProxy::new. It must not have been dropped already.

Source

pub fn invoke_slot( &self, slot_id: u32, inputs: &[*const u8], outputs: &[*mut u8], )

Source

pub fn invoke_slot_mut( &mut self, slot_id: u32, inputs: &[*const u8], outputs: &[*mut u8], )

Source

pub fn read_property(&self, prop_id: u32) -> QVariant

Source

pub fn write_property(&mut self, prop_id: u32, value: &QVariant)

Source§

impl GenericRustProxy<QAbstractItemModelProxyCpp, dyn QAbstractItemModelAdapter>

Source

pub fn index(&self, row: i32, column: i32, parent: &QModelIndex) -> QModelIndex

Source

pub fn parent(&self, child: &QModelIndex) -> QModelIndex

Source

pub fn row_count(&self, parent: &QModelIndex) -> i32

Source

pub fn column_count(&self, parent: &QModelIndex) -> i32

Source

pub fn data(&self, index: &QModelIndex, role: i32) -> QVariant

Source

pub fn role_names(&self) -> QHash<i32, QByteArray>

Source

pub fn set_data( &mut self, index: &QModelIndex, value: &QVariant, role: i32, ) -> bool

Source

pub fn remove_rows( &mut self, first: i32, count: i32, parent: &QModelIndex, ) -> bool

Source

pub fn sibling(&self, row: i32, column: i32, idx: &QModelIndex) -> QModelIndex

Source

pub fn base_role_names( &self, reference: &dyn QAbstractItemModelAdapter, ) -> QHash<i32, QByteArray>

Source

pub fn base_set_data( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, index: &QModelIndex, value: &QVariant, role: i32, ) -> bool

Source

pub fn base_remove_rows( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, first: i32, count: i32, parent: &QModelIndex, ) -> bool

Source

pub fn base_sibling( &self, reference: &dyn QAbstractItemModelAdapter, row: i32, column: i32, idx: &QModelIndex, ) -> QModelIndex

Source

pub fn base_data_changed( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, top_left: &QModelIndex, bottom_right: &QModelIndex, )

Source

pub fn base_begin_insert_columns( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_insert_columns( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, )

Source

pub fn base_begin_insert_rows( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_insert_rows( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, )

Source

pub fn base_begin_move_columns( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, )

Source

pub fn base_end_move_columns( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, )

Source

pub fn base_begin_move_rows( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, )

Source

pub fn base_end_move_rows( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, )

Source

pub fn base_begin_remove_columns( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_remove_columns( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, )

Source

pub fn base_begin_remove_rows( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_remove_rows( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, )

Source

pub fn base_begin_reset_model( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, )

Source

pub fn base_end_reset_model( &mut self, mut_ref: &mut dyn QAbstractItemModelAdapter, )

Source

pub fn base_create_index( &self, reference: &dyn QAbstractItemModelAdapter, row: i32, column: i32, ptr: usize, ) -> QModelIndex

Source§

impl GenericRustProxy<QListModelProxyCpp, dyn QListModelAdapter>

Source

pub fn index(&self, row: i32, column: i32, parent: &QModelIndex) -> QModelIndex

Source

pub fn row_count(&self, parent: &QModelIndex) -> i32

Source

pub fn data(&self, index: &QModelIndex, role: i32) -> QVariant

Source

pub fn role_names(&self) -> QHash<i32, QByteArray>

Source

pub fn set_data( &mut self, index: &QModelIndex, value: &QVariant, role: i32, ) -> bool

Source

pub fn remove_rows( &mut self, first: i32, count: i32, parent: &QModelIndex, ) -> bool

Source

pub fn sibling(&self, row: i32, column: i32, idx: &QModelIndex) -> QModelIndex

Source

pub fn base_index( &self, reference: &dyn QListModelAdapter, row: i32, column: i32, parent: &QModelIndex, ) -> QModelIndex

Source

pub fn base_role_names( &self, reference: &dyn QListModelAdapter, ) -> QHash<i32, QByteArray>

Source

pub fn base_set_data( &mut self, mut_ref: &mut dyn QListModelAdapter, index: &QModelIndex, value: &QVariant, role: i32, ) -> bool

Source

pub fn base_remove_rows( &mut self, mut_ref: &mut dyn QListModelAdapter, first: i32, count: i32, parent: &QModelIndex, ) -> bool

Source

pub fn base_sibling( &self, reference: &dyn QListModelAdapter, row: i32, column: i32, idx: &QModelIndex, ) -> QModelIndex

Source

pub fn base_data_changed( &mut self, mut_ref: &mut dyn QListModelAdapter, top_left: &QModelIndex, bottom_right: &QModelIndex, )

Source

pub fn base_begin_insert_rows( &mut self, mut_ref: &mut dyn QListModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_insert_rows(&mut self, mut_ref: &mut dyn QListModelAdapter)

Source

pub fn base_begin_move_rows( &mut self, mut_ref: &mut dyn QListModelAdapter, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, )

Source

pub fn base_end_move_rows(&mut self, mut_ref: &mut dyn QListModelAdapter)

Source

pub fn base_begin_remove_rows( &mut self, mut_ref: &mut dyn QListModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_remove_rows(&mut self, mut_ref: &mut dyn QListModelAdapter)

Source

pub fn base_begin_reset_model(&mut self, mut_ref: &mut dyn QListModelAdapter)

Source

pub fn base_end_reset_model(&mut self, mut_ref: &mut dyn QListModelAdapter)

Source§

impl GenericRustProxy<QParserStatusProxyCpp, dyn QParserStatusAdapter>

Source

pub fn class_begin(&mut self)

Source

pub fn component_complete(&mut self)

Source§

impl GenericRustProxy<QTableModelProxyCpp, dyn QTableModelAdapter>

Source

pub fn index(&self, row: i32, column: i32, parent: &QModelIndex) -> QModelIndex

Source

pub fn parent(&self, child: &QModelIndex) -> QModelIndex

Source

pub fn row_count(&self, parent: &QModelIndex) -> i32

Source

pub fn column_count(&self, parent: &QModelIndex) -> i32

Source

pub fn data(&self, index: &QModelIndex, role: i32) -> QVariant

Source

pub fn role_names(&self) -> QHash<i32, QByteArray>

Source

pub fn set_data( &mut self, index: &QModelIndex, value: &QVariant, role: i32, ) -> bool

Source

pub fn remove_columns( &mut self, first: i32, count: i32, parent: &QModelIndex, ) -> bool

Source

pub fn remove_rows( &mut self, first: i32, count: i32, parent: &QModelIndex, ) -> bool

Source

pub fn sibling(&self, row: i32, column: i32, idx: &QModelIndex) -> QModelIndex

Source

pub fn base_role_names( &self, reference: &dyn QTableModelAdapter, ) -> QHash<i32, QByteArray>

Source

pub fn base_set_data( &mut self, mut_ref: &mut dyn QTableModelAdapter, index: &QModelIndex, value: &QVariant, role: i32, ) -> bool

Source

pub fn base_remove_columns( &mut self, mut_ref: &mut dyn QTableModelAdapter, first: i32, count: i32, parent: &QModelIndex, ) -> bool

Source

pub fn base_remove_rows( &mut self, mut_ref: &mut dyn QTableModelAdapter, first: i32, count: i32, parent: &QModelIndex, ) -> bool

Source

pub fn base_sibling( &self, reference: &dyn QTableModelAdapter, row: i32, column: i32, idx: &QModelIndex, ) -> QModelIndex

Source

pub fn base_data_changed( &mut self, mut_ref: &mut dyn QTableModelAdapter, top_left: &QModelIndex, bottom_right: &QModelIndex, )

Source

pub fn base_begin_insert_columns( &mut self, mut_ref: &mut dyn QTableModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_insert_columns(&mut self, mut_ref: &mut dyn QTableModelAdapter)

Source

pub fn base_begin_insert_rows( &mut self, mut_ref: &mut dyn QTableModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_insert_rows(&mut self, mut_ref: &mut dyn QTableModelAdapter)

Source

pub fn base_begin_move_columns( &mut self, mut_ref: &mut dyn QTableModelAdapter, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, )

Source

pub fn base_end_move_columns(&mut self, mut_ref: &mut dyn QTableModelAdapter)

Source

pub fn base_begin_move_rows( &mut self, mut_ref: &mut dyn QTableModelAdapter, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, )

Source

pub fn base_end_move_rows(&mut self, mut_ref: &mut dyn QTableModelAdapter)

Source

pub fn base_begin_remove_columns( &mut self, mut_ref: &mut dyn QTableModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_remove_columns(&mut self, mut_ref: &mut dyn QTableModelAdapter)

Source

pub fn base_begin_remove_rows( &mut self, mut_ref: &mut dyn QTableModelAdapter, parent: &QModelIndex, first: i32, last: i32, )

Source

pub fn base_end_remove_rows(&mut self, mut_ref: &mut dyn QTableModelAdapter)

Source

pub fn base_begin_reset_model(&mut self, mut_ref: &mut dyn QTableModelAdapter)

Source

pub fn base_end_reset_model(&mut self, mut_ref: &mut dyn QTableModelAdapter)

Source

pub fn base_create_index( &self, reference: &dyn QTableModelAdapter, row: i32, column: i32, ptr: usize, ) -> QModelIndex

Trait Implementations§

Source§

impl<CppProxy, Adapter> QRustProxy for GenericRustProxy<CppProxy, Adapter>
where CppProxy: QCppProxy<ProxyRustType = Self>, Adapter: ?Sized + DispatchMetaCall,

Source§

type ProxyCppType = CppProxy

Source§

type AdapterType = Adapter

Source§

fn new( rust_obj: &Rc<RefCell<Adapter>>, metatype: &'static DynamicMetaObjectData, construct: ConstructionMode, on_drop: Box<dyn FnOnce() + 'static>, ) -> *mut Self

Creates a new instance of this struct on the heap and returns a raw pointer to it. Read more
Source§

fn get_cpp_proxy(&self) -> *const CppProxy

Source§

fn get_cpp_proxy_mut(&self) -> *mut CppProxy

Source§

fn emit_signal( &self, mut_ref: &mut Adapter, signal_name: &str, argv: &[*const u8], )

Source§

fn with_rust_ref<R, F: FnOnce(&Adapter) -> R>(&self, f: F) -> R

Source§

fn with_rust_ref_mut<R, F: FnOnce(&mut Adapter) -> R>(&self, f: F) -> R

Source§

fn get_rust_object_rc(&self) -> Option<Rc<RefCell<Adapter>>>

Returns an owned handle to the Rust object behind this proxy, or None if it has already been dropped (the proxy may outlive a weakly-held object). The handle is typed as the adapter trait object; recovering the concrete type requires a checked reinterpret (see QObjectHolder::qobject_to_rc_ref_cell).

Auto Trait Implementations§

§

impl<CppProxy, Adapter> !Freeze for GenericRustProxy<CppProxy, Adapter>

§

impl<CppProxy, Adapter> !RefUnwindSafe for GenericRustProxy<CppProxy, Adapter>

§

impl<CppProxy, Adapter> !Send for GenericRustProxy<CppProxy, Adapter>

§

impl<CppProxy, Adapter> !Sync for GenericRustProxy<CppProxy, Adapter>

§

impl<CppProxy, Adapter> Unpin for GenericRustProxy<CppProxy, Adapter>
where Adapter: ?Sized,

§

impl<CppProxy, Adapter> UnsafeUnpin for GenericRustProxy<CppProxy, Adapter>
where Adapter: ?Sized,

§

impl<CppProxy, Adapter> !UnwindSafe for GenericRustProxy<CppProxy, Adapter>

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