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

实现图形接口 更多...

类 BUI::GSurface 继承关系图:

Public 成员函数

 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 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 *si)
virtual ShadowInfoSelectShadow (ShadowInfo *si)
virtual GSurfacePainterPlatformPainter ()
virtual GFontSelectFontObject (GFont *font)
virtual GFontGetCurrentFontObject ()
virtual void PaintTextMultiLine (int x, int y, TextMultilineInfo *tmi, const GColor &color, UINT align=DT_LEFT|DT_TOP)
virtual void PaintTextOutW (int x, int y, LPCWSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP)
virtual void PaintTextOutA (int x, int y, LPCSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP)
virtual void PaintTextOut (int x, int y, LPCTSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP)
virtual void PaintTextW (LPRECT rc, LPCWSTR text, int len, const GColor &color, UINT format)
virtual void PaintTextA (LPRECT rc, LPCSTR text, int len, const GColor &color, UINT format)
virtual void PaintText (LPRECT rc, LPCTSTR text, int len, const GColor &color, UINT format)
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 void PaintTextAngleW (int x, int y, float angle, LPCWSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP, const GColor *bk_color=NULL, const VecFloat2 &bk_pad_size=VecFloat2(2, 2))
virtual void PaintTextAngleA (int x, int y, float angle, LPCSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP, const GColor *bk_color=NULL, const VecFloat2 &bk_pad_size=VecFloat2(2, 2))
virtual void PaintTextAngle (int x, int y, float angle, LPCTSTR text, int len, const GColor &color, UINT align=DT_LEFT|DT_TOP, const GColor *bk_color=NULL, const VecFloat2 &bk_pad_size=VecFloat2(2, 2))
virtual void PaintFontTextOut (void *font, int x1, int y1, LPCSTR text, int c, const GColor &color)
virtual SIZE GetTextSize (LPCTSTR text, int len)
virtual SIZE GetTextSizeW (LPCWSTR text, int len)
virtual SIZE GetTextSizeA (LPCSTR text, int len)
virtual SIZE GetOutputSize ()
virtual void LineFloat2 (const VecFloat2 &p1, const VecFloat2 &p2, float size, const GColor &color, LineStyle *style)
virtual void Line (int x1, int y1, int x2, int y2, float size, const GColor &color, LineStyle *style=NULL)
virtual void Arc (double x, double y, double rx, double ry, double a1, double a2, float size, const GColor &color, LineStyle *style=NULL)
virtual void BezierDiv (POINT pt[4], float size, const GColor &color, LineStyle *style=NULL)
 贝塞尔曲线(4控制点)
virtual void BezierDivCurve3 (POINT pt[3], float 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, float size, const GColor &color, LineStyle *style=NULL)
virtual void RoundRect (RECT rc, RoundRectRadius &radius, float 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, float size, const GColor &color, LineStyle *style=NULL)
virtual void FillPath (const PathTransInfo &path_info, const GColor &color, BOOL bin_render=FALSE)
virtual void DrawPath (const PathTransInfo &path_info, const GColor &color, float size=1, LineStyle *style=NULL)
virtual void FillPathGradient (const PathTransInfo &path_info, GBrushGradient *bru_gradient, float alpha=1.0)
virtual void DrawPathGradient (const PathTransInfo &path_info, GBrushGradient *bru_gradient, float size=1, LineStyle *style=NULL, float alpha=1.0)
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 DrawImage (const PathTransInfo &path_info, GImage *img, RECT *rc_src, const ImageStyle *style=NULL)
virtual void DrawImageEllipse (int cx, int cy, int rx, int ry, GImage *img, RECT *rc_src, const ImageStyle *style=NULL)
virtual void DrawImageRect (int x, int y, int w, int h, RoundRectRadius *radius, GImage *img, RECT *rc_src, const ImageStyle *style=NULL)
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 ()

Protected 属性

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

详细描述

实现图形接口

构造及析构函数说明

◆ GSurface() [1/2]

BUI::GSurface::GSurface ( )

◆ GSurface() [2/2]

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

◆ ~GSurface()

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

成员函数说明

◆ AddRenderData()

virtual void BUI::GSurface::AddRenderData ( Render3dData & data)
virtual

实现了 BUI::ISurface.

◆ Arc()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ AttachPlatformPainter()

void BUI::GSurface::AttachPlatformPainter ( GSurfacePainter * painter)

◆ 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 * painter = NULL )
virtual

◆ BeginShadow()

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

实现了 BUI::ISurface.

