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).
DataViewIndexListModel
represents a C++wxDataViewIndexListModel
class instance which your code has ownership,DataViewIndexListModelIsOwned
<false>
represents one which don’t own.- Use
DataViewIndexListModel
’snew()
orBuildable::builder()
(if available) to create an instance of this class. - See C++
wxDataViewIndexListModel
class’s documentation for more details.
Implementations§
Trait Implementations§
Source§impl Clone for DataViewIndexListModelIsOwned<false>
impl Clone for DataViewIndexListModelIsOwned<false>
Source§impl<const OWNED: bool> DataViewIndexListModelMethods for DataViewIndexListModelIsOwned<OWNED>
impl<const OWNED: bool> DataViewIndexListModelMethods for DataViewIndexListModelIsOwned<OWNED>
Source§fn get_item(&self, row: c_uint) -> DataViewItem
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)
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)
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)
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)
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)
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)
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)
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)
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>
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
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
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_row<D: DataViewItemMethods>(&self, item: &D) -> c_uint
fn get_row<D: DataViewItemMethods>(&self, item: &D) -> c_uint
Returns the position of given item. Read more
Source§impl<const OWNED: bool> DataViewModelMethods for DataViewIndexListModelIsOwned<OWNED>
impl<const OWNED: bool> DataViewModelMethods for DataViewIndexListModelIsOwned<OWNED>
Source§fn add_notifier<D: DataViewModelNotifierMethods>(&self, notifier: Option<&D>)
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
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
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
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
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
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
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
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,
)
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
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
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
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
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
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
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
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
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
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>)
fn remove_notifier<D: DataViewModelNotifierMethods>(&self, notifier: Option<&D>)
Remove the notifier from the list of notifiers. Read more
Source§fn resort(&self)
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
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
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
fn is_list_model(&self) -> bool
Source§impl<const OWNED: bool> Drop for DataViewIndexListModelIsOwned<OWNED>
impl<const OWNED: bool> Drop for DataViewIndexListModelIsOwned<OWNED>
Source§impl<const OWNED: bool> From<DataViewIndexListModelIsOwned<OWNED>> for DataViewListModelIsOwned<OWNED>
impl<const OWNED: bool> From<DataViewIndexListModelIsOwned<OWNED>> for DataViewListModelIsOwned<OWNED>
Source§fn from(o: DataViewIndexListModelIsOwned<OWNED>) -> Self
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>
impl<const OWNED: bool> From<DataViewIndexListModelIsOwned<OWNED>> for DataViewModelIsOwned<OWNED>
Source§fn from(o: DataViewIndexListModelIsOwned<OWNED>) -> Self
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>
impl<const OWNED: bool> From<DataViewIndexListModelIsOwned<OWNED>> for RefCounterIsOwned<OWNED>
Source§fn from(o: DataViewIndexListModelIsOwned<OWNED>) -> Self
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>
impl<const OWNED: bool> From<DataViewListStoreIsOwned<OWNED>> for DataViewIndexListModelIsOwned<OWNED>
Source§fn from(o: DataViewListStoreIsOwned<OWNED>) -> Self
fn from(o: DataViewListStoreIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> RefCounterMethods for DataViewIndexListModelIsOwned<OWNED>
impl<const OWNED: bool> RefCounterMethods for DataViewIndexListModelIsOwned<OWNED>
Source§impl<const OWNED: bool> WxRustMethods for DataViewIndexListModelIsOwned<OWNED>
impl<const OWNED: bool> WxRustMethods for DataViewIndexListModelIsOwned<OWNED>
type Unowned = DataViewIndexListModelIsOwned<false>
unsafe fn as_ptr(&self) -> *mut c_void
unsafe fn from_ptr(ptr: *mut c_void) -> Self
unsafe fn from_unowned_ptr(ptr: *mut c_void) -> Self::Unowned
unsafe fn with_ptr<F: Fn(&Self)>(ptr: *mut c_void, closure: F)
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more