📄 mgdraw.cpp
字号:
#include "render_interface.h"#include "mgcolor.h"#include "mgpen.h"#include "mgbrush.h"#include "mgrect.h"#include "mgfontmetrics.h"#include "mgpoint.h"#include "mgpixmap.h"#include "mgbitmap.h"#include "mgpainter.h"void MGDrawShadePanel( MGPainter *p, int x, int y, int w, int h, const MGColorGroup &, bool sunken, int lineWidth, const MGBrush *fill ){ // TODO gal_pixel pixel; if (fill) pixel = MGColor::Rgb2Pixel (p->getHdc(), fill->color()); else pixel = (gal_pixel) -1; if (sunken) { if (lineWidth < 2) Draw3DDownThinFrame (p->getHdc (), x, y, x + w, y + h, pixel); else Draw3DDownThickFrame (p->getHdc (), x, y, x + w, y + h, pixel); } else { if (lineWidth < 2) Draw3DUpThinFrame (p->getHdc (), x, y, x + w, y + h, pixel); else Draw3DUpThickFrame (p->getHdc (), x, y, x + w, y + h, pixel); }}void MGDrawShadePanel( MGPainter *p, const MGRect &r, const MGColorGroup &cg, bool sunken, int lineWidth, const MGBrush *fill ){ // TODO MGDrawShadePanel (p, r.left(), r.top(), r.width(), r.height(), cg, sunken, lineWidth, fill);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -