~thumper/nux/replace-nfilename

« back to all changes in this revision

Viewing changes to NuxCore/Size.h

Removed extra methods from size.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 */
21
21
 
22
22
 
23
 
#ifndef SIZE_H
24
 
#define SIZE_H
 
23
#ifndef NUX_CORE_SIZE_H
 
24
#define NUX_CORE_SIZE_H
25
25
 
26
26
namespace nux
27
27
{
28
28
 
29
 
  class Size
30
 
  {
31
 
  public:
32
 
    Size (t_int32 w = 0, t_int32 h = 0);
33
 
    ~Size();
34
 
    Size (const Size &s);
35
 
 
36
 
    Size &operator = (const Size &s);
37
 
    t_bool operator == (const Size &s) const;
38
 
    t_bool operator != (const Size &s) const;
39
 
    Size operator + (const Size &p) const;
40
 
    Size operator - (const Size &p) const;
41
 
 
42
 
 
43
 
    t_int32 GetWidth() const;
44
 
    t_int32 GetHeight() const;
45
 
    void SetWidth (t_int32 w);
46
 
    void SetHeight (t_int32 h);
47
 
 
48
 
  public:
49
 
    t_int32 width;
50
 
    t_int32 height;
51
 
  };
 
29
class Size
 
30
{
 
31
public:
 
32
    Size();
 
33
    Size(int w, int h);
 
34
 
 
35
    int width;
 
36
    int height;
 
37
};
 
38
 
 
39
bool operator == (const Size& lhs, const Size& rhs);
 
40
bool operator != (const Size& lhs, const Size& rhs);
52
41
 
53
42
}
54
43
 
 
44
#include "Size-inl.h"
 
45
 
55
46
#endif // SIZE_H
56
47