Padding.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 
10 namespace ewol {
14  class Padding {
15  private:
16  float m_value[4];
17  public:
18  Padding();
19  Padding(float _xl, float _yt=0.0f, float _xr=0.0f, float _yb=0.0f);
20  void setValue(float _xl, float _yt=0.0f, float _xr=0.0f, float _yb=0.0f);
21  float x() const;
22  float y() const;
23  float xLeft() const;
24  void setXLeft(float _val);
25  float xRight() const;
26  void setXRight(float _val);
27  float yTop() const;
28  void setYTop(float _val);
29  float yButtom() const;
30  void setYButtom(float _val);
35  Padding& operator+=(const Padding& _v);
37  Padding operator+(const Padding& _v);
38 
39  };
40  std::ostream& operator <<(std::ostream& _os, const ewol::Padding& _obj);
41 };
42 
Padding & operator+=(const Padding &_v)
Add a vector to this one.
Padding operator+(const Padding &_v)
Definition: Area.hpp:16
Definition: Padding.hpp:14