1 #ifndef AWFUL_MATH_RECTF_H_
2 #define AWFUL_MATH_RECTF_H_
7 namespace awful
{ namespace math
13 Rectf( const Vector2f
& position_
, const Vector2f
& size_
) :
14 m_position( position_
),
19 Rectf( float left_
, float top_
, float width_
, float height_
) :
20 m_position( left_
, top_
),
21 m_size( width_
, height_
)
25 Vector2f
& position() { return m_position
; }
26 Vector2f
& size() { return m_size
; }
28 float& left() { return m_position
.x(); }
29 float& top() { return m_position
.y(); }
30 float& width() { return m_size
.x(); }
31 float& height() { return m_size
.y(); }
33 const Vector2f
& position() const { return m_position
; }
34 const Vector2f
& size() const { return m_size
; }
36 const float& left() const { return m_position
.x(); }
37 const float& top() const { return m_position
.y(); }
38 const float& width() const { return m_size
.x(); }
39 const float& height() const { return m_size
.y(); }