mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 17:15:16 +00:00
Expose gtk integration to lib_base
This commit is contained in:
@@ -12,27 +12,12 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
namespace Platform {
|
||||
namespace internal {
|
||||
|
||||
inline constexpr auto kDisableGtkIntegration = "TDESKTOP_DISABLE_GTK_INTEGRATION"_cs;
|
||||
|
||||
class GtkIntegration {
|
||||
public:
|
||||
static GtkIntegration *Instance();
|
||||
|
||||
void load();
|
||||
[[nodiscard]] bool loaded() const;
|
||||
[[nodiscard]] bool checkVersion(
|
||||
uint major,
|
||||
uint minor,
|
||||
uint micro) const;
|
||||
|
||||
[[nodiscard]] std::optional<bool> getBoolSetting(
|
||||
const QString &propertyName) const;
|
||||
|
||||
[[nodiscard]] std::optional<int> getIntSetting(
|
||||
const QString &propertyName) const;
|
||||
|
||||
[[nodiscard]] std::optional<QString> getStringSetting(
|
||||
const QString &propertyName) const;
|
||||
|
||||
[[nodiscard]] std::optional<int> scaleFactor() const;
|
||||
|
||||
|
Reference in New Issue
Block a user