graphics_style/shapes/
shape.rs1use super::*;
2
3#[derive(Debug, Clone)]
4pub struct PointStyle {
5 pub color: Color,
6 pub size: f32,
7}
8
9#[derive(Debug, Clone)]
10pub struct PolygonStyle {
11 pub fill: FillStyle,
12 pub edge: EdgeStyle,
13}
14
15#[derive(Debug, Clone)]
16pub struct RectangleStyle {
17 pub fill: FillStyle,
18 pub edge: EdgeStyle,
19}
20
21#[derive(Debug, Clone)]
22pub struct EllipseStyle {
23 pub fill: FillStyle,
24 pub edge: EdgeStyle,
25}
26
27#[derive(Debug, Clone)]
28
29pub struct CircleStyle {
30 pub fill: FillStyle,
31 pub edge: EdgeStyle,
32}
33#[derive(Debug, Clone)]
34
35pub struct CircleWidth {}
36#[derive(Debug, Clone)]
37
38pub struct CircleColor {}
39
40#[derive(Debug, Clone)]
41
42pub struct FillStyle {
43 pub texture: Texture,
44}
45
46#[derive(Debug, Clone)]
47
48pub struct EdgeStyle {
49 pub texture: Texture,
50 pub width: f32,
51}
52
53#[derive(Debug, Clone)]
54
55pub struct LineStyle {
56 pub texture: Texture,
57 pub width: f32,
58}