Wt::Size Class Reference

#include <size.h>

List of all members.

Public Member Functions

 Size (int width=0, int height=0)
int width () const
int height () const
bool isValid () const
void setWidth (int w)
void setHeight (int h)
void setSize (int w, int h)
bool operator== (const Size &other) const
 Compare two Sizes for equality.
bool operator!= (const Size &other) const
 Compare two Sizes.
bool contains (const Size &other) const
Sizeoperator+= (const Size &other)
 increment operator
Sizeoperator>> (int margin)
 add a margin (smaller rectangle)
Sizeoperator<< (int margin)
 subtract a margin (bigger rectangle)
Size operator>> (int margin) const
 add a margin (smaller rectangle)
Size operator<< (int margin) const
 subtract a margin (bigger rectangle)
Size boundedTo (const Size &other) const
SizeboundedTo (const Size &other)
Size expandedTo (const Size &other) const
SizeexpandedTo (const Size &other)

Constructor & Destructor Documentation

Wt::Size::Size ( int  width = 0,
int  height = 0 
) [inline]

Member Function Documentation

Size& Wt::Size::boundedTo ( const Size other  )  [inline]

Size Wt::Size::boundedTo ( const Size other  )  const [inline]

bool Wt::Size::contains ( const Size other  )  const [inline]

Size& Wt::Size::expandedTo ( const Size other  )  [inline]

Size Wt::Size::expandedTo ( const Size other  )  const [inline]

int Wt::Size::height (  )  const [inline]

bool Wt::Size::isValid (  )  const [inline]

bool Wt::Size::operator!= ( const Size other  )  const [inline]

Compare two Sizes.

Size& Wt::Size::operator+= ( const Size other  )  [inline]

increment operator

Size Wt::Size::operator<< ( int  margin  )  const [inline]

subtract a margin (bigger rectangle)

Size& Wt::Size::operator<< ( int  margin  )  [inline]

subtract a margin (bigger rectangle)

bool Wt::Size::operator== ( const Size other  )  const [inline]

Compare two Sizes for equality.

Size Wt::Size::operator>> ( int  margin  )  const [inline]

add a margin (smaller rectangle)

Size& Wt::Size::operator>> ( int  margin  )  [inline]

add a margin (smaller rectangle)

void Wt::Size::setHeight ( int  h  )  [inline]

void Wt::Size::setSize ( int  w,
int  h 
) [inline]

void Wt::Size::setWidth ( int  w  )  [inline]

int Wt::Size::width (  )  const [inline]

The documentation for this class was generated from the following file:

Generated Fri Jul 28 19:22:39 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.