6
Size::Size(t_int32 w, t_int32 h)
12
//----------------------------------------------------------------------------
18
//----------------------------------------------------------------------------
19
Size::Size(const Size& s)
25
//----------------------------------------------------------------------------
26
Size& Size::operator =(const Size& s)
33
t_bool Size::operator== (const Size& s) const
35
if((width_ == s.width_) && (height_ == s.height_))
42
//----------------------------------------------------------------------------
43
t_bool Size::operator!= (const Size& s) const
45
if((width_ == s.width_) && (height_ == s.height_))
52
//----------------------------------------------------------------------------
53
Size Size::operator+ (const Size& s) const
56
size.width_ = width_ + size.width_;
57
size.height_ = height_ + size.height_;
61
//----------------------------------------------------------------------------
62
Size Size::operator- (const Size& s) const
65
size.width_ = width_ - size.width_;
66
size.height_ = height_ - size.height_;
70
//----------------------------------------------------------------------------
71
t_int32 Size::GetWidth() const
76
//----------------------------------------------------------------------------
77
t_int32 Size::GetHeight() const
82
//----------------------------------------------------------------------------
83
void Size::SetWidth(t_int32 w)
88
//----------------------------------------------------------------------------
89
void Size::SetHeight(t_int32 h)
94
//----------------------------------------------------------------------------