settings_scale_preview.h 611 B

123456789101112131415161718192021222324252627282930
  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 Ui {
  9. class RpWidget;
  10. } // namespace Ui
  11. namespace Window {
  12. class Controller;
  13. } // namespace Window
  14. namespace Settings {
  15. enum class ScalePreviewShow {
  16. Show,
  17. Update,
  18. Hide,
  19. };
  20. [[nodiscard]] Fn<void(ScalePreviewShow, int, int)> SetupScalePreview(
  21. not_null<Window::Controller*> window,
  22. not_null<Ui::RpWidget*> slider);
  23. } // namespace Settings