pub struct DisplayClient { /* private fields */ }Expand description
ctx.display — the reserved data-driven display page.
A plugin owns one page of title, (label, value) rows and touch zones
without recompiling the display service; the host renders it from the sidecar
this writes.
Implementations§
Source§impl DisplayClient
impl DisplayClient
Sourcepub async fn set_page(
&self,
title: &str,
rows: &[(String, String)],
zones: &[(i64, i64, i64, i64, String, String)],
) -> Result<Value, ClientError>
pub async fn set_page( &self, title: &str, rows: &[(String, String)], zones: &[(i64, i64, i64, i64, String, String)], ) -> Result<Value, ClientError>
Set the page content. zones are (x, y, w, h, key, label) rectangles in
page-local content coordinates; a tap in one delivers key back to the
plugin.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DisplayClient
impl !UnwindSafe for DisplayClient
impl Freeze for DisplayClient
impl Send for DisplayClient
impl Sync for DisplayClient
impl Unpin for DisplayClient
impl UnsafeUnpin for DisplayClient
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