1
0
Fork 0

Add an idea for how the IRunLoop can be integrated

This commit is contained in:
Robbert van der Helm 2022-02-05 19:35:20 +01:00
parent 7e240146b7
commit 9d20ca8106

View file

@ -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
}