Trait rstk::canvas::TkCanvasTags

source ·
pub trait TkCanvasTags: TkCanvasItem {
    // Provided methods
    fn add_tag(&self, tag: &str) { ... }
    fn delete_tag(&self, tag: &str) { ... }
    fn get_tags(&self) -> Vec<String> { ... }
}
Expand description

Each item can have one or more named tags attached to it. These tags can be used to configure groups of items.

Provided Methods§

source

fn add_tag(&self, tag: &str)

Adds given tag to this canvas item.

source

fn delete_tag(&self, tag: &str)

Deletes tag from this canvas item.

source

fn get_tags(&self) -> Vec<String>

Returns all tags associated with this canvas item.

Object Safety§

This trait is not object safe.

Implementors§