DrawProperty.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 #include <etk/math/Vector2D.hpp>
10 
11 namespace ewol {
15  class DrawProperty{
16  /*
17  /--> m_windowsSize
18  *--------------------------------------------------*
19  | g |
20  | |
21  | m_size |
22  | / |
23  | o-------------------o |
24  | | | |
25  | | | |
26  | | | |
27  | | | |
28  | | | |
29  | | | |
30  | | | |
31  | | | |
32  | o-------------------o |
33  | / |
34  | m_origin |
35  | |
36  *--------------------------------------------------*
37  /
38  (0,0)
39  */
40  public :
44  void limit(const vec2& _origin, const vec2& _size);
45  };
46  std::ostream& operator <<(std::ostream& _os, const ewol::DrawProperty& _obj);
47 
48 }
Definition: DrawProperty.hpp:15
ivec2 m_size
Windows clipping upper widget (can not be <0 and >m_windowsSize)
Definition: DrawProperty.hpp:43
Definition: Area.hpp:16
ivec2 m_windowsSize
Windows compleate size.
Definition: DrawProperty.hpp:41
ivec2 m_origin
Windows clipping upper widget (can not be <0)
Definition: DrawProperty.hpp:42