/// Create a new button with the given text as its label.
Create a new button with the given text as its label.
Create a new button with the given text as its label .
pub fn new(_ctx: &UI, text: &str) -> Button {
        unsafe {
            let c_string = CString::new(text.as_bytes().to_vec()).unwrap();
            Button::from_raw(ui_sys::uiNewButton(c_string.as_ptr()))
        }
    }
pub fn new ( _ctx : & UI , text : & str ) -> Button { unsafe { let c_string = CString :: new ( text . as_bytes ( ) . to_vec ( ) ) . unwrap ( ) ; Button :: from_raw ( ui_sys :: uiNewButton ( c_string . as_ptr ( ) ) ) } }
Create a new button with the given text as its label.
Create a new button with the given text as its label .
_ctx
&UI
text
&str