blockly > IPositionable > getBoundingRectangle
طريقة IPositionable.getBoundingRectangle()
لعرض المستطيل المحيط لعنصر واجهة المستخدم في وحدات البكسل بالنسبة إلى عنصر div "إدخال حظر المحتوى" (Blockly injection).
Signature:
getBoundingRectangle(): Rect | null;
المرتجعات:
Rect | فارغ
مربع إحاطة عناصر واجهة المستخدم. "Null" (فارغ) إذا كان يجب تجاهل مربع الإحاطة بواسطة عناصر واجهة المستخدم الأخرى.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-10-11 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-10-11 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `getBoundingRectangle()` method provides the coordinates and dimensions of an IPositionable element within the Blockly workspace."],["It returns a `Rect` object containing the element's bounding box information or `null` if it should be disregarded by other UI elements."]]],["The `getBoundingRectangle()` method, part of the `IPositionable` interface, calculates and returns the bounding rectangle of a UI element. This rectangle is defined in pixel units relative to the Blockly injection div. The method's return value is either a `Rect` object representing the bounding box or `null` if the bounding box should be ignored. This information allows other UI elements to determine their position.\n"]]