package wayland
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=10627a94f4cef97147991528fcd246f8f27ccbf3026eafdece995b53ee9468a0
sha512=8e319dc236d04cc9084bf81782497899dca12a392d649a2ac7bd1d5edc1101ebe2bc266a033e23ab9ed46a8b692018bc47005036d10872f7825f4aa4009ab825
doc/wayland.protocols/Wayland_protocols/Viewporter_server/Wp_viewport/class-v1/index.html
Class Wp_viewport.v1Source
Handler for a proxy with version >= 1.
constraint 'a = [< `V1 ]method private virtual on_destroy : [> `V1 ] t -> unitRemove 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 ->
unitSet 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 ->
unitSet 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.