libghostty-vt
0.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
point.h
Go to the documentation of this file.
1
6
7
#ifndef GHOSTTY_VT_POINT_H
8
#define GHOSTTY_VT_POINT_H
9
10
#include <stdint.h>
11
12
#include <
ghostty/vt/types.h
>
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
43
49
typedef
struct
{
51
uint16_t
x
;
52
54
uint32_t
y
;
55
}
GhosttyPointCoordinate
;
56
64
typedef
enum
GHOSTTY_ENUM_TYPED
{
66
GHOSTTY_POINT_TAG_ACTIVE
= 0,
67
69
GHOSTTY_POINT_TAG_VIEWPORT
= 1,
70
72
GHOSTTY_POINT_TAG_SCREEN
= 2,
73
75
GHOSTTY_POINT_TAG_HISTORY
= 3,
76
GHOSTTY_POINT_TAG_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
77
}
GhosttyPointTag
;
78
84
typedef
union
{
86
GhosttyPointCoordinate
coordinate
;
87
89
uint64_t
_padding
[2];
90
}
GhosttyPointValue
;
91
97
typedef
struct
{
98
GhosttyPointTag
tag;
99
GhosttyPointValue
value;
100
}
GhosttyPoint
;
101
103
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif
/* GHOSTTY_VT_POINT_H */
GHOSTTY_ENUM_TYPED
#define GHOSTTY_ENUM_TYPED
Definition
types.h:124
GhosttyPointTag
GhosttyPointTag
Definition
point.h:64
GHOSTTY_POINT_TAG_ACTIVE
@ GHOSTTY_POINT_TAG_ACTIVE
Definition
point.h:66
GHOSTTY_POINT_TAG_SCREEN
@ GHOSTTY_POINT_TAG_SCREEN
Definition
point.h:72
GHOSTTY_POINT_TAG_VIEWPORT
@ GHOSTTY_POINT_TAG_VIEWPORT
Definition
point.h:69
GHOSTTY_POINT_TAG_HISTORY
@ GHOSTTY_POINT_TAG_HISTORY
Definition
point.h:75
GhosttyPointCoordinate
Definition
point.h:49
GhosttyPointCoordinate::x
uint16_t x
Definition
point.h:51
GhosttyPointCoordinate::y
uint32_t y
Definition
point.h:54
GhosttyPoint
Definition
point.h:97
types.h
GhosttyPointValue
Definition
point.h:84
GhosttyPointValue::_padding
uint64_t _padding[2]
Definition
point.h:89
GhosttyPointValue::coordinate
GhosttyPointCoordinate coordinate
Definition
point.h:86
include
ghostty
vt
point.h
Generated by
1.17.0