Struct DataViewIndexListModelIsOwned

Source
pub struct DataViewIndexListModelIsOwned<const OWNED: bool>(/* private fields */);
Expand description

wxDataViewIndexListModel is a specialized data model which lets you address an item by its position (row) rather than its wxDataViewItem (which you can obtain from this class).

Implementations§

Source§

impl<const OWNED: bool> DataViewIndexListModelIsOwned<OWNED>

Source

pub fn none() -> Option<&'static Self>

Trait Implementations§

Source§

impl Clone for DataViewIndexListModelIsOwned<false>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const OWNED: bool> DataViewIndexListModelMethods for DataViewIndexListModelIsOwned<OWNED>

Source§

fn get_item(&self, row: c_uint) -> DataViewItem

Returns the wxDataViewItem at the given row. Read more
Source§

fn reset(&self, new_size: c_uint)

Call this after if the data has to be read again from the model. Read more
Source§

fn row_appended(&self)

Call this after a row has been appended to the model. Read more
Source§

fn row_changed(&self, row: c_uint)

Call this after a row has been changed. Read more
Source§

fn row_deleted(&self, row: c_uint)

Call this after a row has been deleted. Read more
Source§

fn row_inserted(&self, before: c_uint)

Call this after a row has been inserted at the given position. Read more
Source§

fn row_prepended(&self)

Call this after a row has been prepended to the model. Read more
Source§

fn row_value_changed(&self, row: c_uint, col: c_uint)

Call this after a value has been changed. Read more
Source§

fn rows_deleted<A: ArrayIntMethods>(&self, rows: &A)

Call this after rows have been deleted. Read more
Source§

impl<const OWNED: bool> DataViewListModelMethods for DataViewIndexListModelIsOwned<OWNED>

Source§

fn get_attr_by_row<D: DataViewItemAttrMethods>( &self, row: c_uint, col: c_uint, attr: &D, ) -> bool

Override this to indicate that the row has special font attributes. Read more
Source§

fn is_enabled_by_row(&self, row: c_uint, col: c_uint) -> bool

Override this if you want to disable specific items. Read more
Source§

fn get_count(&self) -> c_uint

Returns the number of items (or rows) in the list. Read more
Source§

fn get_row<D: DataViewItemMethods>(&self, item: &D) -> c_uint

Returns the position of given item. Read more
Source§

fn get_value_by_row(&self, variant: *mut c_void, row: c_uint, col: c_uint)

Override this to allow getting values from the model. Read more
Source§

fn set_value_by_row( &self, variant: *const c_void, row: c_uint, col: c_uint, ) -> bool

Called in order to set a value in the model. Read more
Source§

impl<const OWNED: bool> DataViewModelMethods for DataViewIndexListModelIsOwned<OWNED>

Source§

fn add_notifier<D: DataViewModelNotifierMethods>(&self, notifier: Option<&D>)

Adds a wxDataViewModelNotifier to the model. Read more
Source§

fn change_value<D: DataViewItemMethods>( &self, variant: *const c_void, item: &D, col: c_uint, ) -> bool

Change the value of the given item and update the control to reflect it. Read more
Source§

fn cleared(&self) -> bool

Called to inform the model that all of its data has been changed. Read more
Source§

fn compare<D: DataViewItemMethods, D2: DataViewItemMethods>( &self, item1: &D, item2: &D2, column: c_uint, ascending: bool, ) -> c_int

The compare function to be used by the control. Read more
Source§

fn get_attr<D: DataViewItemMethods, D2: DataViewItemAttrMethods>( &self, item: &D, col: c_uint, attr: &D2, ) -> bool

Override this to indicate that the item has special font attributes. Read more
Source§

fn is_enabled<D: DataViewItemMethods>(&self, item: &D, col: c_uint) -> bool

Override this to indicate that the item should be disabled. Read more
Source§

fn get_children<D: DataViewItemMethods>( &self, item: &D, children: *mut c_void, ) -> c_uint

Override this so the control can query the child items of an item. Read more
Source§

fn get_parent<D: DataViewItemMethods>(&self, item: &D) -> DataViewItem

Override this to indicate which wxDataViewItem representing the parent of item or an invalid wxDataViewItem if the root item is the parent item. Read more
Source§

fn get_value<D: DataViewItemMethods>( &self, variant: *mut c_void, item: &D, col: c_uint, )

Override this to indicate the value of item. Read more
Source§

fn has_container_columns<D: DataViewItemMethods>(&self, item: &D) -> bool

Override this method to indicate if a container item merely acts as a headline (or for categorisation) or if it also acts a normal item with entries for further columns. Read more
Source§

