pub struct WebViewHostRegion {
pub id: u32,
pub logical_bounds: Region,
pub clip_bounds: Region,
pub visible: bool,
pub z_order: i16,
}Expand description
原生子窗口 WebView 宿主区域描述(供 WebView2 / WKWebView / WebKitGTK 洞穿定位)。
Fields§
§id: u32§logical_bounds: Region§clip_bounds: Region§visible: bool§z_order: i16Implementations§
Source§impl WebViewHostRegion
impl WebViewHostRegion
Sourcepub fn effective_bounds(&self) -> Region
pub fn effective_bounds(&self) -> Region
计算裁剪后的有效逻辑可见框。
Trait Implementations§
Source§impl Clone for WebViewHostRegion
impl Clone for WebViewHostRegion
impl Copy for WebViewHostRegion
Source§impl Debug for WebViewHostRegion
impl Debug for WebViewHostRegion
Source§impl Default for WebViewHostRegion
impl Default for WebViewHostRegion
impl Eq for WebViewHostRegion
Source§impl PartialEq for WebViewHostRegion
impl PartialEq for WebViewHostRegion
impl StructuralPartialEq for WebViewHostRegion
Auto Trait Implementations§
impl Forget for WebViewHostRegion
impl Freeze for WebViewHostRegion
impl Move for WebViewHostRegion
impl RefUnwindSafe for WebViewHostRegion
impl Send for WebViewHostRegion
impl Sync for WebViewHostRegion
impl Unpin for WebViewHostRegion
impl UnsafeUnpin for WebViewHostRegion
impl UnwindSafe for WebViewHostRegion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。