photo_editor_inner_common.h 587 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Editor {
  9. class Scene;
  10. struct PhotoEditorMode {
  11. enum class Mode {
  12. Transform,
  13. Paint,
  14. Out,
  15. } mode = Mode::Transform;
  16. enum class Action {
  17. None,
  18. Save,
  19. Discard,
  20. } action = Action::None;
  21. };
  22. struct Brush {
  23. float sizeRatio = 0.;
  24. QColor color;
  25. };
  26. enum class SaveState {
  27. Save,
  28. Keep,
  29. };
  30. } // namespace Editor