◆ BezierDiv()

virtual void BUI::GSurface::BezierDiv ( POINT pt[4],
float 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],
float 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.

◆ Blur()

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

实现了 BUI::ISurface.

◆ BlurPath()

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

实现了 BUI::ISurface.

◆ Buffer()

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

◆ Clear()

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

实现了 BUI::ISurface.

◆ CopyFrom()

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

实现了 BUI::ISurface.

◆ CopyTo()

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

实现了 BUI::ISurface.

◆ DrawAddOrDelButton()

virtual void BUI::GSurface::DrawAddOrDelButton ( RECT rc,
BOOL is_add,
BOOL is_down,
const GColor & color )
virtual

实现了 BUI::ISurface.

◆ DrawCheckBox()

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

实现了 BUI::ISurface.

◆ DrawColorPicker()

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

◆ DrawExpandButton()

virtual void BUI::GSurface::DrawExpandButton ( POINT pt_center,
int size,
bool is_collapsed,
const GColor & color )
virtual

实现了 BUI::ISurface.

◆ DrawExpandTriButton()

virtual void BUI::GSurface::DrawExpandTriButton ( POINT pt_center,
int size,
bool is_collapsed,
const GColor & color )
virtual

实现了 BUI::ISurface.

◆ DrawImage()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawImageEffect()

virtual void BUI::GSurface::DrawImageEffect ( const PathTransInfo & path_info,
GImage * img,
RECT * rc_src,
const ImageStyle * style,
UINT filter_type,
float * params,
int len )
virtual

实现了 BUI::ISurface.

◆ DrawImageEllipse()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawImagePerspective()

virtual void BUI::GSurface::DrawImagePerspective ( POINT pts[4],
GImage * img,
RECT * rc_src = 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 * rc_src,
const ImageStyle * style = NULL )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawPath()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawPathGradient()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ DrawPathPattern()

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

实现了 BUI::ISurface.

◆ DrawShadow()

virtual void BUI::GSurface::DrawShadow ( ShadowInfo * si,
const PathTransInfo & path_info,
float size = 1,
LineStyle * style = NULL,
float alpha = 1.0 )
virtual

实现了 BUI::ISurface.

◆ DrawSpring()

virtual void BUI::GSurface::DrawSpring ( RECT rc,
bool is_hor,
bool is_fill,
const GColor & color )
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.

◆ Ellipse()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ EndShadow()

virtual void BUI::GSurface::EndShadow ( const PathTransInfo * path_info)
virtual

实现了 BUI::ISurface.

◆ 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 & path_info,
const GColor & color,
BOOL bin_render = FALSE )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ FillPathGradient()

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

实现了 BUI::ISurface.

◆ 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 rc_src )
virtual

实现了 BUI::ISurface.

◆ GetImageRatioTransform2d()

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

实现了 BUI::ISurface.

◆ 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 text,
int len,
UINT align = DT_LEFT|DT_TOP,
const VecFloat2 & bk_pad_size = VecFloat2(2, 2),
VecFloat2(*) ploygon[4] = NULL )
virtual

实现了 BUI::ISurface.

◆ GetTextAnglePloygonA()

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

实现了 BUI::ISurface.

◆ GetTextAnglePloygonW()

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

实现了 BUI::ISurface.

◆ GetTextSize()

virtual SIZE BUI::GSurface::GetTextSize ( LPCTSTR text,
int len )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetTextSizeA()

virtual SIZE BUI::GSurface::GetTextSizeA ( LPCSTR text,
int len )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetTextSizeW()

virtual SIZE BUI::GSurface::GetTextSizeW ( LPCWSTR text,
int len )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ GetViewportOrg()

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

◆ GouraudRender()

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

实现了 BUI::ISurface.

◆ Gray()

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

实现了 BUI::ISurface.

◆ GrayPath()

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

实现了 BUI::ISurface.

◆ Height()

int BUI::GSurface::Height ( )

◆ InstallShader()

virtual void BUI::GSurface::InstallShader ( int shader_id,
const char * source_vs,
const char * source_ps,
GShaderLayoutDesc * layout,
int layout_len )
virtual

实现了 BUI::ISurface.

◆ Line()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ LineFloat2()

virtual void BUI::GSurface::LineFloat2 ( const VecFloat2 & p1,
const VecFloat2 & p2,
float size,
const GColor & color,
LineStyle * style )
virtual

实现了 BUI::ISurface.

◆ PaintFontTextOut()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintText()

