GCompris-qt
ApplicationInfo.h
52 Q_PROPERTY(int applicationWidth READ applicationWidth WRITE setApplicationWidth NOTIFY applicationWidthChanged)
84 Q_PROPERTY(bool isPortraitMode READ isPortraitMode WRITE setIsPortraitMode NOTIFY portraitModeChanged)
bool hasShader
Whether the current platform supports fragment shaders.
Definition: ApplicationInfo.h:77
static QString getFilePath(const QString &file)
Returns an absolute and platform independent path to the passed file.
Definition: ApplicationInfo.cpp:116
static QString localeShort(const QString &locale)
Returns the short locale name for the passed locale.
Definition: ApplicationInfo.h:180
Q_INVOKABLE QStringList getSystemExcludedFonts()
Definition: ApplicationInfo.cpp:150
Q_INVOKABLE QString getLocaleFilePath(const QString &file)
Returns an absolute path to a langauge specific resource file.
Definition: ApplicationInfo.cpp:141
Q_INVOKABLE QStringList getFontsFromRcc()
Definition: ApplicationInfo.cpp:155
Q_INVOKABLE bool requestAudioFocus() const
Request GCompris to take the Audio Focus at the system level.
Definition: ApplicationAndroid.cpp:55
bool isPortraitMode
Whether currently in portrait mode, on mobile platforms.
Definition: ApplicationInfo.h:84
Q_INVOKABLE QString getAudioFilePath(const QString &file)
Returns an absolute path to a language specific sound/voices file.
Definition: ApplicationInfo.cpp:127
QString localeShort
Short (2-letter) locale string of the currently active language.
Definition: ApplicationInfo.h:111
QString getResourceDataPath()
Returns the resource root-path used for GCompris resources.
Definition: ApplicationInfo.cpp:111
Q_INVOKABLE void screenshot(const QString &file)
Stores a screenshot in the passed file.
Definition: ApplicationInfo.cpp:180
bool isMobile
Whether the application is currently running on a mobile platform.
Definition: ApplicationInfo.h:65
Q_INVOKABLE void abandonAudioFocus() const
Abandon the Audio Focus.
Definition: ApplicationAndroid.cpp:62
A general purpose singleton that exposes miscellaneous native functions to the QML layer...
Definition: ApplicationInfo.h:43
Q_INVOKABLE QString getVoicesLocale(const QString &locale)
Returns a locale string that can be used in voices filenames.
Definition: ApplicationInfo.cpp:196
qreal ratio
Ratio factor used for scaling of sizes on high-dpi devices.
Definition: ApplicationInfo.h:91
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Jun 2 2015 21:47:47 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Jun 2 2015 21:47:47 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.