w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

graphite2::Rect Class Reference

#include <Position.h>

Collaboration diagram for graphite2::Rect:
[legend]

Public Member Functions

 Rect ()
 
 Rect (const Position &botLeft, const Position &topRight)
 
Rect widen (const Rect &other)
 
Rect operator+ (const Position &a) const
 
Rect operator- (const Position &a) const
 
Rect operator* (float m) const
 
float width () const
 
float height () const
 
bool hitTest (Rect &other)
 
Position overlap (Position &offset, Rect &other, Position &otherOffset)
 
 Rect ()
 
 Rect (const Position &botLeft, const Position &topRight)
 
Rect widen (const Rect &other)
 
Rect operator+ (const Position &a) const
 
Rect operator- (const Position &a) const
 
Rect operator* (float m) const
 
float width () const
 
float height () const
 
bool hitTest (Rect &other)
 
Position overlap (Position &offset, Rect &other, Position &otherOffset)
 

Public Attributes

Position bl
 
Position tr
 

Detailed Description

Definition at line 46 of file Position.h.

Constructor & Destructor Documentation

◆ Rect() [1/4]

graphite2::Rect::Rect ( )
inline

Definition at line 49 of file Position.h.

Referenced by operator*(), operator+(), operator-(), and widen().

◆ Rect() [2/4]

graphite2::Rect::Rect ( const Position botLeft,
const Position topRight 
)
inline

Definition at line 50 of file Position.h.

◆ Rect() [3/4]

graphite2::Rect::Rect ( )
inline

Definition at line 49 of file Position.h.

◆ Rect() [4/4]

graphite2::Rect::Rect ( const Position botLeft,
const Position topRight 
)
inline

Definition at line 50 of file Position.h.

Member Function Documentation

◆ height() [1/2]

float graphite2::Rect::height ( ) const
inline

Definition at line 56 of file Position.h.

References bl, tr, and graphite2::Position::y.

◆ height() [2/2]

float graphite2::Rect::height ( ) const
inline

Definition at line 56 of file Position.h.

References bl, tr, and graphite2::Position::y.

◆ hitTest() [1/2]

bool Rect::hitTest ( Rect other)

Definition at line 32 of file Position.cpp.

References bl, other, tr, graphite2::Position::x, and graphite2::Position::y.

◆ hitTest() [2/2]

bool graphite2::Rect::hitTest ( Rect other)

◆ operator*() [1/2]

Rect graphite2::Rect::operator* ( float  m) const
inline

Definition at line 54 of file Position.h.

References bl, m, Rect(), tr, graphite2::Position::x, and graphite2::Position::y.

◆ operator*() [2/2]

Rect graphite2::Rect::operator* ( float  m) const
inline

Definition at line 54 of file Position.h.

References bl, m, Rect(), tr, graphite2::Position::x, and graphite2::Position::y.

◆ operator+() [1/2]

Rect graphite2::Rect::operator+ ( const Position a) const
inline

Definition at line 52 of file Position.h.

References a, bl, Rect(), tr, graphite2::Position::x, and graphite2::Position::y.

◆ operator+() [2/2]

Rect graphite2::Rect::operator+ ( const Position a) const
inline

Definition at line 52 of file Position.h.

References a, bl, Rect(), tr, graphite2::Position::x, and graphite2::Position::y.

◆ operator-() [1/2]

Rect graphite2::Rect::operator- ( const Position a) const
inline

Definition at line 53 of file Position.h.

References a, bl, Rect(), tr, graphite2::Position::x, and graphite2::Position::y.

◆ operator-() [2/2]

Rect graphite2::Rect::operator- ( const Position a) const
inline

Definition at line 53 of file Position.h.

References a, bl, Rect(), tr, graphite2::Position::x, and graphite2::Position::y.

◆ overlap() [1/2]

Position Rect::overlap ( Position offset,
Rect other,
Position otherOffset 
)

Definition at line 41 of file Position.cpp.

References bl, offset, other, tr, graphite2::Position::x, and graphite2::Position::y.

◆ overlap() [2/2]

Position graphite2::Rect::overlap ( Position offset,
Rect other,
Position otherOffset 
)

◆ widen() [1/2]

Rect graphite2::Rect::widen ( const Rect other)
inline

Definition at line 51 of file Position.h.

References bl, other, Rect(), tr, graphite2::Position::x, and graphite2::Position::y.

◆ widen() [2/2]

Rect graphite2::Rect::widen ( const Rect other)
inline

Definition at line 51 of file Position.h.

References bl, other, Rect(), tr, graphite2::Position::x, and graphite2::Position::y.

◆ width() [1/2]

float graphite2::Rect::width ( ) const
inline

Definition at line 55 of file Position.h.

References bl, tr, and graphite2::Position::x.

◆ width() [2/2]

float graphite2::Rect::width ( ) const
inline

Definition at line 55 of file Position.h.

References bl, tr, and graphite2::Position::x.

Member Data Documentation

◆ bl

◆ tr


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