Trait DataViewListModelMethods

Source
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§

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.

See C++ wxDataViewListModel::GetAttrByRow()’s documentation.

Source

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.

Source

fn get_count(&self) -> c_uint

Returns the number of items (or rows) in the list.

See C++ wxDataViewListModel::GetCount()’s documentation.

Source

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

Returns the position of given item.

See C++ wxDataViewListModel::GetRow()’s documentation.

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.

See C++ wxDataViewListModel::GetValueByRow()’s documentation.

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.

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.

Implementors§