.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/Rect2i.xml. .. _class_Rect2i: Rect2i ====== .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. note:: There are notable differences when using this API with C#. See :ref:`doc_c_sharp_differences` for more information. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------------+-------------------------------------------------+--------------------+ | :ref:`Vector2i` | :ref:`end` | ``Vector2i(0, 0)`` | +---------------------------------+-------------------------------------------------+--------------------+ | :ref:`Vector2i` | :ref:`position` | ``Vector2i(0, 0)`` | +---------------------------------+-------------------------------------------------+--------------------+ | :ref:`Vector2i` | :ref:`size` | ``Vector2i(0, 0)`` | +---------------------------------+-------------------------------------------------+--------------------+ .. rst-class:: classref-reftable-group Constructors ------------ .. table:: :widths: auto +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`Rect2i` **(** **)** | +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`Rect2i` **(** :ref:`Rect2i` from **)** | +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`Rect2i` **(** :ref:`Rect2` from **)** | +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`Rect2i` **(** :ref:`Vector2i` position, :ref:`Vector2i` size **)** | +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`Rect2i` **(** :ref:`int` x, :ref:`int` y, :ref:`int` width, :ref:`int` height **)** | +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`abs` **(** **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`encloses` **(** :ref:`Rect2i` b **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`expand` **(** :ref:`Vector2i` to **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_area` **(** **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2i` | :ref:`get_center` **(** **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`grow` **(** :ref:`int` amount **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`grow_individual` **(** :ref:`int` left, :ref:`int` top, :ref:`int` right, :ref:`int` bottom **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`grow_side` **(** :ref:`int` side, :ref:`int` amount **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_area` **(** **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_point` **(** :ref:`Vector2i` point **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`intersection` **(** :ref:`Rect2i` b **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`intersects` **(** :ref:`Rect2i` b **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`merge` **(** :ref:`Rect2i` b **)** |const| | +---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Operators --------- .. table:: :widths: auto +-------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`operator !=` **(** :ref:`Rect2i` right **)** | +-------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`operator ==` **(** :ref:`Rect2i` right **)** | +-------------------------+----------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_Rect2i_property_end: .. rst-class:: classref-property :ref:`Vector2i` **end** = ``Vector2i(0, 0)`` .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_property_position: .. rst-class:: classref-property :ref:`Vector2i` **position** = ``Vector2i(0, 0)`` .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_property_size: .. rst-class:: classref-property :ref:`Vector2i` **size** = ``Vector2i(0, 0)`` .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Constructor Descriptions ------------------------ .. _class_Rect2i_constructor_Rect2i: .. rst-class:: classref-constructor :ref:`Rect2i` **Rect2i** **(** **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. rst-class:: classref-constructor :ref:`Rect2i` **Rect2i** **(** :ref:`Rect2i` from **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. rst-class:: classref-constructor :ref:`Rect2i` **Rect2i** **(** :ref:`Rect2` from **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. rst-class:: classref-constructor :ref:`Rect2i` **Rect2i** **(** :ref:`Vector2i` position, :ref:`Vector2i` size **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. rst-class:: classref-constructor :ref:`Rect2i` **Rect2i** **(** :ref:`int` x, :ref:`int` y, :ref:`int` width, :ref:`int` height **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_Rect2i_method_abs: .. rst-class:: classref-method :ref:`Rect2i` **abs** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_encloses: .. rst-class:: classref-method :ref:`bool` **encloses** **(** :ref:`Rect2i` b **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_expand: .. rst-class:: classref-method :ref:`Rect2i` **expand** **(** :ref:`Vector2i` to **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_get_area: .. rst-class:: classref-method :ref:`int` **get_area** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_get_center: .. rst-class:: classref-method :ref:`Vector2i` **get_center** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_grow: .. rst-class:: classref-method :ref:`Rect2i` **grow** **(** :ref:`int` amount **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_grow_individual: .. rst-class:: classref-method :ref:`Rect2i` **grow_individual** **(** :ref:`int` left, :ref:`int` top, :ref:`int` right, :ref:`int` bottom **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_grow_side: .. rst-class:: classref-method :ref:`Rect2i` **grow_side** **(** :ref:`int` side, :ref:`int` amount **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_has_area: .. rst-class:: classref-method :ref:`bool` **has_area** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_has_point: .. rst-class:: classref-method :ref:`bool` **has_point** **(** :ref:`Vector2i` point **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_intersection: .. rst-class:: classref-method :ref:`Rect2i` **intersection** **(** :ref:`Rect2i` b **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_intersects: .. rst-class:: classref-method :ref:`bool` **intersects** **(** :ref:`Rect2i` b **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_method_merge: .. rst-class:: classref-method :ref:`Rect2i` **merge** **(** :ref:`Rect2i` b **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Operator Descriptions --------------------- .. _class_Rect2i_operator_neq_Rect2i: .. rst-class:: classref-operator :ref:`bool` **operator !=** **(** :ref:`Rect2i` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Rect2i_operator_eq_Rect2i: .. rst-class:: classref-operator :ref:`bool` **operator ==** **(** :ref:`Rect2i` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`