Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Classes | Functions
fsize.h File Reference
#include "../fpoint.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FSize
 The FSize class defines the size of a two-dimensional object. More...

Functions

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

Function Documentation

bool operator!= ( const FSize s1,
const FSize s2 
) [inline]

Definition at line 164 of file fsize.h.

{ return s1.wd != s2.wd || s1.ht != s2.ht; }
const FSize operator* ( const FSize s,
int  c 
) [inline]

Definition at line 173 of file fsize.h.

{ return FSize(s.wd*c, s.ht*c); }
const FSize operator* ( int  c,
const FSize s 
) [inline]

Definition at line 176 of file fsize.h.

{  return FSize(s.wd*c, s.ht*c); }
const FSize operator* ( const FSize s,
double  c 
) [inline]

Definition at line 179 of file fsize.h.

{ return FSize((double)(s.wd*c), (double)(s.ht*c)); }
const FSize operator* ( double  c,
const FSize s 
) [inline]

Definition at line 182 of file fsize.h.

{ return FSize((double)(s.wd*c), (double)(s.ht*c)); }
const FSize operator+ ( const FSize s1,
const FSize s2 
) [inline]

Definition at line 167 of file fsize.h.

{ return FSize(s1.wd+s2.wd, s1.ht+s2.ht); }
const FSize operator- ( const FSize s1,
const FSize s2 
) [inline]

Definition at line 170 of file fsize.h.

{ return FSize(s1.wd-s2.wd, s1.ht-s2.ht); }
const FSize operator/ ( const FSize s,
int  c 
) [inline]

Definition at line 205 of file fsize.h.

{
#if defined(QT_CHECK_MATH)
    if ( c == 0 )
       FSize::warningDivByZero();
#endif
    return FSize(s.wd/c, s.ht/c);
}

Here is the call graph for this function:

const FSize operator/ ( const FSize s,
double  c 
) [inline]

Definition at line 214 of file fsize.h.

{
#if defined(QT_CHECK_MATH)
    if ( c == 0.0 )
       FSize::warningDivByZero();
#endif
    return FSize((double)(s.wd/c), (double)(s.ht/c));
}

Here is the call graph for this function:

bool operator== ( const FSize s1,
const FSize s2 
) [inline]

Definition at line 161 of file fsize.h.

{ return s1.wd == s2.wd && s1.ht == s2.ht; }