TVideoAspectRatio Class Reference

class TVideoAspectRatio

Represents the video aspect ratio as a fraction: iNumerator/iDenominator.

Constructor & Destructor Documentation

TVideoAspectRatio()

TVideoAspectRatio ( ) [inline]

Constructs a default aspect ratio object. The default aspect ratio is 1:1 (square).

TVideoAspectRatio(TInt, TInt)

TVideoAspectRatio ( TInt aNumerator,
TInt aDenominator
) [inline]

Constructs an aspect ratio object from a numerator and a denominator.

Parameters

TInt aNumerator Aspect ratio numerator.
TInt aDenominator Aspect ratio denominator.

Member Functions Documentation

operator!=(const TVideoAspectRatio &)

TBool operator!= ( const TVideoAspectRatio & aAspectRatio ) const [inline]

Compares two aspect ratio object for equality. The objects are considered inequal if either the numerators or the denominators differ. Note that the implementation will not attempt to reduce the fractions before comparison.

Parameters

const TVideoAspectRatio & aAspectRatio

operator==(const TVideoAspectRatio &)

TBool operator== ( const TVideoAspectRatio & aAspectRatio ) const [inline]

Compares two aspect ratio object for equality. The objects are considered equal if the numerator and denominator match. Note that the implementation will not attempt to reduce the fractions before comparison.

Parameters

const TVideoAspectRatio & aAspectRatio

Member Data Documentation

TInt iDenominator

TInt iDenominator

Aspect ratio denominator.

TInt iNumerator

TInt iNumerator

Aspect ratio numerator.