l_bind_canvas_ids.Rd
List all user added canvas binding ids
l_bind_canvas_ids(widget)
widget | widget path as a string or as an object handle |
---|
vector with canvas binding ids
Bindings, callbacks, and binding substitutions are described in detail in
loon's documentation webpage, i.e. run l_help("learn_R_bind")
# binding for when plot is resized p <- l_plot(iris[,1:2], color=iris$Species) printSize <- function(p) { size <- l_size(p) cat(paste('Size of widget ', p, ' is: ', size[1], 'x', size[2], ' pixels\n', sep='')) } l_bind_canvas(p, event='<Configure>', function(W) {printSize(W)})#> [1] "canvasBinding0"id <- l_bind_canvas_ids(p) id#> [1] "canvasBinding0"#> [1] "<Configure>" "R_call 0x7fadb0c5b9c8 %W"