![]() |
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 71 of file mouse/encoder.h.
| uint32_t cell_height |
Cell height in pixels. Must be non-zero.
Definition at line 85 of file mouse/encoder.h.
| uint32_t cell_width |
Cell width in pixels. Must be non-zero.
Definition at line 82 of file mouse/encoder.h.
| uint32_t padding_bottom |
Bottom padding in pixels.
Definition at line 91 of file mouse/encoder.h.
| uint32_t padding_left |
Left padding in pixels.
Definition at line 97 of file mouse/encoder.h.
| uint32_t padding_right |
Right padding in pixels.
Definition at line 94 of file mouse/encoder.h.
| uint32_t padding_top |
Top padding in pixels.
Definition at line 88 of file mouse/encoder.h.
| uint32_t screen_height |
Full screen height in pixels.
Definition at line 79 of file mouse/encoder.h.
| uint32_t screen_width |
Full screen width in pixels.
Definition at line 76 of file mouse/encoder.h.
| size_t size |
Size of this struct in bytes. Must be set to sizeof(GhosttyMouseEncoderSize).
Definition at line 73 of file mouse/encoder.h.