Ipelib
ipe::Fixed Class Reference

#include <ipebase.h>

Public Member Functions

 Fixed (int val)
 Fixed ()
int toInt () const
double toDouble () const
int internal () const
Fixed mult (int a, int b) const
bool operator== (const Fixed &rhs) const
bool operator!= (const Fixed &rhs) const
bool operator< (const Fixed &rhs) const
bool isInteger () const

Static Public Member Functions

static Fixed fromInternal (int32_t val)
static Fixed fromDouble (double val)

Friends

Streamoperator<< (Stream &stream, const Fixed &f)

(Note that these are not member symbols.)

Streamoperator<< (Stream &stream, const Fixed &f)

Detailed Description

Fixed point number with three (decimal) fractional digits.

Constructor & Destructor Documentation

◆ Fixed() [1/2]

ipe::Fixed::Fixed ( int val)
inlineexplicit

◆ Fixed() [2/2]

ipe::Fixed::Fixed ( )
inlineexplicit

Member Function Documentation

◆ fromInternal()

Fixed ipe::Fixed::fromInternal ( int32_t val)
inlinestatic

◆ fromDouble()

Fixed Fixed::fromDouble ( double val)
static

References Fixed(), and fromInternal().

Referenced by ipe::Text::getAttribute().

◆ toInt()

int ipe::Fixed::toInt ( ) const
inline

◆ toDouble()

◆ internal()

int ipe::Fixed::internal ( ) const
inline

◆ mult()

Fixed Fixed::mult ( int a,
int b ) const

Return value times (a/b)

References Fixed(), and fromInternal().

Referenced by ipe::Latex::createLatexSource().

◆ operator==()

bool ipe::Fixed::operator== ( const Fixed & rhs) const
inline

References Fixed(), and operator==().

Referenced by operator==().

◆ operator!=()

bool ipe::Fixed::operator!= ( const Fixed & rhs) const
inline

References Fixed(), and operator!=().

Referenced by operator!=().

◆ operator<()

bool ipe::Fixed::operator< ( const Fixed & rhs) const
inline

References Fixed(), and operator<().

Referenced by operator<().

◆ isInteger()

bool ipe::Fixed::isInteger ( ) const
inline

References isInteger().

Referenced by isInteger(), and ipe::ImlParser::parseStyle().

◆ operator<< [1/2]

Stream & operator<< ( Stream & stream,
const Fixed & f )
friend

References Fixed().

◆ operator<<() [2/2]

Stream & operator<< ( Stream & stream,
const Fixed & f )
related

References Fixed().


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