virtual void BUI::GSurface::PaintText ( LPRECT rc,
LPCTSTR text,
int len,
const GColor & color,
UINT format )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextA()

virtual void BUI::GSurface::PaintTextA ( LPRECT rc,
LPCSTR text,
int len,
const GColor & color,
UINT format )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextAngle()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextAngleA()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextAngleW()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextMultiLine()

virtual void BUI::GSurface::PaintTextMultiLine ( int x,
int y,
TextMultilineInfo * tmi,
const GColor & 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 len,
const GColor & 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 len,
const GColor & 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 len,
const GColor & color,
UINT align = DT_LEFT|DT_TOP )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ PaintTextW()

virtual void BUI::GSurface::PaintTextW ( LPRECT rc,
LPCWSTR text,
int len,
const GColor & 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,
float size,
const GColor & color,
LineStyle * style = NULL )
virtual

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ Render3D()

virtual void BUI::GSurface::Render3D ( )
virtual

实现了 BUI::ISurface.

◆ ResetClipBox()

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

实现了 BUI::ISurface.

BUI::GSurfaceQt 重载.

◆ RoundRect()

virtual void BUI::GSurface::RoundRect ( RECT rc,
RoundRectRadius & radius,
float 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 * si)
virtual

实现了 BUI::ISurface.

◆ SelectTextShadow()

virtual ShadowInfo * BUI::GSurface::SelectTextShadow ( ShadowInfo * si)
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 重载.

◆ SetFillRule()

SurfaceFillRule BUI::GSurface::SetFillRule ( SurfaceFillRule fl)
overridevirtual

实现了 BUI::ISurface.

◆ SetGrayCoeff()

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

实现了 BUI::ISurface.

◆ SetGrayFactor()

VecFloat4 BUI::GSurface::SetGrayFactor ( const VecFloat4 & v)
overridevirtual

实现了 BUI::ISurface.

◆ SetGrayMode()

GrayConv BUI::GSurface::SetGrayMode ( GrayConv gray)
overridevirtual

实现了 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()

float BUI::GSurface::SetPixelRatio ( float scale)

◆ SetViewportOrg()

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

◆ SetZOrder()

float BUI::GSurface::SetZOrder ( float z)
overridevirtual

实现了 BUI::ISurface.

◆ Stride()

int BUI::GSurface::Stride ( )

◆ StrideAbs()

int BUI::GSurface::StrideAbs ( )

◆ UnInstallShader()

virtual void BUI::GSurface::UnInstallShader ( int shader_id)
virtual

实现了 BUI::ISurface.

◆ Width()

int BUI::GSurface::Width ( )

类成员变量说明

◆ m_3d_cmd

Render3dData BUI::GSurface::m_3d_cmd
protected

◆ m_bpp

LONG BUI::GSurface::m_bpp
protected

◆ 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_clip_h

LONG BUI::GSurface::m_clip_h
protected

◆ m_clip_w

LONG BUI::GSurface::m_clip_w
protected

◆ m_clip_x

LONG BUI::GSurface::m_clip_x
protected

◆ m_clip_y

LONG BUI::GSurface::m_clip_y
protected

◆ m_comp_type

BlendCompType BUI::GSurface::m_comp_type
protected

◆ m_dash_len

int BUI::GSurface::m_dash_len
protected

◆ m_fill_rule

SurfaceFillRule BUI::GSurface::m_fill_rule
protected

◆ m_gray_coeff

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

◆ m_gray_type

GrayConv BUI::GSurface::m_gray_type
protected

◆ m_height

LONG BUI::GSurface::m_height
protected

◆ m_org_x

LONG BUI::GSurface::m_org_x
protected

◆ m_org_y

LONG BUI::GSurface::m_org_y
protected

◆ m_pen_cap

LineCapStyle BUI::GSurface::m_pen_cap
protected

◆ m_pen_style

PenType BUI::GSurface::m_pen_style
protected

◆ m_pixel_format

PixelFormatType BUI::GSurface::m_pixel_format
protected

◆ m_platform_painter

GSurfacePainter* BUI::GSurface::m_platform_painter
protected

◆ m_scale_factor

float BUI::GSurface::m_scale_factor
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_solid_color

GColor BUI::GSurface::m_solid_color
protected

◆ m_stride

LONG BUI::GSurface::m_stride
protected

◆ m_trans

Transform2d* BUI::GSurface::m_trans
protected

◆ m_trans_storage

Transform2d BUI::GSurface::m_trans_storage
protected

◆ m_width

LONG BUI::GSurface::m_width
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有