Rework so project has a license, more natural crate structure, dedicated examples folder, less confusing lib heirarchy
This commit is contained in:
parent
0c503a549a
commit
994d31ac3f
21 changed files with 85 additions and 115 deletions
23
src/listview/row.rs
Normal file
23
src/listview/row.rs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
//! row.rs
|
||||
//!
|
||||
//! A default implementation for a TableView row, which... well, depending
|
||||
//! on the platform and/or environment, requires a few different things. This
|
||||
//! ensures that we at least have the following:
|
||||
//!
|
||||
//! - Properly flipped coordinates, because it's {CURRENT_YEAR} and who
|
||||
//! the hell judges from the bottom left. Confuses all newcomers.
|
||||
//!
|
||||
//! @author Ryan McGrath <ryan@rymc.io>
|
||||
//! @created 05/30/2018
|
||||
|
||||
use cocoa::base::{id};
|
||||
|
||||
pub trait TableViewUI {
|
||||
fn layout(&self, view: &TableViewRow);
|
||||
fn update(&self, view: &TableViewRow);
|
||||
}
|
||||
|
||||
pub struct TableViewRow {
|
||||
pub row: usize,
|
||||
pub view: id
|
||||
}
|
||||
Reference in a new issue