xx_fractional_scale_v2 ↗
Copyright
Copyright © 2022 Xaver Hugl Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- xx_fractional_scale_manager_v2 — creates surface scale interfaces
- xx_fractional_scale_v2 — interface for fractional scaling
Protocol for fractional scaling
This protocol allows compositors and clients to communicate the coordinate space their surfaces act in.
xx_fractional_scale_v2
xx_fractional_scale_manager_v2
- destroy — release the global
- error
- get_fractional_scale — create an interface to enable fractional scaling
creates surface scale interfaces
A global interface to create xx_fractional_scale_v2 interfaces.
xx_fractional_scale_v2
xx_fractional_scale_v2
- scale_factor — set the compositor coordinate space scale factor
- set_scale_factor — set the client coordinate space scale factor
- destroy — remove the scale interface from the surface
- error
interface for fractional scaling
An additional interface for a wl_surface object that allows compositor and client to communicate in a different coordinate space, in order to enable them to accurately describe coordinates and sizes in pixels. The two coordinate spaces in consideration are logical and pixels, where logical coordinates describe the size content should have and pixels describe the size of buffers.
A scale of one equals a lack of scaling, where the communicated values define both logical coordinates and pixels. A scale greater than one describes that for every logical coordinate, more than one pixel is used, and a scale less than one describes that multiple logical coordinates make up one pixel. In mathematical terms, logical coordinates can be obtained by dividing the provided values by the currently active scale.
The initial compositor and client coordinate scale factors are 1.