Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
RelativeDrawContext Class Reference

Encapsulates the draw context provided by VSTGUI to reason in relative coordinates (0,0) is top,left. More...

#include <DrawContext.h>

Inherits RelativeView.

Public Member Functions

void drawEllipse (RelativeCoord x1, RelativeCoord y1, RelativeCoord x2, RelativeCoord y2, CColor const &iStrokeColor)
void drawEllipse (RelativeRect const &iRect, CColor const &iStrokeColor)
void drawLine (RelativeCoord x1, RelativeCoord y1, RelativeCoord x2, RelativeCoord y2, CColor const &color)
void drawRect (RelativeCoord x1, RelativeCoord y1, RelativeCoord x2, RelativeCoord y2, CColor const &iStrokeColor)
void drawRect (RelativeRect const &iRect, CColor const &iStrokeColor)
void drawString (UTF8String const &iText, RelativeCoord x, RelativeCoord y, RelativeCoord iHeight, StringDrawContext &iSdc)
void drawString (UTF8String const &iText, RelativeRect const &fSize, StringDrawContext &iSdc)
void drawString (UTF8String const &iText, StringDrawContext &iSdc)
void fillAndStrokeEllipse (RelativeRect const &iRect, CColor const &iFillColor, CColor const &iStrokeColor)
void fillAndStrokeRect (RelativeRect const &iRect, CColor const &iFillColor, CColor const &iStrokeColor)
void fillEllipse (RelativeCoord x1, RelativeCoord y1, RelativeCoord x2, RelativeCoord y2, CColor const &iColor)
void fillEllipse (RelativeRect const &iRect, CColor const &iColor)
void fillRect (RelativeCoord x1, RelativeCoord y1, RelativeCoord x2, RelativeCoord y2, CColor const &iColor)
void fillRect (RelativeRect const &iRect, CColor const &iColor)
 RelativeDrawContext (CView *iView, CDrawContext *iDrawContext)
Public Member Functions inherited from RelativeView
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.
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 (AbsoluteRect const &iRect)
 RelativeView (CView const *iView)
AbsolutePoint toAbsolutePoint (RelativeCoord x, RelativeCoord y) const
AbsolutePoint toAbsolutePoint (RelativePoint const &iPoint) const
AbsoluteRect toAbsoluteRect (RelativeRect const &iRect) const
AbsoluteCoord toAbsoluteX (RelativeCoord x) const
AbsoluteCoord toAbsoluteY (RelativeCoord y) const

Protected Attributes

CDrawContext * fDrawContext
Protected Attributes inherited from RelativeView
AbsoluteRect const & fRect

Detailed Description

Encapsulates the draw context provided by VSTGUI to reason in relative coordinates (0,0) is top,left.

Constructor & Destructor Documentation

◆ RelativeDrawContext()

RelativeDrawContext ( CView * iView,
CDrawContext * iDrawContext )
inline

Member Function Documentation

◆ drawEllipse() [1/2]

void drawEllipse ( RelativeCoord x1,
RelativeCoord y1,
RelativeCoord x2,
RelativeCoord y2,
CColor const & iStrokeColor )
inline

◆ drawEllipse() [2/2]

void drawEllipse ( RelativeRect const & iRect,
CColor const & iStrokeColor )
inline

◆ drawLine()

void drawLine ( RelativeCoord x1,
RelativeCoord y1,
RelativeCoord x2,
RelativeCoord y2,
CColor const & color )
inline

◆ drawRect() [1/2]

void drawRect ( RelativeCoord x1,
RelativeCoord y1,
RelativeCoord x2,
RelativeCoord y2,
CColor const & iStrokeColor )
inline

◆ drawRect() [2/2]

void drawRect ( RelativeRect const & iRect,
CColor const & iStrokeColor )
inline

◆ drawString() [1/3]

void drawString ( UTF8String const & iText,
RelativeCoord x,
RelativeCoord y,
RelativeCoord iHeight,
StringDrawContext & iSdc )
inline

◆ drawString() [2/3]

void drawString ( UTF8String const & iText,
RelativeRect const & fSize,
StringDrawContext & iSdc )

◆ drawString() [3/3]

void drawString ( UTF8String const & iText,
StringDrawContext & iSdc )
inline

◆ fillAndStrokeEllipse()

void fillAndStrokeEllipse ( RelativeRect const & iRect,
CColor const & iFillColor,
CColor const & iStrokeColor )
inline

◆ fillAndStrokeRect()

void fillAndStrokeRect ( RelativeRect const & iRect,
CColor const & iFillColor,
CColor const & iStrokeColor )
inline

◆ fillEllipse() [1/2]

void fillEllipse ( RelativeCoord x1,
RelativeCoord y1,
RelativeCoord x2,
RelativeCoord y2,
CColor const & iColor )
inline

◆ fillEllipse() [2/2]

void fillEllipse ( RelativeRect const & iRect,
CColor const & iColor )
inline

◆ fillRect() [1/2]

void fillRect ( RelativeCoord x1,
RelativeCoord y1,
RelativeCoord x2,
RelativeCoord y2,
CColor const & iColor )
inline

◆ fillRect() [2/2]

void fillRect ( RelativeRect const & iRect,
CColor const & iColor )
inline

Member Data Documentation

◆ fDrawContext

CDrawContext* fDrawContext
protected

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