Jamba  3.0.2
pongasoft::VST::GUI::RelativeDrawContext Class Reference

#include <DrawContext.h>

Inherits pongasoft::VST::GUI::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 pongasoft::VST::GUI::RelativeView
RelativePoint clampAbsolutePoint (AbsolutePoint const &iPoint) const
 
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

CDrawContext * fDrawContext
 
- Protected Attributes inherited from pongasoft::VST::GUI::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()

pongasoft::VST::GUI::RelativeDrawContext::RelativeDrawContext ( CView *  iView,
CDrawContext *  iDrawContext 
)
inline

Member Function Documentation

◆ drawEllipse() [1/2]

void pongasoft::VST::GUI::RelativeDrawContext::drawEllipse ( RelativeCoord  x1,
RelativeCoord  y1,
RelativeCoord  x2,
RelativeCoord  y2,
CColor const &  iStrokeColor 
)
inline

◆ drawEllipse() [2/2]

void pongasoft::VST::GUI::RelativeDrawContext::drawEllipse ( RelativeRect const &  iRect,
CColor const &  iStrokeColor 
)
inline

◆ drawLine()

void pongasoft::VST::GUI::RelativeDrawContext::drawLine ( RelativeCoord  x1,
RelativeCoord  y1,
RelativeCoord  x2,
RelativeCoord  y2,
CColor const &  color 
)
inline

◆ drawRect() [1/2]

void pongasoft::VST::GUI::RelativeDrawContext::drawRect ( RelativeCoord  x1,
RelativeCoord  y1,
RelativeCoord  x2,
RelativeCoord  y2,
CColor const &  iStrokeColor 
)
inline

◆ drawRect() [2/2]

void pongasoft::VST::GUI::RelativeDrawContext::drawRect ( RelativeRect const &  iRect,
CColor const &  iStrokeColor 
)
inline

◆ drawString() [1/3]

void pongasoft::VST::GUI::RelativeDrawContext::drawString ( UTF8String const &  iText,
RelativeCoord  x,
RelativeCoord  y,
RelativeCoord  iHeight,
StringDrawContext iSdc 
)
inline

◆ drawString() [2/3]

void pongasoft::VST::GUI::RelativeDrawContext::drawString ( UTF8String const &  iText,
RelativeRect const &  fSize,
StringDrawContext iSdc 
)

◆ drawString() [3/3]

void pongasoft::VST::GUI::RelativeDrawContext::drawString ( UTF8String const &  iText,
StringDrawContext iSdc 
)
inline

◆ fillAndStrokeEllipse()

void pongasoft::VST::GUI::RelativeDrawContext::fillAndStrokeEllipse ( RelativeRect const &  iRect,
CColor const &  iFillColor,
CColor const &  iStrokeColor 
)
inline

◆ fillAndStrokeRect()

void pongasoft::VST::GUI::RelativeDrawContext::fillAndStrokeRect ( RelativeRect const &  iRect,
CColor const &  iFillColor,
CColor const &  iStrokeColor 
)
inline

◆ fillEllipse() [1/2]

void pongasoft::VST::GUI::RelativeDrawContext::fillEllipse ( RelativeCoord  x1,
RelativeCoord  y1,
RelativeCoord  x2,
RelativeCoord  y2,
CColor const &  iColor 
)
inline

◆ fillEllipse() [2/2]

void pongasoft::VST::GUI::RelativeDrawContext::fillEllipse ( RelativeRect const &  iRect,
CColor const &  iColor 
)
inline

◆ fillRect() [1/2]

void pongasoft::VST::GUI::RelativeDrawContext::fillRect ( RelativeCoord  x1,
RelativeCoord  y1,
RelativeCoord  x2,
RelativeCoord  y2,
CColor const &  iColor 
)
inline

◆ fillRect() [2/2]

void pongasoft::VST::GUI::RelativeDrawContext::fillRect ( RelativeRect const &  iRect,
CColor const &  iColor 
)
inline

Member Data Documentation

◆ fDrawContext

CDrawContext* pongasoft::VST::GUI::RelativeDrawContext::fDrawContext
protected

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