Trait imgui::ClipboardBackend

source ·
pub trait ClipboardBackend: 'static {
    // Required methods
    fn get(&mut self) -> Option<String>;
    fn set(&mut self, value: &str);
}
Expand description

Trait for clipboard backends

Required Methods§

source

fn get(&mut self) -> Option<String>

Returns the current clipboard contents as an owned imgui-rs string, or None if the clipboard is empty or inaccessible

source

fn set(&mut self, value: &str)

Sets the clipboard contents to the given imgui-rs string slice.

Implementors§