l_currenttags: Get tags of the item below the mouse cursor

View source: R/l_currenttags.R

l_currenttagsR Documentation

Get tags of the item below the mouse cursor

Description

Retrieves the tags of the visual item that at the time of the function evaluation is below the mouse cursor.

Usage

l_currenttags(widget)

Arguments

widget

widget path as a string or as an object handle

Details

For more details see l_help("learn_R_bind.html#item-bindings")

Value

vector with item tags of visual

See Also

l_bind_item, l_currentindex

Examples

if(interactive()){

printTags <- function(W) {
    print(l_currenttags(W))
}

p <- l_plot(x=1:3, y=1:3, title='Query Visual Item Tags')

l_bind_item(p, 'all', '<ButtonPress>', function(W)printTags(W))
}

loon documentation built on July 9, 2023, 5:48 p.m.