pub enum FlatlandDisplayRequest {
SetContent {
token: ViewportCreationToken,
child_view_watcher: ServerEnd<ChildViewWatcherMarker>,
control_handle: FlatlandDisplayControlHandle,
},
SetDevicePixelRatio {
device_pixel_ratio: VecF,
control_handle: FlatlandDisplayControlHandle,
},
}
Expand description
This API connects to the singleton “primary display”, and allows a tree of Flatland content to be attached underneath. Only one FlatlandDisplay client connection is allowed at one time.
Variants§
SetContent
Fields
§
token: ViewportCreationToken
§
child_view_watcher: ServerEnd<ChildViewWatcherMarker>
§
control_handle: FlatlandDisplayControlHandle
SetDevicePixelRatio
Sets the ratio of display’s physical pixels to device independent pixels that should be used
for the tree of Flatland content that are attached to this display. See
[LayoutInfo.device_pixel_ratio
] for details.
The default value is (1.0, 1.0). The valid values are 1.0 and above.
Implementations§
Source§impl FlatlandDisplayRequest
impl FlatlandDisplayRequest
pub fn into_set_content( self, ) -> Option<(ViewportCreationToken, ServerEnd<ChildViewWatcherMarker>, FlatlandDisplayControlHandle)>
pub fn into_set_device_pixel_ratio( self, ) -> Option<(VecF, FlatlandDisplayControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlatlandDisplayRequest
impl !RefUnwindSafe for FlatlandDisplayRequest
impl Send for FlatlandDisplayRequest
impl Sync for FlatlandDisplayRequest
impl Unpin for FlatlandDisplayRequest
impl !UnwindSafe for FlatlandDisplayRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more