diff options
author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-09-25 14:41:47 +0200 |
---|---|---|
committer | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-09-25 14:41:47 +0200 |
commit | 0984e60ec573f3a71cc880f8e9c3ccc047b7b2d6 (patch) | |
tree | 82868f2e3a302a66a8a4f56086ad062ba5800e1a /src/surface.h | |
parent | fbb75017a893a039c0227d33df2be9a11c079fd5 (diff) | |
download | wlclock-0984e60ec573f3a71cc880f8e9c3ccc047b7b2d6.tar.gz wlclock-0984e60ec573f3a71cc880f8e9c3ccc047b7b2d6.tar.bz2 |
Draw clock hands
Diffstat (limited to '')
-rw-r--r-- | src/surface.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/surface.h b/src/surface.h index 0f6ce48..d2dcb25 100644 --- a/src/surface.h +++ b/src/surface.h @@ -15,12 +15,16 @@ struct Wlclock_output; struct Wlclock_surface { struct Wlclock_output *output; - struct wl_surface *surface; + struct wl_surface *background_surface; + struct wl_surface *hands_surface; + struct wl_subsurface *subsurface; struct zwlr_layer_surface_v1 *layer_surface; struct Wlclock_dimensions dimensions; - struct Wlclock_buffer buffers[2]; - struct Wlclock_buffer *current_buffer; + struct Wlclock_buffer background_buffers[2]; + struct Wlclock_buffer *current_background_buffer; + struct Wlclock_buffer hands_buffers[2]; + struct Wlclock_buffer *current_hands_buffer; bool configured; }; @@ -29,5 +33,6 @@ void destroy_surface (struct Wlclock_surface *surface); void destroy_all_surfaces (struct Wlclock *clock); void update_surface (struct Wlclock_surface *surface); void update_all_surfaces (struct Wlclock *clock); +void update_all_hands (struct Wlclock *clock); #endif |