/* 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 class PhotoData; namespace Data { struct CreditsHistoryEntry; } // namespace Data namespace Ui { class RpWidget; } // namespace Ui namespace Ui { [[nodiscard]] QImage GenerateStars(int height, int count); [[nodiscard]] not_null CreateSingleStarWidget( not_null parent, int height); Fn GenerateCreditsPaintUserpicCallback( const Data::CreditsHistoryEntry &entry); Fn GenerateCreditsPaintEntryCallback( not_null photo, Fn update); Fn GeneratePaidMediaPaintCallback( not_null photo, Fn update); [[nodiscard]] TextWithEntities GenerateEntryName( const Data::CreditsHistoryEntry &entry); } // namespace Ui