fn has_default_compare(&self) -> bool

Override this to indicate that the model provides a default compare function that the control should use if no wxDataViewColumn has been chosen for sorting. Read more
Source§

fn is_container<D: DataViewItemMethods>(&self, item: &D) -> bool

Override this to indicate if item is a container, i.e. if it can have child items. Read more
Source§

fn item_added<D: DataViewItemMethods, D2: DataViewItemMethods>( &self, parent: &D, item: &D2, ) -> bool

Call this to inform the model that an item has been added to the data. Read more
Source§

fn item_changed<D: DataViewItemMethods>(&self, item: &D) -> bool

Call this to inform the model that an item has changed. Read more
Source§

fn item_deleted<D: DataViewItemMethods, D2: DataViewItemMethods>( &self, parent: &D, item: &D2, ) -> bool

Call this to inform the model that an item has been deleted from the data. Read more
Source§

fn items_added<D: DataViewItemMethods>( &self, parent: &D, items: *const c_void, ) -> bool

Call this to inform the model that several items have been added to the data. Read more
Source§

fn items_changed(&self, items: *const c_void) -> bool

Call this to inform the model that several items have changed. Read more
Source§

fn items_deleted<D: DataViewItemMethods>( &self, parent: &D, items: *const c_void, ) -> bool

Call this to inform the model that several items have been deleted. Read more
Source§

fn remove_notifier<D: DataViewModelNotifierMethods>(&self, notifier: Option<&D>)

Remove the notifier from the list of notifiers. Read more
Source§

fn resort(&self)

Call this to initiate a resort after the sort function has been changed. Read more
Source§

fn set_value<D: DataViewItemMethods>( &self, variant: *const c_void, item: &D, col: c_uint, ) -> bool

This gets called in order to set a value in the data model. Read more
Source§

fn value_changed<D: DataViewItemMethods>(&self, item: &D, col: c_uint) -> bool

Call this to inform this model that a value in the model has been changed. Read more
Source§

fn is_list_model(&self) -> bool

Source§

fn is_virtual_list_model(&self) -> bool

Source§

impl<const OWNED: bool> Drop for DataViewIndexListModelIsOwned<OWNED>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<const OWNED: bool> From<DataViewIndexListModelIsOwned<OWNED>> for DataViewListModelIsOwned<OWNED>

Source§

fn from(o: DataViewIndexListModelIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> From<DataViewIndexListModelIsOwned<OWNED>> for DataViewModelIsOwned<OWNED>

Source§

fn from(o: DataViewIndexListModelIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> From<DataViewIndexListModelIsOwned<OWNED>> for RefCounterIsOwned<OWNED>

Source§

fn from(o: DataViewIndexListModelIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> From<DataViewListStoreIsOwned<OWNED>> for DataViewIndexListModelIsOwned<OWNED>

Source§

fn from(o: DataViewListStoreIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> RefCounterMethods for DataViewIndexListModelIsOwned<OWNED>

Source§

fn dec_ref(&self)

Decrements the reference count associated with this shared data and, if it reaches zero, destroys this instance of wxRefCounter releasing its memory. Read more
Source§

fn get_ref_count(&self) -> i32

Returns the reference count associated with this shared data. Read more
Source§

fn inc_ref(&self)

Increments the reference count associated with this shared data. Read more
Source§

impl<const OWNED: bool> WxRustMethods for DataViewIndexListModelIsOwned<OWNED>

Source§

type Unowned = DataViewIndexListModelIsOwned<false>

Source§

unsafe fn as_ptr(&self) -> *mut c_void

Source§

unsafe fn from_ptr(ptr: *mut c_void) -> Self

Source§

unsafe fn from_unowned_ptr(ptr: *mut c_void) -> Self::Unowned

Source§

unsafe fn with_ptr<F: Fn(&Self)>(ptr: *mut c_void, closure: F)

Source§

unsafe fn option_from(ptr: *mut c_void) -> Option<Self::Unowned>
where Self: Sized,

Auto Trait Implementations§

§

impl<const OWNED: bool> Freeze for DataViewIndexListModelIsOwned<OWNED>

§

impl<const OWNED: bool> RefUnwindSafe for DataViewIndexListModelIsOwned<OWNED>

§

impl<const OWNED: bool> !Send for DataViewIndexListModelIsOwned<OWNED>

§

impl<const OWNED: bool> !Sync for DataViewIndexListModelIsOwned<OWNED>

§

impl<const OWNED: bool> Unpin for DataViewIndexListModelIsOwned<OWNED>

§

impl<const OWNED: bool> UnwindSafe for DataViewIndexListModelIsOwned<OWNED>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.