Skip to content

Commit

Permalink
window: move viewport manipulation methods to App
Browse files Browse the repository at this point in the history
  • Loading branch information
200sc committed Apr 9, 2022
1 parent df732e5 commit eeb19dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions window/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ type Window interface {
SetIcon(image.Image) error
MoveWindow(x, y, w, h int) error
HideCursor() error

ShiftScreen(int, int)
SetScreen(int, int)
}

// App is an interface of methods available to all oak programs.
Expand All @@ -32,6 +29,9 @@ type App interface {
Viewport() intgeom.Point2
SetViewportBounds(intgeom.Rect2)

ShiftScreen(int, int)
SetScreen(int, int)

NextScene()
GoToScene(string)

Expand Down

0 comments on commit eeb19dc

Please sign in to comment.