-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
general purpose "LoadingEvent" (not used by core currently)
- Loading branch information
1 parent
d5fecf4
commit d436719
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package haxe.ui.events; | ||
|
||
class LoadingEvent extends UIEvent { | ||
public static final LOADING_STARTED:EventType<LoadingEvent> = EventType.name("loadingstarted"); | ||
public static final LOADING_PROGRESS:EventType<LoadingEvent> = EventType.name("loadingprogress"); | ||
public static final LOADING_COMPLETE:EventType<LoadingEvent> = EventType.name("loadingcomplete"); | ||
public static final LOADING_ERRORED:EventType<LoadingEvent> = EventType.name("loadingerrored"); | ||
|
||
public var progress:Float; | ||
public var maxProgress:Float; | ||
|
||
public override function clone():UIEvent { | ||
var c:LoadingEvent = new LoadingEvent(this.type); | ||
c.progress = this.progress; | ||
c.maxProgress = this.maxProgress; | ||
c.canceled = this.canceled; | ||
postClone(c); | ||
return c; | ||
} | ||
} |