Implement flexbox reordering

Add style property for order and implement reordering by this property
in flex flow. Based on previous work by @zentner-kyle.
This commit is contained in:
Daniel Robertson 2016-04-04 21:37:49 -04:00 committed by Daniel Robertson
parent b214205ba9
commit 3580f91291
10 changed files with 96 additions and 69 deletions

View file

@ -64,6 +64,12 @@ impl FlowList {
}
}
/// Provide a forward iterator with FlowRef items
#[inline]
pub fn iter_flow_ref_mut<'a>(&'a mut self) -> linked_list::IterMut<'a, FlowRef> {
self.flows.iter_mut()
}
/// O(1)
#[inline]
pub fn is_empty(&self) -> bool {