xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
结构体 | Public 成员函数 | 静态 Public 成员函数 | Private 属性
QCefView类 参考
类 QCefView 继承关系图:
QWidget

结构体

enum  CefWindowOpenDisposition
 
class  onCefListener
 

Public 成员函数

静态 Public 成员函数

Private 属性

额外继承的成员函数

详细描述

在文件 QCefView.x82 行定义.

构造及析构函数说明

◆ QCefView() [1/2]

QCefView ( )

在文件 QCefView.x135 行定义.

135 {
136
137 }

◆ QCefView() [2/2]

QCefView ( long  handle)

在文件 QCefView.x139 行定义.

139 {
140 super(handle);
141 }

成员函数说明

◆ addLocalFolderResource()

void addLocalFolderResource ( String  url,
String  local 
)

在文件 QCefView.x147 行定义.

147 {
148 Qt.QtXnl.long_string2(nativehandle, Constant.CEF_DADDLOCALRES, local, url);
149 }
long cdecl long_string2(long handle,int proid, String v1, String v2)
Definition QCefQuery.x:3

引用了 QtXnl.long_string2().

◆ addLocalResourceDir()

static void addLocalResourceDir ( String  url,
String  local 
)
static

在文件 QCefView.x143 行定义.

143 {
144 Qt.QtXnl.long_string2(0, Constant.CEF_ADDLOCALRES, local, url);
145 }

引用了 QtXnl.long_string2().

◆ addressChanged()

void addressChanged ( long  frameId,
String  url 
)

在文件 QCefView.x219 行定义.

219 {
220 if (_ceflistener != nilptr){
221 _ceflistener.addressChanged(frameId, url);
222 }
223 }
void addressChanged(long frameId, String url)
Definition QCefView.x:93
onCefListener _ceflistener
Definition QCefView.x:116

◆ cefQueryRequest()

void cefQueryRequest ( int  browserId,
long  frameId,
long  query 
)

在文件 QCefView.x250 行定义.

250 {
251 QCefQuery _query = new QCefQuery(query);
252 if (_ceflistener != nilptr){
253 _ceflistener.cefQueryRequest(browserId, frameId, _query);
254 }
255 }
void cefQueryRequest(int browserId, long frameId, QCefQuery query)
Definition QCefView.x:99

◆ consoleMessage()

void consoleMessage ( String  message,
int  level 
)

在文件 QCefView.x240 行定义.

240 {
241 if (_ceflistener != nilptr){
242 _ceflistener.consoleMessage(message, level);
243 }
244 }
void consoleMessage(String message, int level)
Definition QCefView.x:97

◆ create() [1/4]

bool create ( @NotNilptr QWidget  parent)
override

重载 QWidget .

在文件 QCefView.x159 行定义.

159 {
160 nativehandle = Qt.QtXnl.createQSObject(Qt.QType.qtCefView, this, parent.nativehandle, nilptr);
161 if (nativehandle == 0){
162 return false;
163 }
164 return true;
165 }
long nativehandle
Definition QNative.xcsm:91
static const int qtCefView
Definition QTypes.xcsm:101
long cdecl createQSObject(int type, Object xobj, long parent, String param)

引用了 QtXnl.createQSObject() , 以及 QType.qtCefView.

◆ create() [2/4]

bool create ( @NotNilptr String  url,
@NotNilptr QWidget  parent 
)

在文件 QCefView.x167 行定义.

167 {
168 nativehandle = Qt.QtXnl.createQSObject(Qt.QType.qtCefView, this, parent.nativehandle, url);
169 if (nativehandle == 0){
170 return false;
171 }
172 return true;
173 }

引用了 QtXnl.createQSObject() , 以及 QType.qtCefView.

◆ create() [3/4]

bool create ( QCefSetting  setting,
@NotNilptr QWidget  parent 
)

在文件 QCefView.x175 行定义.

175 {
176 nativehandle = Qt.QtXnl.createQLLSObject(Qt.QType.qtCefView, this, parent.nativehandle, setting.nativehandle, nilptr);
177 if (nativehandle == 0){
178 return false;
179 }
180 return true;
181 }
long cdecl createQLLSObject(int type, Object xobj, long parent, long lparam, String param)

引用了 QtXnl.createQLLSObject() , 以及 QType.qtCefView.

◆ create() [4/4]

bool create ( QCefSetting  setting,
@NotNilptr String  url,
@NotNilptr QWidget  parent 
)

在文件 QCefView.x183 行定义.

183 {
184 nativehandle = Qt.QtXnl.createQLLSObject(Qt.QType.qtCefView, this, parent.nativehandle, setting.nativehandle, url);
185 if (nativehandle == 0){
186 return false;
187 }
188 return true;
189 }

引用了 QtXnl.createQLLSObject() , 以及 QType.qtCefView.

◆ fullscreenModeChanged()

void fullscreenModeChanged ( bool  fullscreen)

在文件 QCefView.x230 行定义.

230 {
231 if (_ceflistener != nilptr){
233 }
234 }
void fullscreenModeChanged(bool fullscreen)
Definition QCefView.x:95

◆ invokeMethod()

void invokeMethod ( int  browserId,
long  frameId,
String  method,
String []  arguments 
)

在文件 QCefView.x256 行定义.

256 {
257 if (_ceflistener != nilptr){
258 _ceflistener.invokeMethod(browserId, frameId, method, arguments);
259 }
260 }
void invokeMethod(int browserId, long frameId, String method, String [] arguments)
Definition QCefView.x:100

