API reference

lib.rs · Rust API

Browse entries grouped by interface file. Expand an entry for declarations, usage and version boundaries.

Read the related guide →

Entries retain declarations and sources. Runtime verification is recorded per entry; internal source candidates are not a promise of SDK delivery.

sdk/rust/src/lib.rs
kui::add_stylesheet
Declared3.61.7Rust

Rust facade method add_stylesheet. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn add_stylesheet(&mut self, css: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:404

Report an issue with this entry →
kui::append_child
Declared3.61.7Rust

Rust facade method append_child. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn append_child(&self, child: &Element<'_>) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:605

Report an issue with this entry →
kui::attribute
Declared3.61.7Rust

Rust facade method attribute. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn attribute(&self, name: &str) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:540

Report an issue with this entry →
kui::bind_document
Declared3.61.7Rust

Rust facade method bind_document. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn bind_document(&self, document: &Document) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:692

Report an issue with this entry →
kui::bounding_rect
Declared3.61.7Rust

Rust facade method bounding_rect. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn bounding_rect(&self) -> Result<Rect>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:586

Report an issue with this entry →
kui::cancel_all
Declared3.61.7Rust

Rust facade method cancel_all. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn cancel_all(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:801

Report an issue with this entry →
kui::clipboard_text
Declared3.61.7Rust

Rust facade method clipboard_text. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn clipboard_text(&self) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:188

Report an issue with this entry →
kui::close
Declared3.61.7Rust

Rust facade method close. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn close(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:343

Report an issue with this entry →
kui::context
Declared3.61.7Rust

Rust facade method context. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn context(&self) -> &'static str

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:32

Report an issue with this entry →
kui::create_element
Declared3.61.7Rust

Rust facade method create_element. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn create_element(&self, tag: &str) -> Result<Element<'_>>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:440

Report an issue with this entry →
kui::dispatch_devtools_command
Declared3.61.7Rust

Rust facade method dispatch_devtools_command. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn dispatch_devtools_command(&self, command: &str) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:460

Report an issue with this entry →
kui::document
Declared3.61.7Rust

Rust facade method document. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn document(&self) -> Result<Document>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:292

Report an issue with this entry →
kui::eval
Declared3.61.7Rust

Rust facade method eval. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn eval(&self, code: &str, source: &str) -> Result<ScriptResult>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:701

Report an issue with this entry →
kui::execute_scripts
Declared3.61.7Rust

Rust facade method execute_scripts. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn execute_scripts(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:730

Report an issue with this entry →
kui::fetch
Declared3.61.7Rust

Rust facade method fetch. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn fetch(&self, url: &str, timeout_seconds: f64) -> Result<HTTPResponse>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:783

Report an issue with this entry →
kui::get_element_by_id
Declared3.61.7Rust

Rust facade method get_element_by_id. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn get_element_by_id(&self, id: &str) -> Result<Option<Element<'_>>>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:424

Report an issue with this entry →
kui::hide
Declared3.61.7Rust

Rust facade method hide. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn hide(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:308

Report an issue with this entry →
kui::init
Declared3.61.7Rust

Rust facade method init. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn init() -> Result<Self>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:149

Report an issue with this entry →
kui::init_extensions
Declared3.61.7Rust

Rust facade method init_extensions. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn init_extensions(&self, directory: &str) -> Result<usize>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:450

Report an issue with this entry →
kui::invoke_extension
Declared3.61.7Rust

Rust facade method invoke_extension. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn invoke_extension( &self, method: &str, args: &[ExtensionValue], max_results: usize, ) -> Result<Vec<ExtensionValue>>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:649

Report an issue with this entry →
kui::load_html
Declared3.61.7Rust

Rust facade method load_html. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn load_html(&mut self, html: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:396

Report an issue with this entry →
kui::new
Declared3.61.7Rust

Rust facade method new. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn new() -> Result<Self>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:387

Report an issue with this entry →
kui::new
Declared3.61.7Rust

Rust facade method new. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn new() -> Result<Self>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:679

Report an issue with this entry →
kui::new
Declared3.61.7Rust

Rust facade method new. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn new() -> Result<Self>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:762

Report an issue with this entry →
kui::new
Declared3.61.7Rust

Rust facade method new. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn new(props: &WindowProps) -> Result<Self>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:260

Report an issue with this entry →
kui::os_name
Declared3.61.7Rust

Rust facade method os_name. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn os_name(&self) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:194

Report an issue with this entry →
kui::os_version
Declared3.61.7Rust

Rust facade method os_version. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn os_version(&self) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:200

Report an issue with this entry →
kui::pause
Declared3.61.7Rust

Rust facade method pause. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn pause(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:619

Report an issue with this entry →
kui::play
Declared3.61.7Rust

Rust facade method play. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn play(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:612

Report an issue with this entry →
kui::play_lottie
Declared3.61.7Rust

Rust facade method play_lottie. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn play_lottie(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:642

Report an issue with this entry →
kui::poll_events
Declared3.61.7Rust

Rust facade method poll_events. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn poll_events(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:166

Report an issue with this entry →
kui::print_to_pdf
Declared3.61.7Rust

Rust facade method print_to_pdf. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn print_to_pdf(&self, path: &str, options: &PDFOptions) -> Result<bool>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:481

Report an issue with this entry →
kui::query_selector
Declared3.61.7Rust

Rust facade method query_selector. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn query_selector(&self, selector: &str) -> Result<Option<Element<'_>>>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:432

Report an issue with this entry →
kui::quit
Declared3.61.7Rust

Rust facade method quit. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn quit(&self, code: i32) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:162

Report an issue with this entry →
kui::resize
Declared3.61.7Rust

Rust facade method resize. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn resize(&self, width: i32, height: i32) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:329

Report an issue with this entry →
kui::run
Declared3.61.7Rust

Rust facade method run. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn run(&self) -> Result<i32>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:156

Report an issue with this entry →
kui::set_attribute
Declared3.61.7Rust

Rust facade method set_attribute. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_attribute(&self, name: &str, value: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:529

Report an issue with this entry →
kui::set_clipboard_text
Declared3.61.7Rust

Rust facade method set_clipboard_text. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_clipboard_text(&self, value: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:180

Report an issue with this entry →
kui::set_lottie_src
Declared3.61.7Rust

Rust facade method set_lottie_src. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_lottie_src(&self, source: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:634

Report an issue with this entry →
kui::set_position
Declared3.61.7Rust

Rust facade method set_position. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_position(&self, x: i32, y: i32) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:336

Report an issue with this entry →
kui::set_script_engine
Declared3.61.7Rust

Rust facade method set_script_engine. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_script_engine(&self, engine: Option<&ScriptEngine>) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:359

Report an issue with this entry →
kui::set_src
Declared3.61.7Rust

Rust facade method set_src. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_src(&self, source: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:626

Report an issue with this entry →
kui::set_style_property
Declared3.61.7Rust

Rust facade method set_style_property. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_style_property(&self, name: &str, value: &str, important: bool) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:561

Report an issue with this entry →
kui::set_text_content
Declared3.61.7Rust

Rust facade method set_text_content. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_text_content(&self, text: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:547

Report an issue with this entry →
kui::set_title
Declared3.61.7Rust

Rust facade method set_title. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_title(&self, title: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:315

Report an issue with this entry →
kui::set_user_agent
Declared3.61.7Rust

Rust facade method set_user_agent. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn set_user_agent(&self, value: &str) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:775

Report an issue with this entry →
kui::show
Declared3.61.7Rust

Rust facade method show. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn show(&self) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:301

Report an issue with this entry →
kui::start_devtools
Declared3.61.7Rust

Rust facade method start_devtools. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn start_devtools(&self, port: u16) -> Result<bool>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:350

Report an issue with this entry →
kui::status
Declared3.61.7Rust

Rust facade method status. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn status(&self) -> sys::KuiStatus

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:28

Report an issue with this entry →
kui::style_property
Declared3.61.7Rust

Rust facade method style_property. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn style_property(&self, name: &str) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:579

Report an issue with this entry →
kui::tag_name
Declared3.61.7Rust

Rust facade method tag_name. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn tag_name(&self) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:523

Report an issue with this entry →
kui::text_content
Declared3.61.7Rust

Rust facade method text_content. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn text_content(&self) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:555

Report an issue with this entry →
kui::title
Declared3.61.7Rust

Rust facade method title. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn title(&self) -> Result<String>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:323

Report an issue with this entry →
kui::version
Declared3.61.7Rust

Rust facade method version. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn version() -> Version

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:105

Report an issue with this entry →
kui::wait_events
Declared3.61.7Rust

Rust facade method wait_events. See its implementation for safety checks and ownership behavior. Less common APIs are available through kui::sys.

lib.rs
pub fn wait_events(&self, seconds: f64) -> Result<()>

Verification scope

Indexed from current sources. Runtime, combination and platform checks have not been completed for every entry.

sdk/rust/src/lib.rs:173

Report an issue with this entry →
Browse this reference type →