pub trait DataViewListModelMethods: DataViewModelMethods {
// Provided methods
fn get_attr_by_row<D: DataViewItemAttrMethods>(
&self,
row: c_uint,
col: c_uint,
attr: &D,
) -> bool { ... }
fn is_enabled_by_row(&self, row: c_uint, col: c_uint) -> bool { ... }
fn get_count(&self) -> c_uint { ... }
fn get_row<D: DataViewItemMethods>(&self, item: &D) -> c_uint { ... }
fn get_value_by_row(&self, variant: *mut c_void, row: c_uint, col: c_uint) { ... }
fn set_value_by_row(
&self,
variant: *const c_void,
row: c_uint,
col: c_uint,
) -> bool { ... }
}
Expand description
This trait represents C++ wxDataViewListModel
class’s methods and inheritance.
See DataViewListModelIsOwned
documentation for the class usage.
Provided Methods§
Sourcefn 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.
See C++ wxDataViewListModel::GetAttrByRow()
’s documentation.
Sourcefn 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.
See C++ wxDataViewListModel::IsEnabledByRow()
’s documentation.
Sourcefn 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.
Sourcefn get_value_by_row(&self, variant: *mut c_void, row: c_uint, col: c_uint)
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.
See C++ wxDataViewListModel::GetValueByRow()
’s documentation.
Sourcefn set_value_by_row(
&self,
variant: *const c_void,
row: c_uint,
col: c_uint,
) -> bool
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.
See C++ wxDataViewListModel::SetValueByRow()
’s documentation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.