Skip to content

Commit

Permalink
Merge pull request #51 from cztomsik/master
Browse files Browse the repository at this point in the history
add Node.mark_dirty()
  • Loading branch information
bschwind authored Jan 16, 2019
2 parents 36c1129 + bd62189 commit 1664c86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ impl Node {
}
}

pub fn mark_dirty(&mut self) {
unsafe {
internal::YGNodeMarkDirty(self.inner_node);
}
}

pub fn apply_styles<'a, I>(&mut self, styles: I)
where
I: IntoIterator<Item = &'a FlexStyle>,
Expand Down

0 comments on commit 1664c86

Please sign in to comment.