pub fn init_ex(
    id: Option<&str>,
    pos: (i32, i32),
    size: Option<(u32, u32)>,
) -> Result<(), DivError> {
    let root = get_root(id)?;
    init_ex_with_element(root, pos, size)
}
/// Extended initialization function.
/// Mounts a global div as a child of the HTML element with the defined ID.
/// The specified dimensions restrict the area in which divs are visible.
/// # Example
/// ```
/// let width = 1280;
/// let height = 720;
/// div::init_ex(Some("div-root"), (0, 0), Some((width, height)));
/// ```
Extended initialization function.
Mounts a global div as a child of the HTML element with the defined ID.
The specified dimensions restrict the area in which divs are visible.
Extended initialization function . Mounts a global div as a child of the HTML element with the defined ID . The specified dimensions restrict the area in which divs are visible .
pub fn init_ex(
    id: Option<&str>,
    pos: (i32, i32),
    size: Option<(u32, u32)>,
) -> Result<(), DivError> {
    let root = get_root(id)?;
    init_ex_with_element(root, pos, size)
}
pub fn init_ex ( id : Option < & str > , pos : ( i32 , i32 ) , size : Option < ( u32 , u32 ) > , ) -> Result < ( ) , DivError > { let root = get_root ( id ) ? ; init_ex_with_element ( root , pos , size ) }
Extended initialization function.
Extended initialization function .
id
Option<&str>
pos
(i32, i32)
size
Option<(u32, u32)>
id
Option<&str>
pos
(i32, i32)
size
Option<(u32, u32)>
example
None