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

实现图形接口 更多...

+ 类 BUI::GSurface 继承关系图:

Public 成员函数

 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
 

Protected 属性

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]
 

详细描述

实现图形接口

构造及析构函数说明

◆ GSurface() [1/2]

BUI::GSurface::GSurface ( )

◆ GSurface() [2/2]

BUI::GSurface::GSurface ( unsigned char *  buf,
int  width,
int  height,
int  stride,
int  bpp,
GSurfacePainter platDevice = NULL 
)

◆ ~GSurface()

virtual BUI::GSurface::~GSurface ( )
virtual

成员函数说明

◆ Arc()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ AttachPlatformPainter()

void BUI::GSurface::AttachPlatformPainter ( GSurfacePainter platDevice)

◆ AttachZbuffer()

void BUI::GSurface::AttachZbuffer ( unsigned char *  zbuf)

◆ AttchFormat()

virtual void BUI::GSurface::AttchFormat ( unsigned char *  buf,
int  width,
int  height,
int  stride,
int  bpp,
GSurfacePainter platDevice = NULL 
)
virtual

◆ BeginShadow()

virtual void BUI::GSurface::BeginShadow ( ShadowInfo shadow)
virtual

实现了 BUI::ISurface.

◆ BezierDiv()

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

贝塞尔曲线(4控制点)

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ BezierDivCurve3()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ BlendFrom()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ Blur()

