1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Highlight window frame when you resize it

This commit is contained in:
Emil Ernerfeldt
2020-05-23 11:28:21 +02:00
parent fac0866f73
commit ee0ad02717
10 changed files with 263 additions and 111 deletions

View File

@@ -497,10 +497,10 @@ impl LayoutExample {
pub fn ui(&mut self, ui: &mut Ui) {
Resize::default()
.default_size(vec2(200.0, 200.0))
.show(ui, |ui| self.contents_ui(ui));
.show(ui, |ui| self.content_ui(ui));
}
pub fn contents_ui(&mut self, ui: &mut Ui) {
pub fn content_ui(&mut self, ui: &mut Ui) {
let layout = Layout::from_dir_align(self.dir, self.align);
if self.reversed {
ui.set_layout(layout.reverse());