Независимые линии
More...
#include <Shapes.h>
◆ Lines() [1/2]
Graph_lib::Lines::Lines |
( |
| ) |
|
|
inlinedefault |
◆ Lines() [2/2]
Graph_lib::Lines::Lines |
( |
std::initializer_list< Point > | _points | ) |
|
|
inline |
269 if (_points.size() % 2)
270 throw std::invalid_argument("odd number of points for Lines");
271 }
◆ add() [1/2]
std::vector< Point > points
Definition Shapes.h:212
◆ add() [2/2]
277 {
280 }
void add(Point p)
Definition Shapes.h:176
◆ color()
Color Graph_lib::Shape::color |
( |
| ) |
const |
|
inlineinherited |
Color c
Definition Shapes.h:213
◆ draw()
void Graph_lib::Shape::draw |
( |
| ) |
const |
|
inherited |
10 {
12
18}
Line_style ls
Definition Shapes.h:214
virtual void draw_lines() const
Definition Shapes.cpp:20
W & reference_to(void *ptr_wid)
Definition Widgets.h:16
unsigned int as_uint() const
Definition Shapes.h:57
pix_amount w() const
Definition Shapes.h:94
unsigned int style() const
Definition Shapes.h:96
◆ draw_lines()
void Graph_lib::Lines::draw_lines |
( |
| ) |
const |
|
overridevirtual |
Reimplemented from Graph_lib::Shape.
63 {
64 if (
color().visibility())
67}
size_t number_of_points() const
Definition Shapes.h:203
Color color() const
Definition Shapes.h:191
Point point(int i) const
Definition Shapes.h:201
pix_amount y
Definition Point.h:30
pix_amount x
Definition Point.h:30
◆ fill_color()
Color Graph_lib::Shape::fill_color |
( |
| ) |
const |
|
inlineinherited |
Color f_c
Definition Shapes.h:215
◆ get_style()
◆ move()
◆ number_of_points()
size_t Graph_lib::Shape::number_of_points |
( |
| ) |
const |
|
inlineinherited |
◆ point()
Point Graph_lib::Shape::point |
( |
int | i | ) |
const |
|
inlineinherited |
◆ set_color()
void Graph_lib::Shape::set_color |
( |
Color | _color | ) |
|
|
inlineinherited |
◆ set_fill_color()
void Graph_lib::Shape::set_fill_color |
( |
Color | _color | ) |
|
|
inlineinherited |
◆ set_point()
◆ set_style()
◆ f_c
@ invisible
Definition Shapes.h:41
◆ ls
◆ points
std::vector<Point> Graph_lib::Shape::points |
|
privateinherited |
The documentation for this class was generated from the following files: