libghostty
Loading...
Searching...
No Matches
GhosttyMouseEncoderSize Struct Reference

#include <ghostty/vt/mouse/encoder.h>

Data Fields

size_t size
uint32_t screen_width
uint32_t screen_height
uint32_t cell_width
uint32_t cell_height
uint32_t padding_top
uint32_t padding_bottom
uint32_t padding_right
uint32_t padding_left

Detailed Description

Mouse encoder size and geometry context.

This describes the rendered terminal geometry used to convert surface-space positions into encoded coordinates.

Examples
c-vt-mouse-encode/src/main.c.

Definition at line 71 of file mouse/encoder.h.

Field Documentation

◆ cell_height

uint32_t cell_height

Cell height in pixels. Must be non-zero.

Definition at line 85 of file mouse/encoder.h.

◆ cell_width

uint32_t cell_width

Cell width in pixels. Must be non-zero.

Definition at line 82 of file mouse/encoder.h.

◆ padding_bottom

uint32_t padding_bottom

Bottom padding in pixels.

Definition at line 91 of file mouse/encoder.h.

◆ padding_left

uint32_t padding_left

Left padding in pixels.

Definition at line 97 of file mouse/encoder.h.

◆ padding_right

uint32_t padding_right

Right padding in pixels.

Definition at line 94 of file mouse/encoder.h.

◆ padding_top

uint32_t padding_top

Top padding in pixels.

Definition at line 88 of file mouse/encoder.h.

◆ screen_height

uint32_t screen_height

Full screen height in pixels.

Definition at line 79 of file mouse/encoder.h.

◆ screen_width

uint32_t screen_width

Full screen width in pixels.

Definition at line 76 of file mouse/encoder.h.

◆ size

size_t size

Size of this struct in bytes. Must be set to sizeof(GhosttyMouseEncoderSize).

Definition at line 73 of file mouse/encoder.h.


The documentation for this struct was generated from the following file: