add apprt action to notify apprt of surface readonly state

This commit is contained in:
Mitchell Hashimoto
2025-12-12 13:13:53 -08:00
parent 0bf3642939
commit dc7bc3014e
4 changed files with 23 additions and 0 deletions

View File

@@ -314,6 +314,9 @@ pub const Action = union(Key) {
/// The currently selected search match index (1-based).
search_selected: SearchSelected,
/// The readonly state of the surface has changed.
readonly: Readonly,
/// Sync with: ghostty_action_tag_e
pub const Key = enum(c_int) {
quit,
@@ -375,6 +378,7 @@ pub const Action = union(Key) {
end_search,
search_total,
search_selected,
readonly,
};
/// Sync with: ghostty_action_u
@@ -532,6 +536,11 @@ pub const QuitTimer = enum(c_int) {
stop,
};
pub const Readonly = enum(c_int) {
off,
on,
};
pub const MouseVisibility = enum(c_int) {
visible,
hidden,