1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

Add native glium backend

This commit is contained in:
Emil Ernerfeldt
2019-03-12 22:59:55 +01:00
parent 0be9722af5
commit 01862d07ae
6 changed files with 977 additions and 5 deletions

View File

@@ -419,6 +419,20 @@ impl Region {
self.reserve_space_without_padding(indent + size);
}
/// A left-aligned column on the left
pub fn left_column(&mut self, width: f32) -> Region {
Region {
data: self.data.clone(),
style: self.style,
id: self.id,
dir: self.dir,
cursor: self.cursor,
align: Align::Min,
bounding_size: vec2(0.0, 0.0),
available_space: vec2(width, self.available_space.y),
}
}
/// A horizontally centered region of the given width.
pub fn centered_column(&mut self, width: f32, align: Align) -> Region {
Region {