Horizon
horizon-eda-1.3.0
src
canvas
annotation.hpp
1
#pragma once
2
#include <deque>
3
#include "common/common.hpp"
4
#include "color_palette.hpp"
5
6
namespace
horizon {
7
class
CanvasAnnotation
{
8
friend
class
CanvasGL
;
9
10
public
:
11
CanvasAnnotation
(
class
CanvasGL
*c,
int
l);
12
void
set_display(
const
class
LayerDisplay
&ld);
13
void
set_visible(
bool
v);
14
void
clear();
15
void
draw_line(
const
std::deque<Coordf> &pts, ColorP color,
uint64_t
width);
16
void
draw_line(
const
Coordf
&from,
const
Coordf
&to, ColorP color,
uint64_t
width,
bool
highlight =
false
,
17
uint8_t
color2 = 0);
18
void
draw_polygon(
const
std::deque<Coordf> &pts, ColorP color,
uint64_t
width);
19
bool
on_top =
true
;
20
bool
use_highlight =
false
;
21
22
private
:
23
class
CanvasGL
*ca;
24
int
layer;
25
};
26
}
// namespace horizon
horizon::CanvasAnnotation
Definition:
annotation.hpp:7
libzip::uint8_t
zip_uint8_t uint8_t
zip_uint8_t typedef.
Definition:
zip.hpp:78
horizon::CanvasGL
Definition:
canvas_gl.hpp:18
horizon::LayerDisplay
Definition:
layer_display.hpp:5
horizon::Coord< float >
libzip::uint64_t
zip_uint64_t uint64_t
zip_uint64_t_t typedef.
Definition:
zip.hpp:108
Generated by
1.8.20