gravity.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 {
16  enum gravity {
17  gravity_center = 0x00,
18  gravity_top = 0x01,
19  gravity_buttom = 0x02,
20  gravity_right = 0x04,
21  gravity_left = 0x08,
26  };
27  std::ostream& operator <<(std::ostream& _os, const enum ewol::gravity _obj);
28  std::string gravityToString(const enum ewol::gravity _obj);
29  enum ewol::gravity stringToGravity(const std::string& _obj);
30  vec2 gravityGenerateDelta(const enum ewol::gravity _gravity, const vec2& _deltas);
31 }
gravity is in center
Definition: gravity.hpp:17
gravity is in buttom-left
Definition: gravity.hpp:25
gravity is in top
Definition: gravity.hpp:18
gravity is in left
Definition: gravity.hpp:21
Definition: Area.hpp:16
gravity
Gravity of the widget property .
Definition: gravity.hpp:16
gravity is in buttom-right
Definition: gravity.hpp:24
gravity is in top-right
Definition: gravity.hpp:22
gravity is in buttom
Definition: gravity.hpp:19
gravity is in right
Definition: gravity.hpp:20
gravity is in top-left
Definition: gravity.hpp:23