CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::GSurfaceQt类 参考
+ 类 BUI::GSurfaceQt 继承关系图:

Public 成员函数

 GSurfaceQt ()
 
 GSurfaceQt (QPainter *painter, unsigned char *buf, int width, int height, int stride, int bpp)
 
virtual ~GSurfaceQt ()
 
void AttchBuffer (QPainter *painter, unsigned char *buf, int width, int height, int stride, int bpp)
 
GFontSelectFontObject (GFont *font) override
 
GFontGetCurrentFontObject () override
 
void SetClipBox (int x, int y, int w, int h, bool enable) override
 
void ResetClipBox () override
 
void PaintTextMultiLine (int x, int y, TextMultilineInfo *multiText, COLORREF color, UINT align=DT_LEFT|DT_TOP) override
 
void PaintTextOutW (int x, int y, LPCWSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP) override
 
void PaintTextOutA (int x, int y, LPCSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP) override
 
void PaintTextOut (int x, int y, LPCTSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP) override
 
void PaintTextW (LPRECT lprc, LPCWSTR text, int c, COLORREF color, UINT format) override
 
void PaintTextA (LPRECT lprc, LPCSTR text, int c, COLORREF color, UINT format) override
 
void PaintText (LPRECT lprc, LPCTSTR text, int c, COLORREF color, UINT format) override
 
void PaintTextAngleW (int x, int y, float angle, LPCWSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2)) override
 
void PaintTextAngleA (int x, int y, float angle, LPCSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2)) override
 
void PaintTextAngle (int x, int y, float angle, LPCTSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2)) override
 
void PaintFontTextOut (void *font, int x1, int y1, LPCSTR text, int c, COLORREF color) override
 
SIZE GetTextSize (LPCTSTR sztext, int nlen) override
 
SIZE GetTextSizeW (LPCWSTR sztext, int nlen) override
 
SIZE GetTextSizeA (LPCSTR sztext, int nlen) override
 
void Line (int x1, int y1, int x2, int y2, int size, const GColor &color, LineStyle *style=NULL) override
 
void Arc (double x, double y, double rx, double ry, double a1, double a2, int size, const GColor &color, LineStyle *style=NULL) override
 
void BezierDiv (POINT pt[4], int size, const GColor &color, LineStyle *style=NULL) override
 贝塞尔曲线(4控制点)
 
void BezierDivCurve3 (POINT pt[3], int size, const GColor &color, LineStyle *style=NULL) override
 
void FillRect (RECT rc, const GColor &color) override
 
void FillRoundRect (RECT rc, RoundRectRadius &radius, const GColor &color) override
 
void Rect (RECT rc, int size, const GColor &color, LineStyle *style=NULL) override
 
void RoundRect (RECT rc, RoundRectRadius &radius, int size, const GColor &color, LineStyle *style=NULL) override
 
void FillEllipse (int x, int y, int rx, int ry, const GColor &color) override
 
void Ellipse (int x, int y, int rx, int ry, int size, const GColor &color, LineStyle *style=NULL) override
 
void FillPath (const PathTransInfo &pathInfo, const GColor &color, BOOL bin_render=FALSE) override
 
void DrawPath (const PathTransInfo &pathInfo, const GColor &color, int size=1, LineStyle *style=NULL) override
 
void FillPathGradient (const PathTransInfo &pathInfo, GBrushGradient *bru_gradient) override
 
void DrawPathGradient (const PathTransInfo &pathInfo, GBrushGradient *bru_gradient, int size=1, LineStyle *style=NULL) override
 
void DrawPathPattern (const PathTransInfo &pathInfo, ImageDrawInfo *patten_texture, int size=1, int alpha=255, double scale=1) override
 
void Fill3D (VSInput *vs, int len, UINT *indicies, int indicies_len, MatFloat4x4 mvp, BOOL is_line=FALSE, BOOL CullBack=TRUE) override
 
void DrawImage (const PathTransInfo &pathInfo, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL) override
 
void DrawImageEllipse (int cx, int cy, int rx, int ry, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL) override
 
void DrawImageRect (int x, int y, int w, int h, RoundRectRadius *radius, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL) override
 
void GetImageRatioTransform2d (Transform2d *img_mtx, const ImageDrawInfo *pSrcSurface, int x, int y, int w, int h, ImageRatioStyle ratio_type, double angle, double scale) override
 
void PaintSVG (GPathStorageSVG *svg, VIEW_BOX *box, GrayConv grayType=GrayNone) override
 
void FillShadow (ShadowInfo *shadowinfo, const PathTransInfo &pathInfo) override
 
