|
| 1 | +# window (object) |
| 2 | + |
| 3 | +Table of contents: |
| 4 | +* [Methods](#methods) |
| 5 | + * [wkeCreateWebWindow](#wkeCreateWebWindow) |
| 6 | + * [wkeShowWindow](#wkeShowWindow) |
| 7 | + * [wkeCreateWebView](#wkeCreateWebView) |
| 8 | + * [wkeDestroyWebView](#wkeDestroyWebView) |
| 9 | + * [wkeMoveToCenter](#wkeMoveToCenter) |
| 10 | + * [wkeRunMessageLoop](#wkeRunMessageLoop) |
| 11 | + * [wkeSetUserAgentW](#wkeSetUserAgentW) |
| 12 | + * [wkeSetDragEnable](#wkeSetDragEnable) |
| 13 | + * [wkeAddPluginDirectory](#wkeAddPluginDirectory) |
| 14 | + * [wkeSetNpapiPluginsEnabled](#wkeSetNpapiPluginsEnabled) |
| 15 | + * [wkeSetCspCheckEnable](#wkeSetCspCheckEnable) |
| 16 | + * [wkeSetDebugConfig](#wkeSetDebugConfig) |
| 17 | + * [wkeSetNavigationToNewWindowEnable](#wkeSetNavigationToNewWindowEnable) |
| 18 | + * [wkeSetWebViewName](#wkeSetWebViewName) |
| 19 | + * [wkeSetZoomFactor](#wkeSetZoomFactor) |
| 20 | + * [wkeSetContextMenuEnabled](#wkeSetContextMenuEnabled) |
| 21 | + * [wkeSetWindowTitleW](#wkeSetWindowTitleW) |
| 22 | + * [wkeSetTransparent](#wkeSetTransparent) |
| 23 | + * [wkeSetHandle](#wkeSetHandle) |
| 24 | + * [wkeResize](#wkeResize) |
| 25 | + * [wkeWidth](#wkeWidth) |
| 26 | + * [wkeHeight](#wkeHeight) |
| 27 | + * [wkeContentsWidth](#wkeContentsWidth) |
| 28 | + * [wkeContentsHeight](#wkeContentsHeight) |
| 29 | + * [wkeGoForward](#wkeGoForward) |
| 30 | + * [wkeGoBack](#wkeGoBack) |
| 31 | + * [wkeGetWindowHandle](#wkeGetWindowHandle) |
| 32 | + * [wkeGetViewDC](#wkeGetViewDC) |
| 33 | + * [wkeSetTouchEnabled](#wkeSetTouchEnabled) |
| 34 | + * [simulate_device](#simulate_device) |
| 35 | + * [bind_window](#bind_window) |
| 36 | +## Methods |
| 37 | +### wkeCreateWebWindow |
| 38 | + |
| 39 | +| Parameter | Type | description |
| 40 | +| --- | --- | --- | |
| 41 | +| _type | int |0:normal window,1:transparent window,3:embedded window | |
| 42 | +| x | int | x axis | |
| 43 | +| y | int | y axis | |
| 44 | +| width | int | window's width | |
| 45 | +| height | int | window's height | |
| 46 | +| hwnd | int |embedded other window's handle | |
| 47 | +| __Return__ | int | webview | |
| 48 | + |
| 49 | +### wkeShowWindow |
| 50 | + |
| 51 | +| Parameter | Type | description |
| 52 | +| --- | --- | --- | |
| 53 | +| webview | int | -- | |
| 54 | +| _bool | bool | -- | |
| 55 | +| __Return__ | None | -- | |
| 56 | + |
| 57 | +### wkeCreateWebView |
| 58 | + |
| 59 | +| Parameter | Type | description |
| 60 | +| --- | --- | --- | |
| 61 | +| __Return__ | int | webview | |
| 62 | + |
| 63 | +### wkeDestroyWebView |
| 64 | + |
| 65 | +| Parameter | Type | description |
| 66 | +| --- | --- | --- | |
| 67 | +| webview | int | -- | |
| 68 | +| __Return__ | None | -- | |
| 69 | + |
| 70 | +### wkeMoveToCenter |
| 71 | + |
| 72 | +| Parameter | Type | description |
| 73 | +| --- | --- | --- | |
| 74 | +| webview | int | -- | |
| 75 | +| __Return__ | None | -- | |
| 76 | + |
| 77 | +### wkeRunMessageLoop |
| 78 | + |
| 79 | +| Parameter | Type | description |
| 80 | +| --- | --- | --- | |
| 81 | +| __Return__ | None | -- | |
| 82 | + |
| 83 | +### wkeSetUserAgentW |
| 84 | + |
| 85 | +| Parameter | Type | description |
| 86 | +| --- | --- | --- | |
| 87 | +| webview | int | -- | |
| 88 | +| ua | string | -- | |
| 89 | +| __Return__ | None | -- | |
| 90 | + |
| 91 | +### wkeGetUserAgent |
| 92 | + |
| 93 | +| Parameter | Type | description |
| 94 | +| --- | --- | --- | |
| 95 | +| webview | int | -- | |
| 96 | +| __Return__ | None | -- | |
| 97 | + |
| 98 | +### wkeSetDragEnable |
| 99 | + |
| 100 | +| Parameter | Type | description |
| 101 | +| --- | --- | --- | |
| 102 | +| webview | int | -- | |
| 103 | +| _bool | bool | -- | |
| 104 | +| __Return__ | None | -- | |
| 105 | + |
| 106 | +### wkeAddPluginDirectory |
| 107 | + |
| 108 | +| Parameter | Type | description |
| 109 | +| --- | --- | --- | |
| 110 | +| webview | int | -- | |
| 111 | +| _path | string | -- | |
| 112 | +| __Return__ | None | -- | |
| 113 | + |
| 114 | +### wkeSetNpapiPluginsEnabled |
| 115 | + |
| 116 | +| Parameter | Type | description |
| 117 | +| --- | --- | --- | |
| 118 | +| webview | int | -- | |
| 119 | +| _bool | bool | -- | |
| 120 | +| _path | string | -- | |
| 121 | +| __Return__ | None | -- | |
| 122 | + |
| 123 | +If you want to use flash must ues this method |
| 124 | + |
| 125 | +### wkeSetCspCheckEnable |
| 126 | + |
| 127 | +| Parameter | Type | description |
| 128 | +| --- | --- | --- | |
| 129 | +| webview | int | -- | |
| 130 | +| _bool | bool | -- | |
| 131 | +| __Return__ | None | -- | |
| 132 | + |
| 133 | +### wkeSetDebugConfig |
| 134 | + |
| 135 | +| Parameter | Type | description |
| 136 | +| --- | --- | --- | |
| 137 | +| webview | int | -- | |
| 138 | +| debug | string | -- | |
| 139 | +| param | string | -- | |
| 140 | +| __Return__ | None | -- | |
| 141 | + |
| 142 | +### wkeSetCspCheckEnable |
| 143 | + |
| 144 | +| Parameter | Type | description |
| 145 | +| --- | --- | --- | |
| 146 | +| webview | int | -- | |
| 147 | +| _bool | bool | -- | |
| 148 | +| __Return__ | None | -- | |
| 149 | + |
| 150 | +### wkeSetHeadlessEnabled |
| 151 | + |
| 152 | +| Parameter | Type | description |
| 153 | +| --- | --- | --- | |
| 154 | +| webview | int | -- | |
| 155 | +| _bool | bool | -- | |
| 156 | +| __Return__ | None | -- | |
| 157 | + |
| 158 | +### wkeSetNavigationToNewWindowEnable |
| 159 | + |
| 160 | +| Parameter | Type | description |
| 161 | +| --- | --- | --- | |
| 162 | +| webview | int | -- | |
| 163 | +| _bool | bool | -- | |
| 164 | +| __Return__ | None | -- | |
| 165 | + |
| 166 | +### wkeSetWebViewName |
| 167 | + |
| 168 | +| Parameter | Type | description |
| 169 | +| --- | --- | --- | |
| 170 | +| webview | int | -- | |
| 171 | +| name | string | -- | |
| 172 | +| __Return__ | None | -- | |
| 173 | + |
| 174 | +### wkeSetZoomFactor |
| 175 | + |
| 176 | +| Parameter | Type | description |
| 177 | +| --- | --- | --- | |
| 178 | +| webview | int | -- | |
| 179 | +| factor | int | -- | |
| 180 | +| __Return__ | None | -- | |
| 181 | + |
| 182 | +### wkeSetContextMenuEnabled |
| 183 | + |
| 184 | +| Parameter | Type | description |
| 185 | +| --- | --- | --- | |
| 186 | +| webview | int | -- | |
| 187 | +| _bool | bool | -- | |
| 188 | +| __Return__ | None | -- | |
| 189 | + |
| 190 | +### wkeSetWindowTitleW |
| 191 | + |
| 192 | +| Parameter | Type | description |
| 193 | +| --- | --- | --- | |
| 194 | +| webview | int | -- | |
| 195 | +| title | string | -- | |
| 196 | +| __Return__ | None | -- | |
| 197 | + |
| 198 | +### wkeSetHandleOffset |
| 199 | + |
| 200 | +| Parameter | Type | description |
| 201 | +| --- | --- | --- | |
| 202 | +| webview | int | -- | |
| 203 | +| x | int | -- | |
| 204 | +| y | int | -- | |
| 205 | +| __Return__ | None | -- | |
| 206 | + |
| 207 | +### wkeSetHandle |
| 208 | + |
| 209 | +| Parameter | Type | description |
| 210 | +| --- | --- | --- | |
| 211 | +| webview | int | -- | |
| 212 | +| hwnd | int | -- | |
| 213 | +| __Return__ | None | -- | |
| 214 | + |
| 215 | +### wkeResize |
| 216 | + |
| 217 | +| Parameter | Type | description |
| 218 | +| --- | --- | --- | |
| 219 | +| webview | int | -- | |
| 220 | +| width | int | -- | |
| 221 | +| height | int | -- | |
| 222 | +| __Return__ | None | -- | |
| 223 | + |
| 224 | +### wkeWidth |
| 225 | + |
| 226 | +| Parameter | Type | description |
| 227 | +| --- | --- | --- | |
| 228 | +| webview | int | -- | |
| 229 | +| __Return__ | int | width | |
| 230 | + |
| 231 | +### wkeHeight |
| 232 | + |
| 233 | +| Parameter | Type | description |
| 234 | +| --- | --- | --- | |
| 235 | +| webview | int | -- | |
| 236 | +| __Return__ | int | height | |
| 237 | + |
| 238 | +### wkeContentsWidth |
| 239 | + |
| 240 | +| Parameter | Type | description |
| 241 | +| --- | --- | --- | |
| 242 | +| webview | int | -- | |
| 243 | +| __Return__ | int | contentswidth | |
| 244 | + |
| 245 | +### wkeContentsHeight |
| 246 | + |
| 247 | +| Parameter | Type | description |
| 248 | +| --- | --- | --- | |
| 249 | +| webview | int | -- | |
| 250 | +| __Return__ | int | contentsheight | |
| 251 | + |
| 252 | +### wkeGoForward |
| 253 | + |
| 254 | +| Parameter | Type | description |
| 255 | +| --- | --- | --- | |
| 256 | +| webview | int | -- | |
| 257 | +| __Return__ | None | -- | |
| 258 | + |
| 259 | +### wkeGoForward |
| 260 | + |
| 261 | +| Parameter | Type | description |
| 262 | +| --- | --- | --- | |
| 263 | +| webview | int | -- | |
| 264 | +| __Return__ | None | -- | |
| 265 | + |
| 266 | +### wkeGetWindowHandle |
| 267 | + |
| 268 | +| Parameter | Type | description |
| 269 | +| --- | --- | --- | |
| 270 | +| webview | int | -- | |
| 271 | +| __Return__ | int |hwnd | |
| 272 | + |
| 273 | +### wkeGetViewDC |
| 274 | + |
| 275 | +| Parameter | Type | description |
| 276 | +| --- | --- | --- | |
| 277 | +| webview | int | -- | |
| 278 | +| __Return__ | int | DC | |
| 279 | + |
| 280 | +### wkeSetTouchEnabled |
| 281 | + |
| 282 | +| Parameter | Type | description |
| 283 | +| --- | --- | --- | |
| 284 | +| webview | int | -- | |
| 285 | +| _bool | bool | -- | |
| 286 | +| __Return__ | None | -- | |
| 287 | + |
| 288 | +### simulate_device |
| 289 | + |
| 290 | +| Parameter | Type | description |
| 291 | +| --- | --- | --- | |
| 292 | +| webview | int | -- | |
| 293 | +| key | string | -- | |
| 294 | +| value | string | -- | |
| 295 | +| _int | int | -- | |
| 296 | +| _float | float | -- | |
| 297 | +| __Return__ | None | -- | |
| 298 | + |
| 299 | +### bind_window |
| 300 | + |
| 301 | +| Parameter | Type | description |
| 302 | +| --- | --- | --- | |
| 303 | +| hwnd | int | -- | |
| 304 | +| _bool | bool | -- | |
| 305 | +| __Return__ | int | webview | |
0 commit comments