libghostty
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
27
28
#include <stddef.h>
29
#include <
ghostty/vt/types.h
>
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
38
typedef
enum
GHOSTTY_ENUM_TYPED
{
40
GHOSTTY_FOCUS_GAINED
= 0,
42
GHOSTTY_FOCUS_LOST
= 1,
43
GHOSTTY_FOCUS_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
44
}
GhosttyFocusEvent
;
45
64
GHOSTTY_API
GhosttyResult
ghostty_focus_encode
(
65
GhosttyFocusEvent
event,
66
char
* buf,
67
size_t
buf_len,
68
size_t
* out_written);
69
70
#ifdef __cplusplus
71
}
72
#endif
73
75
76
#endif
/* GHOSTTY_VT_FOCUS_H */
GhosttyFocusEvent
GhosttyFocusEvent
Definition
focus.h:38
ghostty_focus_encode
GHOSTTY_API GhosttyResult ghostty_focus_encode(GhosttyFocusEvent event, char *buf, size_t buf_len, size_t *out_written)
GHOSTTY_FOCUS_LOST
@ GHOSTTY_FOCUS_LOST
Definition
focus.h:42
GHOSTTY_FOCUS_GAINED
@ GHOSTTY_FOCUS_GAINED
Definition
focus.h:40
types.h
GhosttyResult
GhosttyResult
Definition
types.h:74
GHOSTTY_ENUM_TYPED
#define GHOSTTY_ENUM_TYPED
Definition
types.h:67
include
ghostty
vt
focus.h
Generated by
1.16.1