void DrawShadow (ShadowInfo *shadowinfo, const PathTransInfo &pathInfo, int size=1, LineStyle *style=NULL) override
 
void BlurPath (const PathTransInfo &pathInfo, int widget) override
 
void Blur (int x, int y, int w, int h, int widget) override
 
void BlendFrom (int x, int y, int w, int h, ImageDrawInfo *from, GColor color, BlendCompType comp) override
 
void Gray (int x, int y, int w, int h, int conv_type) override
 
void GouraudRender (POINT p1, POINT p2, POINT p3, const GColor &c1, const GColor &c2, const GColor &c3) override
 
void DrawTextMono (unsigned char *data, int x, int y, int w, int h, const GColor &color) override
 
void GlyphRaster (const RECT &rc, const GRasterGlyph *glyphBin, const GColor &color) override
 
void GlyphRaster (int x, int y, const GRasterGlyph *glyphBin, const GColor &color) override
 
void CopyFrom (const ImageDrawInfo &img, LPRECT rcSrc, int dx=0, int dy=0) override
 
void CopyTo (const ImageDrawInfo &img, LPRECT rcSrc, int dx=0, int dy=0) override
 
void GetImageDrawInfo (ImageDrawInfo *info, LPRECT rcSrc) override
 
void Clear (const GColor &color) override
 
- Public 成员函数 继承自 BUI::GSurface
 GSurface ()
 
 GSurface (unsigned char *buf, int width, int height, int stride, int bpp, GSurfacePainter *platDevice=NULL)
 
virtual ~GSurface ()
 
unsigned char * Buffer ()
 
int Width ()
 
int Height ()
 
int Stride ()
 
int StrideAbs ()
 
int PixelBitCounts () const
 
void SetViewportOrg (int x, int y)
 
void GetViewportOrg (int *x, int *y)
 
void SetPixelFormat (PixelFormatType fmt)
 
void SetLineCap (LineCapStyle cap)
 
void SetPenStyle (PenType style, int dashx, int dashy)
 
void AttachZbuffer (unsigned char *zbuf)
 
void AttachPlatformPainter (GSurfacePainter *platDevice)
 
double SetPixelRatio (double scaleFactor)
 
virtual void AttchFormat (unsigned char *buf, int width, int height, int stride, int bpp, GSurfacePainter *platDevice=NULL)
 
virtual PixelFormatType GetPixelFormat ()
 
virtual double GetPixelRatio ()
 
virtual BlendCompType SetBlendCompType (BlendCompType op=comp_none)
 
virtual void SetClipBox (int x, int y, int w, int h, bool enable)
 
virtual void GetClipBox (int *x, int *y, int *w, int *h)
 
virtual void ResetClipBox ()
 
virtual void SetGrayCoeff (float k_r, float k_g, float k_b)
 
virtual ShadowInfoSelectTextShadow (ShadowInfo *shadowinfo)
 
virtual ShadowInfoSelectShadow (ShadowInfo *shadowinfo)
 
virtual GSurfacePainterPlatformPainter ()
 
virtual void DoDrawEvent (SurEvent *ev)
 
virtual GFontSelectFontObject (GFont *font)
 
virtual GFontGetCurrentFontObject ()
 
virtual void PaintTextMultiLine (int x, int y, TextMultilineInfo *multiText, COLORREF color, UINT align=DT_LEFT|DT_TOP)
 
virtual void PaintTextOutW (int x, int y, LPCWSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP)
 
virtual void PaintTextOutA (int x, int y, LPCSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP)
 
virtual void PaintTextOut (int x, int y, LPCTSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP)
 
virtual void PaintTextW (LPRECT lprc, LPCWSTR text, int c, COLORREF color, UINT format)
 
virtual void PaintTextA (LPRECT lprc, LPCSTR text, int c, COLORREF color, UINT format)
 
virtual void PaintText (LPRECT lprc, LPCTSTR text, int c, COLORREF color, UINT format)
 
virtual void GetTextAnglePloygonW (int x, int y, float angle, LPCWSTR sztext, int nlen, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bkPadSize=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)
 
virtual void GetTextAnglePloygonA (int x, int y, float angle, LPCSTR sztext, int nlen, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bkPadSize=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)
 
virtual void GetTextAnglePloygon (int x, int y, float angle, LPCTSTR sztext, int nlen, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bkPadSize=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)
 
virtual void PaintTextAngleW (int x, int y, float angle, LPCWSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2))
 
virtual void PaintTextAngleA (int x, int y, float angle, LPCSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2))
 
