Jamba C++ API  5.1.1
RelativeView Class Reference

#include <DrawContext.h>

Inherited by RelativeDrawContext.

Public Member Functions

RelativePoint clampAbsolutePoint (AbsolutePoint const &iPoint) const
 Convert the absolute point to a relative point while making sure it is clamped (constrained) within this relative view. More...
 
RelativePoint fromAbsolutePoint (AbsolutePoint const &iPoint) const
 
RelativeCoord fromAbsoluteX (AbsoluteCoord x) const
 
RelativeCoord fromAbsoluteY (AbsoluteCoord y) const
 
CCoord getHeight () const
 
Range getHorizontalRange () const
 
Range getVerticalRange () const
 
RelativeRect getViewSize () const
 
CCoord getWidth () const
 
 RelativeView (CView const *iView)
 
 RelativeView (AbsoluteRect const &iRect)
 
AbsolutePoint toAbsolutePoint (RelativePoint const &iPoint) const
 
AbsolutePoint toAbsolutePoint (RelativeCoord x, RelativeCoord y) const
 
AbsoluteRect toAbsoluteRect (RelativeRect const &iRect) const
 
AbsoluteCoord toAbsoluteX (RelativeCoord x) const
 
AbsoluteCoord toAbsoluteY (RelativeCoord y) const
 

Protected Attributes

AbsoluteRect const & fRect
 

Constructor & Destructor Documentation

◆ RelativeView() [1/2]

RelativeView ( CView const *  iView)
inlineexplicit

◆ RelativeView() [2/2]

RelativeView ( AbsoluteRect const &  iRect)
inlineexplicit

Member Function Documentation

◆ clampAbsolutePoint()

RelativePoint clampAbsolutePoint ( AbsolutePoint const &  iPoint) const
inline

Convert the absolute point to a relative point while making sure it is clamped (constrained) within this relative view.

◆ fromAbsolutePoint()

RelativePoint fromAbsolutePoint ( AbsolutePoint const &  iPoint) const
inline

◆ fromAbsoluteX()

RelativeCoord fromAbsoluteX ( AbsoluteCoord  x) const
inline

◆ fromAbsoluteY()

RelativeCoord fromAbsoluteY ( AbsoluteCoord  y) const
inline

◆ getHeight()

CCoord getHeight ( ) const
inline

◆ getHorizontalRange()

Range getHorizontalRange ( ) const
inline

◆ getVerticalRange()

Range getVerticalRange ( ) const
inline

◆ getViewSize()

RelativeRect getViewSize ( ) const
inline

◆ getWidth()

CCoord getWidth ( ) const
inline

◆ toAbsolutePoint() [1/2]

AbsolutePoint toAbsolutePoint ( RelativePoint const &  iPoint) const
inline

◆ toAbsolutePoint() [2/2]

AbsolutePoint toAbsolutePoint ( RelativeCoord  x,
RelativeCoord  y 
) const
inline

◆ toAbsoluteRect()

AbsoluteRect toAbsoluteRect ( RelativeRect const &  iRect) const
inline

◆ toAbsoluteX()

AbsoluteCoord toAbsoluteX ( RelativeCoord  x) const
inline

◆ toAbsoluteY()

AbsoluteCoord toAbsoluteY ( RelativeCoord  y) const
inline

Member Data Documentation

◆ fRect

AbsoluteRect const& fRect
protected

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