Class Platform
Platform
abstraction layer.
Represents application.
Inherits from
-
(base class)Object
Fields
Name | Type | Description |
---|---|---|
_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)
|
requestLayout
|
calls request layout for all windows |
setClipboardText
|
sets text to clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)
|
setInstance
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0