virtual void PaintTextAngle (int x, int y, float angle, LPCTSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2))
 
virtual void PaintFontTextOut (void *font, int x1, int y1, LPCSTR text, int c, COLORREF color)
 
virtual SIZE GetTextSize (LPCTSTR sztext, int nlen)
 
virtual SIZE GetTextSizeW (LPCWSTR sztext, int nlen)
 
virtual SIZE GetTextSizeA (LPCSTR sztext, int nlen)
 
virtual SIZE GetOutputSize ()
 
virtual void Line (int x1, int y1, int x2, int y2, int size, const GColor &color, LineStyle *style=NULL)
 
virtual void Arc (double x, double y, double rx, double ry, double a1, double a2, int size, const GColor &color, LineStyle *style=NULL)
 
virtual void BezierDiv (POINT pt[4], int size, const GColor &color, LineStyle *style=NULL)
 贝塞尔曲线(4控制点)
 
virtual void BezierDivCurve3 (POINT pt[3], int size, const GColor &color, LineStyle *style=NULL)
 
virtual void FillRect (RECT rc, const GColor &color)
 
virtual void FillRoundRect (RECT rc, RoundRectRadius &radius, const GColor &color)
 
virtual void Rect (RECT rc, int size, const GColor &color, LineStyle *style=NULL)
 
virtual void RoundRect (RECT rc, RoundRectRadius &radius, int size, const GColor &color, LineStyle *style=NULL)
 
virtual void FillEllipse (int x, int y, int rx, int ry, const GColor &color)
 
virtual void Ellipse (int x, int y, int rx, int ry, int size, const GColor &color, LineStyle *style=NULL)
 
virtual void FillPath (const PathTransInfo &pathInfo, const GColor &color, BOOL bin_render=FALSE)
 
virtual void DrawPath (const PathTransInfo &pathInfo, const GColor &color, int size=1, LineStyle *style=NULL)
 
virtual void FillPathGradient (const PathTransInfo &pathInfo, GBrushGradient *bru_gradient)
 
virtual void DrawPathGradient (const PathTransInfo &pathInfo, GBrushGradient *bru_gradient, int size=1, LineStyle *style=NULL)
 
virtual void DrawPathPattern (const PathTransInfo &pathInfo, GImage *img, int size=1, int alpha=255, double scale=1)
 
virtual void Fill3D (VSInput *vs, int len, UINT *indicies, int indicies_len, MatFloat4x4 mvp, BOOL is_line=FALSE, BOOL CullBack=TRUE)
 
virtual void DrawCheckBox (RECT rc, const GColor &color, UINT nState, int size)
 
virtual void DrawSpring (RECT rc, bool bHor, bool bFill, const GColor &crColor)
 
virtual void DrawExpandButton (POINT ptCenter, int nSize, bool bCollapsed, const GColor &color)
 
virtual void DrawExpandTriButton (POINT pointCenter, int nSize, bool bCollapsed, const GColor &color)
 
virtual void DrawImage (const PathTransInfo &pathInfo, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL)
 
virtual void DrawImageEllipse (int cx, int cy, int rx, int ry, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL)
 
virtual void DrawImageRect (int x, int y, int w, int h, RoundRectRadius *radius, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL)
 
virtual void DrawImagePerspective (POINT pts[4], GImage *img, RECT *rcSrc=NULL, const ImageStyle *style=NULL)
 
virtual void GetImageRatioTransform2d (Transform2d *img_mtx, const ImageDrawInfo *pSrcSurface, int x, int y, int w, int h, ImageRatioStyle ratio_type, double angle, double scale)
 
virtual void PaintSVG (GPathStorageSVG *svg, VIEW_BOX *box, GrayConv grayType=GrayNone)
 
virtual void FillShadow (ShadowInfo *shadowinfo, const PathTransInfo &pathInfo)
 
virtual void DrawShadow (ShadowInfo *shadowinfo, const PathTransInfo &pathInfo, int size=1, LineStyle *style=NULL)
 
virtual void BlurPath (const PathTransInfo &pathInfo, int widget)
 
virtual void Blur (int x, int y, int w, int h, int widget)
 
virtual void BlendFrom (int x, int y, int w, int h, ImageDrawInfo *from, GColor color, BlendCompType comp)
 
virtual void BeginShadow (ShadowInfo *shadow)
 
virtual void EndShadow (const PathTransInfo *pathInfo)
 
virtual void GrayPath (const PathTransInfo &pathInfo, int conv_type)
 
virtual void Gray (int x, int y, int w, int h, int conv_type)
 
