resvg_get_node_bbox in resvg - Rust
Description: @brief Returns node’s bounding box in canvas coordinates by ID.

# Function resvg_get_node_bbox

Source

    #[no_mangle]
    pub extern "C" fn resvg_get_node_bbox(
        tree: *const resvg_render_tree,
        id: *const c_char,
        bbox: *mut resvg_rect,
    ) -> bool

Expand description

@brief Returns node’s bounding box in canvas coordinates by ID.

@param tree Render tree. @param id Node’s ID. Must not be NULL. @param bbox Node’s bounding box. @return `false` if a node with such an ID does not exist @return `false` if ID isn’t a UTF-8 string. @return `false` if ID is an empty string