• Immutable Page
  • Info
  • Attachments


The CompSize class represents a simple two-dimentional size, without any position. It is used mostly to reduce clutter by keeping width and height variables around.

Class Definition

 * A 2D size (likely in screen space) that can only be mutated with set() methods,
 * since it'd data members are private.
class CompSize {

        CompSize ();
        CompSize (int, int);

        int width () const;
        int height () const;

        void setWidth (int);
        void setHeight (int);

        typedef std::vector<CompSize> vector;
        typedef std::vector<CompSize *> ptrVector;
        typedef std::list<CompSize> list;
        typedef std::list<CompSize *> ptrList;

        int mWidth, mHeight;

Development/zero-nine/CoreClasses/CompSize (last edited 2010-07-27 03:43:34 by 124-169-107-122)