virtual void GouraudRender (POINT p1, POINT p2, POINT p3, const GColor &c1, const GColor &c2, const GColor &c3)
 
virtual void DrawTextMono (unsigned char *data, int x, int y, int w, int h, const GColor &color)
 
virtual void GlyphRaster (const RECT &rc, const GRasterGlyph *glyphBin, const GColor &color)
 
virtual void GlyphRaster (int x, int y, const GRasterGlyph *glyphBin, const GColor &color)
 
virtual void CopyFrom (const ImageDrawInfo &img, LPRECT rcSrc, int dx=0, int dy=0)
 
virtual void CopyTo (const ImageDrawInfo &img, LPRECT rcSrc, int dx=0, int dy=0)
 
virtual void GetImageDrawInfo (ImageDrawInfo *info, LPRECT rcSrc)
 
virtual void Clear (const GColor &color)
 
virtual void SaveAsImageFile (LPCTSTR file, RECT &rc)
 
void DrawColorPicker (float h, RECT rect)
 
void FilterGray ()
 
RECT GetClipRect () const
 
- Public 成员函数 继承自 BUI::ISurface
 ISurface ()
 
 ~ISurface ()
 
virtual void DoDrawEvent (SurEvent *ev)
 
virtual PixelFormatType GetPixelFormat ()=0
 
virtual double GetPixelRatio ()=0
 
virtual BlendCompType SetBlendCompType (BlendCompType op=comp_none)=0
 
virtual void SetClipBox (int x, int y, int w, int h, bool enable)=0
 
virtual void GetClipBox (int *x, int *y, int *w, int *h)=0
 
virtual void ResetClipBox ()=0
 
virtual void SetGrayCoeff (float k_r, float k_g, float k_b)=0
 
virtual ShadowInfoSelectTextShadow (ShadowInfo *shadowinfo)=0
 
virtual ShadowInfoSelectShadow (ShadowInfo *shadowinfo)=0
 
virtual GSurfacePainterPlatformPainter ()=0
 
virtual GFontSelectFontObject (GFont *font)=0
 
virtual GFontGetCurrentFontObject ()=0
 
virtual void PaintTextMultiLine (int x, int y, TextMultilineInfo *multiText, COLORREF color, UINT align=DT_LEFT|DT_TOP)=0
 
virtual void PaintTextOutW (int x, int y, LPCWSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP)=0
 
virtual void PaintTextOutA (int x, int y, LPCSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP)=0
 
virtual void PaintTextOut (int x, int y, LPCTSTR text, int c, COLORREF color, UINT align=DT_LEFT|DT_TOP)=0
 
virtual void PaintTextW (LPRECT lprc, LPCWSTR text, int c, COLORREF color, UINT format)=0
 
virtual void PaintTextA (LPRECT lprc, LPCSTR text, int c, COLORREF color, UINT format)=0
 
virtual void PaintText (LPRECT lprc, LPCTSTR text, int c, COLORREF color, UINT format)=0
 
virtual void GetTextAnglePloygonW (int x, int y, float angle, LPCWSTR sztext, int nlen, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bkPadSize=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)=0
 
virtual void GetTextAnglePloygonA (int x, int y, float angle, LPCSTR sztext, int nlen, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bkPadSize=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)=0
 
virtual void GetTextAnglePloygon (int x, int y, float angle, LPCTSTR sztext, int nlen, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bkPadSize=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)=0
 
virtual void PaintTextAngleW (int x, int y, float angle, LPCWSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2))=0
 
virtual void PaintTextAngleA (int x, int y, float angle, LPCSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2))=0
 
virtual void PaintTextAngle (int x, int y, float angle, LPCTSTR sztext, int nlen, COLORREF color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2))=0
 
virtual void PaintFontTextOut (void *font, int x1, int y1, LPCSTR text, int c, COLORREF color)=0
 
virtual SIZE GetOutputSize ()=0
 
virtual SIZE GetTextSize (LPCTSTR sztext, int nlen)=0
 
virtual SIZE GetTextSizeW (LPCWSTR sztext, int nlen)=0
 
virtual SIZE GetTextSizeA (LPCSTR sztext, int nlen)=0
 
virtual void Line (int x1, int y1, int x2, int y2, int size, const GColor &color, LineStyle *style=NULL)=0
 
virtual void Arc (double x, double y, double rx, double ry, double a1, double a2, int size, const GColor &color, LineStyle *style=NULL)=0
 
virtual void BezierDiv (POINT pt[4], int size, const GColor &color, LineStyle *style=NULL)=0
 
virtual void BezierDivCurve3 (POINT pt[3], int size, const GColor &color, LineStyle *style=NULL)=0
 
virtual void FillRect (RECT rc, const GColor &color)=0
 
virtual void FillRoundRect (RECT rc, RoundRectRadius &radius, const GColor &color)=0
 
virtual void Rect (RECT rc, int size, const GColor &color, LineStyle *style=NULL)=0
 
virtual void RoundRect (RECT rc, RoundRectRadius &radius, int size, const GColor &color, LineStyle *style=NULL)=0
 
virtual void FillEllipse (int x, int y, int rx, int ry, const GColor &color)=0
 
virtual void Ellipse (int x, int y, int rx, int ry, int size, const GColor &color, LineStyle *style=NULL)=0
 
virtual void FillPath (const PathTransInfo &pathInfo, const GColor &color, BOOL bin_render=FALSE)=0
 
virtual void DrawPath (const PathTransInfo &pathInfo, const GColor &color, int size=1, LineStyle *style=NULL)=0
 
virtual void FillPathGradient (const PathTransInfo &pathInfo, GBrushGradient *bru_gradient)=0
 
virtual void DrawPathGradient (const PathTransInfo &pathInfo, GBrushGradient *bru_gradient, int size=1, LineStyle *style=NULL)=0
 
virtual void DrawPathPattern (const PathTransInfo &pathInfo, GImage *img, int size=1, int alpha=255, double scale=1)=0
 
virtual void DrawCheckBox (RECT rc, const GColor &color, UINT nState, int size)=0
 
virtual void DrawSpring (RECT rc, bool bHor, bool bFill, const GColor &crColor)=0
 
virtual void Fill3D (VSInput *vs, int len, UINT *indicies, int indicies_len, MatFloat4x4 mvp, BOOL is_line=FALSE, BOOL CullBack=TRUE)=0
 
virtual void DrawExpandButton (POINT ptCenter, int nSize, bool bCollapsed, const GColor &color)=0
 
virtual void DrawExpandTriButton (POINT pointCenter, int nSize, bool bCollapsed, const GColor &color)=0
 
virtual void DrawImage (const PathTransInfo &pathInfo, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL)=0
 
virtual void DrawImageEllipse (int cx, int cy, int rx, int ry, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL)=0
 
virtual void DrawImageRect (int x, int y, int w, int h, RoundRectRadius *radius, GImage *img, RECT *rcSrc, const ImageStyle *style=NULL)=0
 
virtual void DrawImagePerspective (POINT pts[4], GImage *img, RECT *rcSrc=NULL, const ImageStyle *style=NULL)=0
 
virtual void GetImageRatioTransform2d (Transform2d *img_mtx, const ImageDrawInfo *pSrcSurface, int x, int y, int w, int h, ImageRatioStyle ratio_type, double angle, double scale)=0
 
virtual void FillShadow (ShadowInfo *shadowinfo, const PathTransInfo &pathInfo)=0
 
virtual void DrawShadow (ShadowInfo *shadowinfo, const PathTransInfo &pathInfo, int size=1, LineStyle *style=NULL)=0
 
virtual void BlurPath (const PathTransInfo &pathInfo, int widget)=0
 
virtual void Blur (int x, int y, int w, int h, int blur_size)=0
 
virtual void BlendFrom (int x, int y, int w, int h, ImageDrawInfo *from, GColor color, BlendCompType comp)=0
 
virtual void BeginShadow (ShadowInfo *shadow)=0
 
virtual void EndShadow (const PathTransInfo *pathInfo)=0
 
virtual void GrayPath (const PathTransInfo &pathInfo, int conv_type)=0
 
virtual void Gray (int x, int y, int w, int h, int conv_type)=0
 
virtual void PaintSVG (GPathStorageSVG *svg, VIEW_BOX *box, GrayConv grayType=GrayNone)=0
 
virtual void GouraudRender (POINT p1, POINT p2, POINT p3, const GColor &c1, const GColor &c2, const GColor &c3)=0
 
virtual void DrawTextMono (unsigned char *data, int x, int y, int w, int h, const GColor &color)=0
 
virtual void GlyphRaster (const RECT &rc, const GRasterGlyph *glyphBin, const GColor &color)=0
 
virtual void GlyphRaster (int x, int y, const GRasterGlyph *glyphBin, const GColor &color)=0
 
virtual void CopyFrom (const ImageDrawInfo &img, LPRECT rcSrc, int dx=0, int dy=0)=0
 
virtual void CopyTo (const ImageDrawInfo &img, LPRECT rcSrc, int dx=0, int dy=0)=0
 
