libghostty
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
26
32
typedef
struct
{
34
uint16_t
x
;
35
37
uint32_t
y
;
38
}
GhosttyPointCoordinate
;
39
47
typedef
enum
GHOSTTY_ENUM_TYPED
{
49
GHOSTTY_POINT_TAG_ACTIVE
= 0,
50
52
GHOSTTY_POINT_TAG_VIEWPORT
= 1,
53
55
GHOSTTY_POINT_TAG_SCREEN
= 2,
56
58
GHOSTTY_POINT_TAG_HISTORY
= 3,
59
GHOSTTY_POINT_TAG_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
60
}
GhosttyPointTag
;
61
67
typedef
union
{
69
GhosttyPointCoordinate
coordinate
;
70
72
uint64_t
_padding
[2];
73
}
GhosttyPointValue
;
74
80
typedef
struct
{
81
GhosttyPointTag
tag;
82
GhosttyPointValue
value;
83
}
GhosttyPoint
;
84
86
87
#ifdef __cplusplus
88
}
89
#endif
90
91
#endif
/* GHOSTTY_VT_POINT_H */
GhosttyPointTag
GhosttyPointTag
Definition
point.h:47
GHOSTTY_POINT_TAG_ACTIVE
@ GHOSTTY_POINT_TAG_ACTIVE
Definition
point.h:49
GHOSTTY_POINT_TAG_SCREEN
@ GHOSTTY_POINT_TAG_SCREEN
Definition
point.h:55
GHOSTTY_POINT_TAG_VIEWPORT
@ GHOSTTY_POINT_TAG_VIEWPORT
Definition
point.h:52
GHOSTTY_POINT_TAG_HISTORY
@ GHOSTTY_POINT_TAG_HISTORY
Definition
point.h:58
GhosttyPointCoordinate
Definition
point.h:32
GhosttyPointCoordinate::x
uint16_t x
Definition
point.h:34
GhosttyPointCoordinate::y
uint32_t y
Definition
point.h:37
GhosttyPoint
Definition
point.h:80
types.h
GHOSTTY_ENUM_TYPED
#define GHOSTTY_ENUM_TYPED
Definition
types.h:81
GhosttyPointValue
Definition
point.h:67
GhosttyPointValue::_padding
uint64_t _padding[2]
Definition
point.h:72
GhosttyPointValue::coordinate
GhosttyPointCoordinate coordinate
Definition
point.h:69
include
ghostty
vt
point.h
Generated by
1.18.0