libghostty-vt
0.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
focus.h
Go to the documentation of this file.
1
6
7
#ifndef GHOSTTY_VT_FOCUS_H
8
#define GHOSTTY_VT_FOCUS_H
9
28
29
#include <stddef.h>
30
#include <
ghostty/vt/types.h
>
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
39
typedef
enum
GHOSTTY_ENUM_TYPED
{
41
GHOSTTY_FOCUS_GAINED
= 0,
43
GHOSTTY_FOCUS_LOST
= 1,
44
GHOSTTY_FOCUS_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
45
}
GhosttyFocusEvent
;
46
67
GHOSTTY_API
GhosttyResult
ghostty_focus_encode
(
68
GhosttyFocusEvent
event,
69
uint8_t* buf,
70
size_t
buf_len,
71
size_t
* out_written);
72
73
#ifdef __cplusplus
74
}
75
#endif
76
78
79
#endif
/* GHOSTTY_VT_FOCUS_H */
GhosttyResult
GhosttyResult
Definition
types.h:143
GHOSTTY_ENUM_TYPED
#define GHOSTTY_ENUM_TYPED
Definition
types.h:124
GhosttyFocusEvent
GhosttyFocusEvent
Definition
focus.h:39
ghostty_focus_encode
GHOSTTY_API GhosttyResult ghostty_focus_encode(GhosttyFocusEvent event, uint8_t *buf, size_t buf_len, size_t *out_written)
GHOSTTY_FOCUS_LOST
@ GHOSTTY_FOCUS_LOST
Definition
focus.h:43
GHOSTTY_FOCUS_GAINED
@ GHOSTTY_FOCUS_GAINED
Definition
focus.h:41
types.h
include
ghostty
vt
focus.h
Generated by
1.17.0