Browse Source

Allow mutable borrow of ui.style (#18)

pull/20/head
vkkoskie 4 years ago
committed by GitHub
parent
commit
9ed6a5f5ab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      egui/src/ui.rs

6
egui/src/ui.rs

@ -93,6 +93,12 @@ impl Ui {
&self.style &self.style
} }
/// Mutably borrow internal `Style`.
/// Changes apply to this `Ui` and its subsequent children.
pub fn style_mut(&mut self) -> &mut Style {
&mut self.style
}
pub fn set_style(&mut self, style: Style) { pub fn set_style(&mut self, style: Style) {
self.style = style self.style = style
} }

Loading…
Cancel
Save