diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/pango.h | 11 | ||||
-rw-r--r-- | include/sway/config.h | 7 | ||||
-rw-r--r-- | include/sway/server.h | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/include/pango.h b/include/pango.h index f6325f28..d8263f9e 100644 --- a/include/pango.h +++ b/include/pango.h | |||
@@ -6,6 +6,17 @@ | |||
6 | #include <cairo/cairo.h> | 6 | #include <cairo/cairo.h> |
7 | #include <pango/pangocairo.h> | 7 | #include <pango/pangocairo.h> |
8 | 8 | ||
9 | /* Utility function which escape characters a & < > ' ". | ||
10 | * | ||
11 | * If the dest parameter is NULL, then the function returns the length of | ||
12 | * of the escaped src string. The dest_length doesn't matter. | ||
13 | * | ||
14 | * If the dest parameter is not NULL then the fuction escapes the src string | ||
15 | * an puts the escaped string in dest and returns the lenght of the escaped string. | ||
16 | * The dest_length parameter is the size of dest array. If the size of dest is not | ||
17 | * enough, then the function returns -1. | ||
18 | */ | ||
19 | int escape_markup_text(const char *src, char *dest, int dest_length); | ||
9 | PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, | 20 | PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, |
10 | const char *text, int32_t scale, bool markup); | 21 | const char *text, int32_t scale, bool markup); |
11 | void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, | 22 | void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, |
diff --git a/include/sway/config.h b/include/sway/config.h index b20458cb..f77c3b50 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -107,6 +107,12 @@ struct seat_config { | |||
107 | list_t *attachments; // list of seat_attachment configs | 107 | list_t *attachments; // list of seat_attachment configs |
108 | }; | 108 | }; |
109 | 109 | ||
110 | enum config_dpms { | ||
111 | DPMS_IGNORE, | ||
112 | DPMS_ON, | ||
113 | DPMS_OFF | ||
114 | }; | ||
115 | |||
110 | /** | 116 | /** |
111 | * Size and position configuration for a particular output. | 117 | * Size and position configuration for a particular output. |
112 | * | 118 | * |
@@ -123,6 +129,7 @@ struct output_config { | |||
123 | 129 | ||
124 | char *background; | 130 | char *background; |
125 | char *background_option; | 131 | char *background_option; |
132 | enum config_dpms dpms_state; | ||
126 | }; | 133 | }; |
127 | 134 | ||
128 | /** | 135 | /** |
diff --git a/include/sway/server.h b/include/sway/server.h index 071135ca..d04ea896 100644 --- a/include/sway/server.h +++ b/include/sway/server.h | |||
@@ -22,6 +22,7 @@ struct sway_server { | |||
22 | 22 | ||
23 | struct wlr_compositor *compositor; | 23 | struct wlr_compositor *compositor; |
24 | struct wlr_data_device_manager *data_device_manager; | 24 | struct wlr_data_device_manager *data_device_manager; |
25 | struct wlr_idle *idle; | ||
25 | 26 | ||
26 | struct sway_input_manager *input; | 27 | struct sway_input_manager *input; |
27 | 28 | ||