pub struct MagnificationHandlerSynchronousProxy { /* private fields */ }
Implementations§
source§impl MagnificationHandlerSynchronousProxy
impl MagnificationHandlerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<MagnificationHandlerEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<MagnificationHandlerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn set_clip_space_transform(
&self,
x: f32,
y: f32,
scale: f32,
___deadline: Time
) -> Result<(), Error>
pub fn set_clip_space_transform( &self, x: f32, y: f32, scale: f32, ___deadline: Time ) -> Result<(), Error>
Sets clip-space x-offset, y-offset, and scale for the presentation. x and y are in Vulkan NDC and are applied after scaling, which occurs about the center of the presentation. The callback indicates when the update has been presented. The identity transform (0, 0, 1) is the natural state.