📄 mgpainter.h
字号:
#ifndef _MGPAINTER_H_#define _MGPAINTER_H_class MGHTMLPart;class MGPointArray;class MGPainter{public: MGPainter (); MGPainter (MGHTMLPart* part) {cpart = part;}; ~MGPainter(); void setBrush( int brush_style ); void setBrush( const MGBrush& ); void setBrush( const MGColor& ); void setFont( const MGFont& ); void setPen( const MGPen& ); void setPen( const MGColor& ); void setPen( int ); const MGPen& pen() const; MGFontMetrics fontMetrics() const; void drawRect( int x, int y, int w, int h ); void drawText( int x, int y, const MGString&, int len = -1 ); void drawText( int x, int y, int w, int h, int flags, const MGString&, int len = -1, MGRect *br = 0, char **internal = 0 ); void drawLine( int x1, int y1, int x2, int y2 ); void drawTiledPixmap( int x, int y, int w, int h, const MGPixmap& map, int sx = 0, int sy = 0 ); void drawPixmap( const MGPoint&, const MGPixmap& ); void drawPixmap( const MGPoint&, const MGPixmap&, const MGRect& sr ); void drawPixmap( int x, int y, const MGPixmap&, int sx = 0, int sy = 0, int sw = -1, int sh = -1 ); void drawEllipse( int x, int y, int w, int h ); void drawArc( int x, int y, int w, int h, int a, int alen ); void drawPolyline( const MGPointArray&, int index = 0, int npoints = -1 ); void fillRect( int x, int y, int w, int h, const MGColor& c ); void fillRect( int x, int y, int w, int h, const MGBrush& ); void fillRect( const MGRect&, const MGBrush& ); bool hasClipping() const; void setClipping( bool ); void setRasterOp( int );#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI ) const HDC& getHdc() const { return hdc; } void setHdc( HDC h ) { hdc = h; }#endifprotected: friend class MGFontMetrics; friend class MGHTMLView; friend class MGHTMLPart; MGBrush cbrush; MGPen cpen; MGFont cfont; MGHTMLPart* cpart;#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI ) HDC hdc;#endif};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -