00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __FL_SIZE_H__
00023 #define __FL_SIZE_H__
00024
00026 class FL_API Fl_Size
00027 {
00028 int width_, height_;
00029 public:
00030 Fl_Size() : width_(0), height_(0) {}
00031 Fl_Size(int w, int h) : width_(w), height_(h) {}
00032
00033 Fl_Size &operator=( const Fl_Size &s ) { width(s.w()); height(s.h()); return *this; }
00034
00035 int width() const { return width_; }
00036 int w() const { return width_; }
00037
00038 int h() const { return height_; }
00039 int height() const { return height_; }
00040
00041 void width(int w) { width_ = w; }
00042 void height(int h) { height_ = h; }
00043 };
00044
00045 #endif