|
| 1 | +// AUTO-GENERATED. DO NOT EDIT. |
| 2 | +// Any manual changes WILL BE LOST when this file is regenerated. |
| 3 | + |
| 4 | +// ignore_for_file: unused_import, unnecessary_import |
| 5 | + |
| 6 | +import 'dart:async'; |
| 7 | + |
| 8 | +import 'foundation/event_request.dart'; |
| 9 | +import 'menu.dart'; |
| 10 | +import 'window.dart'; |
| 11 | +import 'support.dart'; |
| 12 | +import 'unsupported.dart'; |
| 13 | + |
| 14 | +enum Brightness { |
| 15 | + system(0), |
| 16 | + light(1), |
| 17 | + dark(2); |
| 18 | + |
| 19 | + const Brightness(this.value); |
| 20 | + final int value; |
| 21 | + |
| 22 | + static Brightness fromValue(int value) => switch (value) { |
| 23 | + 0 => Brightness.system, |
| 24 | + 1 => Brightness.light, |
| 25 | + 2 => Brightness.dark, |
| 26 | + _ => Brightness.system, |
| 27 | + }; |
| 28 | +} |
| 29 | + |
| 30 | +/// One `ApplicationEvent`, in its concrete form. |
| 31 | +sealed class ApplicationEvent { |
| 32 | + const ApplicationEvent(); |
| 33 | +} |
| 34 | + |
| 35 | +final class ApplicationStartedEvent extends ApplicationEvent { |
| 36 | + const ApplicationStartedEvent(); |
| 37 | +} |
| 38 | + |
| 39 | +final class ApplicationExitingEvent extends ApplicationEvent { |
| 40 | + const ApplicationExitingEvent({required this.exitCode}); |
| 41 | + |
| 42 | + final int exitCode; |
| 43 | +} |
| 44 | + |
| 45 | +final class ApplicationActivatedEvent extends ApplicationEvent { |
| 46 | + const ApplicationActivatedEvent(); |
| 47 | +} |
| 48 | + |
| 49 | +final class ApplicationDeactivatedEvent extends ApplicationEvent { |
| 50 | + const ApplicationDeactivatedEvent(); |
| 51 | +} |
| 52 | + |
| 53 | +final class ApplicationQuitRequestedEvent extends ApplicationEvent { |
| 54 | + const ApplicationQuitRequestedEvent({required this.request}); |
| 55 | + |
| 56 | + final EventRequest request; |
| 57 | +} |
| 58 | + |
| 59 | +class Application { |
| 60 | + const Application._(); |
| 61 | + |
| 62 | + static const Application instance = Application._(); |
| 63 | + |
| 64 | + int run() => unsupported(); |
| 65 | + |
| 66 | + int runWithWindow(Window? window) => unsupported(); |
| 67 | + |
| 68 | + void quit(int exitCode) => unsupported(); |
| 69 | + |
| 70 | + bool isRunning() => unsupported(); |
| 71 | + |
| 72 | + bool isSingleInstance() => unsupported(); |
| 73 | + |
| 74 | + bool show() => unsupported(); |
| 75 | + |
| 76 | + bool hide() => unsupported(); |
| 77 | + |
| 78 | + bool isVisible() => unsupported(); |
| 79 | + |
| 80 | + bool setIcon(String iconPath) => unsupported(); |
| 81 | + |
| 82 | + bool setDockIconVisible(bool visible) => unsupported(); |
| 83 | + |
| 84 | + bool setProgressBar(double progress) => unsupported(); |
| 85 | + |
| 86 | + bool setBadgeLabel(String label) => unsupported(); |
| 87 | + |
| 88 | + bool setBrightness(Brightness brightness) => unsupported(); |
| 89 | + |
| 90 | + bool setMenuBar(Menu? menu) => unsupported(); |
| 91 | + |
| 92 | + Window? getPrimaryWindow() => unsupported(); |
| 93 | + |
| 94 | + void setPrimaryWindow(Window? window) => unsupported(); |
| 95 | + |
| 96 | + List<Window> getAllWindows() => unsupported(); |
| 97 | + |
| 98 | + ListenerId addListener(FutureOr<void> Function(ApplicationEvent) callback) => |
| 99 | + unsupported(); |
| 100 | + |
| 101 | + bool removeListener(ListenerId listenerId) => unsupported(); |
| 102 | +} |
0 commit comments