class KSize

Class for representing a size by (width,height). More...

Definition#include <ksize.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

Class for reperesenting a size by its WIDTH and HEIGHT. It's sorce compatible to the Qt class QSize, but KSize uses 32 bit integers for the width/height.

 KSize ()

 KSize (int _wid,int _hei)

 KSize (const QSize &_size)

bool  isNull ()

[const]

bool  isEmpty ()

[const]

bool  isValid ()

[const]

int  width ()

[const]

int  height ()

[const]

void  setWidth (int _wid)

void  setHeight (int _hei)

void  transpose ()

KSize  expandedTo (const KSize &_size)

[const]

KSize  boundedTo (const KSize &_size)

[const]

int & rwidth ()

int & rheight ()

KSizeoperator+= (const KSize &_size)

KSizeoperator-= (const KSize &_size)

KSizeoperator*= (int _c)

KSizeoperator*= (float _c)

KSizeoperator/= (int _c)

KSizeoperator/= (float _c)

 operator QSize ()

[const]

friend bool  operator== (const KSize &_size1,const KSize &_size2)

friend bool  operator!= (const KSize &_size1,const KSize &_size2)

friend bool  operator== (const QSize &_size1,const KSize &_size2)

friend bool  operator!= (const QSize &_size1,const KSize &_size2)

friend bool  operator== (const KSize &_size1,const QSize &_size2)

friend bool  operator!= (const KSize &_size1,const QSize &_size2)

friend KSize  operator+ (const KSize &_size1,const KSize &_size2)

friend KSize  operator- (const KSize &_size1,const KSize &_size2)

friend KSize  operator* (const KSize &_size,int _c)

friend KSize  operator* (int _c,const KSize &_size)

friend KSize  operator* (const KSize &_size,float _c)

friend KSize  operator* (float _c,const KSize &_size)

friend KSize  operator/ (const KSize &_size,int _c)

friend KSize  operator/ (const KSize &_size,float _c)

int wid

[protected]

int hei

[protected]