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 *tml, const GColor &color, UINT align=DT_LEFT|DT_TOP) override
void PaintTextOutW (int x, int y, LPCWSTR text, int c, const GColor &color, UINT align=DT_LEFT|DT_TOP) override
void PaintTextOutA (int x, int y, LPCSTR text, int c, const GColor &color, UINT align=DT_LEFT|DT_TOP) override
void PaintTextOut (int x, int y, LPCTSTR text, int c, const GColor &color, UINT align=DT_LEFT|DT_TOP) override
void PaintTextW (LPRECT lprc, LPCWSTR text, int c, const GColor &color, UINT format) override
void PaintTextA (LPRECT lprc, LPCSTR text, int c, const GColor &color, UINT format) override
void PaintText (LPRECT lprc, LPCTSTR text, int c, const GColor &color, UINT format) override
void PaintTextAngleW (int x, int y, float angle, LPCWSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bk_pad_size=VecFloat2(2, 2)) override
void PaintTextAngleA (int x, int y, float angle, LPCSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bk_pad_size=VecFloat2(2, 2)) override
void PaintTextAngle (int x, int y, float angle, LPCTSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP, const GColor *bkcolor=NULL, const VecFloat2 &bk_pad_size=VecFloat2(2, 2)) override
void PaintFontTextOut (void *font, int x1, int y1, LPCSTR text, int c, const GColor &color) override
SIZE GetTextSize (LPCTSTR text, int len) override
SIZE GetTextSizeW (LPCWSTR text, int len) override
SIZE GetTextSizeA (LPCSTR text, int len) override
void Line (int x1, int y1, int x2, int y2, float size, const GColor &color, LineStyle *style=NULL) override
void Arc (double x, double y, double rx, double ry, double a1, double a2, float size, const GColor &color, LineStyle *style=NULL) override
void BezierDiv (POINT pt[4], float size, const GColor &color, LineStyle *style=NULL) override
 贝塞尔曲线(4控制点)
void BezierDivCurve3 (POINT pt[3], float 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, float size, const GColor &color, LineStyle *style=NULL) override
void RoundRect (RECT rc, RoundRectRadius &radius, float 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, float size, const GColor &color, LineStyle *style=NULL) override
void FillPath (const PathTransInfo &path_info, const GColor &color, BOOL bin_render=FALSE) override
void DrawPath (const PathTransInfo &path_info, const GColor &color, float size=1, LineStyle *style=NULL) override
void FillPathGradient (const PathTransInfo &path_info, GBrushGradient *bru_gradient, float alpha=1.0) override
void DrawPathGradient (const PathTransInfo &path_info, GBrushGradient *bru_gradient, float size=1, LineStyle *style=NULL, float alpha=1.0) override
void DrawImage (const PathTransInfo &path_info, GImage *img, RECT *rc_src, const ImageStyle *style=NULL) override
void DrawImageEllipse (int cx, int cy, int rx, int ry, GImage *img, RECT *rc_src, const ImageStyle *style=NULL) override
void DrawImageRect (int x, int y, int w, int h, RoundRectRadius *radius, GImage *img, RECT *rc_src, const ImageStyle *style=NULL) override
Public 成员函数 继承自 BUI::GSurface
 GSurface ()
 GSurface (unsigned char *buf, int width, int height, int stride, int bpp, GSurfacePainter *painter=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 *painter)
