|
VSTGUI
3.6
|
A drawing device which uses a pixmap as its drawing surface. More...
#include <vstgui.h>
Inheritance diagram for COffscreenContext:Public Member Functions | |
| virtual | ~COffscreenContext () |
| void | drawArc (const CRect &rect, const CPoint &point1, const CPoint &point2) |
| void * | getWindow () |
| void | setWindow (void *ptr) |
| void | getLoc (CPoint &where) const |
| CFrame * | getFrame () const |
| void * | getSystemContext () const |
| void | forget () |
| decrease refcount and delete object if refcount == 0 More... | |
| CColor | getPoint (const CPoint &point) |
| void | floodFill (const CPoint &start) |
| void | fillArc (const CRect &rect, const CPoint &point1, const CPoint &point2) |
| void | polyLine (const CPoint *pPoint, long numberOfPoints) |
| void | fillPolygon (const CPoint *pPoint, long numberOfPoints) |
| void | fillRect (const CRect &rect) |
| void | fillEllipse (const CRect &rect) |
| long | getMouseButtons () |
| void | getMouseLocation (CPoint &point) |
| bool | waitDoubleClick () |
| bool | waitDrag () |
Public Attributes | |
| CPoint | offsetScreen |
| CPoint | offset |
Protected Attributes | |
| CBitmap * | pBitmap |
| CBitmap * | pBitmapBg |
| CCoord | height |
| CCoord | width |
| bool | bDestroyPixmap |
| bool | bDrawInBitmap |
| CColor | backgroundColor |
| void * | pSystemContext |
| void * | pWindow |
| CFrame * | pFrame |
| CFontRef | font |
| CColor | fontColor |
| CPoint | penLoc |
| CCoord | frameWidth |
| CColor | frameColor |
| CColor | fillColor |
| CLineStyle | lineStyle |
| CDrawMode | drawMode |
| CRect | clipRect |
Reference Counting Methods | |
| virtual void | remember () |
| increase refcount More... | |
| long | getNbReference () const |
| get refcount More... | |
Message Methods | |
| virtual CMessageResult | notify (CBaseObject *sender, const char *message) |
Draw primitives | |
| void | moveTo (const CPoint &point) |
| move line position to point More... | |
| void | lineTo (const CPoint &point) |
| draw a line from current position to point More... | |
| void | drawLines (const CPoint *points, const long &numberOfLines) |
| draw multiple lines at once More... | |
| void | drawPolygon (const CPoint *pPoints, long numberOfPoints, const CDrawStyle drawStyle=kDrawStroked, bool closePolygon=true) |
| draw a polygon More... | |
| void | drawRect (const CRect &rect, const CDrawStyle drawStyle=kDrawStroked) |
| draw a rect More... | |
| void | drawArc (const CRect &rect, const float startAngle1, const float endAngle2, const CDrawStyle drawStyle=kDrawStroked) |
| draw an arc, angles are in degree More... | |
| void | drawEllipse (const CRect &rect, const CDrawStyle drawStyle=kDrawStroked) |
| draw an ellipse More... | |
| void | drawPoint (const CPoint &point, CColor color) |
| draw a point More... | |
Line Mode | |
| void | setLineStyle (CLineStyle style) |
| set the current line style More... | |
| CLineStyle | getLineStyle () const |
| get the current line style More... | |
| void | setLineWidth (CCoord width) |
| set the current line width More... | |
| CCoord | getLineWidth () const |
| get the current line width More... | |
Draw Mode | |
| void | setDrawMode (CDrawMode mode) |
| set the current draw mode, see CDrawMode More... | |
| CDrawMode | getDrawMode () const |
| get the current draw mode, see CDrawMode More... | |
Clipping | |
| void | setClipRect (const CRect &clip) |
| set the current clip More... | |
| CRect & | getClipRect (CRect &clip) const |
| get the current clip More... | |
| void | resetClipRect () |
| reset the clip to the default state More... | |
Color | |
| void | setFillColor (const CColor color) |
| set current fill color More... | |
| CColor | getFillColor () const |
| get current fill color More... | |
| void | setFrameColor (const CColor color) |
| set current stroke color More... | |
| CColor | getFrameColor () const |
| get current stroke color More... | |
Font | |
| void | setFontColor (const CColor color) |
| set current font color More... | |
| CColor | getFontColor () const |
| get current font color More... | |
| void | setFont (const CFontRef font, const long &size=0, const long &style=-1) |
| set current font More... | |
| const CFontRef & | getFont () const |
| get current font More... | |
| long | getFontSize () const |
| get current font size More... | |
Text | |
| CCoord | getStringWidth (const char *pStr) |
| get the width of an ASCII encoded string More... | |
| void | drawString (const char *pString, const CRect &rect, const short opaque=false, const CHoriTxtAlign hAlign=kCenterText) |
| draw an ASCII encoded string More... | |
| CCoord | getStringWidthUTF8 (const char *pStr) |
| get the width of an UTF-8 encoded string More... | |
| void | drawStringUTF8 (const char *pString, const CRect &rect, const CHoriTxtAlign hAlign=kCenterText, bool antialias=true) |
| draw an UTF-8 encoded string More... | |
| void | drawStringUTF8 (const char *string, const CPoint &_point, bool antialias=true) |
| draw an UTF-8 encoded string More... | |
Constructors | |
| COffscreenContext (CDrawContext *pContext, CBitmap *pBitmap, bool drawInBitmap=false) | |
| COffscreenContext (CFrame *pFrame, long width, long height, const CColor backgroundColor=kBlackCColor) | |
COffscreenContext Methods | |
| void | copyFrom (CDrawContext *pContext, CRect destRect, CPoint srcOffset=CPoint(0, 0)) |
| copy from offscreen to pContext More... | |
| void | copyTo (CDrawContext *pContext, CRect &srcRect, CPoint destOffset=CPoint(0, 0)) |
| copy to offscreen from pContext More... | |
| CCoord | getWidth () const |
| CCoord | getHeight () const |
A drawing device which uses a pixmap as its drawing surface.
| COffscreenContext | ( | CDrawContext * | pContext, |
| CBitmap * | pBitmap, | ||
| bool | drawInBitmap = false |
||
| ) |
| COffscreenContext | ( | CFrame * | pFrame, |
| long | width, | ||
| long | height, | ||
| const CColor | backgroundColor = kBlackCColor |
||
| ) |
|
virtual |
| void copyFrom | ( | CDrawContext * | pContext, |
| CRect | destRect, | ||
| CPoint | srcOffset = CPoint (0, 0) |
||
| ) |
copy from offscreen to pContext
| void copyTo | ( | CDrawContext * | pContext, |
| CRect & | srcRect, | ||
| CPoint | destOffset = CPoint (0, 0) |
||
| ) |
copy to offscreen from pContext
|
inherited |
draw an arc, angles are in degree
|
inherited |
draw an ellipse
|
inherited |
draw multiple lines at once
|
inherited |
draw a polygon
|
inherited |
draw a rect
|
inherited |
draw an ASCII encoded string
|
inherited |
draw an UTF-8 encoded string
|
inherited |
draw an UTF-8 encoded string
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
decrease refcount and delete object if refcount == 0
Reimplemented from CBaseObject.
|
inlineinherited |
get the current draw mode, see CDrawMode
|
inlineinherited |
get current fill color
|
inlineinherited |
get current font
|
inlineinherited |
get current font color
|
inlineinherited |
get current font size
|
inlineinherited |
|
inlineinherited |
get current stroke color
|
inline |
|
inlineinherited |
get the current line style
|
inlineinherited |
get the current line width
|
inlineinherited |
|
inherited |
|
inherited |
|
inlineinherited |
get refcount
|
inherited |
get the width of an ASCII encoded string
|
inherited |
get the width of an UTF-8 encoded string
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inherited |
draw a line from current position to point
|
inherited |
move line position to point
|
inlinevirtualinherited |
Reimplemented in CViewContainer, CView, CScrollbar, CDataBrowser, and CTooltipSupport.
|
inherited |
|
inlinevirtualinherited |
increase refcount
|
inherited |
reset the clip to the default state
|
inherited |
set the current clip
|
inherited |
set the current draw mode, see CDrawMode
|
inherited |
set current fill color
|
inherited |
set current font
|
inherited |
set current font color
|
inherited |
set current stroke color
|
inherited |
set the current line style
|
inherited |
set the current line width
|
inlineinherited |
|
inherited |
|
inherited |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
inherited |
|
inherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
1.8.7