ShaderJob.hx 913 B

123456789101112131415161718192021
  1. package flash.display;
  2. extern class ShaderJob extends flash.events.EventDispatcher {
  3. @:flash.property var height(get,set) : Int;
  4. @:flash.property var progress(get,never) : Float;
  5. @:flash.property var shader(get,set) : Shader;
  6. @:flash.property var target(get,set) : Dynamic;
  7. @:flash.property var width(get,set) : Int;
  8. function new(?shader : Shader, ?target : Dynamic, width : Int = 0, height : Int = 0) : Void;
  9. function cancel() : Void;
  10. private function get_height() : Int;
  11. private function get_progress() : Float;
  12. private function get_shader() : Shader;
  13. private function get_target() : Dynamic;
  14. private function get_width() : Int;
  15. private function set_height(value : Int) : Int;
  16. private function set_shader(value : Shader) : Shader;
  17. private function set_target(value : Dynamic) : Dynamic;
  18. private function set_width(value : Int) : Int;
  19. function start(waitForCompletion : Bool = false) : Void;
  20. }