Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

CaptureScreen

pub struct CaptureScreen(pub MemoryRange);
Expand description

Captures the current composited screen contents as raw pixel data.

On hardware the byte order is BGRA8888; on the simulator it is RGBA8888. Caller allocates a MemoryRange of SCREEN_WIDTH * SCREEN_HEIGHT * 4 bytes, lends it mutable to gui-server, which fills it with the composited pixel data.

Tuple Fields

0: MemoryRange

Trait Implementations

impl Debug for CaptureScreen

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl From<CaptureScreen> for SimpleMemoryMessage

fn from(val: CaptureScreen) -> Self

Converts to this type from the input type.

impl From<SimpleMemoryMessage> for CaptureScreen

fn from(value: SimpleMemoryMessage) -> Self

Converts to this type from the input type.

impl LendMut for CaptureScreen

type Response = ()

impl MessageId for CaptureScreen

const ID: MessageId = 54usize

unique message identifier

const SERVER: &'static str = "os/gui-server"

target server name

Auto Trait Implementations

impl Freeze for CaptureScreen

impl RefUnwindSafe for CaptureScreen

impl Send for CaptureScreen

impl Sync for CaptureScreen

impl Unpin for CaptureScreen

impl UnsafeUnpin for CaptureScreen

impl UnwindSafe for CaptureScreen