![]() |
libghostty
|
#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 |
Mouse encoder size and geometry context.
This describes the rendered terminal geometry used to convert surface-space positions into encoded coordinates.
Definition at line 73 of file mouse/encoder.h.
| uint32_t cell_height |
Cell height in pixels. Must be non-zero.
Definition at line 87 of file mouse/encoder.h.
| uint32_t cell_width |
Cell width in pixels. Must be non-zero.
Definition at line 84 of file mouse/encoder.h.
| uint32_t padding_bottom |
Bottom padding in pixels.
Definition at line 93 of file mouse/encoder.h.
| uint32_t padding_left |
Left padding in pixels.
Definition at line 99 of file mouse/encoder.h.
| uint32_t padding_right |
Right padding in pixels.
Definition at line 96 of file mouse/encoder.h.
| uint32_t padding_top |
Top padding in pixels.
Definition at line 90 of file mouse/encoder.h.
| uint32_t screen_height |
Full screen height in pixels.
Definition at line 81 of file mouse/encoder.h.
| uint32_t screen_width |
Full screen width in pixels.
Definition at line 78 of file mouse/encoder.h.
| size_t size |
Size of this struct in bytes. Must be set to sizeof(GhosttyMouseEncoderSize).
Definition at line 75 of file mouse/encoder.h.