wp_fractional_scale_v1¤
wayland.wp_fractional_scale_v1 ¤
Fractional scale interface to a wl_surface
An additional interface to a wl_surface object which allows the compositor to inform the client of the preferred scale.
Methods:
-
destroy
–Remove surface scale information for surface
-
on_preferred_scale
–Notify of new preferred scale.
events
preferred_scale ¤
destroy ¤
destroy() -> None
Remove surface scale information for surface
Destroy the fractional scale object. When this object is destroyed, preferred_scale events will no longer be sent.
on_preferred_scale ¤
on_preferred_scale(scale: int) -> None
Notify of new preferred scale.
Override to handle wayland.wp_fractional_scale_v1.events.preferred_scale
.