7#ifndef GHOSTTY_VT_SELECTION_H
8#define GHOSTTY_VT_SELECTION_H
259 GHOSTTY_SELECTION_ORDER_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
314 GHOSTTY_SELECTION_ADJUST_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
335 GHOSTTY_SELECTION_GESTURE_BEHAVIOR_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
388 GHOSTTY_SELECTION_GESTURE_AUTOSCROLL_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
419 GHOSTTY_SELECTION_GESTURE_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
446 GHOSTTY_SELECTION_GESTURE_EVENT_TYPE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
513 GHOSTTY_SELECTION_GESTURE_EVENT_OPT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
726 size_t* out_written);
875 size_t* out_written);
1023 bool* out_contains);
GHOSTTY_API GhosttyResult ghostty_selection_gesture_event_new(const GhosttyAllocator *allocator, GhosttySelectionGestureEvent *out_event, GhosttySelectionGestureEventType type)
GhosttySelectionGestureBehavior
struct GhosttySelectionGestureImpl * GhosttySelectionGesture
GHOSTTY_API GhosttyResult ghostty_terminal_selection_equal(GhosttyTerminal terminal, const GhosttySelection *a, const GhosttySelection *b, bool *out_equal)
GHOSTTY_API GhosttyResult ghostty_selection_gesture_event(GhosttySelectionGesture gesture, GhosttyTerminal terminal, GhosttySelectionGestureEvent event, GhosttySelection *out_selection)
GHOSTTY_API GhosttyResult ghostty_terminal_select_all(GhosttyTerminal terminal, GhosttySelection *out_selection)
GHOSTTY_API GhosttyResult ghostty_selection_gesture_get(GhosttySelectionGesture gesture, GhosttyTerminal terminal, GhosttySelectionGestureData data, void *value)
GHOSTTY_API GhosttyResult ghostty_selection_gesture_get_multi(GhosttySelectionGesture gesture, GhosttyTerminal terminal, size_t count, const GhosttySelectionGestureData *keys, void **values, size_t *out_written)
GHOSTTY_API GhosttyResult ghostty_terminal_selection_format_buf(GhosttyTerminal terminal, GhosttyTerminalSelectionFormatOptions options, uint8_t *buf, size_t buf_len, size_t *out_written)
GHOSTTY_API GhosttyResult ghostty_terminal_select_output(GhosttyTerminal terminal, GhosttyGridRef ref, GhosttySelection *out_selection)
GhosttySelectionGestureAutoscroll
GHOSTTY_API GhosttyResult ghostty_terminal_selection_order(GhosttyTerminal terminal, const GhosttySelection *selection, GhosttySelectionOrder *out_order)
struct GhosttySelectionGestureEventImpl * GhosttySelectionGestureEvent
GHOSTTY_API GhosttyResult ghostty_selection_gesture_event_set(GhosttySelectionGestureEvent event, GhosttySelectionGestureEventOption option, const void *value)
GhosttySelectionGestureData
GHOSTTY_API GhosttyResult ghostty_terminal_selection_contains(GhosttyTerminal terminal, const GhosttySelection *selection, GhosttyPoint point, bool *out_contains)
GHOSTTY_API void ghostty_selection_gesture_event_free(GhosttySelectionGestureEvent event)
GHOSTTY_API GhosttyResult ghostty_terminal_select_word_between(GhosttyTerminal terminal, const GhosttyTerminalSelectWordBetweenOptions *options, GhosttySelection *out_selection)
GHOSTTY_API GhosttyResult ghostty_terminal_selection_format_alloc(GhosttyTerminal terminal, const GhosttyAllocator *allocator, GhosttyTerminalSelectionFormatOptions options, uint8_t **out_ptr, size_t *out_len)
GHOSTTY_API GhosttyResult ghostty_terminal_select_line(GhosttyTerminal terminal, const GhosttyTerminalSelectLineOptions *options, GhosttySelection *out_selection)
GHOSTTY_API GhosttyResult ghostty_selection_gesture_new(const GhosttyAllocator *allocator, GhosttySelectionGesture *out_gesture)
GHOSTTY_API void ghostty_selection_gesture_reset(GhosttySelectionGesture gesture, GhosttyTerminal terminal)
GHOSTTY_API GhosttyResult ghostty_terminal_selection_ordered(GhosttyTerminal terminal, const GhosttySelection *selection, GhosttySelectionOrder desired, GhosttySelection *out_selection)
GHOSTTY_API GhosttyResult ghostty_terminal_selection_adjust(GhosttyTerminal terminal, GhosttySelection *selection, GhosttySelectionAdjust adjustment)
GHOSTTY_API GhosttyResult ghostty_terminal_select_word(GhosttyTerminal terminal, const GhosttyTerminalSelectWordOptions *options, GhosttySelection *out_selection)
GhosttySelectionGestureEventOption
GHOSTTY_API void ghostty_selection_gesture_free(GhosttySelectionGesture gesture, GhosttyTerminal terminal)
GhosttySelectionGestureEventType
@ GHOSTTY_SELECTION_ORDER_MIRRORED_FORWARD
@ GHOSTTY_SELECTION_ORDER_MIRRORED_REVERSE
@ GHOSTTY_SELECTION_ORDER_FORWARD
@ GHOSTTY_SELECTION_ORDER_REVERSE
@ GHOSTTY_SELECTION_GESTURE_BEHAVIOR_OUTPUT
@ GHOSTTY_SELECTION_GESTURE_BEHAVIOR_CELL
@ GHOSTTY_SELECTION_GESTURE_BEHAVIOR_WORD
@ GHOSTTY_SELECTION_GESTURE_BEHAVIOR_LINE
@ GHOSTTY_SELECTION_GESTURE_AUTOSCROLL_NONE
@ GHOSTTY_SELECTION_GESTURE_AUTOSCROLL_DOWN
@ GHOSTTY_SELECTION_GESTURE_AUTOSCROLL_UP
@ GHOSTTY_SELECTION_GESTURE_DATA_DRAGGED
@ GHOSTTY_SELECTION_GESTURE_DATA_AUTOSCROLL
@ GHOSTTY_SELECTION_GESTURE_DATA_BEHAVIOR
@ GHOSTTY_SELECTION_GESTURE_DATA_CLICK_COUNT
@ GHOSTTY_SELECTION_GESTURE_DATA_ANCHOR
@ GHOSTTY_SELECTION_ADJUST_END_OF_LINE
@ GHOSTTY_SELECTION_ADJUST_LEFT
@ GHOSTTY_SELECTION_ADJUST_BEGINNING_OF_LINE
@ GHOSTTY_SELECTION_ADJUST_PAGE_UP
@ GHOSTTY_SELECTION_ADJUST_PAGE_DOWN
@ GHOSTTY_SELECTION_ADJUST_UP
@ GHOSTTY_SELECTION_ADJUST_HOME
@ GHOSTTY_SELECTION_ADJUST_END
@ GHOSTTY_SELECTION_ADJUST_RIGHT
@ GHOSTTY_SELECTION_ADJUST_DOWN
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_WORD_BOUNDARY_CODEPOINTS
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_REPEAT_DISTANCE
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_REPEAT_INTERVAL_NS
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_GEOMETRY
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_TIME_NS
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_REF
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_RECTANGLE
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_BEHAVIORS
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_POSITION
@ GHOSTTY_SELECTION_GESTURE_EVENT_OPT_VIEWPORT
@ GHOSTTY_SELECTION_GESTURE_EVENT_TYPE_PRESS
@ GHOSTTY_SELECTION_GESTURE_EVENT_TYPE_AUTOSCROLL_TICK
@ GHOSTTY_SELECTION_GESTURE_EVENT_TYPE_DEEP_PRESS
@ GHOSTTY_SELECTION_GESTURE_EVENT_TYPE_RELEASE
@ GHOSTTY_SELECTION_GESTURE_EVENT_TYPE_DRAG
struct GhosttyTerminalImpl * GhosttyTerminal
GhosttySelectionGestureBehavior triple_click
GhosttySelectionGestureBehavior double_click
GhosttySelectionGestureBehavior single_click
bool semantic_prompt_boundary
const uint32_t * whitespace
size_t boundary_codepoints_len
const uint32_t * boundary_codepoints
size_t boundary_codepoints_len
const uint32_t * boundary_codepoints
#define GHOSTTY_ENUM_TYPED