e85adfa757
The palette lives in Lua, so C++ stores the name only and ui.setTheme() writes through here before rebuilding and repainting.
39 lines
1.1 KiB
Lua
39 lines
1.1 KiB
Lua
---@meta
|
|
|
|
-- Generated from native/src/bindings/core/settings.cpp. Do not edit.
|
|
|
|
---@class SettingsLib
|
|
settings = {}
|
|
|
|
---Returns the saved rotation in degrees clockwise.
|
|
---@return integer
|
|
function settings.getRotation() end
|
|
|
|
---Applies and persists the screen rotation.
|
|
---@param degrees integer 0, 90, 180, or 270 clockwise.
|
|
---@return true? ok
|
|
---@return string? error
|
|
function settings.setRotation(degrees) end
|
|
|
|
---Returns the active POSIX timezone rule.
|
|
---@return string
|
|
function settings.getTimezone() end
|
|
|
|
---Applies and persists a POSIX timezone rule.
|
|
---@param timezone string
|
|
---@return true? ok
|
|
---@return string? error
|
|
function settings.setTimezone(timezone) end
|
|
|
|
---Returns the saved palette name. Apps read ui.getTheme() instead; this
|
|
---is the stored value, which only ui.setTheme() knows how to apply.
|
|
---@return string
|
|
function settings.getTheme() end
|
|
|
|
---Persists a palette name without applying it. Call ui.setTheme(), which
|
|
---writes through here and then rebuilds the palette and repaints.
|
|
---@param theme string
|
|
---@return true? ok
|
|
---@return string? error
|
|
function settings.setTheme(theme) end
|