mgdraw.cpp
来自「monqueror一个很具有参考价值的源玛」· C++ 代码 · 共 46 行
CPP
46 行
#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 + =
减小字号Ctrl + -
显示快捷键?