float SetPixelRatio (float scale)
float SetZOrder (float z) override
virtual void AttchFormat (unsigned char *buf, int width, int height, int stride, int bpp, GSurfacePainter *painter=NULL)
SurfaceFillRule SetFillRule (SurfaceFillRule fl) override
GrayConv SetGrayMode (GrayConv gray) override
VecFloat4 SetGrayFactor (const VecFloat4 &v) override
virtual PixelFormatType GetPixelFormat ()
virtual double GetPixelRatio ()
virtual BlendCompType SetBlendCompType (BlendCompType op=comp_none)
virtual void GetClipBox (int *x, int *y, int *w, int *h)
virtual void SetGrayCoeff (float k_r, float k_g, float k_b)
virtual ShadowInfoSelectTextShadow (ShadowInfo *si)
virtual ShadowInfoSelectShadow (ShadowInfo *si)
virtual GSurfacePainterPlatformPainter ()
virtual void GetTextAnglePloygonW (int x, int y, float angle, LPCWSTR text, int len, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bk_pad_size=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)
virtual void GetTextAnglePloygonA (int x, int y, float angle, LPCSTR text, int len, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bk_pad_size=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)
virtual void GetTextAnglePloygon (int x, int y, float angle, LPCTSTR text, int len, UINT align=DT_LEFT|DT_TOP, const VecFloat2 &bk_pad_size=VecFloat2(2, 2), VecFloat2(*ploygon)[4]=NULL)
virtual SIZE GetOutputSize ()
virtual void LineFloat2 (const VecFloat2 &p1, const VecFloat2 &p2, float size, const GColor &color, LineStyle *style)
virtual void DrawPathPattern (const PathTransInfo &path_info, GImage *img, float size=1, int alpha=255, double scale=1)
virtual void DrawCheckBox (RECT rc, const GColor &color, UINT state, int size)
virtual void DrawSpring (RECT rc, bool is_hor, bool is_fill, const GColor &color)
virtual void DrawExpandButton (POINT pt_center, int size, bool is_collapsed, const GColor &color)
virtual void DrawExpandTriButton (POINT pt_center, int size, bool is_collapsed, const GColor &color)
virtual void DrawAddOrDelButton (RECT rc, BOOL is_add, BOOL is_down, const GColor &color)
virtual void DrawImageEffect (const PathTransInfo &path_info, GImage *img, RECT *rc_src, const ImageStyle *style, UINT filter_type, float *params, int len)
virtual void DrawImagePerspective (POINT pts[4], GImage *img, RECT *rc_src=NULL, const ImageStyle *style=NULL)
virtual void GetImageRatioTransform2d (Transform2d *img_mtx, const ImageDrawInfo *src_surface, int x, int y, int w, int h, ImageRatioStyle ratio_type, double angle, double scale)
virtual void FillShadow (ShadowInfo *si, const PathTransInfo &path_info, float alpha=1.0)
virtual void DrawShadow (ShadowInfo *si, const PathTransInfo &path_info, float size=1, LineStyle *style=NULL, float alpha=1.0)
virtual void BlurPath (const PathTransInfo &path_info, 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 *path_info)
virtual void GrayPath (const PathTransInfo &path_info, 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 CopyFrom (const ImageDrawInfo &img, LPRECT rc_src, int dx=0, int dy=0)
virtual void CopyTo (const ImageDrawInfo &img, LPRECT rc_src, int dx=0, int dy=0)
virtual void GetImageDrawInfo (ImageDrawInfo *info, LPRECT rc_src)
virtual void Clear (const GColor &color)
virtual void SaveAsImageFile (LPCTSTR file, RECT &rc)
virtual void InstallShader (int shader_id, const char *source_vs, const char *source_ps, GShaderLayoutDesc *layout, int layout_len)
virtual void UnInstallShader (int shader_id)
virtual void AddRenderData (Render3dData &data)
virtual void Render3D ()
void DrawColorPicker (float h, RECT rect)
void FilterGray ()
RECT GetClipRect () const
Public 成员函数 继承自 BUI::ISurface
 ISurface ()
 ~ISurface ()

Public 属性

QPainter * m_painter
GFontm_cur_font

额外继承的成员函数

Protected 属性 继承自 BUI::GSurface
GSurfacePainterm_platform_painter
LONG m_width
LONG m_height
LONG m_bpp
LONG m_stride
LONG m_org_x
LONG m_org_y
LONG m_clip_x
LONG m_clip_y
LONG m_clip_w
LONG m_clip_h
unsigned char * m_shadow_buf
unsigned char * m_buf
PixelFormatType m_pixel_format
unsigned char * m_buf_z
float m_scale_factor
Transform2d m_trans_storage
Transform2dm_trans
LineCapStyle m_pen_cap
PenType m_pen_style
int m_dash_len
int m_cap_len
GColor m_solid_color
BlendCompType m_comp_type
SurfaceFillRule m_fill_rule
RECT m_shadow_rect
ShadowInfom_shadow_ptr
ShadowInfom_shadow_text_ptr
GrayConv m_gray_type
float m_gray_coeff [4]
Render3dData m_3d_cmd

构造及析构函数说明

◆ 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,
float 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],
float size,
const GColor & color,
LineStyle * style = NULL )
overridevirtual

贝塞尔曲线(4控制点)

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

重载 BUI::GSurface .

◆ BezierDivCurve3()

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

重载 BUI::GSurface .

◆ DrawImage()

