app/internal/wm: change Options fields from values to pointers

Switching to pointer values in Options, including using window manager defaults for size and title, in preparation for updating options on the fly.

Signed-off-by: pierre <pierre.curto@gmail.com>
This commit is contained in:
pierre
2021-04-02 10:22:04 +02:00
committed by Elias Naur
parent 9d7b57f74a
commit 6330caad95
7 changed files with 110 additions and 61 deletions
+10 -5
View File
@@ -14,12 +14,17 @@ import (
"gioui.org/unit"
)
type Size struct {
Width unit.Value
Height unit.Value
}
type Options struct {
Width, Height unit.Value
MinWidth, MinHeight unit.Value
MaxWidth, MaxHeight unit.Value
Title string
WindowMode WindowMode
Size *Size
MinSize *Size
MaxSize *Size
Title *string
WindowMode *WindowMode
}
type WindowMode uint8