Skip to content

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:

events

preferred_scale ¤

preferred_scale(scale: int) -> None

Notify of new preferred scale

Notification of a new preferred scale for this surface that the compositor suggests that the client should use.

The sent scale is the numerator of a fraction with a denominator of 120.

Parameters:

  • scale ¤

    (int) –

    The new 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.