gravity.hpp File Reference
#include <etk/types.hpp>
#include <etk/math/Vector2D.hpp>

Go to the source code of this file.

Enumerations

enum  ewol::gravity {
  ewol::gravity_center = 0x00, ewol::gravity_top = 0x01, ewol::gravity_buttom = 0x02, ewol::gravity_right = 0x04,
  ewol::gravity_left = 0x08, ewol::gravity_topRight = gravity_top|gravity_right, ewol::gravity_topLeft = gravity_top|gravity_left, ewol::gravity_buttomRight = gravity_buttom|gravity_right,
  ewol::gravity_buttomLeft = gravity_buttom|gravity_left
}
 

Functions

std::string ewol::gravityToString (const enum ewol::gravity _obj)
 
enum ewol::gravity ewol::stringToGravity (const std::string &_obj)
 
vec2 ewol::gravityGenerateDelta (const enum ewol::gravity _gravity, const vec2 &_deltas)
 

Detailed Description

Author
Edouard DUPIN
Note
License: APACHE v2.0 (see license file)

Enumeration Type Documentation

§ gravity

Gravity of the widget property .

Enumerator
gravity_center 

gravity is in center

gravity_top 

gravity is in top

gravity_buttom 

gravity is in buttom

gravity_right 

gravity is in right

gravity_left 

gravity is in left

gravity_topRight 

gravity is in top-right

gravity_topLeft 

gravity is in top-left

gravity_buttomRight 

gravity is in buttom-right

gravity_buttomLeft 

gravity is in buttom-left