From 9d20ca8106bfeb6ad141fcdd3efe0072aa85b30f Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 5 Feb 2022 19:35:20 +0100 Subject: [PATCH] Add an idea for how the IRunLoop can be integrated --- src/plugin.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugin.rs b/src/plugin.rs index 550c502b..e7843975 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -159,6 +159,10 @@ pub trait Editor: Drop + Send + Sync { /// Return the (currnent) size of the editor in pixels as a `(width, height)` pair. fn size(&self) -> (u32, u32); + // TODO: Reconsider adding a tick function here for the Linux `IRunLoop`. To keep this platform + // and API agnostic, add a way to ask the GuiContext if the wrapper already provides a + // tick function. If it does not, then the Editor implementation must handle this by + // itself. This would also need an associated `PREFERRED_FRAME_RATE` constant. // TODO: Add the things needed for DPI scaling // TODO: Resizing }