📄 render_cacheimage.h
字号:
/* * This file impliments the abstract graphic interface for khtml */#ifndef _RENDER_IMAGECACHE_H_#define _RENDER_IMAGECACHE_H_#define URL_STRINGMAXLENGTH 256// 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"#include "../css/css_valueimpl.h"//#include "../css/css_ruleimpl.h"namespace khtml {class CachedObject;class MGDocLoader;class MGCachedImage;class RenderImage;class MGImageLoader;class MGCachedImage// : public khtml::CachedObject{public: MGCachedImage( unsigned char *url ); MGCachedImage(unsigned char *url ,char TempName[]); MGCachedImage(unsigned char *url, bool reload, MGPainter* p); virtual ~MGCachedImage(); const MGPixmap& tiled_pixmap( const MGColor& c ) const; const MGPixmap& pixmap() const; MGSize pixmap_size() const; MGRect valid_rect() const; bool isTransparent() const; void ref() { m_ref++; } void deref() { m_ref--; if( m_ref <= 0 ) delete this; } bool LoadDataFromTempFile( char TempName[]); protected: friend class RenderImage; DOM::DOMString m_URL; DOM::DOMString m_baseURL;#if 0 MGPixmap* bg; MGPixmap* p;#endif public: MGPixmap* bg; MGPixmap* p; bool m_bIsRequested;private: int m_ref;}; }; // namespace#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -