Skip to content

Commit

Permalink
rename StartAnimationPrivate -> StartAnimationInternal
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Dec 10, 2023
1 parent dcb81b3 commit 26ef0a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions animation.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func (a *Animation) Start() {
return
}
a.state = AnimationStateRunning
d := CurrentApp().Driver().(interface{ StartAnimationPrivate(*Animation) })
d.StartAnimationPrivate(a)
d := CurrentApp().Driver().(interface{ StartAnimationInternal(*Animation) })
d.StartAnimationInternal(a)
}

// Stop will end this animation and remove it from the run-loop.
Expand Down
2 changes: 1 addition & 1 deletion internal/driver/glfw/animation.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ func (d *gLDriver) StartAnimation(a *fyne.Animation) {
a.Start()
}

func (d *gLDriver) StartAnimationPrivate(a *fyne.Animation) {
func (d *gLDriver) StartAnimationInternal(a *fyne.Animation) {
d.animation.Start(a)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/driver/mobile/animation.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ func (d *mobileDriver) StartAnimation(a *fyne.Animation) {
a.Start()
}

func (d *mobileDriver) StartAnimationPrivate(a *fyne.Animation) {
func (d *mobileDriver) StartAnimationInternal(a *fyne.Animation) {
d.animation.Start(a)
}

Expand Down
2 changes: 1 addition & 1 deletion test/testdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (d *testDriver) StopAnimation(a *fyne.Animation) {
// currently no animations in test app, do nothing
}

func (d *testDriver) StartAnimationPrivate(a *fyne.Animation) {
func (d *testDriver) StartAnimationInternal(a *fyne.Animation) {
/// currently no animations in test app, we just initialise it and leave
a.Tick(1.0)
}
Expand Down

0 comments on commit 26ef0a6

Please sign in to comment.