summaryrefslogtreecommitdiffstats
path: root/include/swaylock
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-09-01 08:18:37 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-09-01 08:18:37 -0400
commit416417a54c5875abcdc257b6ad10ff086c35eefc (patch)
tree00f20884a05d05e620a4a24bba8595557cd41405 /include/swaylock
parentMerge pull request #876 from zandrmartin/patch-1 (diff)
downloadsway-416417a54c5875abcdc257b6ad10ff086c35eefc.tar.gz
sway-416417a54c5875abcdc257b6ad10ff086c35eefc.tar.zst
sway-416417a54c5875abcdc257b6ad10ff086c35eefc.zip
Reorganize includes
Diffstat (limited to 'include/swaylock')
-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