ui/app: introduce DrawEvent.Insets and add Android implementation

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-07 23:30:38 +02:00
parent 491d81e0c8
commit c884b7d4f0
6 changed files with 35 additions and 3 deletions
+4
View File
@@ -17,6 +17,10 @@ type Event interface {
type DrawEvent struct {
Config ui.Config
Size image.Point
// Insets is the window space taken up by
// system decoration such as translucent
// system bars and software keyboards.
Insets image.Rectangle
// Whether this draw is system generated
// and needs a complete frame before
// proceeding.