package wayland
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0f882060a4cfe9424ed397676b8e2aaa931d84610beb29cb2ec9c355d1819625
sha512=847781a3d274da7463ad1a2e46bada3663b8dee08fa576ad787e7ba35cb0f39a3e1a0e6e9729db2f643885a35ae32ece0358c5897d31b68907cad44f1b26af31
doc/wayland.protocols/Wayland_protocols/Viewporter_server/Wp_viewport/class-v1/index.html
Class Wp_viewport.v1
Source
Handler for a proxy with version >= 1.
constraint 'a = [< `V1 ]
method private virtual on_destroy : [> `V1 ] t -> unit
Remove scaling and cropping from the surface.
The associated wl_surface's crop and scale state is removed. The change is applied on the next wl_surface.commit.
method private virtual on_set_source : [> `V1 ] t ->
x:Fixed.t ->
y:Fixed.t ->
width:Fixed.t ->
height:Fixed.t ->
unit
Set the source rectangle for cropping.
Set the source rectangle of the associated wl_surface. See wp_viewport for the description, and relation to the wl_buffer size.
If all of x, y, width and height are -1.0, the source rectangle is unset instead. Any other set of values where width or height are zero or negative, or x or y are negative, raise the bad_value protocol error.
The crop and scale state is double-buffered, see wl_surface.commit.
method private virtual on_set_destination : [> `V1 ] t ->
width:int32 ->
height:int32 ->
unit
Set the surface size for scaling.
Set the destination size of the associated wl_surface. See wp_viewport for the description, and relation to the wl_buffer size.
If width is -1 and height is -1, the destination size is unset instead. Any other pair of values for width and height that contains zero or negative values raises the bad_value protocol error.
The crop and scale state is double-buffered, see wl_surface.commit.