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

Refactor: break out Layout to own struct/file

This commit is contained in:
Emil Ernerfeldt
2020-05-13 21:36:15 +02:00
parent b8675ad67f
commit d4204f03c0
10 changed files with 173 additions and 95 deletions

View File

@@ -421,7 +421,7 @@ impl Widget for Separator {
let available_space = ui.available_finite().size();
let extra = self.extra;
let (points, interact) = match ui.direction() {
let (points, interact) = match ui.layout().dir() {
Direction::Horizontal => {
let interact = ui.reserve_space(vec2(self.min_spacing, available_space.y), None);
(