mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-23 15:47:41 +00:00
31 lines
642 B
C++
31 lines
642 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
|
|
|
|
namespace Platform {
|
|
namespace internal {
|
|
|
|
class GtkIntegration {
|
|
public:
|
|
static GtkIntegration *Instance();
|
|
|
|
void load();
|
|
|
|
[[nodiscard]] std::optional<int> scaleFactor() const;
|
|
|
|
[[nodiscard]] bool showOpenWithDialog(const QString &filepath) const;
|
|
|
|
[[nodiscard]] QImage getImageFromClipboard() const;
|
|
|
|
private:
|
|
GtkIntegration();
|
|
};
|
|
|
|
} // namespace internal
|
|
} // namespace Platform
|