mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
config: move structs and enums used by config from terminal.h -> config.h
This commit is contained in:
parent
cbae14f0c5
commit
d04bc6ab10
4 changed files with 13 additions and 11 deletions
12
config.h
12
config.h
|
|
@ -4,11 +4,11 @@
|
|||
#include <stdbool.h>
|
||||
#include <uchar.h>
|
||||
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include <tllist.h>
|
||||
#include <fcft/fcft.h>
|
||||
|
||||
#include "terminal.h"
|
||||
#include "user-notification.h"
|
||||
#include "wayland.h"
|
||||
|
||||
#define DEFINE_LIST(type) \
|
||||
type##_list { \
|
||||
|
|
@ -16,6 +16,14 @@
|
|||
type *arr; \
|
||||
}
|
||||
|
||||
/* If px != 0 then px is valid, otherwise pt is valid */
|
||||
struct pt_or_px {
|
||||
int16_t px;
|
||||
float pt;
|
||||
};
|
||||
|
||||
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BEAM };
|
||||
|
||||
enum conf_size_type {CONF_SIZE_PX, CONF_SIZE_CELLS};
|
||||
|
||||
struct config_font {
|
||||
|
|
|
|||
1
server.h
1
server.h
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "fdm.h"
|
||||
#include "config.h"
|
||||
#include "reaper.h"
|
||||
#include "wayland.h"
|
||||
|
||||
struct server;
|
||||
|
|
|
|||
10
terminal.h
10
terminal.h
|
|
@ -14,7 +14,7 @@
|
|||
#include <tllist.h>
|
||||
#include <fcft/fcft.h>
|
||||
|
||||
//#include "config.h"
|
||||
#include "config.h"
|
||||
#include "composed.h"
|
||||
#include "debug.h"
|
||||
#include "fdm.h"
|
||||
|
|
@ -248,8 +248,6 @@ enum mouse_reporting {
|
|||
MOUSE_SGR_PIXELS, /* ?1016h */
|
||||
};
|
||||
|
||||
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BEAM };
|
||||
|
||||
enum selection_kind {
|
||||
SELECTION_NONE,
|
||||
SELECTION_CHAR_WISE,
|
||||
|
|
@ -299,12 +297,6 @@ struct url {
|
|||
};
|
||||
typedef tll(struct url) url_list_t;
|
||||
|
||||
/* If px != 0 then px is valid, otherwise pt is valid */
|
||||
struct pt_or_px {
|
||||
int16_t px;
|
||||
float pt;
|
||||
};
|
||||
|
||||
struct terminal {
|
||||
struct fdm *fdm;
|
||||
struct reaper *reaper;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
#include <fcft/fcft.h>
|
||||
#include <tllist.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "fdm.h"
|
||||
|
||||
/* Forward declarations */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue