f72369b5fc39309d410977a8493c37d975c82107
[ipdf/code.git] / src / group.h
1 #ifndef _GROUP_H
2 #define _GROUP_H
3
4 #include <vector>
5 #include <algorithm>
6
7 namespace IPDF
8 {
9         
10         struct Colour
11         {
12                 float r; float g; float b; float a;
13                 Colour() = default;
14                 Colour(float _r, float _g, float _b, float _a) : r(_r), g(_g), b(_b), a(_a) {}
15         };
16         
17         class Objects;
18         
19         struct Group
20         {
21                 Group(unsigned _start, unsigned _end, unsigned _index, const Colour & _fill = Colour(0.8,0.8,0.8,1))
22                         : m_start(_start), m_end(_end), m_index(_index), m_fill(_fill)
23                 {
24                         
25                 }
26                 unsigned m_start;
27                 unsigned m_end;
28                 unsigned m_index;
29                 Colour m_fill;          
30         };
31
32 }
33 #endif //_GROUP_H

UCC git Repository :: git.ucc.asn.au