pub fn from_js_class(
    x: i32,
    y: i32,
    w: u32,
    h: u32,
    class_handle: JsClassHandle,
) -> Result<DivHandle, DivError> {
    let ph = new(x, y, w, h, "")?;
    let node = ph.parent_element()?;
    let class = state::get_class(class_handle)?;
    class.attach_new_instance(&node);
    Ok(ph)
}
/// Creates a new div and fills it with a JS class.
Creates a new div and fills it with a JS class.
Creates a new div and fills it with a JS class .
pub fn from_js_class(
    x: i32,
    y: i32,
    w: u32,
    h: u32,
    class_handle: JsClassHandle,
) -> Result<DivHandle, DivError> {
    let ph = new(x, y, w, h, "")?;
    let node = ph.parent_element()?;
    let class = state::get_class(class_handle)?;
    class.attach_new_instance(&node);
    Ok(ph)
}
pub fn from_js_class ( x : i32 , y : i32 , w : u32 , h : u32 , class_handle : JsClassHandle , ) -> Result < DivHandle , DivError > { let ph = new ( x , y , w , h , " " ) ? ; let node = ph . parent_element ( ) ? ; let class = state :: get_class ( class_handle ) ? ; class . attach_new_instance ( & node ) ; Ok ( ph ) }
Creates a new div and fills it with a JS class.
Creates a new div and fills it with a JS class .
x
i32
y
i32
w
u32
h
u32
class_handle
JsClassHandle
x
i32
y
i32
w
u32
h
u32
class_handle
JsClassHandle