語言

WindowInsets.GetBoundingRects(Int32) 方法

定義

回傳一個包含 Rects 的列表,每個 s 是視窗內部分或完全被遮蔽區域的邊界矩形。

[Android.Runtime.Register("getBoundingRects", "(I)Ljava/util/List;", "", ApiSince=35)]
public System.Collections.Generic.IList<Android.Graphics.Rect> GetBoundingRects(int typeMask);
[<Android.Runtime.Register("getBoundingRects", "(I)Ljava/util/List;", "", ApiSince=35)>]
member this.GetBoundingRects : int -> System.Collections.Generic.IList<Android.Graphics.Rect>

參數

typeMask
Int32

為了取得邊界矩形而產生的插入類型

傳回

邊界矩形

屬性

備註

回傳一個包含 Rects 的列表,每個 s 是視窗內部分或完全被遮蔽區域的邊界矩形。

可與窗戶一同使用或替代 Insets ,以更細緻地避免部分遮蔽視窗但可能比 所 #getInsets(int)提供的區域更小的區域。

回傳的 Rects 總是裁切到視窗框架的邊界,且其座標值相對於 #getFrame(),無論視窗在螢幕上的位置如何。

若嵌入 , #inset(Insets)與所提供嵌入相交的邊界矩形矩陣將被調整大小,僅包含與剩餘框架的交集。 如果邊界矩形不再與新實例相交,則可完全移除。

Java 文件 android.view.WindowInsets.getBoundingRects(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於