lib

#include <KoSize.h>

Public Member Functions

 KoSize (double w, double h)
bool isNull () const
bool isEmpty () const
bool isValid () const
double width () const
double height () const
void setWidth (double w)
void setHeight (double h)
KoSize expandedTo (const KoSize &) const
KoSize boundedTo (const KoSize &) const
double & rwidth ()
double & rheight ()
KoSize & operator+= (const KoSize &)
KoSize & operator-= (const KoSize &)
KoSize & operator*= (int c)
KoSize & operator*= (double c)
KoSize & operator/= (int c)
KoSize & operator/= (double c)
TQSize toTQSize () const
void transpose ()

Static Public Member Functions

static KoSize fromTQSize (const TQSize &size)

Friends

bool operator== (const KoSize &s1, const KoSize &s2)
bool operator!= (const KoSize &s1, const KoSize &s2)
const KoSize operator+ (const KoSize &s1, const KoSize &s2)
const KoSize operator- (const KoSize &s1, const KoSize &s2)
const KoSize operator* (const KoSize &s, int c)
const KoSize operator* (int c, const KoSize &s)
const KoSize operator* (const KoSize &s, double c)
const KoSize operator* (double c, const KoSize &s)
const KoSize operator/ (const KoSize &s, int c)
const KoSize operator/ (const KoSize &s, double c)

Detailed Description

A size whose coordinates are floating-point values ( "double"s ).

The API isn't documented, it's a perfect mirror of TQSize.

Definition at line 33 of file KoSize.h.

Constructor & Destructor Documentation

◆ KoSize() [1/2]

KoSize::KoSize ( )
inline

Definition at line 100 of file KoSize.h.

◆ KoSize() [2/2]

KoSize::KoSize ( double w,
double h )
inline

Definition at line 103 of file KoSize.h.

Member Function Documentation

◆ boundedTo()

KoSize KoSize::boundedTo ( const KoSize & otherSize) const
inline

Definition at line 212 of file KoSize.h.

◆ expandedTo()

KoSize KoSize::expandedTo ( const KoSize & otherSize) const
inline

Definition at line 207 of file KoSize.h.

◆ fromTQSize()

KoSize KoSize::fromTQSize ( const TQSize & size)
inlinestatic

Definition at line 73 of file KoSize.h.

◆ height()

double KoSize::height ( ) const
inline

Definition at line 118 of file KoSize.h.

◆ isEmpty()

bool KoSize::isEmpty ( ) const
inline

Definition at line 109 of file KoSize.h.

◆ isNull()

bool KoSize::isNull ( ) const
inline

Definition at line 106 of file KoSize.h.

◆ isValid()

bool KoSize::isValid ( ) const
inline

Definition at line 112 of file KoSize.h.

◆ operator*=() [1/2]

KoSize & KoSize::operator*= ( double c)
inline

Definition at line 142 of file KoSize.h.

◆ operator*=() [2/2]

KoSize & KoSize::operator*= ( int c)
inline

Definition at line 139 of file KoSize.h.

◆ operator+=()

KoSize & KoSize::operator+= ( const KoSize & s)
inline

Definition at line 133 of file KoSize.h.

◆ operator-=()

KoSize & KoSize::operator-= ( const KoSize & s)
inline

Definition at line 136 of file KoSize.h.

◆ operator/=() [1/2]

KoSize & KoSize::operator/= ( double c)
inline

Definition at line 179 of file KoSize.h.

◆ operator/=() [2/2]

KoSize & KoSize::operator/= ( int c)
inline

Definition at line 169 of file KoSize.h.

◆ rheight()

double & KoSize::rheight ( )
inline

Definition at line 130 of file KoSize.h.

◆ rwidth()

double & KoSize::rwidth ( )
inline

Definition at line 127 of file KoSize.h.

◆ setHeight()

void KoSize::setHeight ( double h)
inline

Definition at line 124 of file KoSize.h.

◆ setWidth()

void KoSize::setWidth ( double w)
inline

Definition at line 121 of file KoSize.h.

◆ toTQSize()

TQSize KoSize::toTQSize ( ) const
inline

Definition at line 217 of file KoSize.h.

◆ transpose()

void KoSize::transpose ( )
inline

Definition at line 78 of file KoSize.h.

◆ width()

double KoSize::width ( ) const
inline

Definition at line 115 of file KoSize.h.

◆ operator!=

bool operator!= ( const KoSize & s1,
const KoSize & s2 )
friend

Definition at line 148 of file KoSize.h.

◆ operator* [1/4]

const KoSize operator* ( const KoSize & s,
double c )
friend

Definition at line 163 of file KoSize.h.

◆ operator* [2/4]

const KoSize operator* ( const KoSize & s,
int c )
friend

Definition at line 157 of file KoSize.h.

◆ operator* [3/4]

const KoSize operator* ( double c,
const KoSize & s )
friend

Definition at line 166 of file KoSize.h.

◆ operator* [4/4]

const KoSize operator* ( int c,
const KoSize & s )
friend

Definition at line 160 of file KoSize.h.

◆ operator+

const KoSize operator+ ( const KoSize & s1,
const KoSize & s2 )
friend

Definition at line 151 of file KoSize.h.

◆ operator-

const KoSize operator- ( const KoSize & s1,
const KoSize & s2 )
friend

Definition at line 154 of file KoSize.h.

◆ operator/ [1/2]

const KoSize operator/ ( const KoSize & s,
double c )
friend

Definition at line 198 of file KoSize.h.

◆ operator/ [2/2]

const KoSize operator/ ( const KoSize & s,
int c )
friend

Definition at line 189 of file KoSize.h.

◆ operator==

bool operator== ( const KoSize & s1,
const KoSize & s2 )
friend

Definition at line 145 of file KoSize.h.


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