pub struct Tab {
pub message_router_browser_side: MessageRouterBrowserSide,
pub data: TabData,
pub pixel_buffer: PixelBuffer,
pub text_input_mode: KeyboardTextInputModeWui,
/* private fields */
}Expand description
Main tab structure
Fields§
§message_router_browser_side: MessageRouterBrowserSide§data: TabDataTab data protected by RwLock
pixel_buffer: PixelBufferCurrent pixel buffer
text_input_mode: KeyboardTextInputModeWuiImplementations§
Source§impl Tab
impl Tab
Sourcepub fn register_event_listener(
&mut self,
event_name: String,
listener: EventListenerFn,
) -> WuiResult<()>
pub fn register_event_listener( &mut self, event_name: String, listener: EventListenerFn, ) -> WuiResult<()>
Register event listener
Sourcepub fn unregister_event_listener(
&mut self,
event_name: &String,
) -> Result<EventListenerFn, WuiError>
pub fn unregister_event_listener( &mut self, event_name: &String, ) -> Result<EventListenerFn, WuiError>
Unregister event listener
Sourcepub fn send_event(&self, event_name: &String, payload: Value) -> WuiResult<()>
pub fn send_event(&self, event_name: &String, payload: Value) -> WuiResult<()>
Send event to DOM
pub fn get_callbacks(&self) -> TabCallbacks
pub fn set_callbacks(&mut self, callbacks: &TabCallbacks)
Source§impl Tab
impl Tab
Sourcepub fn start_event_logging(&mut self, log_path: &Path) -> WuiResult<()>
pub fn start_event_logging(&mut self, log_path: &Path) -> WuiResult<()>
Start event logging
Sourcepub fn stop_event_logging(&mut self) -> WuiResult<()>
pub fn stop_event_logging(&mut self) -> WuiResult<()>
Stop event logging
Source§impl Tab
impl Tab
pub fn set_text_input_mode(&mut self, mode: KeyboardTextInputModeWui)
pub fn get_text_input_mode(&self) -> KeyboardTextInputModeWui
pub fn has_point( &self, coordinates: TabCoordinates, ) -> WuiResult<WuiCoordCheckResult>
pub fn send_mouse_event(&mut self, event: &MouseEventWui) -> WuiCoordCheckResult
pub fn send_key_event(&self, key_event: &KeyEventWui) -> WuiResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tab
impl !RefUnwindSafe for Tab
impl Send for Tab
impl Sync for Tab
impl Unpin for Tab
impl !UnwindSafe for Tab
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more