|
@@ -15,12 +15,6 @@ import (
|
|
|
"time"
|
|
"time"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-// Desktop application defaults
|
|
|
|
|
-const (
|
|
|
|
|
- title = "G3N Application"
|
|
|
|
|
- width = 800
|
|
|
|
|
- height = 600
|
|
|
|
|
-)
|
|
|
|
|
|
|
|
|
|
// Application
|
|
// Application
|
|
|
type Application struct {
|
|
type Application struct {
|
|
@@ -34,7 +28,7 @@ type Application struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// App returns the Application singleton, creating it the first time.
|
|
// App returns the Application singleton, creating it the first time.
|
|
|
-func App() *Application {
|
|
|
|
|
|
|
+func App(width, height int, title string) *Application {
|
|
|
|
|
|
|
|
// Return singleton if already created
|
|
// Return singleton if already created
|
|
|
if a != nil {
|
|
if a != nil {
|