Add C API function to handle new surfaces of different types

This commit is contained in:
Peter Guy
2025-10-11 22:14:00 -07:00
parent 7cf4c8dc53
commit dba0ff5339
3 changed files with 24 additions and 5 deletions

View File

@@ -1036,7 +1036,10 @@ ghostty_surface_t ghostty_surface_new(ghostty_app_t,
void ghostty_surface_free(ghostty_surface_t);
void* ghostty_surface_userdata(ghostty_surface_t);
ghostty_app_t ghostty_surface_app(ghostty_surface_t);
ghostty_surface_config_s ghostty_surface_inherited_config(ghostty_surface_t);
ghostty_surface_config_s ghostty_surface_inherited_config(ghostty_surface_t); /* deprecated: use context-specific functions */
ghostty_surface_config_s ghostty_surface_inherited_config_window(ghostty_surface_t);
ghostty_surface_config_s ghostty_surface_inherited_config_tab(ghostty_surface_t);
ghostty_surface_config_s ghostty_surface_inherited_config_split(ghostty_surface_t);
void ghostty_surface_update_config(ghostty_surface_t, ghostty_config_t);
bool ghostty_surface_needs_confirm_quit(ghostty_surface_t);
bool ghostty_surface_process_exited(ghostty_surface_t);