virtual void GetImageDrawInfo (ImageDrawInfo *info, LPRECT rcSrc)=0
 
virtual void Clear (const GColor &color)=0
 
virtual void SaveAsImageFile (LPCTSTR file, RECT &rc)=0
 

Public 属性

QPainter * m_painter
 
GFontm_curFont
 

额外继承的成员函数

- Protected 属性 继承自 BUI::GSurface
GSurfacePainterm_platformPainter
 
LONG m_iWidth
 
LONG m_iHeight
 
LONG m_nBpp
 
LONG m_nStride
 
LONG m_OrgX
 
LONG m_OrgY
 
LONG m_iClipX
 
LONG m_iClipY
 
LONG m_iClipW
 
LONG m_iClipH
 
unsigned char * m_shadow_buf
 
unsigned char * m_buf
 
PixelFormatType m_pixelformat
 
unsigned char * m_buf_z
 
double m_scaleFactor
 
Transform2d m_trans_storage
 
Transform2dm_pTrans
 
LineCapStyle m_penCap
 
PenType m_penStyle
 
int m_dash_len
 
int m_cap_len
 
GColor m_solidcolor
 
BlendCompType m_comp_type
 
RECT m_shadow_rect
 
ShadowInfom_shadow_ptr
 
ShadowInfom_shadow_text_ptr
 
float m_gray_coeff [4]
 

构造及析构函数说明

◆ GSurfaceQt() [1/2]

BUI::GSurfaceQt::GSurfaceQt ( )

◆ GSurfaceQt() [2/2]

BUI::GSurfaceQt::GSurfaceQt ( QPainter *  painter,
unsigned char *  buf,
int  width,
int  height,
int  stride,
int  bpp 
)

◆ ~GSurfaceQt()

virtual BUI::GSurfaceQt::~GSurfaceQt ( )
virtual

成员函数说明

◆ Arc()

