.. 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/Line2D.xml. .. _class_Line2D: Line2D ====== **Inherits:** :ref:`Node2D` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`bool` | :ref:`antialiased` | ``false`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`LineCapMode` | :ref:`begin_cap_mode` | ``0`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`bool` | :ref:`closed` | ``false`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`Color` | :ref:`default_color` | ``Color(1, 1, 1, 1)`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`LineCapMode` | :ref:`end_cap_mode` | ``0`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`Gradient` | :ref:`gradient` | | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`LineJointMode` | :ref:`joint_mode` | ``0`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`PackedVector2Array` | :ref:`points` | ``PackedVector2Array()`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`int` | :ref:`round_precision` | ``8`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`float` | :ref:`sharp_limit` | ``2.0`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`Texture2D` | :ref:`texture` | | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`LineTextureMode` | :ref:`texture_mode` | ``0`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`float` | :ref:`width` | ``10.0`` | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ | :ref:`Curve` | :ref:`width_curve` | | +-----------------------------------------------------+---------------------------------------------------------------+--------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_point` **(** :ref:`Vector2` position, :ref:`int` index=-1 **)** | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_points` **(** **)** | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_point_count` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_point_position` **(** :ref:`int` index **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_point` **(** :ref:`int` index **)** | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_point_position` **(** :ref:`int` index, :ref:`Vector2` position **)** | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_Line2D_LineJointMode: .. rst-class:: classref-enumeration enum **LineJointMode**: .. _class_Line2D_constant_LINE_JOINT_SHARP: .. rst-class:: classref-enumeration-constant :ref:`LineJointMode` **LINE_JOINT_SHARP** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Line2D_constant_LINE_JOINT_BEVEL: .. rst-class:: classref-enumeration-constant :ref:`LineJointMode` **LINE_JOINT_BEVEL** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Line2D_constant_LINE_JOINT_ROUND: .. rst-class:: classref-enumeration-constant :ref:`LineJointMode` **LINE_JOINT_ROUND** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_Line2D_LineCapMode: .. rst-class:: classref-enumeration enum **LineCapMode**: .. _class_Line2D_constant_LINE_CAP_NONE: .. rst-class:: classref-enumeration-constant :ref:`LineCapMode` **LINE_CAP_NONE** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Line2D_constant_LINE_CAP_BOX: .. rst-class:: classref-enumeration-constant :ref:`LineCapMode` **LINE_CAP_BOX** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Line2D_constant_LINE_CAP_ROUND: .. rst-class:: classref-enumeration-constant :ref:`LineCapMode` **LINE_CAP_ROUND** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_Line2D_LineTextureMode: .. rst-class:: classref-enumeration enum **LineTextureMode**: .. _class_Line2D_constant_LINE_TEXTURE_NONE: .. rst-class:: classref-enumeration-constant :ref:`LineTextureMode` **LINE_TEXTURE_NONE** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Line2D_constant_LINE_TEXTURE_TILE: .. rst-class:: classref-enumeration-constant :ref:`LineTextureMode` **LINE_TEXTURE_TILE** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Line2D_constant_LINE_TEXTURE_STRETCH: .. rst-class:: classref-enumeration-constant :ref:`LineTextureMode` **LINE_TEXTURE_STRETCH** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_Line2D_property_antialiased: .. rst-class:: classref-property :ref:`bool` **antialiased** = ``false`` .. rst-class:: classref-property-setget - void **set_antialiased** **(** :ref:`bool` value **)** - :ref:`bool` **get_antialiased** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_begin_cap_mode: .. rst-class:: classref-property :ref:`LineCapMode` **begin_cap_mode** = ``0`` .. rst-class:: classref-property-setget - void **set_begin_cap_mode** **(** :ref:`LineCapMode` value **)** - :ref:`LineCapMode` **get_begin_cap_mode** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_closed: .. rst-class:: classref-property :ref:`bool` **closed** = ``false`` .. rst-class:: classref-property-setget - void **set_closed** **(** :ref:`bool` value **)** - :ref:`bool` **is_closed** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_default_color: .. rst-class:: classref-property :ref:`Color` **default_color** = ``Color(1, 1, 1, 1)`` .. rst-class:: classref-property-setget - void **set_default_color** **(** :ref:`Color` value **)** - :ref:`Color` **get_default_color** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_end_cap_mode: .. rst-class:: classref-property :ref:`LineCapMode` **end_cap_mode** = ``0`` .. rst-class:: classref-property-setget - void **set_end_cap_mode** **(** :ref:`LineCapMode` value **)** - :ref:`LineCapMode` **get_end_cap_mode** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_gradient: .. rst-class:: classref-property :ref:`Gradient` **gradient** .. rst-class:: classref-property-setget - void **set_gradient** **(** :ref:`Gradient` value **)** - :ref:`Gradient` **get_gradient** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_joint_mode: .. rst-class:: classref-property :ref:`LineJointMode` **joint_mode** = ``0`` .. rst-class:: classref-property-setget - void **set_joint_mode** **(** :ref:`LineJointMode` value **)** - :ref:`LineJointMode` **get_joint_mode** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_points: .. rst-class:: classref-property :ref:`PackedVector2Array` **points** = ``PackedVector2Array()`` .. rst-class:: classref-property-setget - void **set_points** **(** :ref:`PackedVector2Array` value **)** - :ref:`PackedVector2Array` **get_points** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_round_precision: .. rst-class:: classref-property :ref:`int` **round_precision** = ``8`` .. rst-class:: classref-property-setget - void **set_round_precision** **(** :ref:`int` value **)** - :ref:`int` **get_round_precision** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_sharp_limit: .. rst-class:: classref-property :ref:`float` **sharp_limit** = ``2.0`` .. rst-class:: classref-property-setget - void **set_sharp_limit** **(** :ref:`float` value **)** - :ref:`float` **get_sharp_limit** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_texture: .. rst-class:: classref-property :ref:`Texture2D` **texture** .. rst-class:: classref-property-setget - void **set_texture** **(** :ref:`Texture2D` value **)** - :ref:`Texture2D` **get_texture** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_texture_mode: .. rst-class:: classref-property :ref:`LineTextureMode` **texture_mode** = ``0`` .. rst-class:: classref-property-setget - void **set_texture_mode** **(** :ref:`LineTextureMode` value **)** - :ref:`LineTextureMode` **get_texture_mode** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_width: .. rst-class:: classref-property :ref:`float` **width** = ``10.0`` .. rst-class:: classref-property-setget - void **set_width** **(** :ref:`float` value **)** - :ref:`float` **get_width** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_property_width_curve: .. rst-class:: classref-property :ref:`Curve` **width_curve** .. rst-class:: classref-property-setget - void **set_curve** **(** :ref:`Curve` value **)** - :ref:`Curve` **get_curve** **(** **)** .. 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 Method Descriptions ------------------- .. _class_Line2D_method_add_point: .. rst-class:: classref-method void **add_point** **(** :ref:`Vector2` position, :ref:`int` index=-1 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_method_clear_points: .. rst-class:: classref-method void **clear_points** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_method_get_point_count: .. rst-class:: classref-method :ref:`int` **get_point_count** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_method_get_point_position: .. rst-class:: classref-method :ref:`Vector2` **get_point_position** **(** :ref:`int` index **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_method_remove_point: .. rst-class:: classref-method void **remove_point** **(** :ref:`int` index **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Line2D_method_set_point_position: .. rst-class:: classref-method void **set_point_position** **(** :ref:`int` index, :ref:`Vector2` position **)** .. container:: contribute There is currently no description for this method. 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.)`