-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
703e4a0
commit c1b5f6f
Showing
10 changed files
with
5 additions
and
195 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,5 @@ | ||
package main | ||
|
||
import ( | ||
"image/color" | ||
"log" | ||
"os" | ||
|
||
"rlxos/graphics/pkg/app" | ||
"rlxos/graphics/pkg/canvas" | ||
"rlxos/graphics/pkg/event" | ||
"rlxos/graphics/pkg/widget" | ||
) | ||
|
||
type Box struct { | ||
widget.BaseWidget | ||
color color.Color | ||
} | ||
|
||
func (b *Box) Draw(c canvas.Canvas) {} | ||
|
||
func (b *Box) Update(e event.Event) {} | ||
|
||
func main() { | ||
if err := app.Run(&Box{ | ||
color: color.NRGBA{ | ||
R: 255, | ||
A: 255, | ||
}, | ||
}); err != nil { | ||
log.Println("ERROR:", err) | ||
os.Exit(1) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
module rlxos/graphics | ||
|
||
go 1.22 | ||
|
||
require github.com/rajveermalviya/go-wayland/wayland v0.0.0-20230130181619-0ad78d1310b2 | ||
|
||
require golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1 // indirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
github.com/rajveermalviya/go-wayland/wayland v0.0.0-20230130181619-0ad78d1310b2 h1:tRhbehjSCwQSZL7A2AoZlKrDYhZzaPIAcpnhfaUc0Tw= | ||
github.com/rajveermalviya/go-wayland/wayland v0.0.0-20230130181619-0ad78d1310b2/go.mod h1:PXhW/GoWcMBeiZ39ZdgoMs/xduJEEUE+kxUBB2Kwd+M= | ||
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1 h1:kwrAHlwJ0DUBZwQ238v+Uod/3eZ8B2K5rYsUHBQvzmI= | ||
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.