📄 render_interface.h
字号:
#include <mgloader.h>/* * This file impliments the abstract graphic interface for khtml */#ifndef _RENDER_INTERFACE_H_#define _RENDER_INTERFACE_H_#define URL_STRINGMAXLENGTH 256#include "render_cacheimage.h"// plateform we possiblelly surpport#define _PLATFORM_MINIGUI 1#define _PLATFORM_QT 2#define _PLATFORM_WINDOWS 3#define _CURRENT_PLATFORM _PLATFORM_MINIGUI#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI )#include <minigui/common.h>#include <minigui/minigui.h>#include <minigui/gdi.h>#include <minigui/window.h>#include <minigui/control.h>#define MSG_USER_MOVE_CHILD (MSG_USER+0x100)#endif// for we must impliment string ourself// so we currently use such as QString instead#define MGString QString#define MGChar QChar#define MGPointArray QPointArray#define MGURL KRULclass MGPixmap;class MGSize;class MGColor;class MGFont;class MGFontInfo;class MGRect;class MGPainter;class MGFontMetrics;class MGBitmap;class MGPoint;class MGBrush;class MGWMatrix;class MGColorGroup;class MGHTMLView;class MGWidget;namespace DOM{ class CSSStyleSheetImpl; class DOMString;};// #include "loader.h"#include "kurl.h"class MG{public: // global const values static const MGColor black; static const MGColor white; static const MGColor darkGray; static const MGColor gray; static const MGColor lightGray; static const MGColor red; static const MGColor green; static const MGColor blue; static const MGColor cyan; static const MGColor magenta; static const MGColor yellow; static const MGColor darkRed; static const MGColor darkGreen; static const MGColor darkBlue; static const MGColor darkCyan; static const MGColor darkMagenta; static const MGColor darkYellow;#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI ) static int g_nChildWndID;#endif enum Weight { Light = 25, Normal = 50, DemiBold = 63, Bold = 75, Black = 87 }; enum MGPenStyle { NoPen, SolidLine, DashLine, DotLine, DashDotLine, DashDotDotLne, MPenStyle = 0x0f }; enum MGBrushStyle { // brush style NoBrush, SolidPattern, Dense1Pattern, Dense2Pattern, Dense3Pattern, Dense4Pattern, Dense5Pattern, Dense6Pattern, Dense7Pattern, HorPattern, VerPattern, CrossPattern, BDiagPattern, FDiagPattern, DiagCrossPattern, CustomPattern = 24 }; enum RasterOp { // raster op mode CopyROP, OrROP, XorROP, NotAndROP, EraseROP = NotAndROP, NotCopyROP, NotOrROP, NotXorROP, AndROP, NotEraseROP = AndROP, NotROP, ClearROP, SetROP, NopROP, AndNotROP, OrNotROP, NandROP, NorROP, LastROP = NorROP }; enum AlignmentFlags { AlignLeft = 0x0001, // text alignment AlignRight = 0x0002, AlignHCenter= 0x0004, AlignTop = 0x0008, AlignBottom = 0x0010, AlignVCenter= 0x0020, AlignCenter = AlignVCenter | AlignHCenter, SingleLine = 0x0040, // misc. flags DontClip = 0x0080, ExpandTabs = 0x0100, ShowPrefix = 0x0200, WordBreak = 0x0400, DontPrint = 0x1000 // internal };}; // namespace#include "../css/css_valueimpl.h"#include "../css/css_ruleimpl.h"namespace khtml {class CachedObject;class MGDocLoader;class MGCachedImage;class RenderImage;class MGImageLoader;class DOM::CSSImageValueImpl;class MGCachedCSSStyleSheet;class MGCSSLoader;class MGScriptLoader;class DOM::CSSImportRuleImpl;}; // namespaceclass MGBitmap;class MGBrush;#include "mgcolor.h"#include "mgsize.h"#include "mgrect.h"#include "mginlines.h"class MGColorGroup;class MGFont;class MGFontInfo;class MGFontMetrics;class MGPainter;class MGPen;class MGPixmap;class MGPoint;class MGWMatrix;class MGWidget;class MGWidgetButton;class MGWidgetRadio;class MGWidgetEdit;class MGWidgetEditPassword;class MGWidgetStatic;class MGWidgetParent;class MGHTMLViewPrivate;class MGHTMLView;/* * gloal draw functions */void MGDrawShadePanel( MGPainter *p, int x, int y, int w, int h, const MGColorGroup &, bool sunken=FALSE, int lineWidth = 1, const MGBrush *fill = 0 );void MGDrawShadePanel( MGPainter *p, const MGRect &r, const MGColorGroup &, bool sunken=FALSE, int lineWidth = 1, const MGBrush *fill = 0 );#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -