| 1 | // Aseprite UI Library |
|---|---|
| 2 | // Copyright (C) 2022 Igara Studio S.A. |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifndef UI_APP_STATE_H_INCLUDED |
| 8 | #define UI_APP_STATE_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | namespace ui { |
| 12 | |
| 13 | enum AppState { |
| 14 | kNormal, |
| 15 | kClosing, |
| 16 | kClosingWithException, |
| 17 | }; |
| 18 | |
| 19 | void set_app_state(AppState state); |
| 20 | AppState get_app_state(); |
| 21 | bool is_app_state_closing(); |
| 22 | |
| 23 | } // namespace ui |
| 24 | |
| 25 | #endif |
| 26 |