virtual void BUI::GSurface::Blur ( int  x,
int  y,
int  w,
int  h,
int  widget 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ BlurPath()

virtual void BUI::GSurface::BlurPath ( const PathTransInfo pathInfo,
int  widget 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ Buffer()

unsigned char * BUI::GSurface::Buffer ( )

◆ Clear()

virtual void BUI::GSurface::Clear ( const GColor color)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ CopyFrom()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ CopyTo()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DoDrawEvent()

virtual void BUI::GSurface::DoDrawEvent ( SurEvent *  ev)
virtual

重载 BUI::ISurface .

◆ DrawCheckBox()

virtual void BUI::GSurface::DrawCheckBox ( RECT  rc,
const GColor color,
UINT  nState,
int  size 
)
virtual

实现了 BUI::ISurface.

◆ DrawColorPicker()

void BUI::GSurface::DrawColorPicker ( float  h,
RECT  rect 
)

◆ DrawExpandButton()

virtual void BUI::GSurface::DrawExpandButton ( POINT  ptCenter,
int  nSize,
bool  bCollapsed,
const GColor color 
)
virtual

实现了 BUI::ISurface.

◆ DrawExpandTriButton()

virtual void BUI::GSurface::DrawExpandTriButton ( POINT  pointCenter,
int  nSize,
bool  bCollapsed,
const GColor color 
)
virtual

实现了 BUI::ISurface.

◆ DrawImage()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawImageEllipse()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawImagePerspective()

virtual void BUI::GSurface::DrawImagePerspective ( POINT  pts[4],
GImage img,
RECT rcSrc = NULL,
const ImageStyle style = NULL 
)
virtual

实现了 BUI::ISurface.

◆ DrawImageRect()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawPath()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawPathGradient()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawPathPattern()

virtual void BUI::GSurface::DrawPathPattern ( const PathTransInfo pathInfo,
GImage img,
int  size = 1,
int  alpha = 255,
double  scale = 1 
)
virtual

实现了 BUI::ISurface.

◆ DrawShadow()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawSpring()

virtual void BUI::GSurface::DrawSpring ( RECT  rc,
bool  bHor,
bool  bFill,
const GColor crColor 
)
virtual

实现了 BUI::ISurface.

◆ DrawTextMono()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ Ellipse()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ EndShadow()

virtual void BUI::GSurface::EndShadow ( const PathTransInfo pathInfo)
virtual

实现了 BUI::ISurface.

◆ Fill3D()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ FillEllipse()

virtual void BUI::GSurface::FillEllipse ( int  x,
int  y,
int  rx,
int  ry,
const GColor color 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ FillPath()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ FillPathGradient()

virtual void BUI::GSurface::FillPathGradient ( const PathTransInfo pathInfo,
GBrushGradient bru_gradient 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ FillRect()

virtual void BUI::GSurface::FillRect ( RECT  rc,
const GColor color 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ FillRoundRect()

virtual void BUI::GSurface::FillRoundRect ( RECT  rc,
RoundRectRadius radius,
const GColor color 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ FillShadow()

virtual void BUI::GSurface::FillShadow ( ShadowInfo shadowinfo,
const PathTransInfo pathInfo 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ FilterGray()

void BUI::GSurface::FilterGray ( )

◆ GetClipBox()

virtual void BUI::GSurface::GetClipBox ( int *  x,
int *  y,
int *  w,
int *  h 
)
virtual

实现了 BUI::ISurface.

◆ GetClipRect()

RECT BUI::GSurface::GetClipRect ( ) const

◆ GetCurrentFontObject()

virtual GFont * BUI::GSurface::GetCurrentFontObject ( )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetImageDrawInfo()

virtual void BUI::GSurface::GetImageDrawInfo ( ImageDrawInfo info,
LPRECT  rcSrc 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetImageRatioTransform2d()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetOutputSize()

virtual SIZE BUI::GSurface::GetOutputSize ( )
virtual

实现了 BUI::ISurface.

◆ GetPixelFormat()

virtual PixelFormatType BUI::GSurface::GetPixelFormat ( )
virtual

实现了 BUI::ISurface.

◆ GetPixelRatio()

virtual double BUI::GSurface::GetPixelRatio ( )
virtual

实现了 BUI::ISurface.

◆ GetTextAnglePloygon()

virtual void BUI::GSurface::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

实现了 BUI::ISurface.

◆ GetTextAnglePloygonA()

virtual void BUI::GSurface::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

实现了 BUI::ISurface.

◆ GetTextAnglePloygonW()

virtual void BUI::GSurface::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

实现了 BUI::ISurface.

◆ GetTextSize()

virtual SIZE BUI::GSurface::GetTextSize ( LPCTSTR  sztext,
int  nlen 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetTextSizeA()

virtual SIZE BUI::GSurface::GetTextSizeA ( LPCSTR  sztext,
int  nlen 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetTextSizeW()

virtual SIZE BUI::GSurface::GetTextSizeW ( LPCWSTR  sztext,
int  nlen 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetViewportOrg()

void BUI::GSurface::GetViewportOrg ( int *  x,
int *  y 
)

◆ GlyphRaster() [1/2]

virtual void BUI::GSurface::GlyphRaster ( const RECT rc,
const GRasterGlyph glyphBin,
const GColor color 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GlyphRaster() [2/2]

virtual void BUI::GSurface::GlyphRaster ( int  x,
int  y,
const GRasterGlyph glyphBin,
const GColor color 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GouraudRender()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ Gray()

virtual void BUI::GSurface::Gray ( int  x,
int  y,
int  w,
int  h,
int  conv_type 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GrayPath()

virtual void BUI::GSurface::GrayPath ( const PathTransInfo pathInfo,
int  conv_type 
)
virtual

实现了 BUI::ISurface.

◆ Height()

int BUI::GSurface::Height ( )

◆ Line()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintFontTextOut()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintSVG()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintText()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextA()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextAngle()

virtual void BUI::GSurface::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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextAngleA()

virtual void BUI::GSurface::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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextAngleW()

virtual void BUI::GSurface::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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextMultiLine()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextOut()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextOutA()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextOutW()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextW()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PixelBitCounts()

int BUI::GSurface::PixelBitCounts ( ) const

◆ PlatformPainter()

virtual GSurfacePainter * BUI::GSurface::PlatformPainter ( )
virtual

实现了 BUI::ISurface.

◆ Rect()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ ResetClipBox()

virtual void BUI::GSurface::ResetClipBox ( )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ RoundRect()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ SaveAsImageFile()

virtual void BUI::GSurface::SaveAsImageFile ( LPCTSTR  file,
RECT rc 
)
virtual

实现了 BUI::ISurface.

◆ SelectFontObject()

virtual GFont * BUI::GSurface::SelectFontObject ( GFont font)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ SelectShadow()

virtual ShadowInfo * BUI::GSurface::SelectShadow ( ShadowInfo shadowinfo)
virtual

实现了 BUI::ISurface.

◆ SelectTextShadow()

virtual ShadowInfo * BUI::GSurface::SelectTextShadow ( ShadowInfo shadowinfo)
virtual

实现了 BUI::ISurface.

◆ SetBlendCompType()

virtual BlendCompType BUI::GSurface::SetBlendCompType ( BlendCompType  op = comp_none)
virtual

实现了 BUI::ISurface.

◆ SetClipBox()

virtual void BUI::GSurface::SetClipBox ( int  x,
int  y,
int  w,
int  h,
bool  enable 
)
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ SetGrayCoeff()

virtual void BUI::GSurface::SetGrayCoeff ( float  k_r,
float  k_g,
float  k_b 
)
virtual

实现了 BUI::ISurface.

◆ SetLineCap()

void BUI::GSurface::SetLineCap ( LineCapStyle  cap)

◆ SetPenStyle()

void BUI::GSurface::SetPenStyle ( PenType  style,
int  dashx,
int  dashy 
)

◆ SetPixelFormat()

void BUI::GSurface::SetPixelFormat ( PixelFormatType  fmt)

◆ SetPixelRatio()

double BUI::GSurface::SetPixelRatio ( double  scaleFactor)

◆ SetViewportOrg()

void BUI::GSurface::SetViewportOrg ( int  x,
int  y 
)

◆ Stride()

int BUI::GSurface::Stride ( )

◆ StrideAbs()

int BUI::GSurface::StrideAbs ( )

◆ Width()

int BUI::GSurface::Width ( )

类成员变量说明

◆ m_buf

unsigned char* BUI::GSurface::m_buf
protected

◆ m_buf_z

unsigned char* BUI::GSurface::m_buf_z
protected

◆ m_cap_len

int BUI::GSurface::m_cap_len
protected

◆ m_comp_type

BlendCompType BUI::GSurface::m_comp_type
protected

◆ m_dash_len

int BUI::GSurface::m_dash_len
protected

◆ m_gray_coeff

float BUI::GSurface::m_gray_coeff[4]
protected

◆ m_iClipH

LONG BUI::GSurface::m_iClipH
protected

◆ m_iClipW

LONG BUI::GSurface::m_iClipW
protected

◆ m_iClipX

LONG BUI::GSurface::m_iClipX
protected

◆ m_iClipY

LONG BUI::GSurface::m_iClipY
protected

◆ m_iHeight

LONG BUI::GSurface::m_iHeight
protected

◆ m_iWidth

LONG BUI::GSurface::m_iWidth
protected

◆ m_nBpp

LONG BUI::GSurface::m_nBpp
protected

◆ m_nStride

LONG BUI::GSurface::m_nStride
protected

◆ m_OrgX

LONG BUI::GSurface::m_OrgX
protected

◆ m_OrgY

LONG BUI::GSurface::m_OrgY
protected

◆ m_penCap

LineCapStyle BUI::GSurface::m_penCap
protected

◆ m_penStyle

PenType BUI::GSurface::m_penStyle
protected

◆ m_pixelformat

PixelFormatType BUI::GSurface::m_pixelformat
protected

◆ m_platformPainter

GSurfacePainter* BUI::GSurface::m_platformPainter
protected

◆ m_pTrans

Transform2d* BUI::GSurface::m_pTrans
protected

◆ m_scaleFactor

double BUI::GSurface::m_scaleFactor
protected

◆ m_shadow_buf

unsigned char* BUI::GSurface::m_shadow_buf
protected

◆ m_shadow_ptr

ShadowInfo* BUI::GSurface::m_shadow_ptr
protected

◆ m_shadow_rect

RECT BUI::GSurface::m_shadow_rect
protected

◆ m_shadow_text_ptr

ShadowInfo* BUI::GSurface::m_shadow_text_ptr
protected

◆ m_solidcolor

GColor BUI::GSurface::m_solidcolor
protected

◆ m_trans_storage

Transform2d BUI::GSurface::m_trans_storage
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有