mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
wlr_scene: Introduce wlr_scene_buffer_set_opacity
This commit is contained in:
parent
2346b90a9f
commit
95062904c7
2 changed files with 23 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ struct wlr_scene_buffer {
|
|||
|
||||
// private state
|
||||
|
||||
float opacity;
|
||||
uint64_t active_outputs;
|
||||
struct wlr_texture *texture;
|
||||
struct wlr_fbox src_box;
|
||||
|
|
@ -415,6 +416,12 @@ void wlr_scene_buffer_set_dest_size(struct wlr_scene_buffer *scene_buffer,
|
|||
void wlr_scene_buffer_set_transform(struct wlr_scene_buffer *scene_buffer,
|
||||
enum wl_output_transform transform);
|
||||
|
||||
/**
|
||||
* Sets the opacity of this buffer
|
||||
*/
|
||||
void wlr_scene_buffer_set_opacity(struct wlr_scene_buffer *scene_buffer,
|
||||
float opacity);
|
||||
|
||||
/**
|
||||
* Calls the buffer's frame_done signal.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue