Rework so project has a license, more natural crate structure, dedicated examples folder, less confusing lib heirarchy

This commit is contained in:
Ryan McGrath 2018-06-20 18:07:26 -04:00
parent 0c503a549a
commit 994d31ac3f
No known key found for this signature in database
GPG key ID: 811674B62B666830
21 changed files with 85 additions and 115 deletions

23
src/listview/row.rs Normal file
View 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
}