fractional_scale_v1
-
# wp_fractional_scale_manager_v1
A global interface for requesting surfaces to use fractional scales.Requests
-
void wp_fractional_scale_manager_v1_destroy(struct wp_fractional_scale_manager_v1* wp_fractional_scale_manager_v1)Informs the server that the client will not be using this protocol object anymore. This does not affect any other objects, wp_fractional_scale_v1 objects included.
-
struct wp_fractional_scale_v1* wp_fractional_scale_manager_v1_get_fractional_scale(struct wp_fractional_scale_manager_v1* wp_fractional_scale_manager_v1,struct wl_surface* surface /* the surface */)Create an add-on object for the the wl_surface to let the compositor request fractional scales. If the given wl_surface already has a wp_fractional_scale_v1 object associated, the fractional_scale_exists protocol error is raised.
Enums
-
WP_FRACTIONAL_SCALE_MANAGER_V1_ERROR_FRACTIONAL_SCALE_EXISTS /* the surface already has a fractional_scale object associated */
-
-
# wp_fractional_scale_v1
An additional interface to a wl_surface object which allows the compositor to inform the client of the preferred scale.Requests
-
void wp_fractional_scale_v1_destroy(struct wp_fractional_scale_v1* wp_fractional_scale_v1)Destroy the fractional scale object. When this object is destroyed, preferred_scale events will no longer be sent.
Events
-
uint32_t scale /* the 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.
-
Copyright Info
Copyright © 2022 Kenny Levinsen
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.