~hikiko/nux/arb-srgba-shader

« back to all changes in this revision

Viewing changes to NuxCore/Size.h

  • Committer: Neil Jagdish Patel
  • Date: 2010-09-01 19:25:37 UTC
  • Revision ID: neil.patel@canonical.com-20100901192537-mfz7rm6q262pewg6
Import and build NuxCore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SIZE_H
 
2
#define SIZE_H
 
3
 
 
4
NAMESPACE_BEGIN
 
5
 
 
6
class Size
 
7
{
 
8
public:
 
9
        Size(t_int32 w = 0, t_int32 h = 0);
 
10
        ~Size();
 
11
        Size(const Size& s);
 
12
 
 
13
        Size& operator = (const Size& s);
 
14
        t_bool operator == (const Size& s) const;
 
15
        t_bool operator != (const Size& s) const;
 
16
    Size operator + (const Size& p) const;
 
17
    Size operator - (const Size& p) const;
 
18
 
 
19
 
 
20
        t_int32 GetWidth() const;
 
21
        t_int32 GetHeight() const;
 
22
        void SetWidth(t_int32 w);
 
23
        void SetHeight(t_int32 h);
 
24
 
 
25
private:
 
26
        t_int32 width_;
 
27
        t_int32 height_;
 
28
};
 
29
 
 
30
NAMESPACE_END
 
31
 
 
32
#endif // SIZE_H
 
33