libghostty-vt
1.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
68
GHOSTTY_API
GhosttyResult
ghostty_focus_encode
(
69
GhosttyFocusEvent
event,
70
uint8_t* buf,
71
size_t
buf_len,
72
size_t
* out_written);
73
74
#ifdef __cplusplus
75
}
76
#endif
77
79
80
#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