pub struct WebBrowser {
pub engine: WebEngine,
pub address_bar_focused: bool,
pub address_box: TextBox,
pub active_tab_idx: usize,
tabs: Vec<TabSlot>,
}Fields§
§engine: WebEngineアクティブタブのライブエンジン。tabs[active_tab_idx].engine は None。
address_bar_focused: bool§address_box: TextBox§active_tab_idx: usize§tabs: Vec<TabSlot>Implementations§
Source§impl WebBrowser
impl WebBrowser
Sourcepub fn top_offset(&self) -> i32
pub fn top_offset(&self) -> i32
コンテンツ描画の開始 Y 座標 (コントロールバーの直下)。 描画・クリック判定・レイアウトすべてがこの値を共通参照する。
Sourcefn sync_active_title(&mut self)
fn sync_active_title(&mut self)
アクティブエンジンのタイトルを現タブスロットに同期する(タブバー表示用)。
Source§impl WebBrowser
impl WebBrowser
Trait Implementations§
Source§impl App for WebBrowser
impl App for WebBrowser
Source§fn draw(
&mut self,
screen: &Screen,
win_x: u32,
win_y: u32,
win_w: u32,
win_h: u32,
)
fn draw( &mut self, screen: &Screen, win_x: u32, win_y: u32, win_w: u32, win_h: u32, )
【2026-08-01計測】再描画要求の内訳カウンタ。
fn name(&self) -> &str
Source§fn instance_info(&self) -> String
fn instance_info(&self) -> String
インスタンス特有の情報(ファイル名やURLなど)を返す
fn needs_timer_redraw(&self) -> bool
Source§fn on_mouse(
&mut self,
local_x: i32,
local_y: i32,
btn_left: bool,
btn_right: bool,
wheel: i32,
)
fn on_mouse( &mut self, local_x: i32, local_y: i32, btn_left: bool, btn_right: bool, wheel: i32, )
マウスイベント。ローカル座標とホイール移動量が渡される。
fn active_tab(&self) -> usize
fn switch_tab(&mut self, idx: usize)
fn add_tab(&mut self)
fn get_dom_value(&self, id: &str) -> Option<String>
fn set_dom_value(&mut self, id: &str, val: &str)
fn get_dom_content(&self, id: &str) -> Option<String>
fn set_dom_content(&mut self, id: &str, val: &str)
共有されるバックバッファを返す
Source§fn open_file_dialog(&mut self)
fn open_file_dialog(&mut self)
Alt+O: ファイルオープンダイアログを開く(未実装アプリはno-op)
Source§fn tab_thread_fn(&self) -> Option<fn()>
fn tab_thread_fn(&self) -> Option<fn()>
このアプリの各タブ用バックグラウンドスレッド関数を返す。
Some(fn) を返したアプリはタブ追加時にスケジューラでスレッドを起動する。
スレッド関数は引数なしの fn() で、グローバル Mutex 経由でアプリ状態と通信する。
Source§fn get_buffer_updated_flag(&self) -> Option<Arc<AtomicBool>>
fn get_buffer_updated_flag(&self) -> Option<Arc<AtomicBool>>
ProxyApp の shared_buffer が更新されたことを通知する AtomicBool を返す。
ProxyApp でない通常のアプリは None を返す(デフォルト実装)。
Core 0 の dirty 判定がこのフラグを読んで矩形を登録する。
Auto Trait Implementations§
impl !RefUnwindSafe for WebBrowser
impl !Send for WebBrowser
impl !Sync for WebBrowser
impl !UnwindSafe for WebBrowser
impl Freeze for WebBrowser
impl Unpin for WebBrowser
impl UnsafeUnpin for WebBrowser
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