Skip to content

Commit

Permalink
FFI build + Scene: Add set_opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijenbergh committed Oct 15, 2023
1 parent 35b0b4e commit 34b471d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wlroots/ffi_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,9 @@ def has_xwayland() -> bool:
void wlr_scene_buffer_set_transform(struct wlr_scene_buffer *scene_buffer,
enum wl_output_transform transform);
void wlr_scene_buffer_set_opacity(struct wlr_scene_buffer *scene_buffer,
float opacity);
void wlr_scene_buffer_set_corner_radius(struct wlr_scene_buffer *scene_buffer,
int radii);
Expand Down
3 changes: 3 additions & 0 deletions wlroots/wlr_types/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ def set_buffer_with_damage(
def set_corner_radius(self, radii: int) -> None:
lib.wlr_scene_buffer_set_corner_radius(self._ptr, radii)

def set_opacity(self, opacity: float) -> None:
lib.wlr_scene_buffer_set_opacity(self._ptr, opacity)


T = TypeVar("T")
BufferCallback = Callable[[SceneBuffer, int, int, T], None]
Expand Down

0 comments on commit 34b471d

Please sign in to comment.