Line2D

Inherits: Node2D < CanvasItem < Node < Object

Category: Core

Brief Description

Member Functions

void add_point ( Vector2 pos )
int get_begin_cap_mode ( ) const
Color get_default_color ( ) const
int get_end_cap_mode ( ) const
Gradient get_gradient ( ) const
int get_joint_mode ( ) const
int get_point_count ( ) const
Vector2 get_point_pos ( int i ) const
PoolVector2Array get_points ( ) const
int get_round_precision ( ) const
float get_sharp_limit ( ) const
Texture get_texture ( ) const
int get_texture_mode ( ) const
float get_width ( ) const
void remove_point ( int i )
void set_begin_cap_mode ( int mode )
void set_default_color ( Color color )
void set_end_cap_mode ( int mode )
void set_gradient ( Gradient color )
void set_joint_mode ( int mode )
void set_point_pos ( int i, Vector2 pos )
void set_points ( PoolVector2Array points )
void set_round_precision ( int precision )
void set_sharp_limit ( float limit )
void set_texture ( Texture texture )
void set_texture_mode ( int mode )
void set_width ( float width )

Member Variables

Numeric Constants

  • LINE_JOINT_SHARP = 0
  • LINE_JOINT_BEVEL = 1
  • LINE_JOINT_ROUND = 2
  • LINE_CAP_NONE = 0
  • LINE_CAP_BOX = 1
  • LINE_CAP_ROUND = 2
  • LINE_TEXTURE_NONE = 0
  • LINE_TEXTURE_TILE = 1

Member Function Description

  • int get_begin_cap_mode ( ) const
  • Color get_default_color ( ) const
  • int get_end_cap_mode ( ) const
  • int get_joint_mode ( ) const
  • int get_point_count ( ) const
  • int get_round_precision ( ) const
  • float get_sharp_limit ( ) const
  • int get_texture_mode ( ) const
  • float get_width ( ) const
  • void remove_point ( int i )
  • void set_begin_cap_mode ( int mode )
  • void set_default_color ( Color color )
  • void set_end_cap_mode ( int mode )
  • void set_joint_mode ( int mode )
  • void set_round_precision ( int precision )
  • void set_sharp_limit ( float limit )
  • void set_texture ( Texture texture )
  • void set_texture_mode ( int mode )
  • void set_width ( float width )