|
VSTGUI
4.3
Graphical User Interface Framework not only for VST plugins
|
A draw context using a bitmap as it's back buffer. More...
Inheritance diagram for COffscreenContext:
Collaboration diagram for COffscreenContext:Public Member Functions | |
| CBitmap * | getBitmap () const |
| virtual double | getScaleFactor () const |
| virtual void | beginDraw () |
| virtual void | endDraw () |
| virtual bool | isTypeOf (IdStringPtr s) const |
| virtual CBaseObject * | newCopy () const |
| virtual void | beforeDelete () |
COffscreenContext Methods | |
| void | copyFrom (CDrawContext *pContext, CRect destRect, CPoint srcOffset=CPoint(0, 0)) |
| copy from offscreen to pContext More... | |
| CCoord | getWidth () const |
| CCoord | getHeight () const |
Line Mode | |
| virtual void | setLineStyle (const CLineStyle &style) |
| set the current line style More... | |
| const CLineStyle & | getLineStyle () const |
| get the current line style More... | |
| virtual void | setLineWidth (CCoord width) |
| set the current line width More... | |
| CCoord | getLineWidth () const |
| get the current line width More... | |
Draw Mode | |
| virtual void | setDrawMode (CDrawMode mode) |
| set the current draw mode, see CDrawMode More... | |
| CDrawMode | getDrawMode () const |
| get the current draw mode, see CDrawMode More... | |
Clipping | |
| virtual void | setClipRect (const CRect &clip) |
| set the current clip More... | |
| CRect & | getClipRect (CRect &clip) const |
| get the current clip More... | |
| virtual void | resetClipRect () |
| reset the clip to the default state More... | |
Color | |
| virtual void | setFillColor (const CColor &color) |
| set current fill color More... | |
| CColor | getFillColor () const |
| get current fill color More... | |
| virtual void | setFrameColor (const CColor &color) |
| set current stroke color More... | |
| CColor | getFrameColor () const |
| get current stroke color More... | |
Font | |
| virtual void | setFontColor (const CColor &color) |
| set current font color More... | |
| CColor | getFontColor () const |
| get current font color More... | |
| virtual void | setFont (const CFontRef font, const CCoord &size=0, const int32_t &style=-1) |
| set current font More... | |
| const CFontRef | getFont () const |
| get current font More... | |
Text | |
| CCoord | getStringWidth (UTF8StringPtr pStr) |
| get the width of an UTF-8 encoded string More... | |
| CCoord | getStringWidth (IPlatformString *pStr) |
| get the width of a platform string More... | |
| void | drawString (UTF8StringPtr string, const CRect &_rect, const CHoriTxtAlign hAlign=kCenterText, bool antialias=true) |
| draw an UTF-8 encoded string More... | |
| void | drawString (UTF8StringPtr string, const CPoint &_point, bool antialias=true) |
| draw an UTF-8 encoded string More... | |
| void | drawString (IPlatformString *string, const CRect &_rect, const CHoriTxtAlign hAlign=kCenterText, bool antialias=true) |
| draw a platform string More... | |
| void | drawString (IPlatformString *string, const CPoint &_point, bool antialias=true) |
| draw a platform string More... | |
Global Alpha State | |
| virtual void | setGlobalAlpha (float newAlpha) |
| sets the global alpha value[0..1] More... | |
| float | getGlobalAlpha () const |
| get current global alpha value More... | |
Global State Stack | |
| virtual void | saveGlobalState () |
| virtual void | restoreGlobalState () |
Transformation | |
| const CGraphicsTransform & | getCurrentTransform () const |
| const CRect & | getAbsoluteClipRect () const |
Reference Counting Methods | |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 More... | |
| virtual void | remember () |
| increase refcount More... | |
| virtual int32_t | getNbReference () const |
| get refcount More... | |
Message Methods | |
| virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Static Public Member Functions | |
| static COffscreenContext * | create (CFrame *frame, CCoord width, CCoord height, double scaleFactor=1.) |
Protected Member Functions | |
| COffscreenContext (CBitmap *bitmap) | |
| COffscreenContext (const CRect &surfaceRect) | |
| ~COffscreenContext () | |
| virtual void | init () |
| void | pushTransform (const CGraphicsTransform &transformation) |
| void | popTransform () |
| const CString & | getDrawString (UTF8StringPtr string) |
| void | clearDrawString () |
Protected Attributes | |
| CBitmap * | bitmap |
| CString * | drawStringHelper |
| CRect | surfaceRect |
| CDrawContextState | currentState |
Draw primitives | |
| void | moveTo (const CPoint &point) |
| void | lineTo (const CPoint &point) |
| void | getLoc (CPoint &where) const |
| void | drawLines (const CPoint *points, const int32_t &numberOfLines) |
| virtual void | drawLines (const LineList &lines)=0 |
| draw multiple lines at once More... | |
| void | drawPolygon (const CPoint *pPoints, int32_t numberOfPoints, const CDrawStyle drawStyle=kDrawStroked) |
| virtual void | drawPolygon (const PointList &polygonPointList, const CDrawStyle drawStyle=kDrawStroked)=0 |
| draw a polygon More... | |
| void | drawLine (const CPoint &start, const CPoint &end) |
| virtual void | drawLine (const LinePair &line)=0 |
| draw a line More... | |
| virtual void | drawRect (const CRect &rect, const CDrawStyle drawStyle=kDrawStroked)=0 |
| draw a rect More... | |
| virtual void | drawArc (const CRect &rect, const float startAngle1, const float endAngle2, const CDrawStyle drawStyle=kDrawStroked)=0 |
| draw an arc, angles are in degree More... | |
| virtual void | drawEllipse (const CRect &rect, const CDrawStyle drawStyle=kDrawStroked)=0 |
| draw an ellipse More... | |
| virtual void | drawPoint (const CPoint &point, const CColor &color)=0 |
| draw a point More... | |
| virtual void | drawBitmap (CBitmap *bitmap, const CRect &dest, const CPoint &offset=CPoint(0, 0), float alpha=1.f)=0 |
| don't call directly, please use CBitmap::draw instead More... | |
| virtual void | drawBitmapNinePartTiled (CBitmap *bitmap, const CRect &dest, const CNinePartTiledDescription &desc, float alpha=1.f) |
| virtual void | fillRectWithBitmap (CBitmap *bitmap, const CRect &srcRect, const CRect &dstRect, float alpha) |
| virtual void | clearRect (const CRect &rect)=0 |
| clears the rect (makes r = 0, g = 0, b = 0, a = 0) More... | |
| typedef std::pair< CPoint, CPoint > | LinePair |
| typedef std::vector< LinePair > | LineList |
| typedef std::vector< CPoint > | PointList |
Graphics Paths | |
| virtual CGraphicsPath * | createGraphicsPath ()=0 |
| create a graphics path object, you need to forget it after usage More... | |
| virtual CGraphicsPath * | createTextPath (const CFontRef font, UTF8StringPtr text)=0 |
| create a graphics path from a text More... | |
| CGraphicsPath * | createRoundRectGraphicsPath (const CRect &size, CCoord radius) |
| create a rect with round corners as graphics path, you need to forget it after usage More... | |
| virtual void | drawGraphicsPath (CGraphicsPath *path, PathDrawMode mode=kPathFilled, CGraphicsTransform *transformation=0)=0 |
| virtual void | fillLinearGradient (CGraphicsPath *path, const CGradient &gradient, const CPoint &startPoint, const CPoint &endPoint, bool evenOdd=false, CGraphicsTransform *transformation=0)=0 |
| virtual void | fillRadialGradient (CGraphicsPath *path, const CGradient &gradient, const CPoint ¢er, CCoord radius, const CPoint &originOffset=CPoint(0, 0), bool evenOdd=false, CGraphicsTransform *transformation=0)=0 |
| enum | PathDrawMode { kPathFilled, kPathFilledEvenOdd, kPathStroked } |
A draw context using a bitmap as it's back buffer.
There are two usage scenarios :
|
inherited |
|
protected |
Here is the call graph for this function:
|
protected |
|
protected |
Here is the call graph for this function:
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
protectedinherited |
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtualinherited |
clears the rect (makes r = 0, g = 0, b = 0, a = 0)
| void copyFrom | ( | CDrawContext * | pContext, |
| CRect | destRect, | ||
| CPoint | srcOffset = CPoint (0, 0) |
||
| ) |
copy from offscreen to pContext
Here is the call graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtualinherited |
create a graphics path object, you need to forget it after usage
Here is the caller graph for this function:
|
inherited |
create a rect with round corners as graphics path, you need to forget it after usage
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtualinherited |
create a graphics path from a text
|
pure virtualinherited |
draw an arc, angles are in degree
|
virtualinherited |
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtualinherited |
draw an ellipse
Here is the caller graph for this function:
|
pure virtualinherited |
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtualinherited |
draw a line
|
inherited |
|
pure virtualinherited |
draw multiple lines at once
draw a point
|
inherited |
|
pure virtualinherited |
draw a polygon
|
pure virtualinherited |
draw a rect
Here is the caller graph for this function:
|
inherited |
draw an UTF-8 encoded string
Here is the call graph for this function:
Here is the caller graph for this function:
|
inherited |
draw an UTF-8 encoded string
Here is the call graph for this function:
|
inherited |
draw a platform string
Here is the call graph for this function:
|
inherited |
draw a platform string
|
inlinevirtualinherited |
|
pure virtualinherited |
Here is the caller graph for this function:
|
pure virtualinherited |
Here is the caller graph for this function:
|
virtualinherited |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtualinherited |
decrease refcount and delete object if refcount == 0
Here is the call graph for this function:
|
inlineinherited |
|
inline |
get the current clip
Here is the call graph for this function:
Here is the caller graph for this function:
|
inherited |
Here is the caller graph for this function:
|
protectedinherited |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
get current fill color
|
inlineinherited |
get current font
|
inlineinherited |
get current font color
|
inlineinherited |
get current stroke color
|
inlineinherited |
get current global alpha value
Here is the caller graph for this function:| CCoord getHeight | ( | ) | const |
Here is the call graph for this function:
|
inlineinherited |
get the current line style
|
inlineinherited |
get the current line width
|
inlineinherited |
|
inlinevirtualinherited |
get refcount
|
inlinevirtualinherited |
Here is the caller graph for this function:
|
inherited |
get the width of an UTF-8 encoded string
Here is the call graph for this function:
|
inherited |
get the width of a platform string
| CCoord getWidth | ( | ) | const |
Here is the call graph for this function:
|
protectedvirtualinherited |
Here is the call graph for this function:
|
inlinevirtualinherited |
|
inherited |
|
inherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Reimplemented in CView, GenericStringListDataBrowserSource, CDataBrowser, CViewContainer, CRockerSwitch, CScrollView, CAnimationSplashScreen, UIDescriptionViewSwitchController, CRowColumnView, CShadowViewContainer, CTooltipSupport, and CScrollbar.
Here is the caller graph for this function:
|
protectedinherited |
|
protectedinherited |
Here is the caller graph for this function:
|
inlinevirtualinherited |
increase refcount
Here is the caller graph for this function:
|
virtualinherited |
reset the clip to the default state
|
virtualinherited |
Here is the caller graph for this function:
|
virtualinherited |
Here is the caller graph for this function:
|
virtualinherited |
set the current clip
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtualinherited |
|
virtualinherited |
set current fill color
Here is the caller graph for this function:
|
virtualinherited |
set current font
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtualinherited |
set current font color
Here is the caller graph for this function:
|
virtualinherited |
set current stroke color
Here is the caller graph for this function:
|
virtualinherited |
sets the global alpha value[0..1]
Here is the caller graph for this function:
|
virtualinherited |
set the current line style
Here is the caller graph for this function:
|
virtualinherited |
set the current line width
Here is the caller graph for this function:
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |