Euphoria
eu::core::dump2d::Poly Struct Reference

#include <dump.h>

Public Member Functions

Polyset_stroke (const std::vector< int > &new_stroke)
 
Polyclose ()
 
Polyfill (const Rgbi &fill_color)
 

Public Attributes

Rgbi stroke_color = NamedColor::black
 
std::optional< Rgbifill_color
 
bool is_closed = false
 
float stroke_width = 1.0f
 
std::vector< int > stroke
 
std::vector< vec2fpoints
 

Detailed Description

Definition at line 27 of file dump.h.

Member Function Documentation

◆ close()

Poly & eu::core::dump2d::Poly::close ( )

Definition at line 46 of file dump.cc.

◆ fill()

Poly & eu::core::dump2d::Poly::fill ( const Rgbi fill_color)

Definition at line 40 of file dump.cc.

◆ set_stroke()

Poly & eu::core::dump2d::Poly::set_stroke ( const std::vector< int > &  new_stroke)

Definition at line 34 of file dump.cc.

Member Data Documentation

◆ fill_color

std::optional<Rgbi> eu::core::dump2d::Poly::fill_color

Definition at line 30 of file dump.h.

◆ is_closed

bool eu::core::dump2d::Poly::is_closed = false

Definition at line 31 of file dump.h.

◆ points

std::vector<vec2f> eu::core::dump2d::Poly::points

Definition at line 35 of file dump.h.

◆ stroke

std::vector<int> eu::core::dump2d::Poly::stroke

Definition at line 34 of file dump.h.

◆ stroke_color

Rgbi eu::core::dump2d::Poly::stroke_color = NamedColor::black

Definition at line 29 of file dump.h.

◆ stroke_width

float eu::core::dump2d::Poly::stroke_width = 1.0f

Definition at line 32 of file dump.h.


The documentation for this struct was generated from the following files: