xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
结构体 | Public 成员函数 | 包函数 | 包属性
QCefConfig类 参考

结构体

enum  LogLevel
 

Public 成员函数

包函数

包属性

详细描述

在文件 QCefView.x4 行定义.

成员函数说明

◆ addCommandLineSwitch()

void addCommandLineSwitch ( String  value)

在文件 QCefView.x65 行定义.

65 {
66 cmds.put(value);
67 }
void put(int, int)
JsonArray cmds
Definition QCefView.x:26

引用了 JsonArray.put().

◆ addCommandLineSwitchWithValue()

void addCommandLineSwitchWithValue ( String  key,
String  val 
)

在文件 QCefView.x69 行定义.

69 {
70 cmdv.put(key, val);
71 }
JsonObject put(String, int)
JsonObject cmdv
Definition QCefView.x:28

引用了 JsonObject.put().

◆ initializ()

void initializ ( )

在文件 QCefView.x73 行定义.

73 {
74 args.put("cmd", cmds);
75 args.put("cmdsw", cmdv);
76 QtXnl.widget_slot_string(0, Constant.INITCEF, args.toString(false));
77 args.remove("cmd");
78 args.remove("cmdsw");
79 }
String toString(bool)
bool remove(String)
JsonObject args
Definition QCefView.x:25

引用了 JsonObject.put(), JsonObject.remove() , 以及 JsonObject.toString().

◆ setBackgroundColor()

void setBackgroundColor ( int  color)

在文件 QCefView.x60 行定义.

60 {
61 setProperty("background", color);
62 }
void setProperty(String key, String val)
Definition QCefView.x:30

◆ setBridgeObjectName()

void setBridgeObjectName ( String  value)

在文件 QCefView.x52 行定义.

52 {
53 setProperty("bridge", value);
54 }

◆ setLogLevel()

void setLogLevel ( LogLevel  lev)

在文件 QCefView.x48 行定义.

48 {
49 setProperty("loglevel", lev.value());
50 }

◆ setProperty() [1/2]

void setProperty ( String  key,
int  val 
)
package

在文件 QCefView.x37 行定义.

37 {
38 while (args.has(key)){
39 args.remove(key);
40 }
41 args.put(key, val);
42 }
bool has(String)

引用了 JsonObject.has(), JsonObject.put() , 以及 JsonObject.remove().

◆ setProperty() [2/2]

void setProperty ( String  key,
String  val 
)
package

在文件 QCefView.x30 行定义.

30 {
31 while (args.has(key)){
32 args.remove(key);
33 }
34 args.put(key, val);
35 }

引用了 JsonObject.has(), JsonObject.put() , 以及 JsonObject.remove().

◆ setRemoteDebuggingPort()

void setRemoteDebuggingPort ( int  port)

在文件 QCefView.x56 行定义.

56 {
57 setProperty("port", port);
58 }

◆ setUserAgent()

void setUserAgent ( String  agent)

在文件 QCefView.x44 行定义.

44 {
45 setProperty("agent", agent);
46 }

结构体成员变量说明

◆ args

JsonObject args = new JsonObject()
package

在文件 QCefView.x25 行定义.

◆ cmds

JsonArray cmds = new JsonArray()
package

在文件 QCefView.x26 行定义.

◆ cmdv

JsonObject cmdv = new JsonObject()
package

在文件 QCefView.x28 行定义.

◆ resdir

JsonArray resdir = new JsonArray()
package

在文件 QCefView.x27 行定义.