Make it possible to set Glium windows as not resizable. (#69)

This commit is contained in:
Patrik Höglund
2020-12-22 15:20:38 +01:00
committed by GitHub
parent dbab277658
commit bb469bf52f
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -38,6 +38,11 @@ pub trait App {
/// Optional.
fn setup(&mut self, _ctx: &crate::CtxRef) {}
/// Returns true if this app window should be resizable.
fn is_resizable(&self) -> bool {
true
}
/// Called each time the UI needs repainting, which may be many times per second.
/// Put your widgets into a `SidePanel`, `TopPanel`, `CentralPanel`, `Window` or `Area`.
fn ui(&mut self, ctx: &crate::CtxRef, integration_context: &mut IntegrationContext<'_>);