Class SDLPlatform

Inherits from

Constructors

Name Description
this

Fields

Name Type Description
_windowToClose SDLWindow
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)
getWindow
onThemeChanged handle theme change: e.g. reload some themed resources
requestLayout calls request layout for all windows
sendRedrawEvent
setClipboardText sets text to clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)
showInFileManager show directory or file in OS file manager (explorer, finder, etc...)
openURL open url in external browser
setInstance
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