/*
*
* wolar@qq.com
* http://miniblink.net
* https://github.com/weolar/miniblink49
* https://weolar.github.io/miniblink/doc-main.html api文档地址
* licence Apache-2.0
*
*/
#ifndef WKE_DEFINE_H
#define WKE_DEFINE_H
#include <windows.h>
//////////////////////////////////////////////////////////////////////////
#define WKE_CALL_TYPE __cdecl
typedef struct _wkeRect {
int x;
int y;
int w;
int h;
} wkeRect;
typedef struct _wkePoint {
int x;
int y;
} wkePoint;
typedef enum _wkeMouseFlags {
WKE_LBUTTON = 0x01,
WKE_RBUTTON = 0x02,
WKE_SHIFT = 0x04,
WKE_CONTROL = 0x08,
WKE_MBUTTON = 0x10,
} wkeMouseFlags;
typedef enum _wkeKeyFlags {
WKE_EXTENDED = 0x0100,
WKE_REPEAT = 0x4000,
} wkeKeyFlags;
typedef enum _wkeMouseMsg {
WKE_MSG_MOUSEMOVE = 0x0200,
WKE_MSG_LBUTTONDOWN = 0x0201,
WKE_MSG_LBUTTONUP = 0x0202,
WKE_MSG_LBUTTONDBLCLK = 0x0203,
WKE_MSG_RBUTTONDOWN = 0x0204,
WKE_MSG_RBUTTONUP = 0x0205,
WKE_MSG_RBUTTONDBLCLK = 0x0206,
WKE_MSG_MBUTTONDOWN = 0x0207,
WKE_MSG_MBUTTONUP = 0x0208,
WKE_MSG_MBUTTONDBLCLK = 0x0209,
WKE_MSG_MOUSEWHEEL = 0x020A,
} wkeMouseMsg;
#if !defined(__cplusplus)
#ifndef HAVE_WCHAR_T
typedef unsigned short wchar_t;
#endif
#define bool _Bool
#define false 0
#define true 1
#endif
#if defined(__cplusplus)
#define WKE_EXTERN_C extern "C"
#else
#define WKE_EXTERN_C
#endif
typedef char utf8;
#if !defined(__cplusplus)
typedef void* jsExecState;
#else
struct JsExecStateInfo;
typedef JsExecStateInfo* jsExecState;
#endif
typedef __int64 jsValue;
#if defined(__cplusplus)
namespace wke { class CWebView; };
typedef wke::CWebView* wkeWebView;
namespace wke { class CString; };
typedef wke::CString* wkeString;
#else
struct _tagWkeWebView;
typedef struct _tagWkeWebView* wkeWebView;
struct _tagWkeString;
typedef struct _tagWkeString* wkeString;
#endif
#if defined(__cplusplus)
namespace wke { class WkeMediaPlayer; };
typedef wke::WkeMediaPlayer* wkeMediaPlayer;
namespace wke { class WkeMediaPlayerClient; };
typedef wke::WkeMediaPlayerClient* wkeMediaPlayerClient;
namespace blink { class WebURLRequest; };
typedef blink::WebURLRequest* blinkWebURLRequestPtr;
#else
typedef struct _tagWkeMediaPlayer* wkeMediaPlayer;
typedef struct _tagWkeMediaPlayerClient* wkeMediaPlayerClient;
typedef struct _tabblinkWebURLRequestPtr* blinkWebURLRequestPtr;
#endif
typedef enum _wkeProxyType {
WKE_PROXY_NONE,
WKE_PROXY_HTTP,
WKE_PROXY_SOCKS4,
WKE_PROXY_SOCKS4A,
WKE_PROXY_SOCKS5,
WKE_PROXY_SOCKS5HOSTNAME
} wkeProxyType;
typedef struct _wkeProxy {
wkeProxyType type;
char hostname[100];
unsigned short port;
char username[50];
char password[50];
} wkeProxy;
typedef enum _wkeSettingMask{
WKE_SETTING_PROXY = 1,
WKE_SETTING_PAINTCALLBACK_IN_OTHER_THREAD = 1 << 2,
} wkeSettingMask;
typedef struct _wkeSettings {
wkeProxy proxy;
unsigned int mask;
} wkeSettings;
typedef struct _wkeViewSettings {
int size;
unsigned int bgColor;
} wkeViewSettings;
typedef void* wkeWebFrameHandle;
typedef struct _wkeGeolocationPosition{
double timestamp;
double latitude;
double longitude;
double accuracy;
bool providesAltitude;
double altitude;
bool providesAltitudeAccuracy;
double altitudeAccuracy;
bool providesHeading;
double heading;
bool providesSpeed;
double speed;
#if defined(__cplusplus)
_wkeGeolocationPosition(const _wkeGeolocationPosition& other)
{
timestamp = other.timestamp;
latitude = other.latitude;
longitude = other.longitude;
accuracy = other.accuracy;
providesAltitude = other.providesAltitude;
altitude = other.altitude;
providesAltitudeAccuracy = other.providesAltitudeAccuracy;
altitudeAccuracy = other.altitudeAccuracy;
providesHeading = other.providesHeading;
heading = other.heading;
providesSpeed = other.providesSpeed;
speed = other.speed;
}
#endif
} wkeGeolocationPosition;
typedef enum _wkeMenuItemId {
kWkeMenuSelectedAllId = 1 << 1,
kWkeMenuSelectedTextId = 1 << 2,
kWkeMenuUndoId = 1 << 3,
kWkeMenuCopyImageId = 1 << 4,
kWkeMenuInspectElementAtId = 1 << 5,
kWkeMenuCutId = 1 << 6,
kWkeMenuPasteId = 1 << 7,
kWkeMenuPrintId = 1 << 8,
kWkeMenuGoForwardId = 1 << 9,
kWkeMenuGoBackId = 1 << 10,
kWkeMenuReloadId = 1 << 11,
kWkeMenuSaveImageId = 1 << 12,
} wkeMenuItemId;
typedef void* (WKE_CALL_TYPE *FILE_OPEN_) (const char* path);
typedef void(WKE_CALL_TYPE *FILE_CLOSE_) (void* handle);
typedef size_t(WKE_CALL_TYPE *FILE_SIZE) (void* handle);
typedef int(WKE_CALL_TYPE *FILE_READ) (void* handle, void* buffer, size_t size);
typedef int(WKE_CALL_TYPE *FILE_SEEK) (void* handle, int offset, int origin);
typedef FILE_OPEN_ WKE_FILE_OPEN;
typedef FILE_CLOSE_ WKE_FILE_CLOSE;
typedef FILE_SIZE WKE_FILE_SIZE;
typedef FILE_READ WKE_FILE_READ;
typedef FILE_SEEK WKE_FILE_SEEK;
typedef bool(WKE_CALL_TYPE *WKE_EXISTS_FILE)(const char * path);
struct _wkeClientHandler; // declare warning fix
typedef void(WKE_CALL_TYPE *ON_TITLE_CHANGED) (const struct _wkeClientHandler* clientHandler, const wkeString title);
typedef void(WKE_CALL_TYPE *ON_URL_CHANGED) (const struct _wkeClientHandler* clientHandler, const wkeString url);
typedef struct _wkeClientHandler {
ON_TITLE_CHANGED onTitleChanged;
ON_URL_CHANGED onURLChanged;
} wkeClientHandler;
typedef bool(WKE_CALL_TYPE * wkeCookieVisitor)(
void* params,
const char* name,
const char* value,
const char* domain,
const char* path, // If |path| is non-empty only URLs at or below the path will get the cookie value.
int secure, // If |secure| is true the cookie will only be sent for HTTPS requests.
int httpOnly, // If |httponly| is true the cookie will only be sent for HTTP requests.
int* expires // The cookie expiration date is only valid if |has_expires| is true.
);
typedef enum _wkeCookieCommand {
wkeCookieCommandClearAllCookies,
wkeCookieCommandClearSessionCookies,
wkeCookieCommandFlushCookiesToFile,
wkeCookieCommandReloadCookiesFromFile,
} wkeCookieCommand;
typedef enum _wkeNavigationType {
WKE_NAVIGATION_TYPE_LINKCLICK,
WKE_NAVIGATION_TYPE_FORMSUBMITTE,
WKE_NAVIGATION_TYPE_BACKFORWARD,
WKE_NAVIGATION_TYPE_RELOAD,
WKE_NAVIGATION_TYPE_FORMRESUBMITT,
WKE_NAVIGATION_TYPE_OTHER
} wkeNavigationType;
typedef enum _WkeCursorInfoType {
WkeCursorInfoPointer,
WkeCursorInfoCross,
WkeCursorInfoHand,
WkeCursorInfoIBeam,
WkeCursorInfoWait,
WkeCursorInfoHelp,
WkeCursorInfoEastResize,
WkeCursorInfoNorthResize,
WkeCursorInfoNorthEastResize,
WkeCursorInfoNorthWestResize,
WkeCursorInfoSouthResize,
WkeCursorInfoSouthEastResize,
WkeCursorInfoSouthWestResize,
WkeCursorInfoWestResize,
WkeCursorInfoNorthSouthResize,
WkeCursorInfoEastWestResize,
WkeCursorInfoNorthEastSouthWestResize,
WkeCursorInfoNorthWestSouthEastResize,
WkeCursorInfoColumnResize,
WkeCursorInfoRowResize,
WkeCursorInfoMiddlePanning,
WkeCursorInfoEastPanning,
WkeCursorInfoNorthPanning,
WkeCursorInfoNorthEastPanning,
WkeCursorInfoNorthWestPanning,
WkeCursorInfoSouthPanning,
WkeCursorInfoSouthEastPanning,
WkeCursorInfoSouthWestPanning,
WkeCursorInfoWestPanning,
WkeCursorInfoMove,
WkeCursorInfoVerticalText,
WkeCursorInfoCell,
WkeCursorInfoContextMenu,
WkeCursorInfoAlias,
WkeCursorInfoProgress,
WkeCursorInfoNoDrop,
WkeCursorInfoCopy,
WkeCursorInfoNone,
WkeCursorInfoNotAllowed,
WkeCursorInfoZoomIn,
WkeCursorInfoZoomOut,
WkeCursorInfoGrab,
WkeCursorInfoGrabbing,
WkeCursorInfoCustom
} WkeCursorInfoType;
typedef struct _wkeWindowFeatures {
int x;
int y;
int width;
int height;
bool menuBarVisible;
bool statusBarVisible;
bool toolBarVisible;
bool loc
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
C#好用的miniblink控件和调用实例 (863个子文件)
Demo.csprojAssemblyReference.cache 9KB
DesignTimeResolveAssemblyReferencesInput.cache 7KB
Demo.csproj.GenerateResource.cache 2KB
Miniblink.csproj.GenerateResource.cache 1KB
Miniblink.csproj.CoreCompileInputs.cache 42B
Demo.csproj.CoreCompileInputs.cache 42B
Demo.csproj.CopyComplete 0B
MBApi.cs 90KB
MiniblinkBrowser.cs 57KB
MiniblinkForm.cs 19KB
MBEvents.cs 13KB
FrmMain.Designer.cs 9KB
Exts.cs 9KB
MBCookieCollection.cs 7KB
NetApiEngine.cs 7KB
FrmPrompt.Designer.cs 7KB
Utils.cs 6KB
FrmNetCallJs.Designer.cs 5KB
FrmConfirm.Designer.cs 5KB
ExtTextBox.Designer.cs 5KB
Downloader.cs 4KB
FrmAlert.Designer.cs 4KB
MBEnums.cs 4KB
FrmTest.Designer.cs 4KB
FrmControl.Designer.cs 4KB
DrawToBitmapUtil.cs 4KB
WinApi.cs 4KB
MBDelegates.cs 4KB
MBModels.cs 4KB
DeviceParameter.cs 3KB
IMiniblink.cs 3KB
PrintUtil.cs 3KB
ExtTextBox.cs 3KB
FrmMain.cs 3KB
FrmImage.Designer.cs 3KB
NetApiRequest.cs 3KB
Resources.Designer.cs 3KB
ZipLoader.cs 3KB
FrmDropFile.Designer.cs 2KB
ScreenshotImage.cs 2KB
MBPostBody.cs 2KB
FrmDevTools.Designer.cs 2KB
WinModels.cs 2KB
FrmPrompt.cs 2KB
FrmRunJs.Designer.cs 2KB
MiniblinkSetting.cs 2KB
FrmConfirm.cs 2KB
FrmAlert.cs 2KB
FrmNetCallJs.cs 2KB
FrmTest.cs 2KB
FrmWeb.cs 2KB
FrmHook.cs 1KB
FrmFileLoad.Designer.cs 1KB
FrmTransparent.Designer.cs 1KB
FrmEmbedLoad.Designer.cs 1KB
FrmZipLoad.Designer.cs 1KB
FrmJsCallNet.Designer.cs 1KB
FrmDownload.Designer.cs 1KB
FrmWindow.Designer.cs 1KB
NetFunc.cs 1KB
FrmWeb.Designer.cs 1KB
FrmEvents.Designer.cs 1KB
FrmHook.Designer.cs 1KB
WinConst.cs 1KB
FrmDownload.cs 1KB
MiniblinkForm.Designer.cs 1KB
FrmJsCallNet.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
EmbedLoader.cs 1KB
MiniblinkBrowser.Designer.cs 1KB
JsFunc.cs 1KB
FileCache.cs 1018B
FrmImage.cs 982B
FrmControl.cs 964B
FrameContext.cs 853B
FrmWindow.cs 829B
FrmTransparent.cs 821B
NavigateType.cs 815B
FrmRunJs.cs 779B
RouteAttribute.cs 778B
FrmZipLoad.cs 764B
FrmFileLoad.cs 746B
FrmDropFile.cs 742B
FrmEmbedLoad.cs 685B
FrmDevTools.cs 662B
FileLoader.cs 617B
WKEException.cs 602B
NetApiError.cs 559B
NetApiAfter.cs 514B
FormResizeWidth.cs 513B
NetApiBefore.cs 489B
RouteSetting.cs 488B
FrmEvents.cs 470B
Program.cs 413B
ApiNameAttribute.cs 354B
FormShadowWidth.cs 317B
ILoadResource.cs 272B
NetApi.cs 220B
WinDelegates.cs 212B
共 863 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
- wjhjsj2021-05-25很好,可以参考!!!!
砖_1
- 粉丝: 3
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功