Class Platform
Platform
abstraction layer.
Represents application.
Inherits from
-
Object
(base class)
Fields
Name | Type | Description |
---|---|---|
GLVersionMajor
|
int |
OpenGL context major version. |
GLVersionMinor
|
int |
OpenGL context minor version. |
_instance
|
Platform |
|
_resourceDirs
|
string[] |
|
_themeId
|
string |
|
_uiLanguage
|
string |
Properties
Name | Type | Description |
---|---|---|
instance
[get]
|
Platform |
|
resourceDirs
[get]
|
string[] |
returns list of resource directories |
resourceDirs
[set]
|
Platform |
set list of directories to load resources from |
uiLanguage
[get]
|
string |
returns currently selected UI language code |
uiLanguage
[set]
|
Platform |
set UI language (e.g. "en", "fr", "ru") - will relayout content of all windows if language has been changed |
uiTheme
[get]
|
string |
|
uiTheme
[set]
|
Platform |
sets application UI theme - will relayout content of all windows if theme has been changed |
Methods
Name | Description |
---|---|
closeWindow
|
close window |
createWindow
|
create window |
enterMessageLoop
|
Starts application message loop. |
getClipboardText
|
retrieves text from clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)
|
onThemeChanged
|
handle theme change: e.g. reload some themed resources |
openURL
|
open url in external browser
|
requestLayout
|
calls request layout for all windows |
setClipboardText
|
sets text to clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)
|
setInstance
|
|
showInFileManager
|
show directory or file in OS file manager (explorer, finder, etc...) |
setDefaultLanguageAndThemeIfNecessary
|
to set uiLanguage and themeId to default (en, theme_default) if not set yet
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0