void BUI::GSurfaceQt::Arc ( double  x,
double  y,
double  rx,
double  ry,
double  a1,
double  a2,
int  size,
const GColor color,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ AttchBuffer()

void BUI::GSurfaceQt::AttchBuffer ( QPainter *  painter,
unsigned char *  buf,
int  width,
int  height,
int  stride,
int  bpp 
)

◆ BezierDiv()

void BUI::GSurfaceQt::BezierDiv ( POINT  pt[4],
int  size,
const GColor color,
LineStyle style = NULL 
)
overridevirtual

贝塞尔曲线(4控制点)

参数
pt控制点
width曲线宽度
color曲线颜色
lineStyle
nCapType

重载 BUI::GSurface .

◆ BezierDivCurve3()

void BUI::GSurfaceQt::BezierDivCurve3 ( POINT  pt[3],
int  size,
const GColor color,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ BlendFrom()

void BUI::GSurfaceQt::BlendFrom ( int  x,
int  y,
int  w,
int  h,
ImageDrawInfo from,
GColor  color,
BlendCompType  comp 
)
overridevirtual

重载 BUI::GSurface .

◆ Blur()

void BUI::GSurfaceQt::Blur ( int  x,
int  y,
int  w,
int  h,
int  widget 
)
overridevirtual

重载 BUI::GSurface .

◆ BlurPath()

void BUI::GSurfaceQt::BlurPath ( const PathTransInfo pathInfo,
int  widget 
)
overridevirtual

重载 BUI::GSurface .

◆ Clear()

void BUI::GSurfaceQt::Clear ( const GColor color)
overridevirtual

重载 BUI::GSurface .

◆ CopyFrom()

void BUI::GSurfaceQt::CopyFrom ( const ImageDrawInfo img,
LPRECT  rcSrc,
int  dx = 0,
int  dy = 0 
)
overridevirtual

重载 BUI::GSurface .

◆ CopyTo()

void BUI::GSurfaceQt::CopyTo ( const ImageDrawInfo img,
LPRECT  rcSrc,
int  dx = 0,
int  dy = 0 
)
overridevirtual

重载 BUI::GSurface .

◆ DrawImage()

void BUI::GSurfaceQt::DrawImage ( const PathTransInfo pathInfo,
GImage img,
RECT rcSrc,
const ImageStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ DrawImageEllipse()

void BUI::GSurfaceQt::DrawImageEllipse ( int  cx,
int  cy,
int  rx,
int  ry,
GImage img,
RECT rcSrc,
const ImageStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ DrawImageRect()

void BUI::GSurfaceQt::DrawImageRect ( int  x,
int  y,
int  w,
int  h,
RoundRectRadius radius,
GImage img,
RECT rcSrc,
const ImageStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ DrawPath()

void BUI::GSurfaceQt::DrawPath ( const PathTransInfo pathInfo,
const GColor color,
int  size = 1,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ DrawPathGradient()

void BUI::GSurfaceQt::DrawPathGradient ( const PathTransInfo pathInfo,
GBrushGradient bru_gradient,
int  size = 1,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ DrawPathPattern()

void BUI::GSurfaceQt::DrawPathPattern ( const PathTransInfo pathInfo,
ImageDrawInfo patten_texture,
int  size = 1,
int  alpha = 255,
double  scale = 1 
)
override

◆ DrawShadow()

void BUI::GSurfaceQt::DrawShadow ( ShadowInfo shadowinfo,
const PathTransInfo pathInfo,
int  size = 1,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ DrawTextMono()

void BUI::GSurfaceQt::DrawTextMono ( unsigned char *  data,
int  x,
int  y,
int  w,
int  h,
const GColor color 
)
overridevirtual

重载 BUI::GSurface .

◆ Ellipse()

void BUI::GSurfaceQt::Ellipse ( int  x,
int  y,
int  rx,
int  ry,
int  size,
const GColor color,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ Fill3D()

void BUI::GSurfaceQt::Fill3D ( VSInput vs,
int  len,
UINT indicies,
int  indicies_len,
MatFloat4x4  mvp,
BOOL  is_line = FALSE,
BOOL  CullBack = TRUE 
)
overridevirtual

重载 BUI::GSurface .

◆ FillEllipse()

void BUI::GSurfaceQt::FillEllipse ( int  x,
int  y,
int  rx,
int  ry,
const GColor color 
)
overridevirtual

重载 BUI::GSurface .

◆ FillPath()

void BUI::GSurfaceQt::FillPath ( const PathTransInfo pathInfo,
const GColor color,
BOOL  bin_render = FALSE 
)
overridevirtual

重载 BUI::GSurface .

◆ FillPathGradient()

void BUI::GSurfaceQt::FillPathGradient ( const PathTransInfo pathInfo,
GBrushGradient bru_gradient 
)
overridevirtual

重载 BUI::GSurface .

◆ FillRect()

void BUI::GSurfaceQt::FillRect ( RECT  rc,
const GColor color 
)
overridevirtual

重载 BUI::GSurface .

◆ FillRoundRect()

void BUI::GSurfaceQt::FillRoundRect ( RECT  rc,
RoundRectRadius radius,
const GColor color 
)
overridevirtual

重载 BUI::GSurface .

◆ FillShadow()

void BUI::GSurfaceQt::FillShadow ( ShadowInfo shadowinfo,
const PathTransInfo pathInfo 
)
overridevirtual

重载 BUI::GSurface .

◆ GetCurrentFontObject()

GFont * BUI::GSurfaceQt::GetCurrentFontObject ( )
overridevirtual

重载 BUI::GSurface .

◆ GetImageDrawInfo()

void BUI::GSurfaceQt::GetImageDrawInfo ( ImageDrawInfo info,
LPRECT  rcSrc 
)
overridevirtual

重载 BUI::GSurface .

◆ GetImageRatioTransform2d()

void BUI::GSurfaceQt::GetImageRatioTransform2d ( Transform2d img_mtx,
const ImageDrawInfo pSrcSurface,
int  x,
int  y,
int  w,
int  h,
ImageRatioStyle  ratio_type,
double  angle,
double  scale 
)
overridevirtual

重载 BUI::GSurface .

◆ GetTextSize()

SIZE BUI::GSurfaceQt::GetTextSize ( LPCTSTR  sztext,
int  nlen 
)
overridevirtual

重载 BUI::GSurface .

◆ GetTextSizeA()

SIZE BUI::GSurfaceQt::GetTextSizeA ( LPCSTR  sztext,
int  nlen 
)
overridevirtual

重载 BUI::GSurface .

◆ GetTextSizeW()

SIZE BUI::GSurfaceQt::GetTextSizeW ( LPCWSTR  sztext,
int  nlen 
)
overridevirtual

重载 BUI::GSurface .

◆ GlyphRaster() [1/2]

void BUI::GSurfaceQt::GlyphRaster ( const RECT rc,
const GRasterGlyph glyphBin,
const GColor color 
)
overridevirtual

重载 BUI::GSurface .

◆ GlyphRaster() [2/2]

void BUI::GSurfaceQt::GlyphRaster ( int  x,
int  y,
const GRasterGlyph glyphBin,
const GColor color 
)
overridevirtual

重载 BUI::GSurface .

◆ GouraudRender()

void BUI::GSurfaceQt::GouraudRender ( POINT  p1,
POINT  p2,
POINT  p3,
const GColor c1,
const GColor c2,
const GColor c3 
)
overridevirtual

重载 BUI::GSurface .

◆ Gray()

void BUI::GSurfaceQt::Gray ( int  x,
int  y,
int  w,
int  h,
int  conv_type 
)
overridevirtual

重载 BUI::GSurface .

◆ Line()

void BUI::GSurfaceQt::Line ( int  x1,
int  y1,
int  x2,
int  y2,
int  size,
const GColor color,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintFontTextOut()

void BUI::GSurfaceQt::PaintFontTextOut ( void *  font,
int  x1,
int  y1,
LPCSTR  text,
int  c,
COLORREF  color 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintSVG()

void BUI::GSurfaceQt::PaintSVG ( GPathStorageSVG svg,
VIEW_BOX *  box,
GrayConv  grayType = GrayNone 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintText()

void BUI::GSurfaceQt::PaintText ( LPRECT  lprc,
LPCTSTR  text,
int  c,
COLORREF  color,
UINT  format 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextA()

void BUI::GSurfaceQt::PaintTextA ( LPRECT  lprc,
LPCSTR  text,
int  c,
COLORREF  color,
UINT  format 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextAngle()

void BUI::GSurfaceQt::PaintTextAngle ( int  x,
int  y,
float  angle,
LPCTSTR  sztext,
int  nlen,
COLORREF  color,
UINT  align = DT_LEFT|DT_TOP,
const GColor bkcolor = NULL,
const VecFloat2 bkPadSize = VecFloat2(2, 2) 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextAngleA()

void BUI::GSurfaceQt::PaintTextAngleA ( int  x,
int  y,
float  angle,
LPCSTR  sztext,
int  nlen,
COLORREF  color,
UINT  align = DT_LEFT|DT_TOP,
const GColor bkcolor = NULL,
const VecFloat2 bkPadSize = VecFloat2(2, 2) 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextAngleW()

void BUI::GSurfaceQt::PaintTextAngleW ( int  x,
int  y,
float  angle,
LPCWSTR  sztext,
int  nlen,
COLORREF  color,
UINT  align = DT_LEFT|DT_TOP,
const GColor bkcolor = NULL,
const VecFloat2 bkPadSize = VecFloat2(2, 2) 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextMultiLine()

void BUI::GSurfaceQt::PaintTextMultiLine ( int  x,
int  y,
TextMultilineInfo *  multiText,
COLORREF  color,
UINT  align = DT_LEFT|DT_TOP 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextOut()

void BUI::GSurfaceQt::PaintTextOut ( int  x,
int  y,
LPCTSTR  text,
int  c,
COLORREF  color,
UINT  align = DT_LEFT|DT_TOP 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextOutA()

void BUI::GSurfaceQt::PaintTextOutA ( int  x,
int  y,
LPCSTR  text,
int  c,
COLORREF  color,
UINT  align = DT_LEFT|DT_TOP 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextOutW()

void BUI::GSurfaceQt::PaintTextOutW ( int  x,
int  y,
LPCWSTR  text,
int  c,
COLORREF  color,
UINT  align = DT_LEFT|DT_TOP 
)
overridevirtual

重载 BUI::GSurface .

◆ PaintTextW()

void BUI::GSurfaceQt::PaintTextW ( LPRECT  lprc,
LPCWSTR  text,
int  c,
COLORREF  color,
UINT  format 
)
overridevirtual

重载 BUI::GSurface .

◆ Rect()

void BUI::GSurfaceQt::Rect ( RECT  rc,
int  size,
const GColor color,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ ResetClipBox()

void BUI::GSurfaceQt::ResetClipBox ( )
overridevirtual

重载 BUI::GSurface .

◆ RoundRect()

void BUI::GSurfaceQt::RoundRect ( RECT  rc,
RoundRectRadius radius,
int  size,
const GColor color,
LineStyle style = NULL 
)
overridevirtual

重载 BUI::GSurface .

◆ SelectFontObject()

GFont * BUI::GSurfaceQt::SelectFontObject ( GFont font)
overridevirtual

重载 BUI::GSurface .

◆ SetClipBox()

void BUI::GSurfaceQt::SetClipBox ( int  x,
int  y,
int  w,
int  h,
bool  enable 
)
overridevirtual

重载 BUI::GSurface .

类成员变量说明

◆ m_curFont

GFont* BUI::GSurfaceQt::m_curFont

◆ m_painter

QPainter* BUI::GSurfaceQt::m_painter
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有