[][src]Trait wayland_protocols::misc::gtk_primary_selection::server::gtk_primary_selection_source::RequestHandler

pub trait RequestHandler {
    fn offer(&mut self, object: GtkPrimarySelectionSource, mime_type: String) { ... }
fn destroy(&mut self, object: GtkPrimarySelectionSource) { ... } }

An interface for handling requests.

Provided methods

fn offer(&mut self, object: GtkPrimarySelectionSource, mime_type: String)

add an offered mime type

This request adds a mime type to the set of mime types advertised to targets. Can be called several times to offer multiple types.

fn destroy(&mut self, object: GtkPrimarySelectionSource)

destroy the primary selection source

Destroy the primary selection source.

This is a destructor, you cannot send requests to this object any longer once this method is called.

Loading content...

Implementors

Loading content...