summaryrefslogtreecommitdiffstats
path: root/include/swaylock/swaylock.h
diff options
context:
space:
mode:
authorLibravatar Zandr Martin <zandrmartin@gmail.com>2016-09-02 13:46:19 -0500
committerLibravatar Zandr Martin <zandrmartin@gmail.com>2016-09-02 13:46:19 -0500
commit79ffea328c992c5109406771a59a9f016d85970d (patch)
tree5d965e72127f227ea0a38dc5c6e4fc14e08d9498 /include/swaylock/swaylock.h
parentrefactor commands.c (diff)
parentMerge pull request #878 from lukaslihotzki/master (diff)
downloadsway-79ffea328c992c5109406771a59a9f016d85970d.tar.gz
sway-79ffea328c992c5109406771a59a9f016d85970d.tar.zst
sway-79ffea328c992c5109406771a59a9f016d85970d.zip
Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactor
Diffstat (limited to 'include/swaylock/swaylock.h')
-rw-r--r--include/swaylock/swaylock.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h
new file mode 100644
index 00000000..1cf66e89
--- /dev/null
+++ b/include/swaylock/swaylock.h
@@ -0,0 +1,37 @@
1#ifndef _SWAYLOCK_H
2#define _SWAYLOCK_H
3
4#include "client/cairo.h"
5
6enum scaling_mode {
7 SCALING_MODE_STRETCH,
8 SCALING_MODE_FILL,
9 SCALING_MODE_FIT,
10 SCALING_MODE_CENTER,
11 SCALING_MODE_TILE,
12};
13
14enum auth_state {
15 AUTH_STATE_IDLE,
16 AUTH_STATE_INPUT,
17 AUTH_STATE_BACKSPACE,
18 AUTH_STATE_VALIDATING,
19 AUTH_STATE_INVALID,
20};
21
22struct render_data {
23 list_t *surfaces;
24 // Output specific images
25 cairo_surface_t **images;
26 // OR one image for all outputs:
27 cairo_surface_t *image;
28 int num_images;
29 int color_set;
30 uint32_t color;
31 enum scaling_mode scaling_mode;
32 enum auth_state auth_state;
33};
34
35void render(struct render_data* render_data);
36
37#endif