-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathapp.lua
More file actions
37 lines (31 loc) · 871 Bytes
/
app.lua
File metadata and controls
37 lines (31 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---@meta soluna.app
---
--- Soluna app module
---
---@class soluna.app
local app = {}
---
--- Quits the application
---
--- Signals the application to exit gracefully.
---
function app.quit() end
---
--- Sets the IME (Input Method Editor) font
---
--- Configures the font used for IME text input display.
---
---@param font_name string Font name for IME display
---@param font_size integer Font size for IME display
function app.set_ime_font(font_name, font_size) end
---
--- Sets the IME (Input Method Editor) position rectangle
---
--- Defines the screen position where IME candidate window should appear.
--- Pass `nil` to clear IME rect.
--- `text_color` is optional ARGB color. `0` means no custom color.
---
---@param rect table|nil
---Optional fields: `x`, `y`, `width`/`w`, `height`/`h`, `text_color`/`color`.
function app.set_ime_rect(rect) end
return app