opentui.h
Every export of opentui.h in the 0.6.0 release, from the header. A version names the release that added an export after the module's first release.
Functions#
function ot_buffer_acquire_lease(ot_context *context, const ot_handle *buffer, ot_buffer_lease_snapshot *out_snapshot): ot_statusfunction ot_buffer_color_matrix(ot_context *, const ot_handle *, const ot_scene_frame_request *, const float *matrix, uint32_t matrix_count, const float *mask, uint32_t mask_count, const float *strength, uint32_t channel): ot_statusfunction ot_buffer_create(ot_context *context, const ot_buffer_options *options, ot_handle *out_buffer): ot_statusfunction ot_buffer_destroy(ot_context *context, const ot_handle *buffer): ot_statusfunction ot_buffer_draw(ot_context *context, const ot_handle *target, const ot_scene_frame_request *frame, const ot_buffer_draw_header *options, const ot_handle *source, const uint8_t *text, uint32_t text_len, const uint8_t *bottom_title, uint32_t bottom_title_len): ot_statusfunction ot_buffer_draw_editor_view(ot_context *, const ot_handle *target, const ot_scene_frame_request *, const ot_handle *view, int32_t x, int32_t y): ot_statusfunction ot_buffer_draw_grayscale(ot_context *, const ot_handle *, const ot_scene_frame_request *, const float *data, uint32_t sample_count, int32_t x, int32_t y, uint32_t width, uint32_t height, const uint16_t *foreground, const uint16_t *background, uint32_t supersampled): ot_statusfunction ot_buffer_draw_grid(ot_context *context, const ot_handle *target, const ot_scene_frame_request *frame, const ot_buffer_grid_options *options, const int32_t *columns, uint32_t column_count, const int32_t *rows, uint32_t row_count): ot_statusfunction ot_buffer_draw_image(ot_context *, const ot_handle *target, const ot_scene_frame_request *frame, const ot_handle *image, const ot_image_draw_options *, uint32_t *out_drawn): ot_statusfunction ot_buffer_draw_packed(ot_context *, const ot_handle *, const ot_scene_frame_request *, const uint8_t *data, uint32_t byte_count, int32_t x, int32_t y, uint32_t width, uint32_t height): ot_statusfunction ot_buffer_draw_scene_text(ot_context *, const ot_handle *target, const ot_scene_frame_request *, const ot_handle *node, int32_t x, int32_t y): ot_statusfunction ot_buffer_draw_supersample(ot_context *, const ot_handle *, const ot_scene_frame_request *, const uint8_t *data, uint32_t byte_count, int32_t x, int32_t y, uint32_t format, uint32_t stride): ot_statusfunction ot_buffer_draw_text_view(ot_context *, const ot_handle *target, const ot_scene_frame_request *, const ot_handle *view, int32_t x, int32_t y): ot_statusfunction ot_buffer_draw_unicode(ot_context *, const ot_handle *target, const ot_scene_frame_request *frame, const ot_handle *unicode, uint32_t index, int32_t x, int32_t y, const uint16_t foreground[4], const uint16_t background[4], uint32_t attributes): ot_statusfunction ot_buffer_lease_get_real_char_size(ot_context *context, const ot_handle *lease, uint32_t add_line_breaks, uint32_t *out_size): ot_statusfunction ot_buffer_lease_release(ot_context *context, const ot_handle *lease): ot_statusfunction ot_buffer_lease_validate(ot_context *context, const ot_handle *lease): ot_statusfunction ot_buffer_lease_write_resolved_chars(ot_context *context, const ot_handle *lease, uint8_t *bytes, uint32_t capacity, uint32_t add_line_breaks, uint8_t *cell_lengths, uint32_t cell_capacity, uint32_t *out_written): ot_statusfunction ot_buffer_resize(ot_context *context, const ot_handle *buffer, uint32_t width, uint32_t height): ot_statusfunction ot_buffer_stack(ot_context *context, const ot_handle *target, const ot_scene_frame_request *frame, uint32_t operation, int32_t x, int32_t y, uint32_t width, uint32_t height, const float *opacity, float *out_opacity): ot_statusfunction ot_clipboard_clear_operation_start(ot_context *context, uint8_t selection, uint32_t timeout_ms, ot_handle *out_operation): uint8_tfunction ot_clipboard_operation_cancel(ot_context *context, const ot_handle *operation): uint8_tfunction ot_clipboard_operation_destroy(ot_context *context, const ot_handle *operation): uint8_tfunction ot_clipboard_operation_poll(ot_context *context, const ot_handle *operation): uint8_tfunction ot_clipboard_operation_result_data_copy(ot_context *context, const ot_handle *operation, uint8_t *out_bytes, uint32_t capacity): uint8_tfunction ot_clipboard_operation_result_data_length(ot_context *context, const ot_handle *operation, uint32_t *out_length): uint8_tfunction ot_clipboard_operation_result_diagnostic_copy(ot_context *context, const ot_handle *operation, uint8_t *out_bytes, uint32_t capacity): uint8_tfunction ot_clipboard_operation_result_diagnostic_length(ot_context *context, const ot_handle *operation, uint32_t *out_length): uint8_tfunction ot_clipboard_operation_result_error_code(ot_context *context, const ot_handle *operation, uint32_t *out_error_code): uint8_tfunction ot_clipboard_operation_result_mime_copy(ot_context *context, const ot_handle *operation, uint8_t *out_bytes, uint32_t capacity): uint8_tfunction ot_clipboard_operation_result_mime_length(ot_context *context, const ot_handle *operation, uint32_t *out_length): uint8_tfunction ot_clipboard_read_operation_start(ot_context *context, const uint8_t *request, uint32_t request_length, uint8_t selection, uint32_t max_bytes, uint32_t max_image_pixels, uint32_t max_conversion_bytes, uint32_t timeout_ms, ot_handle *out_operation): uint8_tfunction ot_clipboard_service_begin_shutdown(ot_context *context): uint8_tfunction ot_clipboard_service_create(ot_context *context, uint32_t max_operations, uint32_t max_provider_transfers, const uint8_t *wayland_seat, uint32_t wayland_seat_length): int32_tfunction ot_clipboard_service_destroy(ot_context *context): uint8_tfunction ot_clipboard_service_drain(ot_context *context): uint8_tfunction ot_clipboard_service_poll_shutdown(ot_context *context): uint8_tfunction ot_clipboard_write_operation_start(ot_context *context, const uint8_t *text, uint32_t text_length, uint8_t selection, uint32_t timeout_ms, ot_handle *out_operation): uint8_tfunction ot_context_abi_version(void): uint32_tfunction ot_context_create(const ot_context_options *options, ot_context **out_context): ot_statusfunction ot_context_destroy(ot_context *context): ot_statusfunction ot_context_drain_diagnostics(ot_context *context, ot_diagnostic *records, uint32_t capacity, ot_diagnostic_drain *out_drain): ot_statusfunction ot_context_get_last_error(ot_context *context, ot_context_error *out_error): ot_statusfunction ot_context_get_link_url(ot_context *context, uint32_t link_id, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_context_set_edit_event_callback(ot_context *, ot_edit_event_callback): ot_statusfunction ot_edit_buffer_command(ot_context *, const ot_handle *, uint32_t command, uint32_t argument): ot_statusfunction ot_edit_buffer_create(ot_context *, const ot_edit_buffer_options *, ot_handle *out_edit_buffer): ot_statusfunction ot_edit_buffer_delete_range(ot_context *, const ot_handle *edit_buffer, uint32_t start_row, uint32_t start_col, uint32_t end_row, uint32_t end_col): ot_statusfunction ot_edit_buffer_destroy(ot_context *, const ot_handle *edit_buffer): ot_statusfunction ot_edit_buffer_get_highlights(ot_context *, const ot_handle *, uint32_t line, ot_edit_highlight *highlights, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_edit_buffer_get_info(ot_context *, const ot_handle *edit_buffer, ot_edit_buffer_info *out_info): ot_statusfunction ot_edit_buffer_get_position(ot_context *, const ot_handle *, uint32_t query, uint32_t a, uint32_t b, ot_edit_position *out_position): ot_statusfunction ot_edit_buffer_get_range(ot_context *, const ot_handle *, uint32_t by_coords, uint32_t start_row, uint32_t start_col, uint32_t end_row, uint32_t end_col, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_edit_buffer_get_text(ot_context *, const ot_handle *edit_buffer, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_edit_buffer_highlight(ot_context *, const ot_handle *, uint32_t operation, uint32_t argument, const ot_edit_highlight *highlight): ot_statusfunction ot_edit_buffer_history(ot_context *, const ot_handle *, uint32_t redo, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_edit_buffer_insert_text(ot_context *, const ot_handle *edit_buffer, const uint8_t *bytes, uint32_t byte_count): ot_statusfunction ot_edit_buffer_set_cursor(ot_context *, const ot_handle *edit_buffer, uint32_t row, uint32_t col): ot_statusfunction ot_edit_buffer_set_defaults(ot_context *, const ot_handle *, uint32_t mask, const ot_editor_style *): ot_statusfunction ot_edit_buffer_set_syntax_style(ot_context *, const ot_handle *edit_buffer, const ot_handle *style): ot_statusfunction ot_edit_buffer_set_tab_width(ot_context *, const ot_handle *edit_buffer, uint32_t width): ot_statusfunction ot_edit_buffer_set_text(ot_context *, const ot_handle *edit_buffer, const uint8_t *bytes, uint32_t byte_count, uint32_t preserve_history): ot_statusfunction ot_editor_view_command(ot_context *, const ot_handle *, uint32_t command, uint32_t argument): ot_statusfunction ot_editor_view_create(ot_context *, const ot_handle *edit_buffer, uint32_t width, uint32_t height, ot_handle *out_view): ot_statusfunction ot_editor_view_destroy(ot_context *, const ot_handle *view): ot_statusfunction ot_editor_view_get_info(ot_context *, const ot_handle *, uint32_t follow_cursor, ot_editor_view_info *out_info): ot_statusfunction ot_editor_view_get_lines(ot_context *, const ot_handle *, uint32_t logical, ot_scene_text_line *lines, uint32_t capacity, ot_editor_measure *out_info): ot_statusfunction ot_editor_view_get_position(ot_context *, const ot_handle *, uint32_t query, ot_editor_position *out_position): ot_statusfunction ot_editor_view_get_selected_text(ot_context *, const ot_handle *, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_editor_view_get_selection(ot_context *, const ot_handle *, ot_editor_view_info *out_info): ot_statusfunction ot_editor_view_get_viewport(ot_context *, const ot_handle *, ot_editor_viewport *out_viewport): ot_statusfunction ot_editor_view_measure(ot_context *, const ot_handle *, uint32_t width, uint32_t height, ot_editor_measure *out_info): ot_statusfunction ot_editor_view_replace_selection(ot_context *, const ot_handle *, const uint8_t *bytes, uint32_t byte_count, uint32_t *out_steps): ot_statusfunction ot_editor_view_select(ot_context *, const ot_handle *, const ot_editor_selection *, uint32_t *out_changed): ot_statusfunction ot_editor_view_set_placeholder(ot_context *, const ot_handle *, const uint8_t *bytes, uint32_t byte_count, const ot_styled_text_chunk *chunks, uint32_t chunk_count): ot_statusfunction ot_editor_view_set_scroll_margin(ot_context *, const ot_handle *, float margin): ot_statusfunction ot_editor_view_set_tab_color(ot_context *, const ot_handle *, const uint16_t color[4]): ot_statusfunction ot_editor_view_set_viewport(ot_context *, const ot_handle *, const ot_editor_viewport *, uint32_t size_only, uint32_t move_cursor): ot_statusfunction ot_embedded_terminal_command(ot_context *, const ot_handle *terminal, uint32_t command, int32_t argument): ot_statusfunction ot_embedded_terminal_compose(ot_context *, const ot_handle *terminal, const ot_handle *target, const ot_scene_frame_request *frame, int32_t x, int32_t y): ot_statusfunction ot_embedded_terminal_create(ot_context *, const ot_embedded_terminal_options *, ot_handle *out_terminal): ot_statusfunction ot_embedded_terminal_cursor_get(ot_context *, const ot_handle *terminal, ot_embedded_terminal_cursor *out_cursor): ot_statusfunction ot_embedded_terminal_destroy(ot_context *, const ot_handle *terminal): ot_statusfunction ot_embedded_terminal_drain_responses(ot_context *, const ot_handle *terminal, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_embedded_terminal_encode_focus(ot_context *, const ot_handle *terminal, uint32_t focused, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_embedded_terminal_encode_key(ot_context *, const ot_handle *terminal, const ot_embedded_terminal_key *, const uint8_t *key, uint32_t key_count, const uint8_t *text, uint32_t text_count, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_embedded_terminal_encode_mouse(ot_context *, const ot_handle *terminal, const ot_embedded_terminal_mouse *, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_embedded_terminal_encode_paste(ot_context *, const ot_handle *terminal, const uint8_t *input, uint32_t input_count, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_embedded_terminal_get_selected_text(ot_context *, const ot_handle *terminal, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_embedded_terminal_resize(ot_context *, const ot_handle *terminal, uint32_t cols, uint32_t rows): ot_statusfunction ot_embedded_terminal_set_selection(ot_context *, const ot_handle *terminal, uint32_t start_x, uint32_t start_y, uint32_t end_x, uint32_t end_y): ot_statusfunction ot_embedded_terminal_write(ot_context *, const ot_handle *terminal, const uint8_t *bytes, uint32_t byte_count): ot_statusfunction ot_image_clone(ot_context *destination, ot_context *source, const ot_handle *image, ot_handle *out_image): ot_statusfunction ot_image_composite(ot_context *, const ot_handle *base, const ot_handle *overlay, int32_t left, int32_t top, uint32_t blend, uint8_t opacity, ot_handle *out_image): ot_statusfunction ot_image_copy_pixels(ot_context *, const ot_handle *image, uint8_t *destination, uint64_t byte_count, uint32_t stride, uint32_t format): ot_statusfunction ot_image_copy_png(ot_context *, const ot_handle *image, uint8_t *destination, uint64_t capacity, uint64_t *out_byte_count): ot_statusfunction ot_image_create_pixels(ot_context *, const uint8_t *pixels, uint64_t byte_count, uint32_t width, uint32_t height, uint32_t stride, uint32_t format, uint32_t alpha, ot_handle *out_image): ot_statusfunction ot_image_decode(ot_context *, const uint8_t *bytes, uint64_t byte_count, ot_handle *out_image): ot_statusfunction ot_image_destroy(ot_context *, const ot_handle *image): ot_statusfunction ot_image_extend(ot_context *, const ot_handle *image, uint32_t top, uint32_t right, uint32_t bottom, uint32_t left, const uint8_t *background_rgba, ot_handle *out_image): ot_statusfunction ot_image_extract(ot_context *, const ot_handle *image, uint32_t left, uint32_t top, uint32_t width, uint32_t height, ot_handle *out_image): ot_statusfunction ot_image_get_info(ot_context *, const ot_handle *image, ot_image_info *out_info): ot_statusfunction ot_image_inspect(ot_context *, const uint8_t *bytes, uint64_t byte_count, ot_image_info *out_info): ot_statusfunction ot_image_pixels_release(ot_context *, const ot_handle *lease): ot_statusfunction ot_image_resize(ot_context *, const ot_handle *image, uint32_t width, uint32_t height, uint32_t filter, ot_handle *out_image): ot_statusfunction ot_image_retain(ot_context *, const ot_handle *image, ot_handle *out_image): ot_statusfunction ot_image_take_pixels(ot_context *, const ot_handle *image, ot_image_pixels *out_pixels): ot_statusfunction ot_image_transform(ot_context *, const ot_handle *image, uint32_t operation, ot_handle *out_image): ot_statusfunction ot_image_update_pixels(ot_context *, const ot_handle *image, const uint8_t *pixels, uint64_t byte_count, uint32_t stride, uint32_t format, uint32_t alpha): ot_statusfunction ot_scene_create_node(ot_context *, const ot_handle *session, uint32_t kind, uint32_t num, ot_handle *out_node): ot_statusfunction ot_scene_destroy_node(ot_context *, const ot_handle *node): ot_statusfunction ot_scene_flush(ot_context *, const uint8_t *updates, uint32_t byte_count, uint32_t *out_applied): ot_statusfunction ot_scene_frame_acquire_buffer_lease(ot_context *, const ot_handle *session, const ot_scene_frame_request *frame_request, uint32_t which, ot_buffer_lease_snapshot *out_snapshot): ot_statusfunction ot_scene_frame_cancel(ot_context *, const ot_handle *session, uint64_t frame_id): ot_statusfunction ot_scene_frame_commit(ot_context *, const ot_handle *session, const ot_scene_frame_request *frame_request, uint32_t force, uint32_t *out_status): ot_statusfunction ot_scene_frame_copy_buffer(ot_context *, const ot_handle *session, const ot_scene_frame_request *, const ot_handle *target): ot_statusfunction ot_scene_frame_draw_buffer(ot_context *context, const ot_handle *session, const ot_scene_frame_request *frame_request, const ot_handle *source, int32_t x, int32_t y): ot_statusfunction ot_scene_frame_get_paint_slots(ot_context *, const ot_handle *session, const ot_scene_frame_request *record_request, ot_scene_paint_slot *out_slots, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_scene_frame_step_with_geometry(ot_context *, const ot_handle *session, const ot_scene_frame_request *previous, const ot_scene_frame_options *, uint32_t max_work_items, const uint8_t *recording, uint32_t recording_length, ot_scene_frame_request *out_request, ot_scene_frame_geometry *out_geometry): ot_statusfunction ot_scene_get_cursor_state(ot_context *, const ot_handle *session, ot_scene_cursor_state *out_state): ot_statusfunction ot_scene_get_layout(ot_context *, const ot_handle *node, uint32_t observation, ot_scene_layout *out_layout): ot_statusfunction ot_scene_get_selected_text(ot_context *, const ot_handle *node, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_scene_get_slider_thumb(ot_context *, const ot_handle *node, ot_scene_slider_thumb *out_thumb): ot_statusfunction ot_scene_get_stats(ot_context *, const ot_handle *session, ot_scene_stats *out_stats): ot_statusfunction ot_scene_get_style(ot_context *, const ot_handle *node, uint32_t group, uint32_t kind, uint32_t edge, ot_scene_style_value *out_value): ot_statusfunction ot_scene_get_text(ot_context *, const ot_handle *node, uint8_t *bytes, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_scene_get_text_info(ot_context *, const ot_handle *node, ot_scene_text_info *out_info): ot_statusfunction ot_scene_get_text_lines(ot_context *, const ot_handle *node, uint32_t first_line, ot_scene_text_line *lines, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_scene_get_text_selection(ot_context *, const ot_handle *node, uint64_t *out_packed): ot_statusfunction ot_scene_has_measure(ot_context *, const ot_handle *node, uint32_t *out_enabled): ot_statusfunction ot_scene_hit_test(ot_context *, const ot_handle *session, int32_t x, int32_t y, uint32_t *out_num): ot_statusfunction ot_scene_mark_dirty(ot_context *, const ot_handle *node): ot_statusfunction ot_scene_measure_layout(ot_context *, const ot_handle *session, const ot_handle *root): ot_statusfunction ot_scene_move_node(ot_context *, const ot_handle *node, const ot_handle *parent, uint32_t index): ot_statusfunction ot_scene_paint(ot_context *, const ot_handle *session, const uint16_t background[4], uint32_t use_mouse, uint32_t excluded_hit_num, ot_scene_frame_request *out_frame): ot_statusfunction ot_scene_set_arrow(ot_context *, const ot_handle *node, const ot_scene_arrow_options *, const uint8_t *text, uint32_t byte_count): ot_statusfunction ot_scene_set_box_details(ot_context *, const ot_handle *node, const ot_scene_box_details *, const uint8_t *title, uint32_t title_bytes, const uint8_t *bottom_title, uint32_t bottom_title_bytes): ot_statusfunction ot_scene_set_editor_options(ot_context *, const ot_handle *node, const ot_scene_editor_options *): ot_statusfunction ot_scene_set_editor_view(ot_context *, const ot_handle *node, const ot_handle *view): ot_statusfunction ot_scene_set_focus(ot_context *, const ot_handle *node, uint32_t focused): ot_statusfunction ot_scene_set_hooks(ot_context *, const ot_handle *node, const ot_scene_hooks *): ot_statusfunction ot_scene_set_image(ot_context *, const ot_handle *node, const ot_handle *image, uint32_t fit, uint32_t protocol, const ot_handle *buffer): ot_statusfunction ot_scene_set_measure(ot_context *, const ot_handle *node, ot_scene_measure_callback): ot_statusfunction ot_scene_set_paint(ot_context *, const ot_handle *node, const ot_scene_paint_options *): ot_statusfunction ot_scene_set_slider(ot_context *, const ot_handle *node, const ot_scene_slider_options *): ot_statusfunction ot_scene_set_style(ot_context *, const ot_handle *node, uint32_t group, uint32_t kind, uint32_t edge, uint32_t unit, float value, uint32_t flags): ot_statusfunction ot_scene_set_styled_text(ot_context *, const ot_handle *node, const uint8_t *bytes, uint32_t byte_count, const ot_styled_text_chunk *chunks, uint32_t chunk_count, const uint8_t *urls, uint32_t url_byte_count): ot_statusfunction ot_scene_set_surface(ot_context *, const ot_handle *node, const ot_handle *buffer): ot_statusfunction ot_scene_set_text(ot_context *, const ot_handle *node, const uint8_t *bytes, uint32_t byte_count): ot_statusfunction ot_scene_set_text_options(ot_context *, const ot_handle *node, const ot_scene_text_options *): ot_statusfunction ot_scene_set_text_selection(ot_context *, const ot_handle *node, const ot_scene_text_selection_options *, uint32_t *out_changed): ot_statusfunction ot_scene_set_text_view(ot_context *, const ot_handle *node, const ot_handle *view): ot_statusfunction ot_scene_set_text_view_paint(ot_context *, const ot_handle *node, uint32_t enabled): ot_statusfunction ot_scene_set_viewport(ot_context *, const ot_handle *node, const ot_handle *viewport): ot_statusfunction ot_session_acquire_buffer_lease(ot_context *context, const ot_handle *session, uint32_t which, ot_buffer_lease_snapshot *out_snapshot): ot_statusfunction ot_session_attach_renderer(ot_context *context, const ot_handle *session, const ot_session_renderer_options *options): ot_statusfunction ot_session_attach_renderer_with_env(ot_context *context, const ot_handle *session, const ot_session_renderer_env_options *options, const uint8_t *environment): ot_statusfunction ot_session_cancel(ot_context *context, const ot_handle *session): ot_statusfunction ot_session_cancel_kitty_image_transport(ot_context *, const ot_handle *session, uint32_t failed): ot_statusfunction ot_session_clipboard(ot_context *context, const ot_handle *session, uint32_t target, const uint8_t *bytes, uint32_t byte_count, uint32_t *out_written): ot_statusfunction ot_session_close(ot_context *context, const ot_handle *session): ot_statusfunction ot_session_complete_output(ot_context *context, const ot_handle *session, const ot_output_ticket *ticket, uint32_t success): ot_statusfunction ot_session_control(ot_context *context, const ot_handle *session, const ot_session_control_options *options, const uint8_t *bytes, uint32_t byte_count): ot_statusfunction ot_session_create(ot_context *context, const ot_session_options *options, ot_handle *out_session): ot_statusfunction ot_session_destroy(ot_context *context, const ot_handle *session): ot_statusfunction ot_session_drain_output(ot_context *context, const ot_handle *session, uint32_t max_bytes, uint32_t *out_written, void *user_data, ot_output_write_callback writer): ot_statusfunction ot_session_drain_stdout(ot_context *context, const ot_handle *session, uint32_t max_bytes, uint32_t *out_written): ot_statusfunction ot_session_draw_buffer(ot_context *context, const ot_handle *session, const ot_handle *source, int32_t x, int32_t y): ot_statusfunction ot_session_dump_hit_grid(ot_context *, const ot_handle *session): ot_statusfunction ot_session_get_capabilities(ot_context *context, const ot_handle *session, ot_session_capabilities *out_capabilities): ot_statusfunction ot_session_get_kitty_image_transport(ot_context *, const ot_handle *session, ot_session_kitty_image_transport *out_status): ot_statusfunction ot_session_get_link_id(ot_context *context, const ot_handle *session, int32_t x, int32_t y, uint32_t *out_link_id): ot_statusfunction ot_session_get_renderer_state(ot_context *context, const ot_handle *session, ot_session_renderer_state *out_state): ot_statusfunction ot_session_get_state(ot_context *context, const ot_handle *session, uint32_t *out_state): ot_statusfunction ot_session_get_terminal_state(ot_context *context, const ot_handle *session, uint32_t *out_phase): ot_statusfunction ot_session_get_write_limit(ot_context *context, const ot_handle *session, uint64_t *out_bytes): ot_statusfunction ot_session_notification(ot_context *, const ot_handle *, const uint8_t *message, uint32_t message_len, const uint8_t *title, uint32_t title_len, uint32_t *out_written): ot_statusfunction ot_session_poll_kitty_image_transport(ot_context *, const ot_handle *session, uint64_t now_ns, uint32_t *out_retry): ot_statusfunction ot_session_process_kitty_image_reply(ot_context *, const ot_handle *session, const uint8_t *bytes, uint32_t byte_count, uint32_t *out_result): ot_statusfunction ot_session_pump(ot_context *context, const ot_handle *session, uint64_t now_ns, uint32_t work_budget, ot_session_pump_result *out_result): ot_statusfunction ot_session_pump_exit(ot_context *context, const ot_handle *session, uint32_t *out_status): ot_statusfunction ot_session_read_output(ot_context *context, const ot_handle *session, uint8_t *bytes, uint32_t capacity, ot_output_ticket *out_ticket): ot_statusfunction ot_session_render(ot_context *context, const ot_handle *session, uint32_t force, uint32_t *out_result): ot_statusfunction ot_session_render_split(ot_context *, const ot_handle *session, const ot_scene_frame_request *, const ot_split_snapshot *, uint32_t count, uint32_t pinned_render_offset, uint32_t force, uint32_t *out_status): ot_statusfunction ot_session_resize_renderer(ot_context *context, const ot_handle *session, uint32_t width, uint32_t height): ot_statusfunction ot_session_resume(ot_context *context, const ot_handle *session): ot_statusfunction ot_session_set_debug_overlay(ot_context *, const ot_handle *session, uint32_t enabled, uint32_t corner): ot_statusfunction ot_session_set_image_resolution(ot_context *, const ot_handle *session, uint32_t terminal_width, uint32_t terminal_height, uint32_t pixel_width, uint32_t pixel_height): ot_statusfunction ot_session_set_kitty_image_transport(ot_context *, const ot_handle *session, uint32_t mode): ot_statusfunction ot_session_set_palette_state(ot_context *, const ot_handle *, const uint16_t *palette, uint32_t color_count, const uint16_t *foreground, const uint16_t *background, uint32_t epoch): ot_statusfunction ot_session_set_screen(ot_context *, const ot_handle *session, uint32_t alternate, uint32_t width, uint32_t height, const uint8_t *trailing_output, uint32_t byte_count): ot_statusfunction ot_session_setup_terminal(ot_context *context, const ot_handle *session, const ot_session_terminal_options *options): ot_statusfunction ot_session_split_control(ot_context *, const ot_handle *session, const ot_split_control *, uint32_t *out_offset): ot_statusfunction ot_session_start_kitty_file_probe(ot_context *, const ot_handle *session): ot_statusfunction ot_session_suspend(ot_context *context, const ot_handle *session): ot_statusfunction ot_session_sync_detached(ot_context *, const ot_handle *session, const ot_handle *parent): ot_statusfunction ot_session_update_memory_stats(ot_context *, const ot_handle *session, uint32_t heap_used, uint32_t heap_total, uint32_t array_buffers): ot_statusfunction ot_session_update_stats(ot_context *, const ot_handle *session, double overall_ms, uint32_t fps, double callback_ms): ot_statusfunction ot_session_write(ot_context *context, const ot_handle *session, const uint8_t *bytes, uint32_t byte_count): ot_statusfunction ot_syntax_style_create(ot_context *, ot_handle *out_style): ot_statusfunction ot_syntax_style_destroy(ot_context *, const ot_handle *style): ot_statusfunction ot_syntax_style_get_count(ot_context *, const ot_handle *, uint32_t *out_count): ot_statusfunction ot_syntax_style_register(ot_context *, const ot_handle *, const uint8_t *name, uint32_t byte_count, const ot_editor_style *, uint32_t *out_id): ot_statusfunction ot_syntax_style_resolve(ot_context *, const ot_handle *, const uint8_t *name, uint32_t byte_count, uint32_t *out_id): ot_statusfunction ot_terminal_flush_input(void): ot_statusfunction ot_text_buffer_append(ot_context *, const ot_handle *, const uint8_t *, uint32_t byte_count): ot_statusfunction ot_text_buffer_clear(ot_context *, const ot_handle *, uint32_t reset): ot_statusfunction ot_text_buffer_create(ot_context *, const ot_edit_buffer_options *, ot_handle *out_buffer): ot_statusfunction ot_text_buffer_destroy(ot_context *, const ot_handle *): ot_statusfunction ot_text_buffer_get_highlights(ot_context *, const ot_handle *, uint32_t line, ot_edit_highlight *, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_text_buffer_get_info(ot_context *, const ot_handle *, ot_text_buffer_info *): ot_statusfunction ot_text_buffer_get_range(ot_context *, const ot_handle *, uint32_t start, uint32_t end, uint8_t *, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_text_buffer_get_text(ot_context *, const ot_handle *, uint8_t *, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_text_buffer_highlight(ot_context *, const ot_handle *, uint32_t operation, uint32_t argument, const ot_edit_highlight *): ot_statusfunction ot_text_buffer_replace_styled_batch(ot_context *, const ot_text_buffer_replacement *, uint32_t count, const uint8_t *bytes, uint32_t byte_count, const ot_styled_text_chunk *, uint32_t chunk_count, const uint8_t *urls, uint32_t url_byte_count, ot_text_buffer_replacement_info *out): ot_statusfunction ot_text_buffer_set_defaults(ot_context *, const ot_handle *, uint32_t mask, const ot_editor_style *): ot_statusfunction ot_text_buffer_set_styled_text(ot_context *, const ot_handle *, const uint8_t *, uint32_t byte_count, const ot_styled_text_chunk *, uint32_t chunk_count, const uint8_t *urls, uint32_t url_byte_count): ot_statusfunction ot_text_buffer_set_syntax_style(ot_context *, const ot_handle *, const ot_handle *style): ot_statusfunction ot_text_buffer_set_tab_width(ot_context *, const ot_handle *, uint32_t width): ot_statusfunction ot_text_buffer_set_text(ot_context *, const ot_handle *, const uint8_t *, uint32_t byte_count): ot_statusfunction ot_text_buffer_view_command(ot_context *, const ot_handle *, uint32_t command, uint32_t argument): ot_statusfunction ot_text_buffer_view_create(ot_context *, const ot_handle *buffer, ot_handle *out_view): ot_statusfunction ot_text_buffer_view_destroy(ot_context *, const ot_handle *): ot_statusfunction ot_text_buffer_view_get_info(ot_context *, const ot_handle *, ot_editor_view_info *): ot_statusfunction ot_text_buffer_view_get_lines(ot_context *, const ot_handle *, uint32_t logical, uint32_t first_line, ot_scene_text_line *, uint32_t capacity, ot_editor_measure *): ot_statusfunction ot_text_buffer_view_get_selected_text(ot_context *, const ot_handle *, uint8_t *, uint32_t capacity, uint32_t *out_count): ot_statusfunction ot_text_buffer_view_measure(ot_context *, const ot_handle *, uint32_t width, uint32_t height, ot_editor_measure *): ot_statusfunction ot_text_buffer_view_select(ot_context *, const ot_handle *, const ot_editor_selection *, uint32_t *out_changed): ot_statusfunction ot_text_buffer_view_set_tab_color(ot_context *, const ot_handle *, const uint16_t color[4]): ot_statusfunction ot_text_buffer_view_set_viewport(ot_context *, const ot_handle *, const ot_editor_viewport *, uint32_t size_only): ot_statusfunction ot_unicode_create(ot_context *, const uint8_t *bytes, uint32_t byte_count, uint32_t width_method, ot_handle *out_unicode): ot_statusfunction ot_unicode_destroy(ot_context *, const ot_handle *unicode): ot_statusfunction ot_unicode_get(ot_context *, const ot_handle *unicode, ot_unicode_char *characters, uint32_t capacity, uint32_t *out_count): ot_status
Structs#
struct ot_buffer_draw_alphafield ot_buffer_draw_alpha.header: ot_buffer_draw_header, offset 0field ot_buffer_draw_alpha.enabled: uint32_t, offset 16
struct ot_buffer_draw_boxfield ot_buffer_draw_box.header: ot_buffer_draw_header, offset 0field ot_buffer_draw_box.x: int32_t, offset 16field ot_buffer_draw_box.y: int32_t, offset 20field ot_buffer_draw_box.width: uint32_t, offset 24field ot_buffer_draw_box.height: uint32_t, offset 28field ot_buffer_draw_box.packed_options: uint32_t, offset 32field ot_buffer_draw_box.foreground: uint16_t[4], offset 36field ot_buffer_draw_box.background: uint16_t[4], offset 44field ot_buffer_draw_box.title_color: uint16_t[4], offset 52field ot_buffer_draw_box.border_chars: uint32_t[11], offset 60
struct ot_buffer_draw_cellfield ot_buffer_draw_cell.header: ot_buffer_draw_header, offset 0field ot_buffer_draw_cell.x: int32_t, offset 16field ot_buffer_draw_cell.y: int32_t, offset 20field ot_buffer_draw_cell.character: uint32_t, offset 24field ot_buffer_draw_cell.attributes: uint32_t, offset 28field ot_buffer_draw_cell.foreground: uint16_t[4], offset 32field ot_buffer_draw_cell.background: uint16_t[4], offset 40
struct ot_buffer_draw_clearfield ot_buffer_draw_clear.header: ot_buffer_draw_header, offset 0field ot_buffer_draw_clear.background: uint16_t[4], offset 16
struct ot_buffer_draw_composefield ot_buffer_draw_compose.header: ot_buffer_draw_header, offset 0field ot_buffer_draw_compose.x: int32_t, offset 16field ot_buffer_draw_compose.y: int32_t, offset 20field ot_buffer_draw_compose.source_x: uint32_t, offset 24field ot_buffer_draw_compose.source_y: uint32_t, offset 28field ot_buffer_draw_compose.source_width: uint32_t, offset 32field ot_buffer_draw_compose.source_height: uint32_t, offset 36
struct ot_buffer_draw_fillfield ot_buffer_draw_fill.header: ot_buffer_draw_header, offset 0field ot_buffer_draw_fill.x: int32_t, offset 16field ot_buffer_draw_fill.y: int32_t, offset 20field ot_buffer_draw_fill.width: uint32_t, offset 24field ot_buffer_draw_fill.height: uint32_t, offset 28field ot_buffer_draw_fill.background: uint16_t[4], offset 32
struct ot_buffer_draw_headerfield ot_buffer_draw_header.struct_size: uint32_t, offset 0field ot_buffer_draw_header.abi_version: uint32_t, offset 4field ot_buffer_draw_header.operation: uint32_t, offset 8field ot_buffer_draw_header.flags: uint32_t, offset 12
struct ot_buffer_draw_text_recordfield ot_buffer_draw_text_record.header: ot_buffer_draw_header, offset 0field ot_buffer_draw_text_record.x: int32_t, offset 16field ot_buffer_draw_text_record.y: int32_t, offset 20field ot_buffer_draw_text_record.attributes: uint32_t, offset 24field ot_buffer_draw_text_record.foreground: uint16_t[4], offset 28field ot_buffer_draw_text_record.background: uint16_t[4], offset 36
struct ot_buffer_grid_optionsfield ot_buffer_grid_options.struct_size: uint32_t, offset 0field ot_buffer_grid_options.abi_version: uint32_t, offset 4field ot_buffer_grid_options.flags: uint32_t, offset 8field ot_buffer_grid_options.reserved: uint32_t, offset 12field ot_buffer_grid_options.foreground: uint16_t[4], offset 16field ot_buffer_grid_options.background: uint16_t[4], offset 24field ot_buffer_grid_options.border_chars: uint32_t[11], offset 32
struct ot_buffer_lease_snapshotfield ot_buffer_lease_snapshot.struct_size: uint32_t, offset 0field ot_buffer_lease_snapshot.abi_version: uint32_t, offset 4field ot_buffer_lease_snapshot.lease: ot_handle, offset 8field ot_buffer_lease_snapshot.width: uint32_t, offset 24field ot_buffer_lease_snapshot.height: uint32_t, offset 28field ot_buffer_lease_snapshot.generation: uint64_t, offset 32field ot_buffer_lease_snapshot.char_ptr: uint64_t, offset 40field ot_buffer_lease_snapshot.fg_ptr: uint64_t, offset 48field ot_buffer_lease_snapshot.bg_ptr: uint64_t, offset 56field ot_buffer_lease_snapshot.attributes_ptr: uint64_t, offset 64field ot_buffer_lease_snapshot.reserved: uint64_t, offset 72
struct ot_buffer_optionsfield ot_buffer_options.struct_size: uint32_t, offset 0field ot_buffer_options.abi_version: uint32_t, offset 4field ot_buffer_options.width: uint32_t, offset 8field ot_buffer_options.height: uint32_t, offset 12field ot_buffer_options.width_method: uint32_t, offset 16field ot_buffer_options.flags: uint32_t, offset 20
struct ot_context_errorfield ot_context_error.struct_size: uint32_t, offset 0field ot_context_error.abi_version: uint32_t, offset 4field ot_context_error.status: ot_status, offset 8field ot_context_error.reserved: uint32_t, offset 12
struct ot_context_optionsfield ot_context_options.struct_size: uint32_t, offset 0field ot_context_options.abi_version: uint32_t, offset 4field ot_context_options.flags: uint32_t, offset 8field ot_context_options.object_capacity: uint32_t, offset 12field ot_context_options.render_cells_max: uint32_t, offset 16field ot_context_options.reserved: uint32_t[3], offset 20
struct ot_diagnosticfield ot_diagnostic.level: uint32_t, offset 0field ot_diagnostic.message_len: uint32_t, offset 4field ot_diagnostic.flags: uint32_t, offset 8field ot_diagnostic.reserved: uint32_t, offset 12field ot_diagnostic.message: uint8_t[OT_DIAGNOSTIC_MESSAGE_BYTES], offset 16
struct ot_diagnostic_drainfield ot_diagnostic_drain.struct_size: uint32_t, offset 0field ot_diagnostic_drain.abi_version: uint32_t, offset 4field ot_diagnostic_drain.count: uint32_t, offset 8field ot_diagnostic_drain.remaining: uint32_t, offset 12field ot_diagnostic_drain.dropped: uint64_t, offset 16
struct ot_edit_buffer_infofield ot_edit_buffer_info.struct_size: uint32_t, offset 0field ot_edit_buffer_info.abi_version: uint32_t, offset 4field ot_edit_buffer_info.content_epoch: uint64_t, offset 8field ot_edit_buffer_info.byte_count: uint32_t, offset 16field ot_edit_buffer_info.line_count: uint32_t, offset 20field ot_edit_buffer_info.cursor_row: uint32_t, offset 24field ot_edit_buffer_info.cursor_col: uint32_t, offset 28field ot_edit_buffer_info.cursor_offset: uint32_t, offset 32field ot_edit_buffer_info.can_undo: uint32_t, offset 36field ot_edit_buffer_info.can_redo: uint32_t, offset 40field ot_edit_buffer_info.tab_width: uint32_t, offset 44
struct ot_edit_buffer_optionsfield ot_edit_buffer_options.struct_size: uint32_t, offset 0field ot_edit_buffer_options.abi_version: uint32_t, offset 4field ot_edit_buffer_options.width_method: uint32_t, offset 8field ot_edit_buffer_options.reserved: uint32_t, offset 12
struct ot_edit_highlightfield ot_edit_highlight.start: uint32_t, offset 0field ot_edit_highlight.end: uint32_t, offset 4field ot_edit_highlight.style_id: uint32_t, offset 8field ot_edit_highlight.priority: uint32_t, offset 12field ot_edit_highlight.ref: uint32_t, offset 16
struct ot_edit_positionfield ot_edit_position.struct_size: uint32_t, offset 0field ot_edit_position.abi_version: uint32_t, offset 4field ot_edit_position.valid: uint32_t, offset 8field ot_edit_position.row: uint32_t, offset 12field ot_edit_position.col: uint32_t, offset 16field ot_edit_position.offset: uint32_t, offset 20
struct ot_editor_measurefield ot_editor_measure.struct_size: uint32_t, offset 0field ot_editor_measure.abi_version: uint32_t, offset 4field ot_editor_measure.line_count: uint32_t, offset 8field ot_editor_measure.width_cols_max: uint32_t, offset 12
struct ot_editor_positionfield ot_editor_position.struct_size: uint32_t, offset 0field ot_editor_position.abi_version: uint32_t, offset 4field ot_editor_position.visual_row: uint32_t, offset 8field ot_editor_position.visual_col: uint32_t, offset 12field ot_editor_position.logical_row: uint32_t, offset 16field ot_editor_position.logical_col: uint32_t, offset 20field ot_editor_position.offset: uint32_t, offset 24
struct ot_editor_selectionfield ot_editor_selection.struct_size: uint32_t, offset 0field ot_editor_selection.abi_version: uint32_t, offset 4field ot_editor_selection.operation: uint32_t, offset 8field ot_editor_selection.behavior: uint32_t, offset 12field ot_editor_selection.start: uint32_t, offset 16field ot_editor_selection.end: uint32_t, offset 20field ot_editor_selection.anchor_x: int32_t, offset 24field ot_editor_selection.anchor_y: int32_t, offset 28field ot_editor_selection.focus_x: int32_t, offset 32field ot_editor_selection.focus_y: int32_t, offset 36field ot_editor_selection.update_cursor: uint32_t, offset 40field ot_editor_selection.follow_cursor: uint32_t, offset 44field ot_editor_selection.flags: uint32_t, offset 48field ot_editor_selection.reserved: uint32_t, offset 52field ot_editor_selection.foreground: uint16_t[4], offset 56field ot_editor_selection.background: uint16_t[4], offset 64
struct ot_editor_stylefield ot_editor_style.struct_size: uint32_t, offset 0field ot_editor_style.abi_version: uint32_t, offset 4field ot_editor_style.flags: uint32_t, offset 8field ot_editor_style.attributes: uint32_t, offset 12field ot_editor_style.foreground: uint16_t[4], offset 16field ot_editor_style.background: uint16_t[4], offset 24
struct ot_editor_view_infofield ot_editor_view_info.struct_size: uint32_t, offset 0field ot_editor_view_info.abi_version: uint32_t, offset 4field ot_editor_view_info.virtual_line_count: uint32_t, offset 8field ot_editor_view_info.total_virtual_line_count: uint32_t, offset 12field ot_editor_view_info.selection_present: uint32_t, offset 16field ot_editor_view_info.selection_start: uint32_t, offset 20field ot_editor_view_info.selection_end: uint32_t, offset 24field ot_editor_view_info.selection_occupancy: uint32_t, offset 28
struct ot_editor_viewportfield ot_editor_viewport.struct_size: uint32_t, offset 0field ot_editor_viewport.abi_version: uint32_t, offset 4field ot_editor_viewport.x: uint32_t, offset 8field ot_editor_viewport.y: uint32_t, offset 12field ot_editor_viewport.width: uint32_t, offset 16field ot_editor_viewport.height: uint32_t, offset 20
struct ot_embedded_terminal_cursorfield ot_embedded_terminal_cursor.struct_size: uint32_t, offset 0field ot_embedded_terminal_cursor.abi_version: uint32_t, offset 4field ot_embedded_terminal_cursor.x: uint32_t, offset 8field ot_embedded_terminal_cursor.y: uint32_t, offset 12field ot_embedded_terminal_cursor.has_value: uint32_t, offset 16field ot_embedded_terminal_cursor.visible: uint32_t, offset 20field ot_embedded_terminal_cursor.blinking: uint32_t, offset 24field ot_embedded_terminal_cursor.wide_tail: uint32_t, offset 28field ot_embedded_terminal_cursor.style: uint32_t, offset 32field ot_embedded_terminal_cursor.color_has_value: uint32_t, offset 36field ot_embedded_terminal_cursor.color_r: uint32_t, offset 40field ot_embedded_terminal_cursor.color_g: uint32_t, offset 44field ot_embedded_terminal_cursor.color_b: uint32_t, offset 48field ot_embedded_terminal_cursor.reserved: uint32_t, offset 52
struct ot_embedded_terminal_keyfield ot_embedded_terminal_key.struct_size: uint32_t, offset 0field ot_embedded_terminal_key.abi_version: uint32_t, offset 4field ot_embedded_terminal_key.action: uint32_t, offset 8field ot_embedded_terminal_key.composing: uint32_t, offset 12field ot_embedded_terminal_key.mods: uint32_t, offset 16field ot_embedded_terminal_key.consumed_mods: uint32_t, offset 20field ot_embedded_terminal_key.unshifted_codepoint: uint32_t, offset 24field ot_embedded_terminal_key.reserved: uint32_t, offset 28
struct ot_embedded_terminal_mousefield ot_embedded_terminal_mouse.struct_size: uint32_t, offset 0field ot_embedded_terminal_mouse.abi_version: uint32_t, offset 4field ot_embedded_terminal_mouse.action: uint32_t, offset 8field ot_embedded_terminal_mouse.button: int32_t, offset 12field ot_embedded_terminal_mouse.mods: uint32_t, offset 16field ot_embedded_terminal_mouse.any_button_pressed: uint32_t, offset 20field ot_embedded_terminal_mouse.x: float, offset 24field ot_embedded_terminal_mouse.y: float, offset 28
struct ot_embedded_terminal_optionsfield ot_embedded_terminal_options.struct_size: uint32_t, offset 0field ot_embedded_terminal_options.abi_version: uint32_t, offset 4field ot_embedded_terminal_options.cols: uint32_t, offset 8field ot_embedded_terminal_options.rows: uint32_t, offset 12field ot_embedded_terminal_options.max_scrollback: uint32_t, offset 16field ot_embedded_terminal_options.reserved: uint32_t, offset 20
struct ot_handlefield ot_handle.context_id: uint64_t, offset 0field ot_handle.slot: uint32_t, offset 8field ot_handle.generation: uint32_t, offset 12
struct ot_image_draw_optionsfield ot_image_draw_options.struct_size: uint32_t, offset 0field ot_image_draw_options.abi_version: uint32_t, offset 4field ot_image_draw_options.flags: uint32_t, offset 8field ot_image_draw_options.protocol: uint32_t, offset 12field ot_image_draw_options.x: int32_t, offset 16field ot_image_draw_options.y: int32_t, offset 20field ot_image_draw_options.width: uint32_t, offset 24field ot_image_draw_options.height: uint32_t, offset 28field ot_image_draw_options.pixel_width: uint32_t, offset 32field ot_image_draw_options.pixel_height: uint32_t, offset 36field ot_image_draw_options.source_x: uint32_t, offset 40field ot_image_draw_options.source_y: uint32_t, offset 44field ot_image_draw_options.source_width: uint32_t, offset 48field ot_image_draw_options.source_height: uint32_t, offset 52field ot_image_draw_options.reserved: uint32_t[2], offset 56
struct ot_image_infofield ot_image_info.width: uint32_t, offset 0field ot_image_info.height: uint32_t, offset 4field ot_image_info.source_width: uint32_t, offset 8field ot_image_info.source_height: uint32_t, offset 12field ot_image_info.format: uint32_t, offset 16field ot_image_info.color_status: uint32_t, offset 20field ot_image_info.orientation: uint32_t, offset 24field ot_image_info.has_alpha: uint32_t, offset 28
struct ot_image_pixelsfield ot_image_pixels.lease: ot_handle, offset 0field ot_image_pixels.pixels: uint64_t, offset 16field ot_image_pixels.byte_count: uint64_t, offset 24
struct ot_output_ticketfield ot_output_ticket.session: ot_handle, offset 0field ot_output_ticket.request_id: uint64_t, offset 16field ot_output_ticket.byte_count: uint32_t, offset 24field ot_output_ticket.reserved: uint32_t, offset 28
struct ot_scene_arrow_optionsfield ot_scene_arrow_options.struct_size: uint32_t, offset 0field ot_scene_arrow_options.abi_version: uint32_t, offset 4field ot_scene_arrow_options.direction: uint32_t, offset 8field ot_scene_arrow_options.attributes: uint32_t, offset 12field ot_scene_arrow_options.foreground: uint16_t[4], offset 16field ot_scene_arrow_options.background: uint16_t[4], offset 24
struct ot_scene_box_detailsfield ot_scene_box_details.struct_size: uint32_t, offset 0field ot_scene_box_details.abi_version: uint32_t, offset 4field ot_scene_box_details.title_alignment: uint32_t, offset 8field ot_scene_box_details.bottom_title_alignment: uint32_t, offset 12field ot_scene_box_details.flags: uint32_t, offset 16field ot_scene_box_details.reserved: uint32_t, offset 20field ot_scene_box_details.title_color: uint16_t[4], offset 24field ot_scene_box_details.border_characters: uint32_t[11], offset 32
struct ot_scene_cursor_statefield ot_scene_cursor_state.struct_size: uint32_t, offset 0field ot_scene_cursor_state.abi_version: uint32_t, offset 4field ot_scene_cursor_state.x: uint32_t, offset 8field ot_scene_cursor_state.y: uint32_t, offset 12field ot_scene_cursor_state.visible: uint32_t, offset 16field ot_scene_cursor_state.style: uint32_t, offset 20field ot_scene_cursor_state.blinking: uint32_t, offset 24field ot_scene_cursor_state.reserved: uint32_t, offset 28field ot_scene_cursor_state.r: float, offset 32field ot_scene_cursor_state.g: float, offset 36field ot_scene_cursor_state.b: float, offset 40field ot_scene_cursor_state.a: float, offset 44
struct ot_scene_editor_optionsfield ot_scene_editor_options.struct_size: uint32_t, offset 0field ot_scene_editor_options.abi_version: uint32_t, offset 4field ot_scene_editor_options.show_cursor: uint32_t, offset 8field ot_scene_editor_options.style: uint32_t, offset 12field ot_scene_editor_options.blinking: uint32_t, offset 16field ot_scene_editor_options.reserved: uint32_t, offset 20field ot_scene_editor_options.color: uint16_t[4], offset 24field ot_scene_editor_options.mouse_pointer: uint32_t, offset 32field ot_scene_editor_options.reserved2: uint32_t, offset 36
struct ot_scene_frame_geometryfield ot_scene_frame_geometry.struct_size: uint32_t, offset 0field ot_scene_frame_geometry.abi_version: uint32_t, offset 4field ot_scene_frame_geometry.flags: uint32_t, offset 8field ot_scene_frame_geometry.reserved: uint32_t, offset 12field ot_scene_frame_geometry.paint: ot_scene_layout, offset 16field ot_scene_frame_geometry.public_layout: ot_scene_layout, offset 64
struct ot_scene_frame_optionsfield ot_scene_frame_options.struct_size: uint32_t, offset 0field ot_scene_frame_options.abi_version: uint32_t, offset 4field ot_scene_frame_options.background: uint16_t[4], offset 8field ot_scene_frame_options.use_mouse: uint32_t, offset 16field ot_scene_frame_options.excluded_hit_num: uint32_t, offset 20field ot_scene_frame_options.max_layout_rounds: uint32_t, offset 24field ot_scene_frame_options.max_host_requests: uint32_t, offset 28field ot_scene_frame_options.preserve_unwritten: uint32_t, offset 32
struct ot_scene_frame_requestfield ot_scene_frame_request.struct_size: uint32_t, offset 0field ot_scene_frame_request.abi_version: uint32_t, offset 4field ot_scene_frame_request.session: ot_handle, offset 8field ot_scene_frame_request.root: ot_handle, offset 24field ot_scene_frame_request.node: ot_handle, offset 40field ot_scene_frame_request.frame_id: uint64_t, offset 56field ot_scene_frame_request.request_id: uint64_t, offset 64field ot_scene_frame_request.layout_epoch: uint64_t, offset 72field ot_scene_frame_request.hook_generation: uint64_t, offset 80field ot_scene_frame_request.kind: uint32_t, offset 88field ot_scene_frame_request.num: uint32_t, offset 92field ot_scene_frame_request.width: uint32_t, offset 96field ot_scene_frame_request.height: uint32_t, offset 100field ot_scene_frame_request.reserved: uint32_t[2], offset 104
struct ot_scene_hooksfield ot_scene_hooks.struct_size: uint32_t, offset 0field ot_scene_hooks.abi_version: uint32_t, offset 4field ot_scene_hooks.flags: uint32_t, offset 8field ot_scene_hooks.reserved: uint32_t, offset 12field ot_scene_hooks.generation: uint64_t, offset 16field ot_scene_hooks.initial_width: double, offset 24field ot_scene_hooks.initial_height: double, offset 32
struct ot_scene_layoutfield ot_scene_layout.struct_size: uint32_t, offset 0field ot_scene_layout.abi_version: uint32_t, offset 4field ot_scene_layout.left: float, offset 8field ot_scene_layout.top: float, offset 12field ot_scene_layout.right: float, offset 16field ot_scene_layout.bottom: float, offset 20field ot_scene_layout.width: float, offset 24field ot_scene_layout.height: float, offset 28field ot_scene_layout.screen_x: double, offset 32field ot_scene_layout.screen_y: double, offset 40
struct ot_scene_paint_optionsfield ot_scene_paint_options.struct_size: uint32_t, offset 0field ot_scene_paint_options.abi_version: uint32_t, offset 4field ot_scene_paint_options.z_index: int32_t, offset 8field ot_scene_paint_options.opacity: float, offset 12field ot_scene_paint_options.translate_x: double, offset 16field ot_scene_paint_options.translate_y: double, offset 24field ot_scene_paint_options.border_sides: uint32_t, offset 32field ot_scene_paint_options.should_fill: uint32_t, offset 36field ot_scene_paint_options.background: uint16_t[4], offset 40field ot_scene_paint_options.border_color: uint16_t[4], offset 48field ot_scene_paint_options.border_style: uint32_t, offset 56field ot_scene_paint_options.focusable: uint32_t, offset 60field ot_scene_paint_options.focused_border_color: uint16_t[4], offset 64field ot_scene_paint_options.reserved: uint32_t, offset 72
struct ot_scene_paint_slotfield ot_scene_paint_slot.node: ot_handle, offset 0field ot_scene_paint_slot.hook_generation: uint64_t, offset 16field ot_scene_paint_slot.num: uint32_t, offset 24field ot_scene_paint_slot.hooks: uint32_t, offset 28field ot_scene_paint_slot.clip_x: int32_t, offset 32field ot_scene_paint_slot.clip_y: int32_t, offset 36field ot_scene_paint_slot.clip_width: uint32_t, offset 40field ot_scene_paint_slot.clip_height: uint32_t, offset 44field ot_scene_paint_slot.opacity: float, offset 48field ot_scene_paint_slot.flags: uint32_t, offset 52field ot_scene_paint_slot.paint: ot_scene_layout, offset 56field ot_scene_paint_slot.public_layout: ot_scene_layout, offset 104
struct ot_scene_property_updatefield ot_scene_property_update.node: ot_handle, offset 0field ot_scene_property_update.fields: uint32_t, offset 16field ot_scene_property_update.size_bytes: uint32_t, offset 20
struct ot_scene_record_color_matrixfield ot_scene_record_color_matrix.header: ot_scene_record_header, offset 0field ot_scene_record_color_matrix.matrix: float[16], offset 8field ot_scene_record_color_matrix.strength: float, offset 72field ot_scene_record_color_matrix.channel: uint32_t, offset 76field ot_scene_record_color_matrix.has_mask: uint32_t, offset 80field ot_scene_record_color_matrix.mask_count: uint32_t, offset 84
struct ot_scene_record_drawfield ot_scene_record_draw.header: ot_scene_record_header, offset 0field ot_scene_record_draw.source: ot_handle, offset 8field ot_scene_record_draw.text_length: uint32_t, offset 24field ot_scene_record_draw.bottom_length: uint32_t, offset 28
struct ot_scene_record_grayscalefield ot_scene_record_grayscale.header: ot_scene_record_header, offset 0field ot_scene_record_grayscale.x: int32_t, offset 8field ot_scene_record_grayscale.y: int32_t, offset 12field ot_scene_record_grayscale.width: uint32_t, offset 16field ot_scene_record_grayscale.height: uint32_t, offset 20field ot_scene_record_grayscale.flags: uint32_t, offset 24field ot_scene_record_grayscale.sample_count: uint32_t, offset 28field ot_scene_record_grayscale.foreground: uint16_t[4], offset 32field ot_scene_record_grayscale.background: uint16_t[4], offset 40
struct ot_scene_record_gridfield ot_scene_record_grid.header: ot_scene_record_header, offset 0field ot_scene_record_grid.options: ot_buffer_grid_options, offset 8field ot_scene_record_grid.column_count: uint32_t, offset 84field ot_scene_record_grid.row_count: uint32_t, offset 88
struct ot_scene_record_headerfield ot_scene_record_header.size: uint32_t, offset 0field ot_scene_record_header.operation: uint32_t, offset 4
struct ot_scene_record_imagefield ot_scene_record_image.header: ot_scene_record_header, offset 0field ot_scene_record_image.image: ot_handle, offset 8field ot_scene_record_image.options: ot_image_draw_options, offset 24
struct ot_scene_record_packedfield ot_scene_record_packed.header: ot_scene_record_header, offset 0field ot_scene_record_packed.x: int32_t, offset 8field ot_scene_record_packed.y: int32_t, offset 12field ot_scene_record_packed.width: uint32_t, offset 16field ot_scene_record_packed.height: uint32_t, offset 20field ot_scene_record_packed.byte_count: uint32_t, offset 24field ot_scene_record_packed.reserved: uint32_t, offset 28
struct ot_scene_record_slotfield ot_scene_record_slot.header: ot_scene_record_header, offset 0field ot_scene_record_slot.slot: uint32_t, offset 8field ot_scene_record_slot.phase: uint32_t, offset 12
struct ot_scene_record_stackfield ot_scene_record_stack.header: ot_scene_record_header, offset 0field ot_scene_record_stack.operation: uint32_t, offset 8field ot_scene_record_stack.x: int32_t, offset 12field ot_scene_record_stack.y: int32_t, offset 16field ot_scene_record_stack.width: uint32_t, offset 20field ot_scene_record_stack.height: uint32_t, offset 24field ot_scene_record_stack.opacity: float, offset 28
struct ot_scene_record_supersamplefield ot_scene_record_supersample.header: ot_scene_record_header, offset 0field ot_scene_record_supersample.x: int32_t, offset 8field ot_scene_record_supersample.y: int32_t, offset 12field ot_scene_record_supersample.format: uint32_t, offset 16field ot_scene_record_supersample.stride: uint32_t, offset 20field ot_scene_record_supersample.byte_count: uint32_t, offset 24field ot_scene_record_supersample.reserved: uint32_t, offset 28
struct ot_scene_record_unicodefield ot_scene_record_unicode.header: ot_scene_record_header, offset 0field ot_scene_record_unicode.unicode: ot_handle, offset 8field ot_scene_record_unicode.index: uint32_t, offset 24field ot_scene_record_unicode.x: int32_t, offset 28field ot_scene_record_unicode.y: int32_t, offset 32field ot_scene_record_unicode.attributes: uint32_t, offset 36field ot_scene_record_unicode.foreground: uint16_t[4], offset 40field ot_scene_record_unicode.background: uint16_t[4], offset 48
struct ot_scene_record_viewfield ot_scene_record_view.header: ot_scene_record_header, offset 0field ot_scene_record_view.source: ot_handle, offset 8field ot_scene_record_view.x: int32_t, offset 24field ot_scene_record_view.y: int32_t, offset 28
struct ot_scene_slider_optionsfield ot_scene_slider_options.struct_size: uint32_t, offset 0field ot_scene_slider_options.abi_version: uint32_t, offset 4field ot_scene_slider_options.orientation: uint32_t, offset 8field ot_scene_slider_options.reserved: uint32_t, offset 12field ot_scene_slider_options.min: double, offset 16field ot_scene_slider_options.max: double, offset 24field ot_scene_slider_options.value: double, offset 32field ot_scene_slider_options.viewport_size: double, offset 40field ot_scene_slider_options.foreground: uint16_t[4], offset 48field ot_scene_slider_options.background: uint16_t[4], offset 56
struct ot_scene_slider_thumbfield ot_scene_slider_thumb.struct_size: uint32_t, offset 0field ot_scene_slider_thumb.abi_version: uint32_t, offset 4field ot_scene_slider_thumb.size: double, offset 8field ot_scene_slider_thumb.start: double, offset 16
struct ot_scene_statsfield ot_scene_stats.struct_size: uint32_t, offset 0field ot_scene_stats.abi_version: uint32_t, offset 4field ot_scene_stats.last_frame_time: double, offset 8field ot_scene_stats.average_frame_time: double, offset 16field ot_scene_stats.render_time: double, offset 24field ot_scene_stats.stdout_write_time: double, offset 32field ot_scene_stats.frame_count: uint64_t, offset 40field ot_scene_stats.cells_updated: uint32_t, offset 48field ot_scene_stats.average_cells_updated: uint32_t, offset 52field ot_scene_stats.render_time_valid: uint32_t, offset 56field ot_scene_stats.stdout_write_time_valid: uint32_t, offset 60
struct ot_scene_style_propertyfield ot_scene_style_property.group: uint8_t, offset 0field ot_scene_style_property.kind: uint8_t, offset 1field ot_scene_style_property.edge: uint8_t, offset 2field ot_scene_style_property.unit: uint8_t, offset 3field ot_scene_style_property.flags: uint32_t, offset 4field ot_scene_style_property.value: float, offset 8field ot_scene_style_property.reserved: uint32_t, offset 12
struct ot_scene_style_valuefield ot_scene_style_value.struct_size: uint32_t, offset 0field ot_scene_style_value.abi_version: uint32_t, offset 4field ot_scene_style_value.unit: uint32_t, offset 8field ot_scene_style_value.value: float, offset 12
struct ot_scene_text_infofield ot_scene_text_info.struct_size: uint32_t, offset 0field ot_scene_text_info.abi_version: uint32_t, offset 4field ot_scene_text_info.byte_count: uint32_t, offset 8field ot_scene_text_info.text_length: uint32_t, offset 12field ot_scene_text_info.line_count: uint32_t, offset 16field ot_scene_text_info.virtual_line_count: uint32_t, offset 20field ot_scene_text_info.width_cols_max: uint32_t, offset 24field ot_scene_text_info.reserved: uint32_t, offset 28
struct ot_scene_text_linefield ot_scene_text_line.start_cols: uint32_t, offset 0field ot_scene_text_line.width_cols: uint32_t, offset 4field ot_scene_text_line.source_line: uint32_t, offset 8field ot_scene_text_line.wrap_index: uint32_t, offset 12
struct ot_scene_text_optionsfield ot_scene_text_options.struct_size: uint32_t, offset 0field ot_scene_text_options.abi_version: uint32_t, offset 4field ot_scene_text_options.foreground: uint16_t[4], offset 8field ot_scene_text_options.background: uint16_t[4], offset 16field ot_scene_text_options.attributes: uint32_t, offset 24field ot_scene_text_options.wrap_mode: uint32_t, offset 28field ot_scene_text_options.truncate: uint32_t, offset 32field ot_scene_text_options.first_line_offset: uint32_t, offset 36field ot_scene_text_options.scroll_x: double, offset 40field ot_scene_text_options.scroll_y: double, offset 48field ot_scene_text_options.tab_indicator: uint32_t, offset 56field ot_scene_text_options.tab_color_set: uint32_t, offset 60field ot_scene_text_options.tab_color: uint16_t[4], offset 64field ot_scene_text_options.text_align: uint32_t, offset 72
struct ot_scene_text_selection_optionsfield ot_scene_text_selection_options.struct_size: uint32_t, offset 0field ot_scene_text_selection_options.abi_version: uint32_t, offset 4field ot_scene_text_selection_options.operation: uint32_t, offset 8field ot_scene_text_selection_options.behavior: uint32_t, offset 12field ot_scene_text_selection_options.anchor_x: int32_t, offset 16field ot_scene_text_selection_options.anchor_y: int32_t, offset 20field ot_scene_text_selection_options.focus_x: int32_t, offset 24field ot_scene_text_selection_options.focus_y: int32_t, offset 28field ot_scene_text_selection_options.flags: uint32_t, offset 32field ot_scene_text_selection_options.reserved: uint32_t, offset 36field ot_scene_text_selection_options.background: uint16_t[4], offset 40field ot_scene_text_selection_options.foreground: uint16_t[4], offset 48
struct ot_session_capabilitiesfield ot_session_capabilities.struct_size: uint32_t, offset 0field ot_session_capabilities.abi_version: uint32_t, offset 4field ot_session_capabilities.flags: uint32_t, offset 8field ot_session_capabilities.width_method: uint32_t, offset 12field ot_session_capabilities.multiplexer: uint32_t, offset 16field ot_session_capabilities.image_protocol: uint32_t, offset 20field ot_session_capabilities.osc52_support: uint32_t, offset 24field ot_session_capabilities.kitty_keyboard_flags: uint32_t, offset 28field ot_session_capabilities.term_name_len: uint32_t, offset 32field ot_session_capabilities.term_version_len: uint32_t, offset 36field ot_session_capabilities.term_from_xtversion: uint32_t, offset 40field ot_session_capabilities.reserved: uint32_t, offset 44field ot_session_capabilities.term_name: uint8_t[64], offset 48field ot_session_capabilities.term_version: uint8_t[32], offset 112
struct ot_session_control_optionsfield ot_session_control_options.struct_size: uint32_t, offset 0field ot_session_control_options.abi_version: uint32_t, offset 4field ot_session_control_options.kind: uint32_t, offset 8field ot_session_control_options.argument: uint32_t, offset 12field ot_session_control_options.reserved: uint32_t, offset 16
struct ot_session_cursor_updatefield ot_session_cursor_update.fields: uint32_t, offset 0field ot_session_cursor_update.x: int32_t, offset 4field ot_session_cursor_update.y: int32_t, offset 8field ot_session_cursor_update.visible: uint8_t, offset 12field ot_session_cursor_update.style: uint8_t, offset 13field ot_session_cursor_update.blinking: uint8_t, offset 14field ot_session_cursor_update.mouse_pointer: uint8_t, offset 15field ot_session_cursor_update.color: uint16_t[4], offset 16
struct ot_session_kitty_image_transportfield ot_session_kitty_image_transport.struct_size: uint32_t, offset 0field ot_session_kitty_image_transport.abi_version: uint32_t, offset 4field ot_session_kitty_image_transport.requested: uint32_t, offset 8field ot_session_kitty_image_transport.effective: uint32_t, offset 12field ot_session_kitty_image_transport.file_state: uint32_t, offset 16field ot_session_kitty_image_transport.fallback: uint32_t, offset 20field ot_session_kitty_image_transport.pending_files: uint32_t, offset 24field ot_session_kitty_image_transport.pending_bytes: uint32_t, offset 28
struct ot_session_optionsfield ot_session_options.struct_size: uint32_t, offset 0field ot_session_options.abi_version: uint32_t, offset 4field ot_session_options.chunk_size: uint32_t, offset 8field ot_session_options.span_capacity: uint32_t, offset 12field ot_session_options.max_bytes: uint64_t, offset 16field ot_session_options.control_capacity: uint32_t, offset 24field ot_session_options.reserved: uint32_t, offset 28
struct ot_session_pump_resultfield ot_session_pump_result.struct_size: uint32_t, offset 0field ot_session_pump_result.abi_version: uint32_t, offset 4field ot_session_pump_result.status: uint32_t, offset 8field ot_session_pump_result.reserved: uint32_t, offset 12field ot_session_pump_result.deadline_ns: uint64_t, offset 16
struct ot_session_renderer_env_optionsfield ot_session_renderer_env_options.struct_size: uint32_t, offset 0field ot_session_renderer_env_options.abi_version: uint32_t, offset 4field ot_session_renderer_env_options.width: uint32_t, offset 8field ot_session_renderer_env_options.height: uint32_t, offset 12field ot_session_renderer_env_options.remote_mode: uint32_t, offset 16field ot_session_renderer_env_options.entry_count: uint32_t, offset 20field ot_session_renderer_env_options.byte_count: uint32_t, offset 24field ot_session_renderer_env_options.reserved: uint32_t, offset 28
struct ot_session_renderer_optionsfield ot_session_renderer_options.struct_size: uint32_t, offset 0field ot_session_renderer_options.abi_version: uint32_t, offset 4field ot_session_renderer_options.width: uint32_t, offset 8field ot_session_renderer_options.height: uint32_t, offset 12field ot_session_renderer_options.remote: uint32_t, offset 16field ot_session_renderer_options.reserved: uint32_t, offset 20
struct ot_session_renderer_statefield ot_session_renderer_state.struct_size: uint32_t, offset 0field ot_session_renderer_state.abi_version: uint32_t, offset 4field ot_session_renderer_state.width: uint32_t, offset 8field ot_session_renderer_state.height: uint32_t, offset 12field ot_session_renderer_state.frame_count: uint64_t, offset 16field ot_session_renderer_state.frame_pending: uint32_t, offset 24field ot_session_renderer_state.reserved: uint32_t, offset 28
struct ot_session_terminal_optionsfield ot_session_terminal_options.struct_size: uint32_t, offset 0field ot_session_terminal_options.abi_version: uint32_t, offset 4field ot_session_terminal_options.flags: uint32_t, offset 8field ot_session_terminal_options.kitty_keyboard_flags: uint32_t, offset 12
struct ot_split_controlfield ot_split_control.struct_size: uint32_t, offset 0field ot_split_control.abi_version: uint32_t, offset 4field ot_split_control.command: uint32_t, offset 8field ot_split_control.arguments: uint32_t[6], offset 12
struct ot_split_snapshotfield ot_split_snapshot.buffer: ot_handle, offset 0field ot_split_snapshot.row_columns: uint32_t, offset 16field ot_split_snapshot.flags: uint32_t, offset 20
struct ot_styled_text_chunkfield ot_styled_text_chunk.struct_size: uint32_t, offset 0field ot_styled_text_chunk.abi_version: uint32_t, offset 4field ot_styled_text_chunk.byte_count: uint32_t, offset 8field ot_styled_text_chunk.flags: uint32_t, offset 12field ot_styled_text_chunk.foreground: uint16_t[4], offset 16field ot_styled_text_chunk.background: uint16_t[4], offset 24field ot_styled_text_chunk.attributes: uint32_t, offset 32field ot_styled_text_chunk.reserved: uint32_t, offset 36field ot_styled_text_chunk.link_offset: uint32_t, offset 40field ot_styled_text_chunk.link_byte_count: uint32_t, offset 44
struct ot_text_buffer_infofield ot_text_buffer_info.struct_size: uint32_t, offset 0field ot_text_buffer_info.abi_version: uint32_t, offset 4field ot_text_buffer_info.content_epoch: uint64_t, offset 8field ot_text_buffer_info.byte_count: uint32_t, offset 16field ot_text_buffer_info.text_length: uint32_t, offset 20field ot_text_buffer_info.line_count: uint32_t, offset 24field ot_text_buffer_info.highlight_count: uint32_t, offset 28field ot_text_buffer_info.tab_width: uint32_t, offset 32field ot_text_buffer_info.reserved: uint32_t, offset 36
struct ot_text_buffer_replacementfield ot_text_buffer_replacement.struct_size: uint32_t, offset 0field ot_text_buffer_replacement.abi_version: uint32_t, offset 4field ot_text_buffer_replacement.buffer: ot_handle, offset 8field ot_text_buffer_replacement.view: ot_handle, offset 24field ot_text_buffer_replacement.byte_offset: uint32_t, offset 40field ot_text_buffer_replacement.byte_count: uint32_t, offset 44field ot_text_buffer_replacement.chunk_offset: uint32_t, offset 48field ot_text_buffer_replacement.chunk_count: uint32_t, offset 52
struct ot_text_buffer_replacement_infofield ot_text_buffer_replacement_info.text_length: uint32_t, offset 0field ot_text_buffer_replacement_info.byte_count: uint32_t, offset 4
struct ot_unicode_charfield ot_unicode_char.width: uint32_t, offset 0field ot_unicode_char.character: uint32_t, offset 4
Types#
type ot_context = struct ot_contexttype ot_edit_event_callback = void (*)(uint64_t context_id, uint32_t slot, uint32_t generation, uint32_t event)type ot_output_write_callback = int64_t (*)(void *user_data, const uint8_t *bytes, uint32_t byte_count)type ot_scene_measure_callback = void (*)(uint64_t context_id, uint32_t slot, uint32_t generation, float width, uint32_t width_mode, float height, uint32_t height_mode, float *out_size)type ot_status = int32_t
Constants and variables#
const OT_ALIGN_AUTO = 0const OT_ALIGN_BASELINE = 5const OT_ALIGN_CENTER = 2const OT_ALIGN_FLEX_END = 3const OT_ALIGN_FLEX_START = 1const OT_ALIGN_SPACE_AROUND = 7const OT_ALIGN_SPACE_BETWEEN = 6const OT_ALIGN_SPACE_EVENLY = 8const OT_ALIGN_STRETCH = 4const OT_BORDER_ALL = 15const OT_BORDER_BOTTOM = 2const OT_BORDER_DOUBLE = 1const OT_BORDER_HEAVY = 3const OT_BORDER_LEFT = 1const OT_BORDER_NONE = 0const OT_BORDER_RIGHT = 4const OT_BORDER_ROUNDED = 2const OT_BORDER_SINGLE = 0const OT_BORDER_TOP = 8const OT_BOX_SIZING_BORDER_BOX = 0const OT_BOX_SIZING_CONTENT_BOX = 1const OT_BUFFER_DRAW_BOX = 6const OT_BUFFER_DRAW_CELL = 3const OT_BUFFER_DRAW_CELL_BLEND = 4const OT_BUFFER_DRAW_CHAR = 5const OT_BUFFER_DRAW_CLEAR = 0const OT_BUFFER_DRAW_COMPOSE = 7const OT_BUFFER_DRAW_FILL = 1const OT_BUFFER_DRAW_HAS_BACKGROUND = 1const OT_BUFFER_DRAW_HAS_SOURCE_HEIGHT = 4const OT_BUFFER_DRAW_HAS_SOURCE_WIDTH = 2const OT_BUFFER_DRAW_RESPECT_ALPHA = 8const OT_BUFFER_DRAW_TEXT = 2const OT_BUFFER_GRID_INNER = 1const OT_BUFFER_GRID_OUTER = 2const OT_BUFFER_RESPECT_ALPHA = 1const OT_BUFFER_STACK_CLEAR_OPACITY = 6const OT_BUFFER_STACK_CLEAR_SCISSORS = 3const OT_BUFFER_STACK_DEPTH_MAX = 256const OT_BUFFER_STACK_GET_OPACITY = 0const OT_BUFFER_STACK_POP_OPACITY = 5const OT_BUFFER_STACK_POP_SCISSOR = 2const OT_BUFFER_STACK_PUSH_OPACITY = 4const OT_BUFFER_STACK_PUSH_SCISSOR = 1const OT_BUFFER_TEXT_BYTES_MAX = 65536const OT_CAP_ANSI256 = 8const OT_CAP_BRACKETED_PASTE = 2048const OT_CAP_COLOR_SCHEME_UPDATES = 32const OT_CAP_EXPLICIT_CURSOR_POSITIONING = 32768const OT_CAP_EXPLICIT_WIDTH = 64const OT_CAP_FOCUS_TRACKING = 512const OT_CAP_HYPERLINKS = 4096const OT_CAP_KITTY_GRAPHICS = 2const OT_CAP_KITTY_KEYBOARD = 1const OT_CAP_NOTIFICATIONS = 16384const OT_CAP_OSC52 = 8192const OT_CAP_REMOTE = 65536const OT_CAP_RGB = 4const OT_CAP_SCALED_TEXT = 128const OT_CAP_SGR_PIXELS = 16const OT_CAP_SIXEL = 256const OT_CAP_SYNC = 1024const OT_CLIPBOARD_CANCEL_ALREADY_TERMINAL = 1const OT_CLIPBOARD_CANCEL_INVALID_HANDLE = 2const OT_CLIPBOARD_CANCEL_REQUESTED = 0const OT_CLIPBOARD_COPY_BUFFER_TOO_SMALL = 1const OT_CLIPBOARD_COPY_INVALID_ARGUMENT = 4const OT_CLIPBOARD_COPY_INVALID_HANDLE = 2const OT_CLIPBOARD_COPY_INVALID_STATE = 3const OT_CLIPBOARD_COPY_OK = 0const OT_CLIPBOARD_DESTROY_DESTROYED = 0const OT_CLIPBOARD_DESTROY_INVALID_HANDLE = 2const OT_CLIPBOARD_DESTROY_NOT_READY = 1const OT_CLIPBOARD_OPERATION_CANCELLED = 6const OT_CLIPBOARD_OPERATION_CLEARED = 4const OT_CLIPBOARD_OPERATION_EMPTY = 2const OT_CLIPBOARD_OPERATION_FAILED = 9const OT_CLIPBOARD_OPERATION_INVALID_HANDLE = 10const OT_CLIPBOARD_OPERATION_LIMIT_EXCEEDED = 8const OT_CLIPBOARD_OPERATION_PENDING = 0const OT_CLIPBOARD_OPERATION_READ = 1const OT_CLIPBOARD_OPERATION_TIMED_OUT = 7const OT_CLIPBOARD_OPERATION_UNSUPPORTED = 5const OT_CLIPBOARD_OPERATION_WRITTEN = 3const OT_CLIPBOARD_SHUTDOWN_INVALID_HANDLE = 2const OT_CLIPBOARD_SHUTDOWN_PENDING = 0const OT_CLIPBOARD_SHUTDOWN_READY = 1const OT_CLIPBOARD_START_INVALID_ARGUMENT = 4const OT_CLIPBOARD_START_INVALID_SERVICE = 1const OT_CLIPBOARD_START_LIMIT_EXCEEDED = 3const OT_CLIPBOARD_START_OK = 0const OT_CLIPBOARD_START_OUT_OF_MEMORY = 5const OT_CLIPBOARD_START_SHUTTING_DOWN = 2const OT_COLOR_CHANNEL_MASK = 255const OT_COLOR_DEFAULT = 2const OT_COLOR_INDEXED = 1const OT_COLOR_META_SHIFT = 8const OT_COLOR_RGB = 0const OT_CONTEXT_ABI_VERSION = 1const OT_CONTEXT_BUSY = -6const OT_CONTROL_CAPABILITY_RESPONSE = 1const OT_CONTROL_CURSOR = 8const OT_CONTROL_KITTY_KEYBOARD_FLAGS = 4const OT_CONTROL_MOUSE = 3const OT_CONTROL_PACKET_LIMIT = -20const OT_CONTROL_PALETTE_QUERY = 10const OT_CONTROL_QUERY_PIXEL_RESOLUTION = 6const OT_CONTROL_QUERY_THEME_COLORS = 7const OT_CONTROL_RESET_BACKGROUND = 9const OT_CONTROL_RESTORE_MODES = 5const OT_CONTROL_TITLE = 2const OT_CURSOR_BLINKING = 4const OT_CURSOR_COLOR = 8const OT_CURSOR_MOUSE_POINTER = 16const OT_CURSOR_POSITION = 1const OT_CURSOR_STYLE = 2const OT_DIAGNOSTIC_MESSAGE_BYTES = 4096const OT_DIAGNOSTIC_TRUNCATED = 1const OT_DIMENSION_HEIGHT = 1const OT_DIMENSION_WIDTH = 0const OT_DIRECTION_INHERIT = 0const OT_DIRECTION_LTR = 1const OT_DIRECTION_RTL = 2const OT_DISPLAY_FLEX = 0const OT_DISPLAY_NONE = 1const OT_EDGE_ALL = 8const OT_EDGE_BOTTOM = 3const OT_EDGE_END = 5const OT_EDGE_HORIZONTAL = 6const OT_EDGE_LEFT = 0const OT_EDGE_NONE = 0const OT_EDGE_RIGHT = 2const OT_EDGE_START = 4const OT_EDGE_TOP = 1const OT_EDGE_VERTICAL = 7const OT_EDIT_BACKSPACE = 1const OT_EDIT_CLEAR = 10const OT_EDIT_CLEAR_HISTORY = 11const OT_EDIT_CONTENT_CHANGED = 2const OT_EDIT_CURSOR_CHANGED = 1const OT_EDIT_CURSOR_OFFSET = 9const OT_EDIT_DEBUG_ROPE = 12const OT_EDIT_DELETE_FORWARD = 0const OT_EDIT_DELETE_LINE = 3const OT_EDIT_GOTO_LINE = 8const OT_EDIT_HIGHLIGHT_ADD_LINE = 0const OT_EDIT_HIGHLIGHT_ADD_RANGE = 1const OT_EDIT_HIGHLIGHT_CLEAR_ALL = 4const OT_EDIT_HIGHLIGHT_CLEAR_LINE = 3const OT_EDIT_HIGHLIGHT_REMOVE_REF = 2const OT_EDIT_HISTORY_CURSOR_CHANGED = 4const OT_EDIT_MOVE_DOWN = 7const OT_EDIT_MOVE_LEFT = 4const OT_EDIT_MOVE_RIGHT = 5const OT_EDIT_MOVE_UP = 6const OT_EDIT_NEW_LINE = 2const OT_EDIT_POSITION_COORDS = 5const OT_EDIT_POSITION_CURSOR = 0const OT_EDIT_POSITION_EOL = 3const OT_EDIT_POSITION_LINE_START = 6const OT_EDIT_POSITION_NEXT_WORD = 1const OT_EDIT_POSITION_OFFSET = 4const OT_EDIT_POSITION_PREV_WORD = 2const OT_EDITOR_CURSOR_OFFSET = 4const OT_EDITOR_DELETE_SELECTION = 3const OT_EDITOR_GOTO_LINE_END = 2const OT_EDITOR_MOVE_DOWN = 1const OT_EDITOR_MOVE_UP = 0const OT_EDITOR_POSITION_CURSOR = 0const OT_EDITOR_POSITION_EOL = 3const OT_EDITOR_POSITION_NEXT_WORD = 1const OT_EDITOR_POSITION_PREV_WORD = 2const OT_EDITOR_POSITION_VISUAL_EOL = 5const OT_EDITOR_POSITION_VISUAL_SOL = 4const OT_EDITOR_SELECT_CELL = 6const OT_EDITOR_SELECT_COLORS = 9const OT_EDITOR_SELECT_INCLUSIVE = 8const OT_EDITOR_SELECT_LOCAL = 3const OT_EDITOR_SELECT_LOCAL_RESET = 5const OT_EDITOR_SELECT_LOCAL_UPDATE = 4const OT_EDITOR_SELECT_OCCUPANCY = 7const OT_EDITOR_SELECT_RESET = 2const OT_EDITOR_SELECT_SET = 0const OT_EDITOR_SELECT_UPDATE = 1const OT_EDITOR_STYLE_ATTRIBUTES = 4const OT_EDITOR_STYLE_BACKGROUND = 2const OT_EDITOR_STYLE_FOREGROUND = 1const OT_EDITOR_TAB_INDICATOR = 6const OT_EDITOR_WRAP_MODE = 5const OT_EMBEDDED_TERMINAL_CLEAR_SELECTION = 2const OT_EMBEDDED_TERMINAL_INVALIDATE = 0const OT_EMBEDDED_TERMINAL_SCROLL = 1const OT_EMBEDDED_TERMINAL_SET_TRANSPARENT_BACKGROUND = 3const OT_FLEX_DIRECTION_COLUMN = 0const OT_FLEX_DIRECTION_COLUMN_REVERSE = 1const OT_FLEX_DIRECTION_ROW = 2const OT_FLEX_DIRECTION_ROW_REVERSE = 3const OT_FLEX_WRAP_NONE = 0const OT_FLEX_WRAP_REVERSE = 2const OT_FLEX_WRAP_WRAP = 1const OT_FRAME_BUSY = -27const OT_FRAME_REQUEST_LIMIT = -28const OT_GUTTER_ALL = 2const OT_GUTTER_COLUMN = 0const OT_GUTTER_ROW = 1const OT_IMAGE_ALPHA_OPAQUE = 1const OT_IMAGE_ALPHA_STRAIGHT = 0const OT_IMAGE_ASSUMED_SRGB = 0const OT_IMAGE_BGRA8 = 1const OT_IMAGE_BLEND_DESTINATION_OVER = 2const OT_IMAGE_BLEND_SOURCE = 1const OT_IMAGE_BLEND_SOURCE_OVER = 0const OT_IMAGE_BUSY = -47const OT_IMAGE_COVER = 1const OT_IMAGE_DIMENSION_LIMIT = -43const OT_IMAGE_DRAW_SOURCE_HEIGHT = 2const OT_IMAGE_DRAW_SOURCE_WIDTH = 1const OT_IMAGE_EXPLICIT_SRGB = 1const OT_IMAGE_FILL = 2const OT_IMAGE_FILTER_AREA = 1const OT_IMAGE_FILTER_CATMULL_ROM = 4const OT_IMAGE_FILTER_CUBIC_BSPLINE = 3const OT_IMAGE_FILTER_DEFAULT = 0const OT_IMAGE_FILTER_MITCHELL = 5const OT_IMAGE_FILTER_NEAREST = 6const OT_IMAGE_FILTER_TRIANGLE = 2const OT_IMAGE_FIT = 0const OT_IMAGE_FLIP = 3const OT_IMAGE_FLOP = 4const OT_IMAGE_FORMAT_GIF = 5const OT_IMAGE_FORMAT_JPEG = 3const OT_IMAGE_FORMAT_PNG = 1const OT_IMAGE_FORMAT_RGBA = 2const OT_IMAGE_FORMAT_UNKNOWN = 0const OT_IMAGE_FORMAT_WEBP = 4const OT_IMAGE_MALFORMED_DATA = -42const OT_IMAGE_MEMORY_LIMIT = -44const OT_IMAGE_OUTPUT_TOO_SMALL = -45const OT_IMAGE_PROTOCOL_AUTO = 0const OT_IMAGE_PROTOCOL_BLOCKS = 3const OT_IMAGE_PROTOCOL_KITTY = 1const OT_IMAGE_PROTOCOL_SIXEL = 2const OT_IMAGE_RGBA8 = 0const OT_IMAGE_ROTATE_180 = 1const OT_IMAGE_ROTATE_270 = 2const OT_IMAGE_ROTATE_90 = 0const OT_IMAGE_UNSUPPORTED_COLOR_SPACE = -41const OT_IMAGE_UNSUPPORTED_FEATURE = -46const OT_IMAGE_UNSUPPORTED_FORMAT = -40const OT_INTERNAL_ERROR = -5const OT_INVALID_ARGUMENT = -1const OT_INVALID_PHASE = -19const OT_JUSTIFY_CENTER = 1const OT_JUSTIFY_FLEX_END = 2const OT_JUSTIFY_FLEX_START = 0const OT_JUSTIFY_SPACE_AROUND = 4const OT_JUSTIFY_SPACE_BETWEEN = 3const OT_JUSTIFY_SPACE_EVENLY = 5const OT_LAYOUT_LIMIT = -26const OT_LAYOUT_PAINT = 2const OT_LAYOUT_PUBLIC = 0const OT_LAYOUT_YOGA = 1const OT_LEASE_BYTES_LIMIT = -22const OT_LEASE_LIMIT = -21const OT_MEASURE_AT_MOST = 2const OT_MEASURE_EXACTLY = 1const OT_MEASURE_UNDEFINED = 0const OT_MOUSE_POINTER_ALIAS = 12const OT_MOUSE_POINTER_ALL_SCROLL = 19const OT_MOUSE_POINTER_AUTO = 0const OT_MOUSE_POINTER_CELL = 8const OT_MOUSE_POINTER_COL_RESIZE = 20const OT_MOUSE_POINTER_CONTEXT_MENU = 3const OT_MOUSE_POINTER_COPY = 13const OT_MOUSE_POINTER_CROSSHAIR = 9const OT_MOUSE_POINTER_DEFAULT = 1const OT_MOUSE_POINTER_E_RESIZE = 23const OT_MOUSE_POINTER_EW_RESIZE = 30const OT_MOUSE_POINTER_GRAB = 17const OT_MOUSE_POINTER_GRABBING = 18const OT_MOUSE_POINTER_HELP = 4const OT_MOUSE_POINTER_MAX = 35const OT_MOUSE_POINTER_MOVE = 14const OT_MOUSE_POINTER_N_RESIZE = 22const OT_MOUSE_POINTER_NE_RESIZE = 26const OT_MOUSE_POINTER_NESW_RESIZE = 32const OT_MOUSE_POINTER_NO_DROP = 15const OT_MOUSE_POINTER_NONE = 2const OT_MOUSE_POINTER_NOT_ALLOWED = 16const OT_MOUSE_POINTER_NS_RESIZE = 31const OT_MOUSE_POINTER_NW_RESIZE = 27const OT_MOUSE_POINTER_NWSE_RESIZE = 33const OT_MOUSE_POINTER_POINTER = 5const OT_MOUSE_POINTER_PROGRESS = 6const OT_MOUSE_POINTER_ROW_RESIZE = 21const OT_MOUSE_POINTER_S_RESIZE = 24const OT_MOUSE_POINTER_SE_RESIZE = 28const OT_MOUSE_POINTER_SW_RESIZE = 29const OT_MOUSE_POINTER_TEXT = 10const OT_MOUSE_POINTER_UNCHANGED = 4294967295const OT_MOUSE_POINTER_VERTICAL_TEXT = 11const OT_MOUSE_POINTER_W_RESIZE = 25const OT_MOUSE_POINTER_WAIT = 7const OT_MOUSE_POINTER_ZOOM_IN = 34const OT_MOUSE_POINTER_ZOOM_OUT = 35const OT_OBJECT_LIMIT = -16const OT_OK = 0const OT_OUT_OF_MEMORY = -3const OT_OUTPUT_BACKPRESSURE = -11const OT_OUTPUT_BUSY = -13const OT_OUTPUT_FAILED = -15const OT_OVERFLOW_HIDDEN = 1const OT_OVERFLOW_SCROLL = 2const OT_OVERFLOW_VISIBLE = 0const OT_POSITION_ABSOLUTE = 2const OT_POSITION_RELATIVE = 1const OT_POSITION_STATIC = 0const OT_PUMP_AGAIN = 1const OT_PUMP_CLOSED = 4const OT_PUMP_IDLE = 0const OT_PUMP_OUTPUT_PENDING = 2const OT_PUMP_WAIT_UNTIL = 3const OT_RENDER_FAILED = 3const OT_RENDER_PENDING = 1const OT_RENDER_PRESENTED = 0const OT_RENDER_SKIPPED = 2const OT_RENDERER_ATTACHED = -17const OT_RENDERER_NOT_ATTACHED = -18const OT_SCENE_ALIGN_CENTER = 1const OT_SCENE_ALIGN_LEFT = 0const OT_SCENE_ALIGN_RIGHT = 2const OT_SCENE_ARROW = 4const OT_SCENE_BOX = 1const OT_SCENE_CUSTOM = 6const OT_SCENE_EDITOR = 5const OT_SCENE_FRAME_DONE = 0const OT_SCENE_FRAME_LAYOUT_CHANGED = 3const OT_SCENE_FRAME_RECORD = 4const OT_SCENE_FRAME_RESIZE = 2const OT_SCENE_FRAME_UPDATE = 1const OT_SCENE_FRAME_YIELD = 5const OT_SCENE_GEOMETRY_PAINT = 1const OT_SCENE_GEOMETRY_PUBLIC = 2const OT_SCENE_HOOK_IDLE_UPDATE = 64const OT_SCENE_HOOK_LAYOUT_CHANGED = 4const OT_SCENE_HOOK_RENDER_AFTER = 16const OT_SCENE_HOOK_RENDER_BEFORE = 8const OT_SCENE_HOOK_RENDER_SELF = 32const OT_SCENE_HOOK_RESIZE = 2const OT_SCENE_HOOK_UPDATE = 1const OT_SCENE_IMAGE = 8const OT_SCENE_MUTATIONS_MAX = 4096const OT_SCENE_PROPERTY_BACKGROUND = 64const OT_SCENE_PROPERTY_BORDER = 16const OT_SCENE_PROPERTY_BORDER_COLOR = 128const OT_SCENE_PROPERTY_BORDER_STYLE = 256const OT_SCENE_PROPERTY_BYTES_MAX = 360448const OT_SCENE_PROPERTY_FOCUSABLE = 512const OT_SCENE_PROPERTY_FOCUSED_BORDER_COLOR = 1024const OT_SCENE_PROPERTY_OPACITY = 2const OT_SCENE_PROPERTY_RECORD_MAX = 88const OT_SCENE_PROPERTY_RESET_BORDER_CHARACTERS = 4096const OT_SCENE_PROPERTY_SHOULD_FILL = 32const OT_SCENE_PROPERTY_STYLE = 2048const OT_SCENE_PROPERTY_TRANSLATE_X = 4const OT_SCENE_PROPERTY_TRANSLATE_Y = 8const OT_SCENE_PROPERTY_Z_INDEX = 1const OT_SCENE_RECORD_BYTES_MAX = 67108864const OT_SCENE_RECORD_COLOR_MATRIX = 7const OT_SCENE_RECORD_DRAW = 1const OT_SCENE_RECORD_EDITOR_VIEW = 9const OT_SCENE_RECORD_GRAYSCALE = 6const OT_SCENE_RECORD_GRAYSCALE_BACKGROUND = 2const OT_SCENE_RECORD_GRAYSCALE_FOREGROUND = 1const OT_SCENE_RECORD_GRAYSCALE_SUPERSAMPLED = 4const OT_SCENE_RECORD_GRID = 3const OT_SCENE_RECORD_IMAGE = 11const OT_SCENE_RECORD_PACKED = 4const OT_SCENE_RECORD_PHASE_AFTER = 2const OT_SCENE_RECORD_PHASE_BEFORE = 0const OT_SCENE_RECORD_PHASE_SELF = 1const OT_SCENE_RECORD_SCENE_TEXT = 10const OT_SCENE_RECORD_SLOT = 0const OT_SCENE_RECORD_STACK = 2const OT_SCENE_RECORD_SUPERSAMPLE = 5const OT_SCENE_RECORD_TEXT_VIEW = 8const OT_SCENE_RECORD_UNICODE = 12const OT_SCENE_ROOT = 0const OT_SCENE_SLIDER = 3const OT_SCENE_TEXT = 2const OT_SCENE_TEXT_BACKGROUND = 2const OT_SCENE_TEXT_FOREGROUND = 1const OT_SCENE_TEXT_LINK = 4const OT_SCENE_TEXT_SELECTION_BACKGROUND = 1const OT_SCENE_TEXT_SELECTION_CELL = 0const OT_SCENE_TEXT_SELECTION_FOREGROUND = 2const OT_SCENE_TEXT_SELECTION_LINE = 2const OT_SCENE_TEXT_SELECTION_RESET = 0const OT_SCENE_TEXT_SELECTION_SET = 1const OT_SCENE_TEXT_SELECTION_UPDATE = 2const OT_SCENE_TEXT_SELECTION_WORD = 1const OT_SCENE_TEXT_VIEW = 7const OT_SCENE_WRAP_CHAR = 1const OT_SCENE_WRAP_NONE = 0const OT_SCENE_WRAP_WORD = 2const OT_SELECT_DOCUMENT_RESET = 2const OT_SELECT_DOCUMENT_SET = 0const OT_SELECT_DOCUMENT_UPDATE = 1const OT_SELECT_VIEWPORT_RESET = 5const OT_SELECT_VIEWPORT_SET = 3const OT_SELECT_VIEWPORT_UPDATE = 4const OT_SELECTION_CELL = 0const OT_SELECTION_LINE = 2const OT_SELECTION_OCCUPANCY_BOUNDARY = 1const OT_SELECTION_OCCUPANCY_CELL = 0const OT_SELECTION_WORD = 1const OT_SESSION_BUFFER_CURRENT = 0const OT_SESSION_BUFFER_NEXT = 1const OT_SESSION_CANCELLED_STATE = 4const OT_SESSION_CLOSED = -12const OT_SESSION_CLOSED_STATE = 2const OT_SESSION_CLOSING = 1const OT_SESSION_CONTROL_PACKET_BYTES = 4096const OT_SESSION_ENV_BYTES_MAX = 65536const OT_SESSION_ENV_ENTRIES_MAX = 256const OT_SESSION_FAILED = 3const OT_SESSION_OPEN = 0const OT_SESSION_REMOTE_AUTO = 0const OT_SESSION_REMOTE_LOCAL = 1const OT_SESSION_REMOTE_REMOTE = 2const OT_STALE_FRAME = -25const OT_STALE_HANDLE = -9const OT_STALE_LEASE = -23const OT_STALE_OUTPUT = -14const OT_STYLE_BORDER = 3const OT_STYLE_BORDER_WIDTH = 0const OT_STYLE_DIMENSION = 4const OT_STYLE_DISABLE_FLEX_SHRINK = 1const OT_STYLE_ENUM = 0const OT_STYLE_ENUM_ALIGN_CONTENT = 3const OT_STYLE_ENUM_ALIGN_CONTENT_MAX = 8const OT_STYLE_ENUM_ALIGN_ITEMS = 4const OT_STYLE_ENUM_ALIGN_ITEMS_MAX = 8const OT_STYLE_ENUM_ALIGN_SELF = 5const OT_STYLE_ENUM_ALIGN_SELF_MAX = 8const OT_STYLE_ENUM_BOX_SIZING = 10const OT_STYLE_ENUM_BOX_SIZING_MAX = 1const OT_STYLE_ENUM_DIRECTION = 0const OT_STYLE_ENUM_DIRECTION_MAX = 2const OT_STYLE_ENUM_DISPLAY = 9const OT_STYLE_ENUM_DISPLAY_MAX = 1const OT_STYLE_ENUM_FLEX_DIRECTION = 1const OT_STYLE_ENUM_FLEX_DIRECTION_MAX = 3const OT_STYLE_ENUM_FLEX_WRAP = 7const OT_STYLE_ENUM_FLEX_WRAP_MAX = 2const OT_STYLE_ENUM_JUSTIFY_CONTENT = 2const OT_STYLE_ENUM_JUSTIFY_CONTENT_MAX = 5const OT_STYLE_ENUM_OVERFLOW = 8const OT_STYLE_ENUM_OVERFLOW_MAX = 2const OT_STYLE_ENUM_POSITION_TYPE = 6const OT_STYLE_ENUM_POSITION_TYPE_MAX = 2const OT_STYLE_FLAGS_NONE = 0const OT_STYLE_FLOAT = 1const OT_STYLE_FLOAT_ASPECT_RATIO = 3const OT_STYLE_FLOAT_FLEX = 0const OT_STYLE_FLOAT_FLEX_GROW = 1const OT_STYLE_FLOAT_FLEX_SHRINK = 2const OT_STYLE_VALUE = 2const OT_STYLE_VALUE_FLEX_BASIS = 6const OT_STYLE_VALUE_GAP = 10const OT_STYLE_VALUE_HEIGHT = 1const OT_STYLE_VALUE_MARGIN = 7const OT_STYLE_VALUE_MAX_HEIGHT = 5const OT_STYLE_VALUE_MAX_WIDTH = 4const OT_STYLE_VALUE_MIN_HEIGHT = 3const OT_STYLE_VALUE_MIN_WIDTH = 2const OT_STYLE_VALUE_PADDING = 8const OT_STYLE_VALUE_POSITION = 9const OT_STYLE_VALUE_WIDTH = 0const OT_TERMINAL_ACTIVE = 2const OT_TERMINAL_ALTERNATE_SCREEN = 1const OT_TERMINAL_CANCELLED = 9const OT_TERMINAL_CLEAR_ON_CLOSE = 8const OT_TERMINAL_CLOSING = 6const OT_TERMINAL_FAILED = 8const OT_TERMINAL_MOUSE = 2const OT_TERMINAL_MOUSE_MOVEMENT = 4const OT_TERMINAL_RESTORED = 7const OT_TERMINAL_RESUMING = 5const OT_TERMINAL_SETTING_UP = 1const OT_TERMINAL_SUSPENDED = 4const OT_TERMINAL_SUSPENDING = 3const OT_TERMINAL_UNINITIALIZED = 0const OT_TEXT_REPLACEMENT_BYTES_MAX = 4194304const OT_TEXT_REPLACEMENT_CHUNKS_MAX = 4096const OT_TEXT_REPLACEMENT_COUNT_MAX = 256const OT_TEXT_REPLACEMENT_URL_BYTES_MAX = 1048576const OT_TEXT_VIEW_FIRST_LINE_OFFSET = 2const OT_TEXT_VIEW_TAB_INDICATOR = 3const OT_TEXT_VIEW_TEXT_ALIGN = 5const OT_TEXT_VIEW_TRUNCATE = 4const OT_TEXT_VIEW_WRAP_MODE = 1const OT_TEXT_VIEW_WRAP_WIDTH = 0const OT_UNIT_AUTO = 3const OT_UNIT_PERCENT = 2const OT_UNIT_POINT = 1const OT_UNIT_UNDEFINED = 0const OT_UNSUPPORTED_RESOURCE = -24const OT_UNSUPPORTED_VERSION = -2const OT_WIDTH_METHOD_NO_ZWJ = 2const OT_WIDTH_METHOD_UNICODE = 1const OT_WIDTH_METHOD_UNICODE_WIDE = 3const OT_WIDTH_METHOD_WCWIDTH = 0const OT_WRONG_CONTEXT = -7const OT_WRONG_KIND = -8const OT_WRONG_SESSION = -10const OT_WRONG_THREAD = -4