◆ loadEnd()

void loadEnd ( int  browserId,
long  frameId,
bool  isMainFrame,
int  httpStatusCode 
)

在文件 QCefView.x201 行定义.

201 {
202 if (_ceflistener != nilptr){
203 _ceflistener.loadEnd(browserId, frameId, isMainFrame, httpStatusCode);
204 }
205 }
void loadEnd(int browserId, long frameId, bool isMainFrame, int httpStatusCode)
Definition QCefView.x:86

◆ loadError()

void loadError ( int  browserId,
long  frameId,
bool  isMainFrame,
int  errorCode,
String  errorMsg,
String  failedUrl 
)

在文件 QCefView.x206 行定义.

212 {
213 if (_ceflistener != nilptr){
214 _ceflistener.loadError(browserId,frameId,isMainFrame,errorCode,errorMsg,failedUrl);
215 }
216 }
void loadError(int browserId, long frameId, bool isMainFrame, int errorCode, String errorMsg, String failedUrl)
Definition QCefView.x:87

◆ loadingProgressChanged()

void loadingProgressChanged ( double  progress)

在文件 QCefView.x245 行定义.

245 {
246 if (_ceflistener != nilptr){
248 }
249 }
void loadingProgressChanged(double progress)
Definition QCefView.x:98

◆ loadingStateChanged()

void loadingStateChanged ( int  browserId,
bool  isLoading,
bool  canGoBack,
bool  canGoForward 
)

在文件 QCefView.x191 行定义.

191 {
192 if (_ceflistener != nilptr){
193 _ceflistener.loadingStateChanged(browserId, isLoading, canGoBack, canGoForward);
194 }
195 }
void loadingStateChanged(int browserId, bool isLoading, bool canGoBack, bool canGoForward)
Definition QCefView.x:84

◆ loadStart()

void loadStart ( int  browserId,
long  frameId,
bool  isMainFrame,
int  transition_type 
)

在文件 QCefView.x196 行定义.

196 {
197 if (_ceflistener != nilptr){
198 _ceflistener.loadStart(browserId, frameId, isMainFrame, transition_type);
199 }
200 }
void loadStart(int browserId, long frameId, bool isMainFrame, int transition_type)
Definition QCefView.x:85

◆ navigateToString()

void navigateToString ( String  content)

在文件 QCefView.x155 行定义.

155 {
156 Qt.QtXnl.widget_slot_string(nativehandle, Constant.CEF_NAVIGATETOSTRING, content);
157 }
void cdecl widget_slot_string(long h, int proid, String value)

引用了 QtXnl.widget_slot_string().

◆ navigateToUrl()

void navigateToUrl ( String  url)

在文件 QCefView.x151 行定义.

151 {
152 Qt.QtXnl.widget_slot_string(nativehandle, Constant.CEF_NAVIGATETOURL, url);
153 }

引用了 QtXnl.widget_slot_string().

◆ onBeforePopup()

bool onBeforePopup ( long  frameId,
String  targetUrl,
String  targetFrameName,
int  targetDisposition,
long  settings,
bool []  DisableJavascriptAccess 
)

在文件 QCefView.x273 行定义.

279 {
280 QCefSetting setting = new QCefSetting(settings);
281 if (_ceflistener != nilptr){
282 return _ceflistener.onBeforePopup(frameId, targetUrl, targetFrameName, targetDisposition, setting, DisableJavascriptAccess);
283 }
284 return false;
285 }
bool onBeforePopup(long frameId, String targetUrl, String targetFrameName, int targetDisposition, QCefSetting settings, bool [] DisableJavascriptAccess)
Definition QCefView.x:103

◆ onBrowserWindowCreated()

void onBrowserWindowCreated ( QWindow  win)

在文件 QCefView.x266 行定义.

266 {
267 if (_ceflistener != nilptr){
269 }
270 }
void onBrowserWindowCreated(QWindow win)
Definition QCefView.x:102

◆ onPopupCreated()

void onPopupCreated ( QWindow  wnd)

在文件 QCefView.x287 行定义.

287 {
288 if (_ceflistener != nilptr){
290 }
291 }
void onPopupCreated(QWindow wnd)
Definition QCefView.x:113

◆ reportJavascriptResult()

void reportJavascriptResult ( int  browserId,
long  frameId,
long  context,
String  result 
)

在文件 QCefView.x261 行定义.

261 {
262 if (_ceflistener != nilptr){
263 _ceflistener.reportJavascriptResult(browserId, frameId, context, result);
264 }
265 }
void reportJavascriptResult(int browserId, long frameId, long context, String result)
Definition QCefView.x:101

◆ setOnCefListener()

void setOnCefListener ( onCefListener  _l)

在文件 QCefView.x118 行定义.

118 {
119 _ceflistener = _l;
120 }

◆ statusMessage()

void statusMessage ( String  message)

在文件 QCefView.x235 行定义.

235 {
236 if (_ceflistener != nilptr){
238 }
239 }
void statusMessage(String message)
Definition QCefView.x:96

◆ titleChanged()

void titleChanged ( String  title)

在文件 QCefView.x224 行定义.

224 {
225 if (_ceflistener != nilptr){
227 }
228 }
void titleChanged(String title)
Definition QCefView.x:94

结构体成员变量说明

◆ _ceflistener

onCefListener _ceflistener = nilptr
private

在文件 QCefView.x116 行定义.