menu_check_item.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. #include "ui/widgets/menu/menu_action.h"
  9. namespace Ui {
  10. class CheckView;
  11. } // namespace Ui
  12. namespace Menu {
  13. class ItemWithCheck final : public Ui::Menu::Action {
  14. public:
  15. using Ui::Menu::Action::Action;
  16. void init(bool checked);
  17. not_null<Ui::CheckView*> checkView() const;
  18. private:
  19. std::unique_ptr<Ui::CheckView> _checkView;
  20. };
  21. } // namespace Menu