pub struct DataViewListModel { /* private fields */ }Expand description
A basic list model for DataViewCtrl that stores data in a 2D array
Implementations§
Source§impl DataViewListModel
impl DataViewListModel
Sourcepub fn append_column(&self, name: &str) -> bool
pub fn append_column(&self, name: &str) -> bool
Add a new column to the model
Sourcepub fn append_row(&self) -> bool
pub fn append_row(&self) -> bool
Add a new row to the model
Trait Implementations§
Source§impl DataViewModel for DataViewListModel
impl DataViewModel for DataViewListModel
Source§fn handle_ptr(&self) -> *mut wxd_DataViewModel_t
fn handle_ptr(&self) -> *mut wxd_DataViewModel_t
Get the handle to the underlying wxDataViewModel
Source§fn get_column_count(&self) -> usize
fn get_column_count(&self) -> usize
Get the number of columns in the model
Source§fn get_row_count(&self) -> usize
fn get_row_count(&self) -> usize
Get the number of rows in the model
Source§fn get_value(&self, _row: usize, _col: usize) -> Variant
fn get_value(&self, _row: usize, _col: usize) -> Variant
Get the value at the specified row and column
Source§fn set_value(&self, row: usize, col: usize, value: &Variant) -> bool
fn set_value(&self, row: usize, col: usize, value: &Variant) -> bool
Set the value at the specified row and column
Source§fn get_attributes(&self, row: usize, col: usize) -> Option<DataViewItemAttr>
fn get_attributes(&self, row: usize, col: usize) -> Option<DataViewItemAttr>
Get display attributes for a cell
Auto Trait Implementations§
impl Freeze for DataViewListModel
impl RefUnwindSafe for DataViewListModel
impl !Send for DataViewListModel
impl !Sync for DataViewListModel
impl Unpin for DataViewListModel
impl UnwindSafe for DataViewListModel
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