void BUI::GSurfaceQt::DrawImage ( const PathTransInfo & path_info,
GImage * img,
RECT * rc_src,
const ImageStyle * style = NULL )
overridevirtual

重载 BUI::GSurface .

◆ DrawImageEllipse()

void BUI::GSurfaceQt::DrawImageEllipse ( int cx,
int cy,
int rx,
int ry,
GImage * img,
RECT * rc_src,
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 * rc_src,
const ImageStyle * style = NULL )
overridevirtual

重载 BUI::GSurface .

◆ DrawPath()

void BUI::GSurfaceQt::DrawPath ( const PathTransInfo & path_info,
const GColor & color,
float size = 1,
LineStyle * style = NULL )
overridevirtual

重载 BUI::GSurface .

◆ DrawPathGradient()

void BUI::GSurfaceQt::DrawPathGradient ( const PathTransInfo & path_info,
GBrushGradient * bru_gradient,
float size = 1,
LineStyle * style = NULL,
float alpha = 1.0 )
overridevirtual

重载 BUI::GSurface .

◆ Ellipse()

void BUI::GSurfaceQt::Ellipse ( int x,
int y,
int rx,
int ry,
float size,
const GColor & color,
LineStyle * style = NULL )
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 & path_info,
const GColor & color,
BOOL bin_render = FALSE )
overridevirtual

重载 BUI::GSurface .

◆ FillPathGradient()

void BUI::GSurfaceQt::FillPathGradient ( const PathTransInfo & path_info,
GBrushGradient * bru_gradient,
float alpha = 1.0 )
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 .

◆ GetCurrentFontObject()

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

重载 BUI::GSurface .

◆ GetTextSize()

SIZE BUI::GSurfaceQt::GetTextSize ( LPCTSTR text,
int len )
overridevirtual

重载 BUI::GSurface .

◆ GetTextSizeA()

SIZE BUI::GSurfaceQt::GetTextSizeA ( LPCSTR text,
int len )
overridevirtual

重载 BUI::GSurface .

◆ GetTextSizeW()

SIZE BUI::GSurfaceQt::GetTextSizeW ( LPCWSTR text,
int len )
overridevirtual

重载 BUI::GSurface .

◆ Line()

void BUI::GSurfaceQt::Line ( int x1,
int y1,
int x2,
int y2,
float 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,
const GColor & color )
overridevirtual

重载 BUI::GSurface .

◆ PaintText()

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

重载 BUI::GSurface .

◆ PaintTextA()

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

重载 BUI::GSurface .

◆ PaintTextAngle()

void BUI::GSurfaceQt::PaintTextAngle ( int x,
int y,
float angle,
LPCTSTR text,
int len,
const GColor & color,
UINT align = DT_LEFT|DT_TOP,
const GColor * bkcolor = NULL,
const VecFloat2 & bk_pad_size = VecFloat2(2, 2) )
overridevirtual

重载 BUI::GSurface .

◆ PaintTextAngleA()

void BUI::GSurfaceQt::PaintTextAngleA ( int x,
int y,
float angle,
LPCSTR text,
int len,
const GColor & color,
UINT align = DT_LEFT|DT_TOP,
const GColor * bkcolor = NULL,
const VecFloat2 & bk_pad_size = VecFloat2(2, 2) )
overridevirtual

重载 BUI::GSurface .

◆ PaintTextAngleW()

void BUI::GSurfaceQt::PaintTextAngleW ( int x,
int y,
float angle,
LPCWSTR text,
int len,
const GColor & color,
UINT align = DT_LEFT|DT_TOP,
const GColor * bkcolor = NULL,
const VecFloat2 & bk_pad_size = VecFloat2(2, 2) )
overridevirtual

重载 BUI::GSurface .

◆ PaintTextMultiLine()

void BUI::GSurfaceQt::PaintTextMultiLine ( int x,
int y,
TextMultilineInfo * tml,
const GColor & color,
UINT align = DT_LEFT|DT_TOP )
overridevirtual

重载 BUI::GSurface .

◆ PaintTextOut()

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

重载 BUI::GSurface .

◆ PaintTextOutA()

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

重载 BUI::GSurface .

◆ PaintTextOutW()

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

重载 BUI::GSurface .

◆ PaintTextW()

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

重载 BUI::GSurface .

◆ Rect()

void BUI::GSurfaceQt::Rect ( RECT rc,
float 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,
float 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_cur_font

GFont* BUI::GSurfaceQt::m_cur_font

◆ m_painter

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