tdesktop/Telegram/SourceFiles/menu/menu_check_item.h

31 lines
611 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "ui/widgets/menu/menu_action.h"
namespace Ui {
class CheckView;
} // namespace Ui
namespace Menu {
class ItemWithCheck final : public Ui::Menu::Action {
public:
using Ui::Menu::Action::Action;
void init(bool checked);
not_null<Ui::CheckView*> checkView() const;
private:
std::unique_ptr<Ui::CheckView> _checkView;
};
} // namespace Menu